network: recvmsg and sendmsg standard compliance (BZ#16919)
[glibc.git] / conform / data / sys / socket.h-data
blob3a6cf7c673823850f60e424524328d98c7318f29
1 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
2 type socklen_t
4 type sa_family_t
6 # if defined XOPEN2K8 || defined POSIX2008
7 type size_t
8 type ssize_t
9 # endif
11 type {struct sockaddr}
13 element {struct sockaddr} sa_family_t sa_family
14 element {struct sockaddr} char sa_data []
16 type {struct sockaddr_storage}
18 element {struct sockaddr_storage} sa_family_t ss_family
20 type {struct msghdr}
22 element {struct msghdr} {void*} msg_name
23 element {struct msghdr} socklen_t msg_namelen
24 element {struct msghdr} {struct iovec*} msg_iov
25 element {struct msghdr} int msg_iovlen
26 element {struct msghdr} {void*} msg_control
27 element {struct msghdr} socklen_t msg_controllen
28 element {struct msghdr} int msg_flags
30 type {struct iovec}
32 element {struct iovec} {void*} iov_base
33 element {struct iovec} size_t iov_len
35 type {struct cmsghdr}
37 element {struct cmsghdr} socklen_t cmsg_len
38 element {struct cmsghdr} int cmsg_level
39 element {struct cmsghdr} int cmsg_type
41 macro SCM_RIGHTS
43 macro CMSG_DATA
44 macro CMSG_NXTHDR
45 macro CMSG_FIRSTHDR
47 type {struct linger}
49 element {struct linger} int l_onoff
50 element {struct linger} int l_linger
52 macro SOCK_DGRAM
53 macro SOCK_STREAM
54 macro SOCK_SEQPACKET
56 macro SOL_SOCKET
58 macro SO_ACCEPTCONN
59 macro SO_BROADCAST
60 macro SO_DEBUG
61 macro SO_DONTROUTE
62 macro SO_ERROR
63 macro SO_KEEPALIVE
64 macro SO_LINGER
65 macro SO_OOBINLINE
66 macro SO_RCVBUF
67 macro SO_RCVLOWAT
68 macro SO_RCVTIMEO
69 macro SO_REUSEADDR
70 macro SO_SNDBUF
71 macro SO_SNDLOWAT
72 macro SO_SNDTIMEO
73 macro SO_TYPE
75 macro SOMAXCONN
77 macro MSG_CTRUNC
78 macro MSG_DONTROUTE
79 macro MSG_EOR
80 macro MSG_OOB
81 macro MSG_PEEK
82 macro MSG_TRUNC
83 macro MSG_WAITALL
84 # if defined XOPEN2K8 || defined POSIX2008
85 constant MSG_NOSIGNAL
86 # endif
88 macro AF_UNIX
89 macro AF_UNSPEC
90 macro AF_INET
91 macro AF_INET6
93 macro SHUT_RD
94 macro SHUT_WR
95 macro SHUT_RDWR
97 function int accept (int, struct sockaddr*, socklen_t*)
98 function int bind (int, const struct sockaddr*, socklen_t)
99 function int connect (int, const struct sockaddr*, socklen_t)
100 function int getpeername (int, struct sockaddr*, socklen_t*)
101 function int getsockname (int, struct sockaddr*, socklen_t*)
102 function int getsockopt (int, int, int, void*, socklen_t*)
103 function int listen (int, int)
104 function ssize_t recv (int, void*, size_t, int)
105 function ssize_t recvfrom (int, void*, size_t, int, struct sockaddr*, socklen_t*)
106 function ssize_t recvmsg (int, struct msghdr*, int)
107 function ssize_t send (int, const void*, size_t, int)
108 function ssize_t sendmsg (int, const struct msghdr*, int)
109 function ssize_t sendto (int, const void*, size_t, int, const struct sockaddr*, socklen_t)
110 function int setsockopt (int, int, int, const void*, socklen_t)
111 function int shutdown (int, int)
112 function int socket (int, int, int)
113 function int socketpair (int, int, int, int[2])
114 #if !defined XPG4 && !defined UNIX98
115 function int sockatmark (int)
116 #endif
118 allow-header sys/uio.h
120 allow ss_*
121 allow sa_*
122 allow if_*
123 allow ifc_*
124 allow ifru_*
125 allow infu_*
126 allow ifra_*
127 allow msg_*
128 allow cmsg_*
129 allow l_*
130 allow SO*
131 allow AF_*
132 allow CMSG_*
133 allow MSG_*
134 allow PF_*
135 allow SCM_*
136 allow SHUT_*
137 #endif