cosmopolitan/libc/sysv/consts/msg.h
Justine Tunney 23e235b7a5
Fix bugs in cosmocc toolchain
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from
https://github.com/ahgamut/musl-cross-make/ which fixes the issues we
were having with our C language extension for symbolic constants. This
change also performs some code cleanup and bug fixes to getaddrinfo().
It's now possible to compile projects like ncurses, readline and python
without needing to patch anything upstream, except maybe a line or two.
Pretty soon it should be possible to build a Linux distro on Cosmo.
2023-06-08 23:44:03 -07:00

96 lines
3.3 KiB
C

#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_MSG_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_MSG_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const int MSG_BATCH;
extern const int MSG_BCAST;
extern const int MSG_CMSG_CLOEXEC;
extern const int MSG_CONFIRM;
extern const int MSG_CTRUNC;
extern const int MSG_DONTROUTE;
extern const int MSG_DONTWAIT;
extern const int MSG_EOF;
extern const int MSG_EOR;
extern const int MSG_ERRQUEUE;
extern const int MSG_EXCEPT;
extern const int MSG_FASTOPEN;
extern const int MSG_FIN;
extern const int MSG_INFO;
extern const int MSG_MCAST;
extern const int MSG_MORE;
extern const int MSG_NOERROR;
extern const int MSG_NOSIGNAL;
extern const int MSG_NOTIFICATION;
extern const int MSG_OOB;
extern const int MSG_PARITY_ERROR;
extern const int MSG_PEEK;
extern const int MSG_PROXY;
extern const int MSG_RST;
extern const int MSG_STAT;
extern const int MSG_SYN;
extern const int MSG_TRUNC;
extern const int MSG_WAITALL;
extern const int MSG_WAITFORONE;
#define MSG_DONTROUTE 4
#define MSG_OOB 1
#define MSG_PEEK 2
#define MSG_BATCH MSG_BATCH
#define MSG_BCAST MSG_BCAST
#define MSG_CMSG_CLOEXEC MSG_CMSG_CLOEXEC
#define MSG_CONFIRM MSG_CONFIRM
#define MSG_CTRUNC MSG_CTRUNC
#define MSG_DONTWAIT MSG_DONTWAIT
#define MSG_EOF MSG_EOF
#define MSG_EOR MSG_EOR
#define MSG_ERRQUEUE MSG_ERRQUEUE
#define MSG_EXCEPT MSG_EXCEPT
#define MSG_FASTOPEN MSG_FASTOPEN
#define MSG_FIN MSG_FIN
#define MSG_INFO MSG_INFO
#define MSG_MCAST MSG_MCAST
#define MSG_MORE MSG_MORE
#define MSG_NOERROR MSG_NOERROR
#define MSG_NOSIGNAL MSG_NOSIGNAL
#define MSG_NOTIFICATION MSG_NOTIFICATION
#define MSG_PARITY_ERROR MSG_PARITY_ERROR
#define MSG_PROXY MSG_PROXY
#define MSG_RST MSG_RST
#define MSG_STAT MSG_STAT
#define MSG_SYN MSG_SYN
#define MSG_TRUNC MSG_TRUNC
#define MSG_WAITALL MSG_WAITALL
#define MSG_WAITFORONE MSG_WAITFORONE
#define __tmpcosmo_MSG_BATCH -1134416743
#define __tmpcosmo_MSG_BCAST 370853917
#define __tmpcosmo_MSG_CMSG_CLOEXEC -1745056044
#define __tmpcosmo_MSG_CONFIRM -1373446954
#define __tmpcosmo_MSG_CTRUNC -1111700304
#define __tmpcosmo_MSG_DONTWAIT -667086557
#define __tmpcosmo_MSG_EOF -602741896
#define __tmpcosmo_MSG_EOR -91925267
#define __tmpcosmo_MSG_ERRQUEUE 1651845516
#define __tmpcosmo_MSG_EXCEPT 460132348
#define __tmpcosmo_MSG_FASTOPEN -394051246
#define __tmpcosmo_MSG_FIN 1618968310
#define __tmpcosmo_MSG_INFO -1121675098
#define __tmpcosmo_MSG_MCAST -782610984
#define __tmpcosmo_MSG_MORE 1239285605
#define __tmpcosmo_MSG_NOERROR -1816652550
#define __tmpcosmo_MSG_NOSIGNAL -1026018855
#define __tmpcosmo_MSG_NOTIFICATION -1641797121
#define __tmpcosmo_MSG_PARITY_ERROR 742069756
#define __tmpcosmo_MSG_PROXY -2048250956
#define __tmpcosmo_MSG_RST -1659007642
#define __tmpcosmo_MSG_STAT -1766577788
#define __tmpcosmo_MSG_SYN -105011009
#define __tmpcosmo_MSG_TRUNC 1248152008
#define __tmpcosmo_MSG_WAITALL -209697144
#define __tmpcosmo_MSG_WAITFORONE -583987704
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MSG_H_ */