mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 12:30:30 +00:00
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.
This commit is contained in:
parent
22f81a8d50
commit
23e235b7a5
272 changed files with 3491 additions and 4350 deletions
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -36,34 +35,60 @@ extern const int SOL_X25;
|
|||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define SOL_IP LITERALLY(0)
|
||||
#define SOL_TCP LITERALLY(6)
|
||||
#define SOL_UDP LITERALLY(17)
|
||||
#define SOL_IP 0
|
||||
#define SOL_TCP 6
|
||||
#define SOL_UDP 17
|
||||
|
||||
#define SOL_AAL SYMBOLIC(SOL_AAL)
|
||||
#define SOL_ALG SYMBOLIC(SOL_ALG)
|
||||
#define SOL_ATM SYMBOLIC(SOL_ATM)
|
||||
#define SOL_BLUETOOTH SYMBOLIC(SOL_BLUETOOTH)
|
||||
#define SOL_CAIF SYMBOLIC(SOL_CAIF)
|
||||
#define SOL_DCCP SYMBOLIC(SOL_DCCP)
|
||||
#define SOL_DECNET SYMBOLIC(SOL_DECNET)
|
||||
#define SOL_ICMPV6 SYMBOLIC(SOL_ICMPV6)
|
||||
#define SOL_IPV6 SYMBOLIC(SOL_IPV6)
|
||||
#define SOL_IRDA SYMBOLIC(SOL_IRDA)
|
||||
#define SOL_IUCV SYMBOLIC(SOL_IUCV)
|
||||
#define SOL_KCM SYMBOLIC(SOL_KCM)
|
||||
#define SOL_LLC SYMBOLIC(SOL_LLC)
|
||||
#define SOL_NETBEUI SYMBOLIC(SOL_NETBEUI)
|
||||
#define SOL_NETLINK SYMBOLIC(SOL_NETLINK)
|
||||
#define SOL_NFC SYMBOLIC(SOL_NFC)
|
||||
#define SOL_PACKET SYMBOLIC(SOL_PACKET)
|
||||
#define SOL_PNPIPE SYMBOLIC(SOL_PNPIPE)
|
||||
#define SOL_PPPOL2TP SYMBOLIC(SOL_PPPOL2TP)
|
||||
#define SOL_RAW SYMBOLIC(SOL_RAW)
|
||||
#define SOL_RDS SYMBOLIC(SOL_RDS)
|
||||
#define SOL_RXRPC SYMBOLIC(SOL_RXRPC)
|
||||
#define SOL_SOCKET SYMBOLIC(SOL_SOCKET)
|
||||
#define SOL_TIPC SYMBOLIC(SOL_TIPC)
|
||||
#define SOL_X25 SYMBOLIC(SOL_X25)
|
||||
#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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue