]>
git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/headers/public/__header_sys_socket.h
1 #ifndef __wasilibc___header_sys_socket_h
2 #define __wasilibc___header_sys_socket_h
4 #include <__struct_msghdr.h>
5 #include <__struct_sockaddr.h>
6 #include <__struct_sockaddr_storage.h>
10 #define SHUT_RD __WASI_SDFLAGS_RD
11 #define SHUT_WR __WASI_SDFLAGS_WR
12 #define SHUT_RDWR (SHUT_RD | SHUT_WR)
14 #define MSG_PEEK __WASI_RIFLAGS_RECV_PEEK
15 #define MSG_WAITALL __WASI_RIFLAGS_RECV_WAITALL
16 #define MSG_TRUNC __WASI_RIFLAGS_RECV_DATA_TRUNCATED
18 #define SOCK_DGRAM __WASI_FILETYPE_SOCKET_DGRAM
19 #define SOCK_STREAM __WASI_FILETYPE_SOCKET_STREAM
21 #define SOCK_NONBLOCK (0x00004000)
22 #define SOCK_CLOEXEC (0x00002000)
24 #define SOL_SOCKET 0x7fffffff