1 PSI_CHECK_SYS_SOCKET() {
2 PSI_CONFIG_POSIX(sys/socket, sys/socket.h)
4 PSI_TYPE(socklen_t, int)
5 PSI_TYPE(sa_family_t, uint)
7 PSI_STRUCT(struct sockaddr, [
11 PSI_STRUCT(struct sockaddr_storage, [
12 sa_family_t ss_family]
14 PSI_STRUCT(struct msghdr, [
16 socklen_t msg_namelen,
17 struct iovec *msg_iov,
20 socklen_t msg_controllen,
23 PSI_STRUCT(struct cmsghdr, [
28 PSI_STRUCT(struct linger, [
33 PSI_CONST(AF_INET, int)
34 PSI_CONST(AF_INET6, int)
35 PSI_CONST(AF_UNIX, int)
36 PSI_CONST(AF_UNSPEC, int)
37 PSI_CONST(MSG_CTRUNC, int)
38 PSI_CONST(MSG_DONTROUTE, int)
39 PSI_CONST(MSG_EOR, int)
40 PSI_CONST(MSG_NOSIGNAL, int)
41 PSI_CONST(MSG_OOB, int)
42 PSI_CONST(MSG_PEEK, int)
43 PSI_CONST(MSG_TRUNC, int)
44 PSI_CONST(MSG_WAITALL, int)
45 PSI_CONST(SCM_RIGHTS, int)
46 PSI_CONST(SHUT_RD, int)
47 PSI_CONST(SHUT_RDWR, int)
48 PSI_CONST(SHUT_WR, int)
49 PSI_CONST(SOCK_DGRAM, int)
50 PSI_CONST(SOCK_RAW, int)
51 PSI_CONST(SOCK_SEQPACKET, int)
52 PSI_CONST(SOCK_STREAM, int)
53 PSI_CONST(SOL_SOCKET, int)
54 PSI_CONST(SO_ACCEPTCONN, int)
55 PSI_CONST(SO_BROADCAST, int)
56 PSI_CONST(SO_DEBUG, int)
57 PSI_CONST(SO_DONTROUTE, int)
58 PSI_CONST(SO_ERROR, int)
59 PSI_CONST(SO_KEEPALIVE, int)
60 PSI_CONST(SO_LINGER, int)
61 PSI_CONST(SO_OOBINLINE, int)
62 PSI_CONST(SO_RCVBUF, int)
63 PSI_CONST(SO_RCVLOWAT, int)
64 PSI_CONST(SO_RCVTIMEO, int)
65 PSI_CONST(SO_REUSEADDR, int)
66 PSI_CONST(SO_SNDBUF, int)
67 PSI_CONST(SO_SNDLOWAT, int)
68 PSI_CONST(SO_SNDTIMEO, int)
69 PSI_CONST(SO_TYPE, int)
71 PSI_MACRO(unsigned char *CMSG_DATA, [(struct cmsghdr *m)])
72 PSI_MACRO(struct cmsghdr *CMSG_NXTHDR, [(struct msghdr *m, struct cmsghdr *c)])
73 PSI_MACRO(struct cmsghdr *CMSG_FIRSTHDR, [(struct msghdr *m)])
75 PSI_DECL(int accept, [(int socket, struct sockaddr *address, socklen_t *address_len)])
76 PSI_DECL(int bind, [(int socket, struct sockaddr *address, socklen_t address_len)])
77 PSI_DECL(int connect, [(int socket, struct sockaddr *address, socklen_t address_len)])
78 PSI_DECL(int getpeername, [(int socket, struct sockaddr *address, socklen_t *address_len)])
79 PSI_DECL(int getsockname, [(int socket, struct sockaddr *address, socklen_t *address_len)])
80 PSI_DECL(int getsockopt, [(int socket, int level, int option_name, void *option_value, socklen_t *option_len)])
81 PSI_DECL(int listen, [(int socket, int backlog)])
82 PSI_DECL(int recv, [(int socket, void *buffer, size_t length, int flags)])
83 PSI_DECL(int recvfrom, [(int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len)])
84 PSI_DECL(int recvmsg, [(int socket, struct msghdr *message, int flags)])
85 PSI_DECL(int send, [(int socket, void *buffer, size_t length, int flags)])
86 PSI_DECL(int sendmsg, [(int socket, struct msghdr *message, int flags)])
87 PSI_DECL(int sendto, [(int socket, void *message, size_t length, int flags, struct sockaddr *dest_addr, socklen_t dest_len)])
88 PSI_DECL(int setsockopt, [(int socket, int level, int option_name, void *option_value, socklen_t option_len)])
89 PSI_DECL(int shutdown, [(int socket, int how)])
90 PSI_DECL(int sockatmark, [(int socket)])
91 PSI_DECL(int socket, [(int domain, int type, int protocol)])
92 PSI_DECL(int socketpair, [(int domain, int type, int protocol, int socket_vector@<:@2@:>@)])