cosmopolitan/libc/sysv/consts/sol.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

94 lines
2.9 KiB
C

#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const int SOL_AAL;
extern const int SOL_ALG;
extern const int SOL_ATM;
extern const int SOL_BLUETOOTH;
extern const int SOL_CAIF;
extern const int SOL_DCCP;
extern const int SOL_DECNET;
extern const int SOL_ICMPV6;
extern const int SOL_IP;
extern const int SOL_IPV6;
extern const int SOL_IRDA;
extern const int SOL_IUCV;
extern const int SOL_KCM;
extern const int SOL_LLC;
extern const int SOL_NETBEUI;
extern const int SOL_NETLINK;
extern const int SOL_NFC;
extern const int SOL_PACKET;
extern const int SOL_PNPIPE;
extern const int SOL_PPPOL2TP;
extern const int SOL_RAW;
extern const int SOL_RDS;
extern const int SOL_RXRPC;
extern const int SOL_SOCKET;
extern const int SOL_TCP;
extern const int SOL_TIPC;
extern const int SOL_UDP;
extern const int SOL_X25;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define SOL_IP 0
#define SOL_TCP 6
#define SOL_UDP 17
#define SOL_AAL SOL_AAL
#define SOL_ALG SOL_ALG
#define SOL_ATM SOL_ATM
#define SOL_BLUETOOTH SOL_BLUETOOTH
#define SOL_CAIF SOL_CAIF
#define SOL_DCCP SOL_DCCP
#define SOL_DECNET SOL_DECNET
#define SOL_ICMPV6 SOL_ICMPV6
#define SOL_IPV6 SOL_IPV6
#define SOL_IRDA SOL_IRDA
#define SOL_IUCV SOL_IUCV
#define SOL_KCM SOL_KCM
#define SOL_LLC SOL_LLC
#define SOL_NETBEUI SOL_NETBEUI
#define SOL_NETLINK SOL_NETLINK
#define SOL_NFC SOL_NFC
#define SOL_PACKET SOL_PACKET
#define SOL_PNPIPE SOL_PNPIPE
#define SOL_PPPOL2TP SOL_PPPOL2TP
#define SOL_RAW SOL_RAW
#define SOL_RDS SOL_RDS
#define SOL_RXRPC SOL_RXRPC
#define SOL_SOCKET SOL_SOCKET
#define SOL_TIPC SOL_TIPC
#define SOL_X25 SOL_X25
#define __tmpcosmo_SOL_AAL -15823976
#define __tmpcosmo_SOL_ALG -15823956
#define __tmpcosmo_SOL_ATM -15823914
#define __tmpcosmo_SOL_BLUETOOTH -15824062
#define __tmpcosmo_SOL_CAIF -15823904
#define __tmpcosmo_SOL_DCCP -15823814
#define __tmpcosmo_SOL_DECNET -15823842
#define __tmpcosmo_SOL_ICMPV6 -15823908
#define __tmpcosmo_SOL_IPV6 -15823808
#define __tmpcosmo_SOL_IRDA -15823880
#define __tmpcosmo_SOL_IUCV -15824156
#define __tmpcosmo_SOL_KCM -15824092
#define __tmpcosmo_SOL_LLC -15823930
#define __tmpcosmo_SOL_NETBEUI -15823894
#define __tmpcosmo_SOL_NETLINK -15824012
#define __tmpcosmo_SOL_NFC -15823942
#define __tmpcosmo_SOL_PACKET -15823806
#define __tmpcosmo_SOL_PNPIPE -15823968
#define __tmpcosmo_SOL_PPPOL2TP -15823816
#define __tmpcosmo_SOL_RAW -15824044
#define __tmpcosmo_SOL_RDS -15824020
#define __tmpcosmo_SOL_RXRPC -15823984
#define __tmpcosmo_SOL_SOCKET -15824050
#define __tmpcosmo_SOL_TIPC -15823940
#define __tmpcosmo_SOL_X25 -15823856
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_ */