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:
parent
1d66670ad7
commit
54b1d6f57f
7 changed files with 103 additions and 9 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue