cosmopolitan/libc/sysv/consts/sol.h
Justine Tunney afc58a8b41
Upgrade cosmopolitan gcc and binutils to 2.35.2
This change upgrades to the latest portcosmo gcc patch
6728fe1a25185560603ca312a8d4352af2a4e515 which lets us avoid needing to
define __tmpcosmo_FOO constants. We're now using an appropriate binutils
version for GCC 11. The older binutils sometimes wasn't able to print
backtraces, due to not being able to find a .debug_ranges section.

This is breaking change for /opt/cosmos libraries :'( due to this weird
"error: need linked-to section for --gc-sections" that pops up.

Please run `make clean` in the monorepo before rebuilding.
2023-06-18 00:54:14 -07:00

69 lines
1.8 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
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_ */