1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

Kernel: Begin implementing UNIX domain sockets.

This commit is contained in:
Andreas Kling 2019-02-14 14:17:38 +01:00
parent dc200923f2
commit 2f35e54f80
12 changed files with 177 additions and 1 deletions

View file

@ -219,6 +219,7 @@ typedef dword nlink_t;
typedef dword uid_t;
typedef dword gid_t;
typedef dword clock_t;
typedef dword socklen_t;
struct tms {
clock_t tms_utime;
@ -304,3 +305,18 @@ struct pollfd {
short events;
short revents;
};
#define AF_UNSPEC 0
#define AF_LOCAL 1
struct sockaddr {
word sa_family;
char sa_data[14];
};
#define UNIX_PATH_MAX 108
struct sockaddr_un {
word sun_family;
char sun_path[UNIX_PATH_MAX];
};