From 5a339a9b7b5cdcee3629b14f1b6a58ac4ab60fce Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 30 Oct 2023 21:44:25 +0100 Subject: LibC: Remove header files that are not in the "include" directory --- userland/libc/socket.h | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 userland/libc/socket.h (limited to 'userland/libc/socket.h') 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 -#include - -#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); -- cgit v1.2.3