LibC: Define PF_* macros on sys/socket.h

This commit is contained in:
Bananymous 2024-06-17 16:50:03 +03:00
parent d7eb321d58
commit 1138165308
1 changed files with 5 additions and 0 deletions

View File

@ -107,6 +107,11 @@ struct linger
#define AF_INET6 2 #define AF_INET6 2
#define AF_UNIX 3 #define AF_UNIX 3
#define PF_UNSPEC AF_UNSPEC
#define PF_INET AF_INET
#define PF_INET6 AF_INET6
#define PF_UNIX AF_UNIX
#define SHUT_RD 0x01 #define SHUT_RD 0x01
#define SHUT_WR 0x02 #define SHUT_WR 0x02
#define SHUT_RDWR (SHUT_RD | SHUT_WR) #define SHUT_RDWR (SHUT_RD | SHUT_WR)