2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SOCK_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SOCK_H_
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-08-05 23:50:08 +02:00
|
|
|
extern const int SOCK_CLOEXEC;
|
|
|
|
extern const int SOCK_DCCP;
|
|
|
|
extern const int SOCK_DGRAM;
|
|
|
|
extern const int SOCK_NONBLOCK;
|
|
|
|
extern const int SOCK_PACKET;
|
|
|
|
extern const int SOCK_RAW;
|
|
|
|
extern const int SOCK_RDM;
|
|
|
|
extern const int SOCK_SEQPACKET;
|
|
|
|
extern const int SOCK_STREAM;
|
2020-06-15 07:18:57 -07:00
|
|
|
|
2023-06-08 23:44:03 -07:00
|
|
|
#define SOCK_STREAM 1
|
|
|
|
#define SOCK_DGRAM 2
|
|
|
|
#define SOCK_RAW 3
|
|
|
|
#define SOCK_RDM 4
|
|
|
|
#define SOCK_SEQPACKET 5
|
2023-08-21 02:28:24 -07:00
|
|
|
#define SOCK_CLOEXEC SOCK_CLOEXEC
|
|
|
|
#define SOCK_NONBLOCK SOCK_NONBLOCK
|
2023-06-08 23:44:03 -07:00
|
|
|
|
2020-06-15 07:18:57 -07:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SOCK_H_ */
|