diff options
author | Anton Kling <anton@kling.gg> | 2023-10-30 21:44:25 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-30 21:49:48 +0100 |
commit | 5a339a9b7b5cdcee3629b14f1b6a58ac4ab60fce (patch) | |
tree | 4928f7d63cab8dfa04a79506fdce22547ccef41f /userland/libc/socket.h | |
parent | fdb75cf832af77c0d93e0adb514c30964c6b680f (diff) |
LibC: Remove header files that are not in the "include" directory
Diffstat (limited to 'userland/libc/socket.h')
-rw-r--r-- | userland/libc/socket.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/userland/libc/socket.h b/userland/libc/socket.h deleted file mode 100644 index 5e86b45..0000000 --- a/userland/libc/socket.h +++ /dev/null @@ -1,41 +0,0 @@ -#include <stddef.h> -#include <stdint.h> - -#define AF_UNIX 0 -#define AF_LOCAL AF_UNIX - -#define INADDR_ANY 0 - -typedef struct { - int domain; - int type; - int protocol; - - // UNIX socket - char *path; - int incoming_fd; -} SOCKET; - -typedef struct { - char *path; - SOCKET *s; -} OPEN_UNIX_SOCKET; - -typedef uint32_t in_addr_t; -typedef uint16_t in_port_t; -typedef unsigned int sa_family_t; -typedef uint32_t socklen_t; - -struct sockaddr { - sa_family_t sa_family; /* Address family */ - char *sa_data; /* Socket address */ -}; - -struct sockaddr_un { - sa_family_t sun_family; /* Address family */ - char *sun_path; /* Socket pathname */ -}; - -int socket(int domain, int type, int protocol); -int accept(int socket, struct sockaddr *address, socklen_t *address_len); -int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); |