mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Kernel+LibC: Add AF_MAX
Will be updated as we add more protocols (e.g AF_INET6)
This commit is contained in:
parent
6571468525
commit
107c83bd42
|
@ -379,6 +379,7 @@ struct pollfd {
|
|||
#define AF_UNSPEC 0
|
||||
#define AF_LOCAL 1
|
||||
#define AF_INET 2
|
||||
#define AF_MAX 3
|
||||
#define PF_LOCAL AF_LOCAL
|
||||
#define PF_INET AF_INET
|
||||
|
||||
|
|
|
@ -38,10 +38,12 @@ __BEGIN_DECLS
|
|||
#define AF_LOCAL 1
|
||||
#define AF_UNIX AF_LOCAL
|
||||
#define AF_INET 2
|
||||
#define AF_MAX 3
|
||||
#define PF_LOCAL AF_LOCAL
|
||||
#define PF_UNIX PF_LOCAL
|
||||
#define PF_INET AF_INET
|
||||
#define PF_UNSPEC AF_UNSPEC
|
||||
#define PF_MAX AF_MAX
|
||||
|
||||
#define SOCK_TYPE_MASK 0xff
|
||||
#define SOCK_STREAM 1
|
||||
|
|
Loading…
Reference in a new issue