mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
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.
188 lines
8.2 KiB
C
188 lines
8.2 KiB
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SO_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SO_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const int LOCAL_PEERCRED;
|
|
extern const int SO_ACCEPTCONN;
|
|
extern const int SO_ATTACH_BPF;
|
|
extern const int SO_ATTACH_FILTER;
|
|
extern const int SO_ATTACH_REUSEPORT_CBPF;
|
|
extern const int SO_ATTACH_REUSEPORT_EBPF;
|
|
extern const int SO_BINDTODEVICE;
|
|
extern const int SO_BPF_EXTENSIONS;
|
|
extern const int SO_BROADCAST;
|
|
extern const int SO_BSDCOMPAT;
|
|
extern const int SO_BUSY_POLL;
|
|
extern const int SO_CNX_ADVICE;
|
|
extern const int SO_DEBUG;
|
|
extern const int SO_DETACH_BPF;
|
|
extern const int SO_DETACH_FILTER;
|
|
extern const int SO_DOMAIN;
|
|
extern const int SO_DONTROUTE;
|
|
extern const int SO_ERROR;
|
|
extern const int SO_EXCLUSIVEADDRUSE;
|
|
extern const int SO_GET_FILTER;
|
|
extern const int SO_INCOMING_CPU;
|
|
extern const int SO_KEEPALIVE;
|
|
extern const int SO_LINGER;
|
|
extern const int SO_LOCK_FILTER;
|
|
extern const int SO_MARK;
|
|
extern const int SO_MAX_PACING_RATE;
|
|
extern const int SO_NOFCS;
|
|
extern const int SO_NO_CHECK;
|
|
extern const int SO_OOBINLINE;
|
|
extern const int SO_PASSCRED;
|
|
extern const int SO_PASSSEC;
|
|
extern const int SO_PEEK_OFF;
|
|
extern const int SO_PEERCRED;
|
|
extern const int SO_PEERNAME;
|
|
extern const int SO_PEERSEC;
|
|
extern const int SO_PRIORITY;
|
|
extern const int SO_PROTOCOL;
|
|
extern const int SO_RCVBUF;
|
|
extern const int SO_RCVBUFFORCE;
|
|
extern const int SO_RCVLOWAT;
|
|
extern const int SO_RCVTIMEO;
|
|
extern const int SO_REUSEADDR;
|
|
extern const int SO_REUSEPORT;
|
|
extern const int SO_RXQ_OVFL;
|
|
extern const int SO_SECURITY_AUTHENTICATION;
|
|
extern const int SO_SECURITY_ENCRYPTION_NETWORK;
|
|
extern const int SO_SECURITY_ENCRYPTION_TRANSPORT;
|
|
extern const int SO_SELECT_ERR_QUEUE;
|
|
extern const int SO_SETFIB;
|
|
extern const int SO_SNDBUF;
|
|
extern const int SO_SNDBUFFORCE;
|
|
extern const int SO_SNDLOWAT;
|
|
extern const int SO_SNDTIMEO;
|
|
extern const int SO_TIMESTAMP;
|
|
extern const int SO_TIMESTAMPING;
|
|
extern const int SO_TIMESTAMPNS;
|
|
extern const int SO_TYPE;
|
|
extern const int SO_USELOOPBACK;
|
|
extern const int SO_WIFI_STATUS;
|
|
|
|
#define SO_DEBUG 1
|
|
|
|
#define LOCAL_PEERCRED LOCAL_PEERCRED
|
|
#define SO_ACCEPTCONN SO_ACCEPTCONN
|
|
#define SO_ATTACH_BPF SO_ATTACH_BPF
|
|
#define SO_ATTACH_FILTER SO_ATTACH_FILTER
|
|
#define SO_ATTACH_REUSEPORT_CBPF SO_ATTACH_REUSEPORT_CBPF
|
|
#define SO_ATTACH_REUSEPORT_EBPF SO_ATTACH_REUSEPORT_EBPF
|
|
#define SO_BINDTODEVICE SO_BINDTODEVICE
|
|
#define SO_BPF_EXTENSIONS SO_BPF_EXTENSIONS
|
|
#define SO_BROADCAST SO_BROADCAST
|
|
#define SO_BSDCOMPAT SO_BSDCOMPAT
|
|
#define SO_BUSY_POLL SO_BUSY_POLL
|
|
#define SO_CNX_ADVICE SO_CNX_ADVICE
|
|
#define SO_DETACH_BPF SO_DETACH_BPF
|
|
#define SO_DETACH_FILTER SO_DETACH_FILTER
|
|
#define SO_DOMAIN SO_DOMAIN
|
|
#define SO_DONTROUTE SO_DONTROUTE
|
|
#define SO_ERROR SO_ERROR
|
|
#define SO_EXCLUSIVEADDRUSE SO_EXCLUSIVEADDRUSE
|
|
#define SO_GET_FILTER SO_GET_FILTER
|
|
#define SO_INCOMING_CPU SO_INCOMING_CPU
|
|
#define SO_KEEPALIVE SO_KEEPALIVE
|
|
#define SO_LINGER SO_LINGER
|
|
#define SO_LOCK_FILTER SO_LOCK_FILTER
|
|
#define SO_MARK SO_MARK
|
|
#define SO_MAX_PACING_RATE SO_MAX_PACING_RATE
|
|
#define SO_NOFCS SO_NOFCS
|
|
#define SO_NO_CHECK SO_NO_CHECK
|
|
#define SO_OOBINLINE SO_OOBINLINE
|
|
#define SO_PASSCRED SO_PASSCRED
|
|
#define SO_PASSSEC SO_PASSSEC
|
|
#define SO_PEEK_OFF SO_PEEK_OFF
|
|
#define SO_PEERCRED SO_PEERCRED
|
|
#define SO_PEERNAME SO_PEERNAME
|
|
#define SO_PEERSEC SO_PEERSEC
|
|
#define SO_PRIORITY SO_PRIORITY
|
|
#define SO_PROTOCOL SO_PROTOCOL
|
|
#define SO_RCVBUF SO_RCVBUF
|
|
#define SO_RCVBUFFORCE SO_RCVBUFFORCE
|
|
#define SO_RCVLOWAT SO_RCVLOWAT
|
|
#define SO_RCVTIMEO SO_RCVTIMEO
|
|
#define SO_REUSEADDR SO_REUSEADDR
|
|
#define SO_REUSEPORT SO_REUSEPORT
|
|
#define SO_RXQ_OVFL SO_RXQ_OVFL
|
|
#define SO_SELECT_ERR_QUEUE SO_SELECT_ERR_QUEUE
|
|
#define SO_SETFIB SO_SETFIB
|
|
#define SO_SNDBUF SO_SNDBUF
|
|
#define SO_SNDBUFFORCE SO_SNDBUFFORCE
|
|
#define SO_SNDLOWAT SO_SNDLOWAT
|
|
#define SO_SNDTIMEO SO_SNDTIMEO
|
|
#define SO_TIMESTAMP SO_TIMESTAMP
|
|
#define SO_TIMESTAMPING SO_TIMESTAMPING
|
|
#define SO_TIMESTAMPNS SO_TIMESTAMPNS
|
|
#define SO_TYPE SO_TYPE
|
|
#define SO_USELOOPBACK SO_USELOOPBACK
|
|
#define SO_WIFI_STATUS SO_WIFI_STATUS
|
|
|
|
#define SO_SECURITY_AUTHENTICATION SO_SECURITY_AUTHENTICATION
|
|
#define SO_SECURITY_ENCRYPTION_NETWORK SO_SECURITY_ENCRYPTION_NETWORK
|
|
#define SO_SECURITY_ENCRYPTION_TRANSPORT SO_SECURITY_ENCRYPTION_TRANSPORT
|
|
|
|
#define __tmpcosmo_LOCAL_PEERCRED -15823986
|
|
#define __tmpcosmo_SO_ACCEPTCONN -15823872
|
|
#define __tmpcosmo_SO_ATTACH_BPF -15824072
|
|
#define __tmpcosmo_SO_ATTACH_FILTER -15824094
|
|
#define __tmpcosmo_SO_ATTACH_REUSEPORT_CBPF -15823964
|
|
#define __tmpcosmo_SO_ATTACH_REUSEPORT_EBPF -15824060
|
|
#define __tmpcosmo_SO_BINDTODEVICE -15823990
|
|
#define __tmpcosmo_SO_BPF_EXTENSIONS -15824030
|
|
#define __tmpcosmo_SO_BROADCAST -15823882
|
|
#define __tmpcosmo_SO_BSDCOMPAT -15824038
|
|
#define __tmpcosmo_SO_BUSY_POLL -15823944
|
|
#define __tmpcosmo_SO_CNX_ADVICE -15823828
|
|
#define __tmpcosmo_SO_DETACH_BPF -15824068
|
|
#define __tmpcosmo_SO_DETACH_FILTER -15824032
|
|
#define __tmpcosmo_SO_DOMAIN -15823980
|
|
#define __tmpcosmo_SO_DONTROUTE -15823918
|
|
#define __tmpcosmo_SO_ERROR -15823892
|
|
#define __tmpcosmo_SO_EXCLUSIVEADDRUSE -15823858
|
|
#define __tmpcosmo_SO_GET_FILTER -15823834
|
|
#define __tmpcosmo_SO_INCOMING_CPU -15824074
|
|
#define __tmpcosmo_SO_KEEPALIVE -15823890
|
|
#define __tmpcosmo_SO_LINGER -15824084
|
|
#define __tmpcosmo_SO_LOCK_FILTER -15823804
|
|
#define __tmpcosmo_SO_MARK -15824008
|
|
#define __tmpcosmo_SO_MAX_PACING_RATE -15824120
|
|
#define __tmpcosmo_SO_NOFCS -15823818
|
|
#define __tmpcosmo_SO_NO_CHECK -15824152
|
|
#define __tmpcosmo_SO_OOBINLINE -15823838
|
|
#define __tmpcosmo_SO_PASSCRED -15823888
|
|
#define __tmpcosmo_SO_PASSSEC -15823866
|
|
#define __tmpcosmo_SO_PEEK_OFF -15823870
|
|
#define __tmpcosmo_SO_PEERCRED -15823954
|
|
#define __tmpcosmo_SO_PEERNAME -15824042
|
|
#define __tmpcosmo_SO_PEERSEC -15823844
|
|
#define __tmpcosmo_SO_PRIORITY -15824122
|
|
#define __tmpcosmo_SO_PROTOCOL -15823982
|
|
#define __tmpcosmo_SO_RCVBUF -15823974
|
|
#define __tmpcosmo_SO_RCVBUFFORCE -15823994
|
|
#define __tmpcosmo_SO_RCVLOWAT -15824076
|
|
#define __tmpcosmo_SO_RCVTIMEO -15824046
|
|
#define __tmpcosmo_SO_REUSEADDR -15823810
|
|
#define __tmpcosmo_SO_REUSEPORT -15823822
|
|
#define __tmpcosmo_SO_RXQ_OVFL -15824066
|
|
#define __tmpcosmo_SO_SECURITY_AUTHENTICATION -15824098
|
|
#define __tmpcosmo_SO_SECURITY_ENCRYPTION_NETWORK -15824126
|
|
#define __tmpcosmo_SO_SELECT_ERR_QUEUE -15824052
|
|
#define __tmpcosmo_SO_SETFIB -15823920
|
|
#define __tmpcosmo_SO_SNDBUF -15824102
|
|
#define __tmpcosmo_SO_SNDBUFFORCE -15823840
|
|
#define __tmpcosmo_SO_SNDLOWAT -15823946
|
|
#define __tmpcosmo_SO_SNDTIMEO -15824064
|
|
#define __tmpcosmo_SO_TIMESTAMP -15823932
|
|
#define __tmpcosmo_SO_TIMESTAMPING -15824054
|
|
#define __tmpcosmo_SO_TIMESTAMPNS -15823910
|
|
#define __tmpcosmo_SO_TYPE -15824144
|
|
#define __tmpcosmo_SO_USELOOPBACK -15824110
|
|
#define __tmpcosmo_SO_WIFI_STATUS -15824108
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SO_H_ */
|