opuntiaOS - an operating system targeting x86 and ARMv7
at master 631 B view raw
1/* 2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors. 3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com> 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9#ifndef _KERNEL_IO_SOCKETS_SOCKET_H 10#define _KERNEL_IO_SOCKETS_SOCKET_H 11 12#include <fs/vfs.h> 13#include <libkern/syscall_structs.h> 14#include <libkern/types.h> 15 16#define MAX_SOCKET_COUNT 16 17 18int socket_create(int domain, int type, int protocol, file_descriptor_t* fd, file_ops_t* ops); 19socket_t* socket_duplicate(socket_t* sock); 20int socket_put(socket_t* sock); 21 22#endif /* _KERNEL_IO_SOCKETS_SOCKET_H */