84#define SOCK_SEQPACKET 5
89#define SO_DEBUG 0x0001
90#define SO_ACCEPTCONN 0x0002
91#define SO_REUSEADDR 0x0004
92#define SO_KEEPALIVE 0x0008
93#define SO_DONTROUTE 0x0010
94#define SO_BROADCAST 0x0020
95#define SO_USELOOPBACK 0x0040
96#define SO_LINGER 0x0080
97#define SO_OOBINLINE 0x0100
98#define SO_REUSEPORT 0x0200
99#define SO_TIMESTAMP 0x0400
104#define SO_SNDBUF 0x1001
105#define SO_RCVBUF 0x1002
106#define SO_SNDLOWAT 0x1003
107#define SO_RCVLOWAT 0x1004
108#define SO_SNDTIMEO 0x1005
109#define SO_RCVTIMEO 0x1006
110#define SO_ERROR 0x1007
111#define SO_TYPE 0x1008
112#define SO_OVERFLOWED 0x1009
113#define SO_NONBLOCK 0x1009
126#define SOL_SOCKET 0xffff
133#define AF_UNIX AF_LOCAL
149#define AF_APPLETALK 16
157#define AF_E164 AF_ISDN
175#define _SS_MAXSIZE 128
176#define _SS_ALIGNSIZE (sizeof(int64_t))
177#define _SS_PAD1SIZE (_SS_ALIGNSIZE - 2)
178#define _SS_PAD2SIZE (_SS_MAXSIZE - 2 - _SS_PAD1SIZE - _SS_ALIGNSIZE)
191#define PF_UNSPEC AF_UNSPEC
192#define PF_LOCAL AF_LOCAL
193#define PF_UNIX PF_LOCAL
194#define PF_INET AF_INET
195#define PF_IMPLINK AF_IMPLINK
197#define PF_CHAOS AF_CHAOS
201#define PF_ECMA AF_ECMA
202#define PF_DATAKIT AF_DATAKIT
203#define PF_CCITT AF_CCITT
205#define PF_DECnet AF_DECnet
208#define PF_HYLINK AF_HYLINK
209#define PF_APPLETALK AF_APPLETALK
210#define PF_ROUTE AF_ROUTE
211#define PF_LINK AF_LINK
212#if defined(_NETBSD_SOURCE)
213#define PF_XTP pseudo_AF_XTP
215#define PF_COIP AF_COIP
217#define PF_INET6 AF_INET6
219#if defined(_NETBSD_SOURCE)
220#define PF_RTIP pseudo_AF_RTIP
221#define PF_PIP pseudo_AF_PIP
223#define PF_ISDN AF_ISDN
224#define PF_E164 AF_E164
225#define PF_NATM AF_NATM
227#if defined(_NETBSD_SOURCE)
228#define PF_KEY pseudo_AF_KEY
235#define MSG_DONTROUTE 0x4
237#define MSG_TRUNC 0x10
238#define MSG_CTRUNC 0x20
239#define MSG_WAITALL 0x40
240#define MSG_DONTWAIT 0x80
241#define MSG_BCAST 0x100
242#define MSG_MCAST 0x200
u32 flags
Definition fixup.c:1
short int s[8]
Definition psptypes.h:8
float x
Definition psptypes.h:0
int bind(int, const struct sockaddr *, socklen_t)
#define _SS_PAD2SIZE
Definition socket.h:178
int getpeername(int, struct sockaddr *__restrict, socklen_t *__restrict)
uint32_t socklen_t
Definition socket.h:75
ssize_t send(int, const void *, size_t, int)
int accept(int, struct sockaddr *__restrict, socklen_t *__restrict)
ssize_t recvmsg(int s, struct msghdr *msg, int flags)
int connect(int, const struct sockaddr *, socklen_t)
int getsockopt(int, int, int, void *__restrict, socklen_t *__restrict)
ssize_t recv(int, void *, size_t, int)
ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *, socklen_t)
ssize_t sendmsg(int s, const struct msghdr *msg, int flags)
uint8_t sa_family_t
Definition socket.h:74
#define _SS_PAD1SIZE
Definition socket.h:177
int getsockname(int, struct sockaddr *__restrict, socklen_t *__restrict)
ssize_t recvfrom(int, void *__restrict, size_t, int, struct sockaddr *__restrict, socklen_t *__restrict)
int socket(int, int, int)
int setsockopt(int, int, int, const void *, socklen_t)
void * iov_base
Definition socket.h:252
size_t iov_len
Definition socket.h:253
int l_linger
Definition socket.h:120
int l_onoff
Definition socket.h:119
struct iovec * msg_iov
Definition socket.h:264
socklen_t msg_namelen
Definition socket.h:263
void * msg_name
Definition socket.h:262
int msg_iovlen
Definition socket.h:265
int msg_flags
Definition socket.h:268
socklen_t msg_controllen
Definition socket.h:267
void * msg_control
Definition socket.h:266
sa_family_t ss_family
Definition socket.h:182
char __ss_pad2[_SS_PAD2SIZE]
Definition socket.h:185
char __ss_pad1[_SS_PAD1SIZE]
Definition socket.h:183
int64_t __ss_align
Definition socket.h:184
uint8_t ss_len
Definition socket.h:181
uint8_t sa_len
Definition socket.h:167
sa_family_t sa_family
Definition socket.h:168
char sa_data[14]
Definition socket.h:169