projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not try to interpret implementation specific strings as tz definition
[musl]
/
include
/
sys
/
socket.h
diff --git
a/include/sys/socket.h
b/include/sys/socket.h
index
d6cba7c
..
8e8c9e9
100644
(file)
--- a/
include/sys/socket.h
+++ b/
include/sys/socket.h
@@
-19,12
+19,14
@@
extern "C" {
#include <bits/socket.h>
#include <bits/socket.h>
+#ifdef _GNU_SOURCE
struct ucred
{
pid_t pid;
uid_t uid;
gid_t gid;
};
struct ucred
{
pid_t pid;
uid_t uid;
gid_t gid;
};
+#endif
struct linger
{
struct linger
{
@@
-33,7
+35,7
@@
struct linger
};
#define SHUT_RD 0
};
#define SHUT_RD 0
-#define SHUT_W
D
1
+#define SHUT_W
R
1
#define SHUT_RDWR 2
#ifndef SOCK_STREAM
#define SHUT_RDWR 2
#ifndef SOCK_STREAM
@@
-82,6
+84,7
@@
struct linger
#define PF_PPPOX 24
#define PF_WANPIPE 25
#define PF_LLC 26
#define PF_PPPOX 24
#define PF_WANPIPE 25
#define PF_LLC 26
+#define PF_IB 27
#define PF_CAN 29
#define PF_TIPC 30
#define PF_BLUETOOTH 31
#define PF_CAN 29
#define PF_TIPC 30
#define PF_BLUETOOTH 31
@@
-93,7
+96,8
@@
struct linger
#define PF_CAIF 37
#define PF_ALG 38
#define PF_NFC 39
#define PF_CAIF 37
#define PF_ALG 38
#define PF_NFC 39
-#define PF_MAX 40
+#define PF_VSOCK 40
+#define PF_MAX 41
#define AF_UNSPEC PF_UNSPEC
#define AF_LOCAL PF_LOCAL
#define AF_UNSPEC PF_UNSPEC
#define AF_LOCAL PF_LOCAL
@@
-125,6
+129,7
@@
struct linger
#define AF_PPPOX PF_PPPOX
#define AF_WANPIPE PF_WANPIPE
#define AF_LLC PF_LLC
#define AF_PPPOX PF_PPPOX
#define AF_WANPIPE PF_WANPIPE
#define AF_LLC PF_LLC
+#define AF_IB PF_IB
#define AF_CAN PF_CAN
#define AF_TIPC PF_TIPC
#define AF_BLUETOOTH PF_BLUETOOTH
#define AF_CAN PF_CAN
#define AF_TIPC PF_TIPC
#define AF_BLUETOOTH PF_BLUETOOTH
@@
-136,6
+141,7
@@
struct linger
#define AF_CAIF PF_CAIF
#define AF_ALG PF_ALG
#define AF_NFC PF_NFC
#define AF_CAIF PF_CAIF
#define AF_ALG PF_ALG
#define AF_NFC PF_NFC
+#define AF_VSOCK PF_VSOCK
#define AF_MAX PF_MAX
#ifndef SO_DEBUG
#define AF_MAX PF_MAX
#ifndef SO_DEBUG
@@
-195,11
+201,17
@@
struct linger
#define SO_NOFCS 43
#define SO_LOCK_FILTER 44
#define SO_SELECT_ERR_QUEUE 45
#define SO_NOFCS 43
#define SO_LOCK_FILTER 44
#define SO_SELECT_ERR_QUEUE 45
+#define SO_BUSY_POLL 46
+#define SO_MAX_PACING_RATE 47
#ifndef SOL_SOCKET
#define SOL_SOCKET 1
#endif
#ifndef SOL_SOCKET
#define SOL_SOCKET 1
#endif
+#define SOL_IP 0
+#define SOL_IPV6 41
+#define SOL_ICMPV6 58
+
#define SOL_RAW 255
#define SOL_DECNET 261
#define SOL_X25 262
#define SOL_RAW 255
#define SOL_DECNET 261
#define SOL_X25 262
@@
-220,7
+232,7
@@
struct linger
#define MSG_EOR 0x0080
#define MSG_WAITALL 0x0100
#define MSG_FIN 0x0200
#define MSG_EOR 0x0080
#define MSG_WAITALL 0x0100
#define MSG_FIN 0x0200
-#define MS
D
_SYN 0x0400
+#define MS
G
_SYN 0x0400
#define MSG_CONFIRM 0x0800
#define MSG_RST 0x1000
#define MSG_ERRQUEUE 0x2000
#define MSG_CONFIRM 0x0800
#define MSG_RST 0x1000
#define MSG_ERRQUEUE 0x2000
@@
-285,10
+297,6
@@
int setsockopt (int, int, int, const void *, socklen_t);
int sockatmark (int);
int sockatmark (int);
-#define SHUT_RD 0
-#define SHUT_WR 1
-#define SHUT_RDWR 2
-
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif