1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:18:12 +00:00

Kernel: More sockets work. Fleshing out accept().

This commit is contained in:
Andreas Kling 2019-02-14 15:17:30 +01:00
parent 1d66670ad7
commit 54b1d6f57f
7 changed files with 103 additions and 9 deletions

View file

@ -306,9 +306,15 @@ struct pollfd {
short revents;
};
#define AF_MASK 0xff
#define AF_UNSPEC 0
#define AF_LOCAL 1
#define SOCK_TYPE_MASK 0xff
#define SOCK_STREAM 1
#define SOCK_NONBLOCK 04000
#define SOCK_CLOEXEC 02000000
struct sockaddr {
word sa_family;
char sa_data[14];