2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SO_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SO_H_
|
2023-07-30 01:44:15 +00:00
|
|
|
|
|
|
|
#define SO_DEBUG 1
|
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2023-07-30 01:44:15 +00:00
|
|
|
extern const int SO_TYPE;
|
2022-08-05 21:50:08 +00:00
|
|
|
extern const int SO_ERROR;
|
2023-07-30 01:44:15 +00:00
|
|
|
extern const int SO_ACCEPTCONN;
|
|
|
|
extern const int SO_REUSEADDR;
|
2022-08-05 21:50:08 +00:00
|
|
|
extern const int SO_KEEPALIVE;
|
2023-07-30 01:44:15 +00:00
|
|
|
extern const int SO_DONTROUTE;
|
|
|
|
extern const int SO_BROADCAST;
|
|
|
|
extern const int SO_USELOOPBACK;
|
2022-08-05 21:50:08 +00:00
|
|
|
extern const int SO_LINGER;
|
|
|
|
extern const int SO_OOBINLINE;
|
2023-07-30 01:44:15 +00:00
|
|
|
extern const int SO_SNDBUF;
|
2022-08-05 21:50:08 +00:00
|
|
|
extern const int SO_RCVBUF;
|
|
|
|
extern const int SO_RCVTIMEO;
|
|
|
|
extern const int SO_SNDTIMEO;
|
2023-07-30 01:44:15 +00:00
|
|
|
extern const int SO_RCVLOWAT;
|
|
|
|
extern const int SO_SNDLOWAT;
|
2022-04-24 16:59:22 +00:00
|
|
|
|
2023-07-30 01:44:15 +00:00
|
|
|
#define SO_TYPE SO_TYPE
|
|
|
|
#define SO_ERROR SO_ERROR
|
|
|
|
#define SO_ACCEPTCONN SO_ACCEPTCONN
|
|
|
|
#define SO_REUSEADDR SO_REUSEADDR
|
|
|
|
#define SO_KEEPALIVE SO_KEEPALIVE
|
|
|
|
#define SO_DONTROUTE SO_DONTROUTE
|
|
|
|
#define SO_BROADCAST SO_BROADCAST
|
|
|
|
#define SO_USELOOPBACK SO_USELOOPBACK
|
|
|
|
#define SO_LINGER SO_LINGER
|
|
|
|
#define SO_OOBINLINE SO_OOBINLINE
|
|
|
|
#define SO_SNDBUF SO_SNDBUF
|
|
|
|
#define SO_RCVBUF SO_RCVBUF
|
|
|
|
#define SO_RCVTIMEO SO_RCVTIMEO
|
|
|
|
#define SO_SNDTIMEO SO_SNDTIMEO
|
|
|
|
#define SO_RCVLOWAT SO_RCVLOWAT
|
|
|
|
#define SO_SNDLOWAT SO_SNDLOWAT
|
2022-04-24 16:59:22 +00:00
|
|
|
|
2023-07-30 01:44:15 +00:00
|
|
|
/*
|
|
|
|
* this isn't available on windows, but it should be fine to use anyway,
|
|
|
|
* setsockopt will return ENOPROTOOPT which is perfectly fine to ignore.
|
|
|
|
*/
|
|
|
|
extern const int SO_REUSEPORT;
|
|
|
|
#define SO_REUSEPORT SO_REUSEPORT
|
2022-04-24 16:59:22 +00:00
|
|
|
|
2023-06-09 06:44:03 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
2020-06-15 14:18:57 +00:00
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SO_H_ */
|