From bf1f9c9bbaa8a1c079be70f467cf8e5c69771c47 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Thu, 4 Aug 2022 22:03:28 +0200 Subject: [PATCH] Change types of `extern const`s to match other platforms --- libc/sysv/consts/af.h | 92 +++++------ libc/sysv/consts/alg.h | 16 +- libc/sysv/consts/arphrd.h | 16 +- libc/sysv/consts/at.h | 12 +- libc/sysv/consts/auxv.h | 76 ++++----- libc/sysv/consts/baud.h | 58 +++---- libc/sysv/consts/clock.h | 38 ++--- libc/sysv/consts/close.h | 4 +- libc/sysv/consts/dt.h | 16 +- libc/sysv/consts/epoll.h | 38 ++--- libc/sysv/consts/ex.h | 36 ++--- libc/sysv/consts/f.h | 70 ++++----- libc/sysv/consts/falloc.h | 14 +- libc/sysv/consts/fan.h | 72 ++++----- libc/sysv/consts/fd.h | 2 +- libc/sysv/consts/fio.h | 10 +- libc/sysv/consts/futex.h | 8 +- libc/sysv/consts/icmp6.h | 60 +++---- libc/sysv/consts/iff.h | 32 ++-- libc/sysv/consts/in.h | 54 +++---- libc/sysv/consts/iov.h | 2 +- libc/sysv/consts/ip.h | 98 ++++++------ libc/sysv/consts/ipport.h | 2 +- libc/sysv/consts/ipproto.h | 66 ++++---- libc/sysv/consts/ipv6.h | 118 +++++++------- libc/sysv/consts/lio.h | 10 +- libc/sysv/consts/lock.h | 10 +- libc/sysv/consts/map.h | 46 +++--- libc/sysv/consts/mcast.h | 18 +-- libc/sysv/consts/mfd.h | 4 +- libc/sysv/consts/mlock.h | 6 +- libc/sysv/consts/modem.h | 30 ++-- libc/sysv/consts/mount.h | 88 +++++------ libc/sysv/consts/msg.h | 58 +++---- libc/sysv/consts/msync.h | 6 +- libc/sysv/consts/ok.h | 8 +- libc/sysv/consts/pf.h | 90 +++++------ libc/sysv/consts/posix.h | 22 +-- libc/sysv/consts/prio.h | 12 +- libc/sysv/consts/prot.h | 12 +- libc/sysv/consts/ptrace.h | 98 ++++++------ libc/sysv/consts/pty.h | 22 +-- libc/sysv/consts/rlim.h | 8 +- libc/sysv/consts/rlimit.h | 40 ++--- libc/sysv/consts/rusage.h | 8 +- libc/sysv/consts/sa.h | 18 +-- libc/sysv/consts/sched.h | 14 +- libc/sysv/consts/scm.h | 10 +- libc/sysv/consts/sf.h | 6 +- libc/sysv/consts/shm.h | 28 ++-- libc/sysv/consts/shut.h | 6 +- libc/sysv/consts/sicode.h | 100 ++++++------ libc/sysv/consts/sig.h | 84 +++++----- libc/sysv/consts/sio.h | 118 +++++++------- libc/sysv/consts/so.h | 118 +++++++------- libc/sysv/consts/sock.h | 18 +-- libc/sysv/consts/sol.h | 56 +++---- libc/sysv/consts/splice.h | 8 +- libc/sysv/consts/ss.h | 6 +- libc/sysv/consts/st.h | 24 +-- libc/sysv/consts/tcp.h | 62 ++++---- libc/sysv/consts/termios.h | 312 +++++++++++++++++++------------------ libc/sysv/consts/unmount.h | 10 +- libc/sysv/consts/w.h | 6 +- libc/sysv/consts/waitid.h | 6 +- 65 files changed, 1311 insertions(+), 1305 deletions(-) diff --git a/libc/sysv/consts/af.h b/libc/sysv/consts/af.h index cf345dfd9..1792a2a02 100644 --- a/libc/sysv/consts/af.h +++ b/libc/sysv/consts/af.h @@ -4,52 +4,52 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long AF_ALG; -extern const long AF_APPLETALK; -extern const long AF_ASH; -extern const long AF_ATMPVC; -extern const long AF_ATMSVC; -extern const long AF_AX25; -extern const long AF_BLUETOOTH; -extern const long AF_BRIDGE; -extern const long AF_CAIF; -extern const long AF_CAN; -extern const long AF_ECONET; -extern const long AF_FILE; -extern const long AF_IB; -extern const long AF_IEEE802154; -extern const long AF_INET6; -extern const long AF_INET; -extern const long AF_IPX; -extern const long AF_IRDA; -extern const long AF_ISDN; -extern const long AF_IUCV; -extern const long AF_KCM; -extern const long AF_KEY; -extern const long AF_LINK; -extern const long AF_LLC; -extern const long AF_LOCAL; -extern const long AF_MAX; -extern const long AF_MPLS; -extern const long AF_NETBEUI; -extern const long AF_NETLINK; -extern const long AF_NETROM; -extern const long AF_NFC; -extern const long AF_PACKET; -extern const long AF_PHONET; -extern const long AF_PPPOX; -extern const long AF_RDS; -extern const long AF_ROSE; -extern const long AF_ROUTE; -extern const long AF_RXRPC; -extern const long AF_SECURITY; -extern const long AF_SNA; -extern const long AF_TIPC; -extern const long AF_UNIX; -extern const long AF_UNSPEC; -extern const long AF_VSOCK; -extern const long AF_WANPIPE; -extern const long AF_X25; +extern const int AF_ALG; +extern const int AF_APPLETALK; +extern const int AF_ASH; +extern const int AF_ATMPVC; +extern const int AF_ATMSVC; +extern const int AF_AX25; +extern const int AF_BLUETOOTH; +extern const int AF_BRIDGE; +extern const int AF_CAIF; +extern const int AF_CAN; +extern const int AF_ECONET; +extern const int AF_FILE; +extern const int AF_IB; +extern const int AF_IEEE802154; +extern const int AF_INET6; +extern const int AF_INET; +extern const int AF_IPX; +extern const int AF_IRDA; +extern const int AF_ISDN; +extern const int AF_IUCV; +extern const int AF_KCM; +extern const int AF_KEY; +extern const int AF_LINK; +extern const int AF_LLC; +extern const int AF_LOCAL; +extern const int AF_MAX; +extern const int AF_MPLS; +extern const int AF_NETBEUI; +extern const int AF_NETLINK; +extern const int AF_NETROM; +extern const int AF_NFC; +extern const int AF_PACKET; +extern const int AF_PHONET; +extern const int AF_PPPOX; +extern const int AF_RDS; +extern const int AF_ROSE; +extern const int AF_ROUTE; +extern const int AF_RXRPC; +extern const int AF_SECURITY; +extern const int AF_SNA; +extern const int AF_TIPC; +extern const int AF_UNIX; +extern const int AF_UNSPEC; +extern const int AF_VSOCK; +extern const int AF_WANPIPE; +extern const int AF_X25; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/alg.h b/libc/sysv/consts/alg.h index 846fe2853..e81fe8484 100644 --- a/libc/sysv/consts/alg.h +++ b/libc/sysv/consts/alg.h @@ -15,15 +15,15 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long ALG_SET_AEAD_ASSOCLEN; -extern const long ALG_SET_AEAD_AUTHSIZE; -extern const long ALG_SET_DRBG_ENTROPY; -extern const long ALG_SET_IV; -extern const long ALG_SET_KEY; -extern const long ALG_SET_OP; +extern const int ALG_SET_AEAD_ASSOCLEN; +extern const int ALG_SET_AEAD_AUTHSIZE; +extern const int ALG_SET_DRBG_ENTROPY; +extern const int ALG_SET_IV; +extern const int ALG_SET_KEY; +extern const int ALG_SET_OP; -extern const long ALG_OP_DECRYPT; -extern const long ALG_OP_ENCRYPT; +extern const int ALG_OP_DECRYPT; +extern const int ALG_OP_ENCRYPT; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/arphrd.h b/libc/sysv/consts/arphrd.h index 73a428883..4ce640328 100644 --- a/libc/sysv/consts/arphrd.h +++ b/libc/sysv/consts/arphrd.h @@ -14,14 +14,14 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long ARPHRD_ETHER; -extern const long ARPHRD_FCFABRIC; -extern const long ARPHRD_IEEE80211; -extern const long ARPHRD_IEEE80211_PRISM; -extern const long ARPHRD_IEEE80211_RADIOTAP; -extern const long ARPHRD_IEEE802154; -extern const long ARPHRD_IEEE802_TR; -extern const long ARPHRD_LOCALTLK; +extern const uint16_t ARPHRD_ETHER; +extern const uint16_t ARPHRD_FCFABRIC; +extern const uint16_t ARPHRD_IEEE80211; +extern const uint16_t ARPHRD_IEEE80211_PRISM; +extern const uint16_t ARPHRD_IEEE80211_RADIOTAP; +extern const uint16_t ARPHRD_IEEE802154; +extern const uint16_t ARPHRD_IEEE802_TR; +extern const uint16_t ARPHRD_LOCALTLK; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/at.h b/libc/sysv/consts/at.h index bf16f2c95..95fd099bd 100644 --- a/libc/sysv/consts/at.h +++ b/libc/sysv/consts/at.h @@ -9,12 +9,12 @@ COSMOPOLITAN_C_START_ * @see libc/sysv/consts/auxv.h for getauxval() constants */ -extern const long AT_FDCWD; -extern const long AT_SYMLINK_FOLLOW; -extern const long AT_SYMLINK_NOFOLLOW; -extern const long AT_REMOVEDIR; -extern const long AT_EACCESS; -extern const long AT_EMPTY_PATH; +extern const int AT_FDCWD; +extern const int AT_SYMLINK_FOLLOW; +extern const int AT_SYMLINK_NOFOLLOW; +extern const int AT_REMOVEDIR; +extern const int AT_EACCESS; +extern const int AT_EMPTY_PATH; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/auxv.h b/libc/sysv/consts/auxv.h index 283904b23..0568922ba 100644 --- a/libc/sysv/consts/auxv.h +++ b/libc/sysv/consts/auxv.h @@ -4,44 +4,44 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long AT_BASE; -extern const long AT_BASE_PLATFORM; -extern const long AT_CANARY; -extern const long AT_CANARYLEN; -extern const long AT_CLKTCK; -extern const long AT_DCACHEBSIZE; -extern const long AT_EGID; -extern const long AT_EHDRFLAGS; -extern const long AT_ENTRY; -extern const long AT_EUID; -extern const long AT_EXECFD; -extern const long AT_EXECFN; -extern const long AT_EXECPATH; -extern const long AT_FLAGS; -extern const long AT_GID; -extern const long AT_HWCAP2; -extern const long AT_HWCAP; -extern const long AT_ICACHEBSIZE; -extern const long AT_MINSIGSTKSZ; -extern const long AT_NCPUS; -extern const long AT_NOTELF; -extern const long AT_NO_AUTOMOUNT; -extern const long AT_OSRELDATE; -extern const long AT_PAGESIZES; -extern const long AT_PAGESIZESLEN; -extern const long AT_PAGESZ; -extern const long AT_PHDR; -extern const long AT_PHENT; -extern const long AT_PHNUM; -extern const long AT_PLATFORM; -extern const long AT_RANDOM; -extern const long AT_SECURE; -extern const long AT_STACKBASE; -extern const long AT_STACKPROT; -extern const long AT_SYSINFO_EHDR; -extern const long AT_TIMEKEEP; -extern const long AT_UCACHEBSIZE; -extern const long AT_UID; +extern const unsigned long AT_BASE; +extern const unsigned long AT_BASE_PLATFORM; +extern const unsigned long AT_CANARY; +extern const unsigned long AT_CANARYLEN; +extern const unsigned long AT_CLKTCK; +extern const unsigned long AT_DCACHEBSIZE; +extern const unsigned long AT_EGID; +extern const unsigned long AT_EHDRFLAGS; +extern const unsigned long AT_ENTRY; +extern const unsigned long AT_EUID; +extern const unsigned long AT_EXECFD; +extern const unsigned long AT_EXECFN; +extern const unsigned long AT_EXECPATH; +extern const unsigned long AT_FLAGS; +extern const unsigned long AT_GID; +extern const unsigned long AT_HWCAP2; +extern const unsigned long AT_HWCAP; +extern const unsigned long AT_ICACHEBSIZE; +extern const unsigned long AT_MINSIGSTKSZ; +extern const unsigned long AT_NCPUS; +extern const unsigned long AT_NOTELF; +extern const unsigned long AT_NO_AUTOMOUNT; +extern const unsigned long AT_OSRELDATE; +extern const unsigned long AT_PAGESIZES; +extern const unsigned long AT_PAGESIZESLEN; +extern const unsigned long AT_PAGESZ; +extern const unsigned long AT_PHDR; +extern const unsigned long AT_PHENT; +extern const unsigned long AT_PHNUM; +extern const unsigned long AT_PLATFORM; +extern const unsigned long AT_RANDOM; +extern const unsigned long AT_SECURE; +extern const unsigned long AT_STACKBASE; +extern const unsigned long AT_STACKPROT; +extern const unsigned long AT_SYSINFO_EHDR; +extern const unsigned long AT_TIMEKEEP; +extern const unsigned long AT_UCACHEBSIZE; +extern const unsigned long AT_UID; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/baud.h b/libc/sysv/consts/baud.h index d4e2e8326..6e1b49775 100644 --- a/libc/sysv/consts/baud.h +++ b/libc/sysv/consts/baud.h @@ -4,35 +4,35 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long B0; -extern const long B50; -extern const long B75; -extern const long B110; -extern const long B134; -extern const long B150; -extern const long B200; -extern const long B300; -extern const long B600; -extern const long B1200; -extern const long B1800; -extern const long B2400; -extern const long B4800; -extern const long B9600; -extern const long B19200; -extern const long B38400; -extern const long B57600; -extern const long B115200; -extern const long B230400; -extern const long B500000; -extern const long B576000; -extern const long B1000000; -extern const long B1152000; -extern const long B1500000; -extern const long B2000000; -extern const long B2500000; -extern const long B3000000; -extern const long B3500000; -extern const long B4000000; +extern const uint32_t B0; +extern const uint32_t B50; +extern const uint32_t B75; +extern const uint32_t B110; +extern const uint32_t B134; +extern const uint32_t B150; +extern const uint32_t B200; +extern const uint32_t B300; +extern const uint32_t B600; +extern const uint32_t B1200; +extern const uint32_t B1800; +extern const uint32_t B2400; +extern const uint32_t B4800; +extern const uint32_t B9600; +extern const uint32_t B19200; +extern const uint32_t B38400; +extern const uint32_t B57600; +extern const uint32_t B115200; +extern const uint32_t B230400; +extern const uint32_t B500000; +extern const uint32_t B576000; +extern const uint32_t B1000000; +extern const uint32_t B1152000; +extern const uint32_t B1500000; +extern const uint32_t B2000000; +extern const uint32_t B2500000; +extern const uint32_t B3000000; +extern const uint32_t B3500000; +extern const uint32_t B4000000; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/clock.h b/libc/sysv/consts/clock.h index a7d105d52..abe1add64 100644 --- a/libc/sysv/consts/clock.h +++ b/libc/sysv/consts/clock.h @@ -4,25 +4,25 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long CLOCK_BOOTTIME; -extern const long CLOCK_BOOTTIME_ALARM; -extern const long CLOCK_MONOTONIC; -extern const long CLOCK_MONOTONIC_COARSE; -extern const long CLOCK_MONOTONIC_FAST; -extern const long CLOCK_MONOTONIC_PRECISE; -extern const long CLOCK_MONOTONIC_RAW; -extern const long CLOCK_PROCESS_CPUTIME_ID; -extern const long CLOCK_PROF; -extern const long CLOCK_REALTIME_ALARM; -extern const long CLOCK_REALTIME_COARSE; -extern const long CLOCK_REALTIME_FAST; -extern const long CLOCK_REALTIME_PRECISE; -extern const long CLOCK_SECOND; -extern const long CLOCK_TAI; -extern const long CLOCK_THREAD_CPUTIME_ID; -extern const long CLOCK_UPTIME; -extern const long CLOCK_UPTIME_FAST; -extern const long CLOCK_UPTIME_PRECISE; +extern const int CLOCK_BOOTTIME; +extern const int CLOCK_BOOTTIME_ALARM; +extern const int CLOCK_MONOTONIC; +extern const int CLOCK_MONOTONIC_COARSE; +extern const int CLOCK_MONOTONIC_FAST; +extern const int CLOCK_MONOTONIC_PRECISE; +extern const int CLOCK_MONOTONIC_RAW; +extern const int CLOCK_PROCESS_CPUTIME_ID; +extern const int CLOCK_PROF; +extern const int CLOCK_REALTIME_ALARM; +extern const int CLOCK_REALTIME_COARSE; +extern const int CLOCK_REALTIME_FAST; +extern const int CLOCK_REALTIME_PRECISE; +extern const int CLOCK_SECOND; +extern const int CLOCK_TAI; +extern const int CLOCK_THREAD_CPUTIME_ID; +extern const int CLOCK_UPTIME; +extern const int CLOCK_UPTIME_FAST; +extern const int CLOCK_UPTIME_PRECISE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/close.h b/libc/sysv/consts/close.h index d269abf31..980f0596c 100644 --- a/libc/sysv/consts/close.h +++ b/libc/sysv/consts/close.h @@ -4,8 +4,8 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long CLOSE_RANGE_UNSHARE; -extern const long CLOSE_RANGE_CLOEXEC; +extern const unsigned int CLOSE_RANGE_UNSHARE; +extern const unsigned int CLOSE_RANGE_CLOEXEC; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/dt.h b/libc/sysv/consts/dt.h index ac99c7df9..5f001a24c 100644 --- a/libc/sysv/consts/dt.h +++ b/libc/sysv/consts/dt.h @@ -4,14 +4,14 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long DT_UNKNOWN; -extern const long DT_FIFO; -extern const long DT_CHR; -extern const long DT_DIR; -extern const long DT_BLK; -extern const long DT_REG; -extern const long DT_LNK; -extern const long DT_SOCK; +extern const uint8_t DT_UNKNOWN; +extern const uint8_t DT_FIFO; +extern const uint8_t DT_CHR; +extern const uint8_t DT_DIR; +extern const uint8_t DT_BLK; +extern const uint8_t DT_REG; +extern const uint8_t DT_LNK; +extern const uint8_t DT_SOCK; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/epoll.h b/libc/sysv/consts/epoll.h index 40635a6e8..33be71a86 100644 --- a/libc/sysv/consts/epoll.h +++ b/libc/sysv/consts/epoll.h @@ -5,27 +5,27 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long EPOLL_CLOEXEC; +extern const int EPOLL_CLOEXEC; -extern const long EPOLL_CTL_ADD; -extern const long EPOLL_CTL_DEL; -extern const long EPOLL_CTL_MOD; +extern const int EPOLL_CTL_ADD; +extern const int EPOLL_CTL_DEL; +extern const int EPOLL_CTL_MOD; -extern const long EPOLLIN; -extern const long EPOLLPRI; -extern const long EPOLLOUT; -extern const long EPOLLERR; -extern const long EPOLLHUP; -extern const long EPOLLRDNORM; -extern const long EPOLLRDBAND; -extern const long EPOLLWRNORM; -extern const long EPOLLWRBAND; -extern const long EPOLLMSG; -extern const long EPOLLRDHUP; -extern const long EPOLLEXCLUSIVE; -extern const long EPOLLWAKEUP; -extern const long EPOLLONESHOT; -extern const long EPOLLET; +extern const uint32_t EPOLLIN; +extern const uint32_t EPOLLPRI; +extern const uint32_t EPOLLOUT; +extern const uint32_t EPOLLERR; +extern const uint32_t EPOLLHUP; +extern const uint32_t EPOLLRDNORM; +extern const uint32_t EPOLLRDBAND; +extern const uint32_t EPOLLWRNORM; +extern const uint32_t EPOLLWRBAND; +extern const uint32_t EPOLLMSG; +extern const uint32_t EPOLLRDHUP; +extern const uint32_t EPOLLEXCLUSIVE; +extern const uint32_t EPOLLWAKEUP; +extern const uint32_t EPOLLONESHOT; +extern const uint32_t EPOLLET; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ex.h b/libc/sysv/consts/ex.h index cb8af9303..9fb1a6d17 100644 --- a/libc/sysv/consts/ex.h +++ b/libc/sysv/consts/ex.h @@ -4,24 +4,24 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long EX_CANTCREAT; -extern const long EX_CONFIG; -extern const long EX_DATAERR; -extern const long EX_IOERR; -extern const long EX_NOHOST; -extern const long EX_NOINPUT; -extern const long EX_NOPERM; -extern const long EX_NOUSER; -extern const long EX_OK; -extern const long EX_OSERR; -extern const long EX_OSFILE; -extern const long EX_PROTOCOL; -extern const long EX_SOFTWARE; -extern const long EX_TEMPFAIL; -extern const long EX_UNAVAILABLE; -extern const long EX_USAGE; -extern const long EX__BASE; -extern const long EX__MAX; +extern const int EX_CANTCREAT; +extern const int EX_CONFIG; +extern const int EX_DATAERR; +extern const int EX_IOERR; +extern const int EX_NOHOST; +extern const int EX_NOINPUT; +extern const int EX_NOPERM; +extern const int EX_NOUSER; +extern const int EX_OK; +extern const int EX_OSERR; +extern const int EX_OSFILE; +extern const int EX_PROTOCOL; +extern const int EX_SOFTWARE; +extern const int EX_TEMPFAIL; +extern const int EX_UNAVAILABLE; +extern const int EX_USAGE; +extern const int EX__BASE; +extern const int EX__MAX; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/f.h b/libc/sysv/consts/f.h index 13434d5f6..5e1a35d21 100644 --- a/libc/sysv/consts/f.h +++ b/libc/sysv/consts/f.h @@ -4,41 +4,41 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long F_DUPFD; -extern const long F_DUPFD_CLOEXEC; -extern const long F_FULLFSYNC; -extern const long F_GETFD; -extern const long F_GETFL; -extern const long F_GETLEASE; -extern const long F_GETLK64; -extern const long F_GETLK; -extern const long F_GETOWN; -extern const long F_GETOWN_EX; -extern const long F_GETPIPE_SZ; -extern const long F_GETSIG; -extern const long F_LOCK; -extern const long F_NOCACHE; -extern const long F_NOTIFY; -extern const long F_OFD_GETLK; -extern const long F_OFD_SETLK; -extern const long F_OFD_SETLKW; -extern const long F_RDLCK; -extern const long F_SETFD; -extern const long F_SETFL; -extern const long F_SETLEASE; -extern const long F_SETLK64; -extern const long F_SETLK; -extern const long F_SETLKW64; -extern const long F_SETLKW; -extern const long F_SETOWN; -extern const long F_SETOWN_EX; -extern const long F_SETPIPE_SZ; -extern const long F_SETSIG; -extern const long F_TEST; -extern const long F_TLOCK; -extern const long F_ULOCK; -extern const long F_UNLCK; -extern const long F_WRLCK; +extern const int F_DUPFD; +extern const int F_DUPFD_CLOEXEC; +extern const int F_FULLFSYNC; +extern const int F_GETFD; +extern const int F_GETFL; +extern const int F_GETLEASE; +extern const int F_GETLK64; +extern const int F_GETLK; +extern const int F_GETOWN; +extern const int F_GETOWN_EX; +extern const int F_GETPIPE_SZ; +extern const int F_GETSIG; +extern const int F_LOCK; +extern const int F_NOCACHE; +extern const int F_NOTIFY; +extern const int F_OFD_GETLK; +extern const int F_OFD_SETLK; +extern const int F_OFD_SETLKW; +extern const int F_RDLCK; +extern const int F_SETFD; +extern const int F_SETFL; +extern const int F_SETLEASE; +extern const int F_SETLK64; +extern const int F_SETLK; +extern const int F_SETLKW64; +extern const int F_SETLKW; +extern const int F_SETOWN; +extern const int F_SETOWN_EX; +extern const int F_SETPIPE_SZ; +extern const int F_SETSIG; +extern const int F_TEST; +extern const int F_TLOCK; +extern const int F_ULOCK; +extern const int F_UNLCK; +extern const int F_WRLCK; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/falloc.h b/libc/sysv/consts/falloc.h index 7c3c4b403..37ce1171f 100644 --- a/libc/sysv/consts/falloc.h +++ b/libc/sysv/consts/falloc.h @@ -4,13 +4,13 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long FALLOC_FL_KEEP_SIZE; -extern const long FALLOC_FL_PUNCH_HOLE; -extern const long FALLOC_FL_NO_HIDE_STALE; -extern const long FALLOC_FL_COLLAPSE_RANGE; -extern const long FALLOC_FL_ZERO_RANGE; -extern const long FALLOC_FL_INSERT_RANGE; -extern const long FALLOC_FL_UNSHARE_RANGE; +extern const int FALLOC_FL_KEEP_SIZE; +extern const int FALLOC_FL_PUNCH_HOLE; +extern const int FALLOC_FL_NO_HIDE_STALE; +extern const int FALLOC_FL_COLLAPSE_RANGE; +extern const int FALLOC_FL_ZERO_RANGE; +extern const int FALLOC_FL_INSERT_RANGE; +extern const int FALLOC_FL_UNSHARE_RANGE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/fan.h b/libc/sysv/consts/fan.h index a98da365a..7b4784d44 100644 --- a/libc/sysv/consts/fan.h +++ b/libc/sysv/consts/fan.h @@ -42,42 +42,42 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long FAN_ACCESS; -extern const long FAN_ACCESS_PERM; -extern const long FAN_ALLOW; -extern const long FAN_ALL_CLASS_BITS; -extern const long FAN_ALL_EVENTS; -extern const long FAN_ALL_INIT_FLAGS; -extern const long FAN_ALL_MARK_FLAGS; -extern const long FAN_ALL_OUTGOING_EVENTS; -extern const long FAN_ALL_PERM_EVENTS; -extern const long FAN_CLASS_CONTENT; -extern const long FAN_CLASS_NOTIF; -extern const long FAN_CLASS_PRE_CONTENT; -extern const long FAN_CLOEXEC; -extern const long FAN_CLOSE; -extern const long FAN_CLOSE_NOWRITE; -extern const long FAN_CLOSE_WRITE; -extern const long FAN_DENY; -extern const long FAN_EVENT_METADATA_LEN; -extern const long FAN_EVENT_ON_CHILD; -extern const long FAN_MARK_ADD; -extern const long FAN_MARK_DONT_FOLLOW; -extern const long FAN_MARK_FLUSH; -extern const long FAN_MARK_IGNORED_MASK; -extern const long FAN_MARK_IGNORED_SURV_MODIFY; -extern const long FAN_MARK_MOUNT; -extern const long FAN_MARK_ONLYDIR; -extern const long FAN_MARK_REMOVE; -extern const long FAN_MODIFY; -extern const long FAN_NOFD; -extern const long FAN_NONBLOCK; -extern const long FAN_ONDIR; -extern const long FAN_OPEN; -extern const long FAN_OPEN_PERM; -extern const long FAN_Q_OVERFLOW; -extern const long FAN_UNLIMITED_MARKS; -extern const long FAN_UNLIMITED_QUEUE; +extern const unsigned int FAN_ACCESS; +extern const unsigned int FAN_ACCESS_PERM; +extern const unsigned int FAN_ALLOW; +extern const unsigned int FAN_ALL_CLASS_BITS; +extern const unsigned int FAN_ALL_EVENTS; +extern const unsigned int FAN_ALL_INIT_FLAGS; +extern const unsigned int FAN_ALL_MARK_FLAGS; +extern const unsigned int FAN_ALL_OUTGOING_EVENTS; +extern const unsigned int FAN_ALL_PERM_EVENTS; +extern const unsigned int FAN_CLASS_CONTENT; +extern const unsigned int FAN_CLASS_NOTIF; +extern const unsigned int FAN_CLASS_PRE_CONTENT; +extern const unsigned int FAN_CLOEXEC; +extern const unsigned int FAN_CLOSE; +extern const unsigned int FAN_CLOSE_NOWRITE; +extern const unsigned int FAN_CLOSE_WRITE; +extern const unsigned int FAN_DENY; +extern const unsigned int FAN_EVENT_METADATA_LEN; +extern const unsigned int FAN_EVENT_ON_CHILD; +extern const unsigned int FAN_MARK_ADD; +extern const unsigned int FAN_MARK_DONT_FOLLOW; +extern const unsigned int FAN_MARK_FLUSH; +extern const unsigned int FAN_MARK_IGNORED_MASK; +extern const unsigned int FAN_MARK_IGNORED_SURV_MODIFY; +extern const unsigned int FAN_MARK_MOUNT; +extern const unsigned int FAN_MARK_ONLYDIR; +extern const unsigned int FAN_MARK_REMOVE; +extern const unsigned int FAN_MODIFY; +extern const unsigned int FAN_NOFD; +extern const unsigned int FAN_NONBLOCK; +extern const unsigned int FAN_ONDIR; +extern const unsigned int FAN_OPEN; +extern const unsigned int FAN_OPEN_PERM; +extern const unsigned int FAN_Q_OVERFLOW; +extern const unsigned int FAN_UNLIMITED_MARKS; +extern const unsigned int FAN_UNLIMITED_QUEUE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/fd.h b/libc/sysv/consts/fd.h index 5aa34995c..5ffe7899f 100644 --- a/libc/sysv/consts/fd.h +++ b/libc/sysv/consts/fd.h @@ -4,7 +4,7 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long FD_CLOEXEC; +extern const int FD_CLOEXEC; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/fio.h b/libc/sysv/consts/fio.h index dc7a71086..a4c8812db 100644 --- a/libc/sysv/consts/fio.h +++ b/libc/sysv/consts/fio.h @@ -4,11 +4,11 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long FIOASYNC; -extern const long FIOCLEX; -extern const long FIONBIO; -extern const long FIONCLEX; -extern const long FIONREAD; +extern const uint64_t FIOASYNC; +extern const uint64_t FIOCLEX; +extern const uint64_t FIONBIO; +extern const uint64_t FIONCLEX; +extern const uint64_t FIONREAD; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/futex.h b/libc/sysv/consts/futex.h index 3e13006be..f6b12cf2b 100644 --- a/libc/sysv/consts/futex.h +++ b/libc/sysv/consts/futex.h @@ -13,10 +13,10 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long FUTEX_WAIT; -extern const long FUTEX_WAKE; -extern const long FUTEX_REQUEUE; -extern const long FUTEX_PRIVATE_FLAG; +extern const int FUTEX_WAIT; +extern const int FUTEX_WAKE; +extern const int FUTEX_REQUEUE; +extern const int FUTEX_PRIVATE_FLAG; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/icmp6.h b/libc/sysv/consts/icmp6.h index 9a8004bcf..bfa102301 100644 --- a/libc/sysv/consts/icmp6.h +++ b/libc/sysv/consts/icmp6.h @@ -39,36 +39,36 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long ICMP6_DST_UNREACH; -extern const long ICMP6_DST_UNREACH_ADDR; -extern const long ICMP6_DST_UNREACH_ADMIN; -extern const long ICMP6_DST_UNREACH_BEYONDSCOPE; -extern const long ICMP6_DST_UNREACH_NOPORT; -extern const long ICMP6_DST_UNREACH_NOROUTE; -extern const long ICMP6_ECHO_REPLY; -extern const long ICMP6_ECHO_REQUEST; -extern const long ICMP6_FILTER; -extern const long ICMP6_INFOMSG_MASK; -extern const long ICMP6_PACKET_TOO_BIG; -extern const long ICMP6_PARAMPROB_HEADER; -extern const long ICMP6_PARAMPROB_NEXTHEADER; -extern const long ICMP6_PARAMPROB_OPTION; -extern const long ICMP6_PARAM_PROB; -extern const long ICMP6_ROUTER_RENUMBERING; -extern const long ICMP6_RR_FLAGS_FORCEAPPLY; -extern const long ICMP6_RR_FLAGS_PREVDONE; -extern const long ICMP6_RR_FLAGS_REQRESULT; -extern const long ICMP6_RR_FLAGS_SPECSITE; -extern const long ICMP6_RR_FLAGS_TEST; -extern const long ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME; -extern const long ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME; -extern const long ICMP6_RR_PCOUSE_RAFLAGS_AUTO; -extern const long ICMP6_RR_PCOUSE_RAFLAGS_ONLINK; -extern const long ICMP6_RR_RESULT_FLAGS_FORBIDDEN; -extern const long ICMP6_RR_RESULT_FLAGS_OOB; -extern const long ICMP6_TIME_EXCEEDED; -extern const long ICMP6_TIME_EXCEED_REASSEMBLY; -extern const long ICMP6_TIME_EXCEED_TRANSIT; +extern const uint8_t ICMP6_DST_UNREACH; +extern const uint8_t ICMP6_DST_UNREACH_ADDR; +extern const uint8_t ICMP6_DST_UNREACH_ADMIN; +extern const uint8_t ICMP6_DST_UNREACH_BEYONDSCOPE; +extern const uint8_t ICMP6_DST_UNREACH_NOPORT; +extern const uint8_t ICMP6_DST_UNREACH_NOROUTE; +extern const uint8_t ICMP6_ECHO_REPLY; +extern const uint8_t ICMP6_ECHO_REQUEST; +extern const uint8_t ICMP6_FILTER; +extern const uint8_t ICMP6_INFOMSG_MASK; +extern const uint8_t ICMP6_PACKET_TOO_BIG; +extern const uint8_t ICMP6_PARAMPROB_HEADER; +extern const uint8_t ICMP6_PARAMPROB_NEXTHEADER; +extern const uint8_t ICMP6_PARAMPROB_OPTION; +extern const uint8_t ICMP6_PARAM_PROB; +extern const uint8_t ICMP6_ROUTER_RENUMBERING; +extern const uint8_t ICMP6_RR_FLAGS_FORCEAPPLY; +extern const uint8_t ICMP6_RR_FLAGS_PREVDONE; +extern const uint8_t ICMP6_RR_FLAGS_REQRESULT; +extern const uint8_t ICMP6_RR_FLAGS_SPECSITE; +extern const uint8_t ICMP6_RR_FLAGS_TEST; +extern const uint8_t ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME; +extern const uint8_t ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME; +extern const uint8_t ICMP6_RR_PCOUSE_RAFLAGS_AUTO; +extern const uint8_t ICMP6_RR_PCOUSE_RAFLAGS_ONLINK; +extern const uint8_t ICMP6_RR_RESULT_FLAGS_FORBIDDEN; +extern const uint8_t ICMP6_RR_RESULT_FLAGS_OOB; +extern const uint8_t ICMP6_TIME_EXCEEDED; +extern const uint8_t ICMP6_TIME_EXCEED_REASSEMBLY; +extern const uint8_t ICMP6_TIME_EXCEED_TRANSIT; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/iff.h b/libc/sysv/consts/iff.h index 22d3fa5f8..3f7e7b6ab 100644 --- a/libc/sysv/consts/iff.h +++ b/libc/sysv/consts/iff.h @@ -3,22 +3,22 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long IFF_UP; -extern const long IFF_ALLMULTI; -extern const long IFF_AUTOMEDIA; -extern const long IFF_BROADCAST; -extern const long IFF_DEBUG; -extern const long IFF_DYNAMIC; -extern const long IFF_LOOPBACK; -extern const long IFF_MASTER; -extern const long IFF_MULTICAST; -extern const long IFF_NOARP; -extern const long IFF_NOTRAILERS; -extern const long IFF_POINTOPOINT; -extern const long IFF_PORTSEL; -extern const long IFF_PROMISC; -extern const long IFF_RUNNING; -extern const long IFF_SLAVE; +extern const int IFF_UP; +extern const int IFF_ALLMULTI; +extern const int IFF_AUTOMEDIA; +extern const int IFF_BROADCAST; +extern const int IFF_DEBUG; +extern const int IFF_DYNAMIC; +extern const int IFF_LOOPBACK; +extern const int IFF_MASTER; +extern const int IFF_MULTICAST; +extern const int IFF_NOARP; +extern const int IFF_NOTRAILERS; +extern const int IFF_POINTOPOINT; +extern const int IFF_PORTSEL; +extern const int IFF_PROMISC; +extern const int IFF_RUNNING; +extern const int IFF_SLAVE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/in.h b/libc/sysv/consts/in.h index 874fd494e..17416c789 100644 --- a/libc/sysv/consts/in.h +++ b/libc/sysv/consts/in.h @@ -33,33 +33,33 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long IN_ACCESS; -extern const long IN_ALL_EVENTS; -extern const long IN_ATTRIB; -extern const long IN_CLOEXEC; -extern const long IN_CLOSE; -extern const long IN_CLOSE_NOWRITE; -extern const long IN_CLOSE_WRITE; -extern const long IN_CREATE; -extern const long IN_DELETE; -extern const long IN_DELETE_SELF; -extern const long IN_DONT_FOLLOW; -extern const long IN_EXCL_UNLINK; -extern const long IN_IGNORED; -extern const long IN_ISDIR; -extern const long IN_LOOPBACKNET; -extern const long IN_MASK_ADD; -extern const long IN_MODIFY; -extern const long IN_MOVE; -extern const long IN_MOVED_FROM; -extern const long IN_MOVED_TO; -extern const long IN_MOVE_SELF; -extern const long IN_NONBLOCK; -extern const long IN_ONESHOT; -extern const long IN_ONLYDIR; -extern const long IN_OPEN; -extern const long IN_Q_OVERFLOW; -extern const long IN_UNMOUNT; +extern const uint32_t IN_ACCESS; +extern const uint32_t IN_ALL_EVENTS; +extern const uint32_t IN_ATTRIB; +extern const uint32_t IN_CLOEXEC; +extern const uint32_t IN_CLOSE; +extern const uint32_t IN_CLOSE_NOWRITE; +extern const uint32_t IN_CLOSE_WRITE; +extern const uint32_t IN_CREATE; +extern const uint32_t IN_DELETE; +extern const uint32_t IN_DELETE_SELF; +extern const uint32_t IN_DONT_FOLLOW; +extern const uint32_t IN_EXCL_UNLINK; +extern const uint32_t IN_IGNORED; +extern const uint32_t IN_ISDIR; +extern const uint32_t IN_LOOPBACKNET; +extern const uint32_t IN_MASK_ADD; +extern const uint32_t IN_MODIFY; +extern const uint32_t IN_MOVE; +extern const uint32_t IN_MOVED_FROM; +extern const uint32_t IN_MOVED_TO; +extern const uint32_t IN_MOVE_SELF; +extern const uint32_t IN_NONBLOCK; +extern const uint32_t IN_ONESHOT; +extern const uint32_t IN_ONLYDIR; +extern const uint32_t IN_OPEN; +extern const uint32_t IN_Q_OVERFLOW; +extern const uint32_t IN_UNMOUNT; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/iov.h b/libc/sysv/consts/iov.h index ea91123fc..e0e17cae2 100644 --- a/libc/sysv/consts/iov.h +++ b/libc/sysv/consts/iov.h @@ -4,7 +4,7 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long IOV_MAX; +extern const int IOV_MAX; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ip.h b/libc/sysv/consts/ip.h index cee35cc32..6fe0aa42a 100644 --- a/libc/sysv/consts/ip.h +++ b/libc/sysv/consts/ip.h @@ -55,55 +55,55 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long IP_ADD_MEMBERSHIP; -extern const long IP_ADD_SOURCE_MEMBERSHIP; -extern const long IP_BIND_ADDRESS_NO_PORT; -extern const long IP_BLOCK_SOURCE; -extern const long IP_CHECKSUM; -extern const long IP_DEFAULT_MULTICAST_LOOP; -extern const long IP_DEFAULT_MULTICAST_TTL; -extern const long IP_DROP_MEMBERSHIP; -extern const long IP_DROP_SOURCE_MEMBERSHIP; -extern const long IP_FREEBIND; -extern const long IP_HDRINCL; -extern const long IP_IPSEC_POLICY; -extern const long IP_MAX_MEMBERSHIPS; -extern const long IP_MINTTL; -extern const long IP_MSFILTER; -extern const long IP_MTU; -extern const long IP_MTU_DISCOVER; -extern const long IP_MULTICAST_ALL; -extern const long IP_MULTICAST_IF; -extern const long IP_MULTICAST_LOOP; -extern const long IP_MULTICAST_TTL; -extern const long IP_NODEFRAG; -extern const long IP_OPTIONS; -extern const long IP_ORIGDSTADDR; -extern const long IP_PASSSEC; -extern const long IP_PKTINFO; -extern const long IP_PKTOPTIONS; -extern const long IP_PMTUDISC; -extern const long IP_PMTUDISC_DO; -extern const long IP_PMTUDISC_DONT; -extern const long IP_PMTUDISC_INTERFACE; -extern const long IP_PMTUDISC_OMIT; -extern const long IP_PMTUDISC_PROBE; -extern const long IP_PMTUDISC_WANT; -extern const long IP_RECVDSTADDR; -extern const long IP_RECVERR; -extern const long IP_RECVOPTS; -extern const long IP_RECVORIGDSTADDR; -extern const long IP_RECVRETOPTS; -extern const long IP_RECVTOS; -extern const long IP_RECVTTL; -extern const long IP_RETOPTS; -extern const long IP_ROUTER_ALERT; -extern const long IP_TOS; -extern const long IP_TRANSPARENT; -extern const long IP_TTL; -extern const long IP_UNBLOCK_SOURCE; -extern const long IP_UNICAST_IF; -extern const long IP_XFRM_POLICY; +extern const int IP_ADD_MEMBERSHIP; +extern const int IP_ADD_SOURCE_MEMBERSHIP; +extern const int IP_BIND_ADDRESS_NO_PORT; +extern const int IP_BLOCK_SOURCE; +extern const int IP_CHECKSUM; +extern const int IP_DEFAULT_MULTICAST_LOOP; +extern const int IP_DEFAULT_MULTICAST_TTL; +extern const int IP_DROP_MEMBERSHIP; +extern const int IP_DROP_SOURCE_MEMBERSHIP; +extern const int IP_FREEBIND; +extern const int IP_HDRINCL; +extern const int IP_IPSEC_POLICY; +extern const int IP_MAX_MEMBERSHIPS; +extern const int IP_MINTTL; +extern const int IP_MSFILTER; +extern const int IP_MTU; +extern const int IP_MTU_DISCOVER; +extern const int IP_MULTICAST_ALL; +extern const int IP_MULTICAST_IF; +extern const int IP_MULTICAST_LOOP; +extern const int IP_MULTICAST_TTL; +extern const int IP_NODEFRAG; +extern const int IP_OPTIONS; +extern const int IP_ORIGDSTADDR; +extern const int IP_PASSSEC; +extern const int IP_PKTINFO; +extern const int IP_PKTOPTIONS; +extern const int IP_PMTUDISC; +extern const int IP_PMTUDISC_DO; +extern const int IP_PMTUDISC_DONT; +extern const int IP_PMTUDISC_INTERFACE; +extern const int IP_PMTUDISC_OMIT; +extern const int IP_PMTUDISC_PROBE; +extern const int IP_PMTUDISC_WANT; +extern const int IP_RECVDSTADDR; +extern const int IP_RECVERR; +extern const int IP_RECVOPTS; +extern const int IP_RECVORIGDSTADDR; +extern const int IP_RECVRETOPTS; +extern const int IP_RECVTOS; +extern const int IP_RECVTTL; +extern const int IP_RETOPTS; +extern const int IP_ROUTER_ALERT; +extern const int IP_TOS; +extern const int IP_TRANSPARENT; +extern const int IP_TTL; +extern const int IP_UNBLOCK_SOURCE; +extern const int IP_UNICAST_IF; +extern const int IP_XFRM_POLICY; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ipport.h b/libc/sysv/consts/ipport.h index 0dcaaf779..7306aa0cf 100644 --- a/libc/sysv/consts/ipport.h +++ b/libc/sysv/consts/ipport.h @@ -62,7 +62,7 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long IPPORT_USERRESERVED; +extern const int IPPORT_USERRESERVED; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ipproto.h b/libc/sysv/consts/ipproto.h index 178e19c95..37a6fc862 100644 --- a/libc/sysv/consts/ipproto.h +++ b/libc/sysv/consts/ipproto.h @@ -4,39 +4,39 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long IPPROTO_AH; -extern const long IPPROTO_BEETPH; -extern const long IPPROTO_COMP; -extern const long IPPROTO_DCCP; -extern const long IPPROTO_DSTOPTS; -extern const long IPPROTO_EGP; -extern const long IPPROTO_ENCAP; -extern const long IPPROTO_ESP; -extern const long IPPROTO_FRAGMENT; -extern const long IPPROTO_GRE; -extern const long IPPROTO_HOPOPTS; -extern const long IPPROTO_ICMP; -extern const long IPPROTO_ICMPV6; -extern const long IPPROTO_IDP; -extern const long IPPROTO_IGMP; -extern const long IPPROTO_IP; -extern const long IPPROTO_IPIP; -extern const long IPPROTO_IPV6; -extern const long IPPROTO_MAX; -extern const long IPPROTO_MH; -extern const long IPPROTO_MPLS; -extern const long IPPROTO_MTP; -extern const long IPPROTO_NONE; -extern const long IPPROTO_PIM; -extern const long IPPROTO_PUP; -extern const long IPPROTO_RAW; -extern const long IPPROTO_ROUTING; -extern const long IPPROTO_RSVP; -extern const long IPPROTO_SCTP; -extern const long IPPROTO_TCP; -extern const long IPPROTO_TP; -extern const long IPPROTO_UDP; -extern const long IPPROTO_UDPLITE; +extern const int IPPROTO_AH; +extern const int IPPROTO_BEETPH; +extern const int IPPROTO_COMP; +extern const int IPPROTO_DCCP; +extern const int IPPROTO_DSTOPTS; +extern const int IPPROTO_EGP; +extern const int IPPROTO_ENCAP; +extern const int IPPROTO_ESP; +extern const int IPPROTO_FRAGMENT; +extern const int IPPROTO_GRE; +extern const int IPPROTO_HOPOPTS; +extern const int IPPROTO_ICMP; +extern const int IPPROTO_ICMPV6; +extern const int IPPROTO_IDP; +extern const int IPPROTO_IGMP; +extern const int IPPROTO_IP; +extern const int IPPROTO_IPIP; +extern const int IPPROTO_IPV6; +extern const int IPPROTO_MAX; +extern const int IPPROTO_MH; +extern const int IPPROTO_MPLS; +extern const int IPPROTO_MTP; +extern const int IPPROTO_NONE; +extern const int IPPROTO_PIM; +extern const int IPPROTO_PUP; +extern const int IPPROTO_RAW; +extern const int IPPROTO_ROUTING; +extern const int IPPROTO_RSVP; +extern const int IPPROTO_SCTP; +extern const int IPPROTO_TCP; +extern const int IPPROTO_TP; +extern const int IPPROTO_UDP; +extern const int IPPROTO_UDPLITE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ipv6.h b/libc/sysv/consts/ipv6.h index ddd8aaf92..a9fd77171 100644 --- a/libc/sysv/consts/ipv6.h +++ b/libc/sysv/consts/ipv6.h @@ -65,65 +65,65 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long IPV6_2292DSTOPTS; -extern const long IPV6_2292HOPLIMIT; -extern const long IPV6_2292HOPOPTS; -extern const long IPV6_2292PKTINFO; -extern const long IPV6_2292PKTOPTIONS; -extern const long IPV6_2292RTHDR; -extern const long IPV6_ADDRFORM; -extern const long IPV6_ADD_MEMBERSHIP; -extern const long IPV6_AUTHHDR; -extern const long IPV6_AUTOFLOWLABEL; -extern const long IPV6_CHECKSUM; -extern const long IPV6_DONTFRAG; -extern const long IPV6_DROP_MEMBERSHIP; -extern const long IPV6_DSTOPTS; -extern const long IPV6_HDRINCL; -extern const long IPV6_HOPLIMIT; -extern const long IPV6_HOPOPTS; -extern const long IPV6_IPSEC_POLICY; -extern const long IPV6_JOIN_ANYCAST; -extern const long IPV6_JOIN_GROUP; -extern const long IPV6_LEAVE_ANYCAST; -extern const long IPV6_LEAVE_GROUP; -extern const long IPV6_MINHOPCOUNT; -extern const long IPV6_MTU; -extern const long IPV6_MTU_DISCOVER; -extern const long IPV6_MULTICAST_HOPS; -extern const long IPV6_MULTICAST_IF; -extern const long IPV6_MULTICAST_LOOP; -extern const long IPV6_NEXTHOP; -extern const long IPV6_ORIGDSTADDR; -extern const long IPV6_PATHMTU; -extern const long IPV6_PKTINFO; -extern const long IPV6_PMTUDISC_DO; -extern const long IPV6_PMTUDISC_DONT; -extern const long IPV6_PMTUDISC_INTERFACE; -extern const long IPV6_PMTUDISC_OMIT; -extern const long IPV6_PMTUDISC_PROBE; -extern const long IPV6_PMTUDISC_WANT; -extern const long IPV6_RECVDSTOPTS; -extern const long IPV6_RECVERR; -extern const long IPV6_RECVHOPLIMIT; -extern const long IPV6_RECVHOPOPTS; -extern const long IPV6_RECVORIGDSTADDR; -extern const long IPV6_RECVPATHMTU; -extern const long IPV6_RECVPKTINFO; -extern const long IPV6_RECVRTHDR; -extern const long IPV6_RECVTCLASS; -extern const long IPV6_ROUTER_ALERT; -extern const long IPV6_RTHDR; -extern const long IPV6_RTHDRDSTOPTS; -extern const long IPV6_RTHDR_LOOSE; -extern const long IPV6_RTHDR_STRICT; -extern const long IPV6_RTHDR_TYPE_0; -extern const long IPV6_RXDSTOPTS; -extern const long IPV6_RXHOPOPTS; -extern const long IPV6_TCLASS; -extern const long IPV6_UNICAST_HOPS; -extern const long IPV6_V6ONLY; -extern const long IPV6_XFRM_POLICY; +extern const int IPV6_2292DSTOPTS; +extern const int IPV6_2292HOPLIMIT; +extern const int IPV6_2292HOPOPTS; +extern const int IPV6_2292PKTINFO; +extern const int IPV6_2292PKTOPTIONS; +extern const int IPV6_2292RTHDR; +extern const int IPV6_ADDRFORM; +extern const int IPV6_ADD_MEMBERSHIP; +extern const int IPV6_AUTHHDR; +extern const int IPV6_AUTOFLOWLABEL; +extern const int IPV6_CHECKSUM; +extern const int IPV6_DONTFRAG; +extern const int IPV6_DROP_MEMBERSHIP; +extern const int IPV6_DSTOPTS; +extern const int IPV6_HDRINCL; +extern const int IPV6_HOPLIMIT; +extern const int IPV6_HOPOPTS; +extern const int IPV6_IPSEC_POLICY; +extern const int IPV6_JOIN_ANYCAST; +extern const int IPV6_JOIN_GROUP; +extern const int IPV6_LEAVE_ANYCAST; +extern const int IPV6_LEAVE_GROUP; +extern const int IPV6_MINHOPCOUNT; +extern const int IPV6_MTU; +extern const int IPV6_MTU_DISCOVER; +extern const int IPV6_MULTICAST_HOPS; +extern const int IPV6_MULTICAST_IF; +extern const int IPV6_MULTICAST_LOOP; +extern const int IPV6_NEXTHOP; +extern const int IPV6_ORIGDSTADDR; +extern const int IPV6_PATHMTU; +extern const int IPV6_PKTINFO; +extern const int IPV6_PMTUDISC_DO; +extern const int IPV6_PMTUDISC_DONT; +extern const int IPV6_PMTUDISC_INTERFACE; +extern const int IPV6_PMTUDISC_OMIT; +extern const int IPV6_PMTUDISC_PROBE; +extern const int IPV6_PMTUDISC_WANT; +extern const int IPV6_RECVDSTOPTS; +extern const int IPV6_RECVERR; +extern const int IPV6_RECVHOPLIMIT; +extern const int IPV6_RECVHOPOPTS; +extern const int IPV6_RECVORIGDSTADDR; +extern const int IPV6_RECVPATHMTU; +extern const int IPV6_RECVPKTINFO; +extern const int IPV6_RECVRTHDR; +extern const int IPV6_RECVTCLASS; +extern const int IPV6_ROUTER_ALERT; +extern const int IPV6_RTHDR; +extern const int IPV6_RTHDRDSTOPTS; +extern const int IPV6_RTHDR_LOOSE; +extern const int IPV6_RTHDR_STRICT; +extern const int IPV6_RTHDR_TYPE_0; +extern const int IPV6_RXDSTOPTS; +extern const int IPV6_RXHOPOPTS; +extern const int IPV6_TCLASS; +extern const int IPV6_UNICAST_HOPS; +extern const int IPV6_V6ONLY; +extern const int IPV6_XFRM_POLICY; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/lio.h b/libc/sysv/consts/lio.h index 06148914b..c9bf83358 100644 --- a/libc/sysv/consts/lio.h +++ b/libc/sysv/consts/lio.h @@ -11,11 +11,11 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long LIO_NOP; -extern const long LIO_NOWAIT; -extern const long LIO_READ; -extern const long LIO_WAIT; -extern const long LIO_WRITE; +extern const int LIO_NOP; +extern const int LIO_NOWAIT; +extern const int LIO_READ; +extern const int LIO_WAIT; +extern const int LIO_WRITE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/lock.h b/libc/sysv/consts/lock.h index c2f7de425..bd408b924 100644 --- a/libc/sysv/consts/lock.h +++ b/libc/sysv/consts/lock.h @@ -4,11 +4,11 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long LOCK_EX; -extern const long LOCK_NB; -extern const long LOCK_SH; -extern const long LOCK_UN; -extern const long LOCK_UNLOCK_CACHE; +extern const int LOCK_EX; +extern const int LOCK_NB; +extern const int LOCK_SH; +extern const int LOCK_UN; +extern const int LOCK_UNLOCK_CACHE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/map.h b/libc/sysv/consts/map.h index 00925b0ec..30f0bfd02 100644 --- a/libc/sysv/consts/map.h +++ b/libc/sysv/consts/map.h @@ -4,29 +4,29 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MAP_32BIT; -extern const long MAP_ANON; -extern const long MAP_ANONYMOUS; -extern const long MAP_CONCEAL; -extern const long MAP_DENYWRITE; -extern const long MAP_EXECUTABLE; -extern const long MAP_FILE; -extern const long MAP_FIXED; -extern const long MAP_FIXED_NOREPLACE; -extern const long MAP_GROWSDOWN; -extern const long MAP_HASSEMAPHORE; -extern const long MAP_HUGETLB; -extern const long MAP_HUGE_MASK; -extern const long MAP_HUGE_SHIFT; -extern const long MAP_INHERIT; -extern const long MAP_LOCKED; -extern const long MAP_NONBLOCK; -extern const long MAP_NORESERVE; -extern const long MAP_NOSYNC; -extern const long MAP_POPULATE; -extern const long MAP_PRIVATE; -extern const long MAP_SHARED; -extern const long MAP_SHARED_VALIDATE; +extern const int MAP_32BIT; +extern const int MAP_ANON; +extern const int MAP_ANONYMOUS; +extern const int MAP_CONCEAL; +extern const int MAP_DENYWRITE; +extern const int MAP_EXECUTABLE; +extern const int MAP_FILE; +extern const int MAP_FIXED; +extern const int MAP_FIXED_NOREPLACE; +extern const int MAP_GROWSDOWN; +extern const int MAP_HASSEMAPHORE; +extern const int MAP_HUGETLB; +extern const int MAP_HUGE_MASK; +extern const int MAP_HUGE_SHIFT; +extern const int MAP_INHERIT; +extern const int MAP_LOCKED; +extern const int MAP_NONBLOCK; +extern const int MAP_NORESERVE; +extern const int MAP_NOSYNC; +extern const int MAP_POPULATE; +extern const int MAP_PRIVATE; +extern const int MAP_SHARED; +extern const int MAP_SHARED_VALIDATE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/mcast.h b/libc/sysv/consts/mcast.h index a67b59b86..522d1d1a2 100644 --- a/libc/sysv/consts/mcast.h +++ b/libc/sysv/consts/mcast.h @@ -15,15 +15,15 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MCAST_BLOCK_SOURCE; -extern const long MCAST_EXCLUDE; -extern const long MCAST_INCLUDE; -extern const long MCAST_JOIN_GROUP; -extern const long MCAST_JOIN_SOURCE_GROUP; -extern const long MCAST_LEAVE_GROUP; -extern const long MCAST_LEAVE_SOURCE_GROUP; -extern const long MCAST_MSFILTER; -extern const long MCAST_UNBLOCK_SOURCE; +extern const int MCAST_BLOCK_SOURCE; +extern const int MCAST_EXCLUDE; +extern const int MCAST_INCLUDE; +extern const int MCAST_JOIN_GROUP; +extern const int MCAST_JOIN_SOURCE_GROUP; +extern const int MCAST_LEAVE_GROUP; +extern const int MCAST_LEAVE_SOURCE_GROUP; +extern const int MCAST_MSFILTER; +extern const int MCAST_UNBLOCK_SOURCE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/mfd.h b/libc/sysv/consts/mfd.h index 0dafb9102..1bbf9b088 100644 --- a/libc/sysv/consts/mfd.h +++ b/libc/sysv/consts/mfd.h @@ -4,8 +4,8 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MFD_CLOEXEC; -extern const long MFD_ALLOW_SEALING; +extern const unsigned int MFD_CLOEXEC; +extern const unsigned int MFD_ALLOW_SEALING; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/mlock.h b/libc/sysv/consts/mlock.h index c29d37f74..6062b68f2 100644 --- a/libc/sysv/consts/mlock.h +++ b/libc/sysv/consts/mlock.h @@ -4,9 +4,9 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MCL_CURRENT; -extern const long MCL_FUTURE; -extern const long MCL_ONFAULT; +extern const int MCL_CURRENT; +extern const int MCL_FUTURE; +extern const int MCL_ONFAULT; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/modem.h b/libc/sysv/consts/modem.h index 225ec8ea9..3665a5435 100644 --- a/libc/sysv/consts/modem.h +++ b/libc/sysv/consts/modem.h @@ -4,22 +4,22 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long TIOCMGET; -extern const long TIOCMSET; -extern const long TIOCMBIC; -extern const long TIOCMBIS; +extern const uint64_t TIOCMGET; +extern const uint64_t TIOCMSET; +extern const uint64_t TIOCMBIC; +extern const uint64_t TIOCMBIS; -extern const long TIOCM_CAR; -extern const long TIOCM_CD; -extern const long TIOCM_CTS; -extern const long TIOCM_DSR; -extern const long TIOCM_DTR; -extern const long TIOCM_LE; -extern const long TIOCM_RI; -extern const long TIOCM_RNG; -extern const long TIOCM_RTS; -extern const long TIOCM_SR; -extern const long TIOCM_ST; +extern const int TIOCM_CAR; +extern const int TIOCM_CD; +extern const int TIOCM_CTS; +extern const int TIOCM_DSR; +extern const int TIOCM_DTR; +extern const int TIOCM_LE; +extern const int TIOCM_RI; +extern const int TIOCM_RNG; +extern const int TIOCM_RTS; +extern const int TIOCM_SR; +extern const int TIOCM_ST; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/mount.h b/libc/sysv/consts/mount.h index 2840ebe2c..c8f441a57 100644 --- a/libc/sysv/consts/mount.h +++ b/libc/sysv/consts/mount.h @@ -4,50 +4,50 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MS_RDONLY; -extern const long MNT_RDONLY; -extern const long MS_NOSUID; -extern const long MNT_NOSUID; -extern const long MS_NODEV; -extern const long MNT_NODEV; -extern const long MS_NOEXEC; -extern const long MNT_NOEXEC; -extern const long MS_SYNCHRONOUS; -extern const long MNT_SYNCHRONOUS; -extern const long MS_REMOUNT; -extern const long MNT_UPDATE; -extern const long MS_MANDLOCK; -extern const long MS_DIRSYNC; -extern const long MS_NOATIME; -extern const long MNT_NOATIME; -extern const long MS_NODIRATIME; -extern const long MS_BIND; -extern const long MS_MOVE; -extern const long MS_REC; -extern const long MS_SILENT; -extern const long MS_POSIXACL; -extern const long MS_UNBINDABLE; -extern const long MS_PRIVATE; -extern const long MS_SLAVE; -extern const long MS_SHARED; -extern const long MS_RELATIME; -extern const long MNT_RELATIME; -extern const long MS_KERNMOUNT; -extern const long MS_I_VERSION; -extern const long MS_STRICTATIME; -extern const long MNT_STRICTATIME; -extern const long MS_LAZYTIME; -extern const long MS_ACTIVE; -extern const long MS_NOUSER; -extern const long MS_RMT_MASK; -extern const long MS_MGC_VAL; -extern const long MS_MGC_MSK; -extern const long MNT_ASYNC; -extern const long MNT_RELOAD; -extern const long MNT_SUIDDIR; -extern const long MNT_NOCLUSTERR; -extern const long MNT_NOCLUSTERW; -extern const long MNT_SNAPSHOT; +extern const unsigned long MS_RDONLY; +extern const int MNT_RDONLY; +extern const unsigned long MS_NOSUID; +extern const int MNT_NOSUID; +extern const unsigned long MS_NODEV; +extern const int MNT_NODEV; +extern const unsigned long MS_NOEXEC; +extern const int MNT_NOEXEC; +extern const unsigned long MS_SYNCHRONOUS; +extern const int MNT_SYNCHRONOUS; +extern const unsigned long MS_REMOUNT; +extern const int MNT_UPDATE; +extern const unsigned long MS_MANDLOCK; +extern const unsigned long MS_DIRSYNC; +extern const unsigned long MS_NOATIME; +extern const int MNT_NOATIME; +extern const unsigned long MS_NODIRATIME; +extern const unsigned long MS_BIND; +extern const unsigned long MS_MOVE; +extern const unsigned long MS_REC; +extern const unsigned long MS_SILENT; +extern const unsigned long MS_POSIXACL; +extern const unsigned long MS_UNBINDABLE; +extern const unsigned long MS_PRIVATE; +extern const unsigned long MS_SLAVE; +extern const unsigned long MS_SHARED; +extern const unsigned long MS_RELATIME; +extern const int MNT_RELATIME; +extern const unsigned long MS_KERNMOUNT; +extern const unsigned long MS_I_VERSION; +extern const unsigned long MS_STRICTATIME; +extern const int MNT_STRICTATIME; +extern const unsigned long MS_LAZYTIME; +extern const unsigned long MS_ACTIVE; +extern const unsigned long MS_NOUSER; +extern const unsigned long MS_RMT_MASK; +extern const unsigned long MS_MGC_VAL; +extern const unsigned long MS_MGC_MSK; +extern const int MNT_ASYNC; +extern const int MNT_RELOAD; +extern const int MNT_SUIDDIR; +extern const int MNT_NOCLUSTERR; +extern const int MNT_NOCLUSTERW; +extern const int MNT_SNAPSHOT; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/msg.h b/libc/sysv/consts/msg.h index 41d28ee29..4b4d4f0c3 100644 --- a/libc/sysv/consts/msg.h +++ b/libc/sysv/consts/msg.h @@ -4,35 +4,35 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MSG_BATCH; -extern const long MSG_BCAST; -extern const long MSG_CMSG_CLOEXEC; -extern const long MSG_CONFIRM; -extern const long MSG_CTRUNC; -extern const long MSG_DONTROUTE; -extern const long MSG_DONTWAIT; -extern const long MSG_EOF; -extern const long MSG_EOR; -extern const long MSG_ERRQUEUE; -extern const long MSG_EXCEPT; -extern const long MSG_FASTOPEN; -extern const long MSG_FIN; -extern const long MSG_INFO; -extern const long MSG_MCAST; -extern const long MSG_MORE; -extern const long MSG_NOERROR; -extern const long MSG_NOSIGNAL; -extern const long MSG_NOTIFICATION; -extern const long MSG_OOB; -extern const long MSG_PARITY_ERROR; -extern const long MSG_PEEK; -extern const long MSG_PROXY; -extern const long MSG_RST; -extern const long MSG_STAT; -extern const long MSG_SYN; -extern const long MSG_TRUNC; -extern const long MSG_WAITALL; -extern const long MSG_WAITFORONE; +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; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/msync.h b/libc/sysv/consts/msync.h index 12ada3583..04c6cce0c 100644 --- a/libc/sysv/consts/msync.h +++ b/libc/sysv/consts/msync.h @@ -4,9 +4,9 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MS_SYNC; -extern const long MS_ASYNC; -extern const long MS_INVALIDATE; +extern const int MS_SYNC; +extern const int MS_ASYNC; +extern const int MS_INVALIDATE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ok.h b/libc/sysv/consts/ok.h index 748595316..3b7850740 100644 --- a/libc/sysv/consts/ok.h +++ b/libc/sysv/consts/ok.h @@ -10,10 +10,10 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long F_OK; -extern const long R_OK; -extern const long W_OK; -extern const long X_OK; +extern const int F_OK; +extern const int R_OK; +extern const int W_OK; +extern const int X_OK; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/pf.h b/libc/sysv/consts/pf.h index 0af19633f..9ae357713 100644 --- a/libc/sysv/consts/pf.h +++ b/libc/sysv/consts/pf.h @@ -51,51 +51,51 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long PF_ALG; -extern const long PF_APPLETALK; -extern const long PF_ASH; -extern const long PF_ATMPVC; -extern const long PF_ATMSVC; -extern const long PF_AX25; -extern const long PF_BLUETOOTH; -extern const long PF_BRIDGE; -extern const long PF_CAIF; -extern const long PF_CAN; -extern const long PF_ECONET; -extern const long PF_FILE; -extern const long PF_IB; -extern const long PF_IEEE802154; -extern const long PF_INET6; -extern const long PF_INET; -extern const long PF_IPX; -extern const long PF_IRDA; -extern const long PF_ISDN; -extern const long PF_IUCV; -extern const long PF_KCM; -extern const long PF_KEY; -extern const long PF_LLC; -extern const long PF_LOCAL; -extern const long PF_MAX; -extern const long PF_MPLS; -extern const long PF_NETBEUI; -extern const long PF_NETLINK; -extern const long PF_NETROM; -extern const long PF_NFC; -extern const long PF_PACKET; -extern const long PF_PHONET; -extern const long PF_PPPOX; -extern const long PF_RDS; -extern const long PF_ROSE; -extern const long PF_ROUTE; -extern const long PF_RXRPC; -extern const long PF_SECURITY; -extern const long PF_SNA; -extern const long PF_TIPC; -extern const long PF_UNIX; -extern const long PF_UNSPEC; -extern const long PF_VSOCK; -extern const long PF_WANPIPE; -extern const long PF_X25; +extern const int PF_ALG; +extern const int PF_APPLETALK; +extern const int PF_ASH; +extern const int PF_ATMPVC; +extern const int PF_ATMSVC; +extern const int PF_AX25; +extern const int PF_BLUETOOTH; +extern const int PF_BRIDGE; +extern const int PF_CAIF; +extern const int PF_CAN; +extern const int PF_ECONET; +extern const int PF_FILE; +extern const int PF_IB; +extern const int PF_IEEE802154; +extern const int PF_INET6; +extern const int PF_INET; +extern const int PF_IPX; +extern const int PF_IRDA; +extern const int PF_ISDN; +extern const int PF_IUCV; +extern const int PF_KCM; +extern const int PF_KEY; +extern const int PF_LLC; +extern const int PF_LOCAL; +extern const int PF_MAX; +extern const int PF_MPLS; +extern const int PF_NETBEUI; +extern const int PF_NETLINK; +extern const int PF_NETROM; +extern const int PF_NFC; +extern const int PF_PACKET; +extern const int PF_PHONET; +extern const int PF_PPPOX; +extern const int PF_RDS; +extern const int PF_ROSE; +extern const int PF_ROUTE; +extern const int PF_RXRPC; +extern const int PF_SECURITY; +extern const int PF_SNA; +extern const int PF_TIPC; +extern const int PF_UNIX; +extern const int PF_UNSPEC; +extern const int PF_VSOCK; +extern const int PF_WANPIPE; +extern const int PF_X25; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/posix.h b/libc/sysv/consts/posix.h index dacf7a6e4..9e28d762c 100644 --- a/libc/sysv/consts/posix.h +++ b/libc/sysv/consts/posix.h @@ -4,17 +4,17 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long POSIX_FADV_DONTNEED; -extern const long POSIX_FADV_NOREUSE; -extern const long POSIX_FADV_NORMAL; -extern const long POSIX_FADV_RANDOM; -extern const long POSIX_FADV_SEQUENTIAL; -extern const long POSIX_FADV_WILLNEED; -extern const long POSIX_MADV_DONTNEED; -extern const long POSIX_MADV_NORMAL; -extern const long POSIX_MADV_RANDOM; -extern const long POSIX_MADV_SEQUENTIAL; -extern const long POSIX_MADV_WILLNEED; +extern const int POSIX_FADV_DONTNEED; +extern const int POSIX_FADV_NOREUSE; +extern const int POSIX_FADV_NORMAL; +extern const int POSIX_FADV_RANDOM; +extern const int POSIX_FADV_SEQUENTIAL; +extern const int POSIX_FADV_WILLNEED; +extern const int POSIX_MADV_DONTNEED; +extern const int POSIX_MADV_NORMAL; +extern const int POSIX_MADV_RANDOM; +extern const int POSIX_MADV_SEQUENTIAL; +extern const int POSIX_MADV_WILLNEED; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/prio.h b/libc/sysv/consts/prio.h index 3a6f9d4f9..e1a237ef1 100644 --- a/libc/sysv/consts/prio.h +++ b/libc/sysv/consts/prio.h @@ -4,12 +4,12 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long PRIO_MAX; -extern const long PRIO_MIN; -extern const long PRIO_PGRP; -extern const long PRIO_PROCESS; -extern const long PRIO_USER; -extern const long NZERO; +extern const int PRIO_MAX; +extern const int PRIO_MIN; +extern const int PRIO_PGRP; +extern const int PRIO_PROCESS; +extern const int PRIO_USER; +extern const int NZERO; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/prot.h b/libc/sysv/consts/prot.h index e5847264a..a584aa2d6 100644 --- a/libc/sysv/consts/prot.h +++ b/libc/sysv/consts/prot.h @@ -4,12 +4,12 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long PROT_NONE; -extern const long PROT_READ; -extern const long PROT_WRITE; -extern const long PROT_EXEC; -extern const long PROT_GROWSDOWN; -extern const long PROT_GROWSUP; +extern const int PROT_NONE; +extern const int PROT_READ; +extern const int PROT_WRITE; +extern const int PROT_EXEC; +extern const int PROT_GROWSDOWN; +extern const int PROT_GROWSUP; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ptrace.h b/libc/sysv/consts/ptrace.h index 444bcb21b..f3de60145 100644 --- a/libc/sysv/consts/ptrace.h +++ b/libc/sysv/consts/ptrace.h @@ -4,55 +4,55 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long PTRACE_TRACEME; -extern const long PTRACE_PEEKTEXT; -extern const long PTRACE_PEEKDATA; -extern const long PTRACE_PEEKUSER; -extern const long PTRACE_POKETEXT; -extern const long PTRACE_POKEDATA; -extern const long PTRACE_POKEUSER; -extern const long PTRACE_CONT; -extern const long PTRACE_KILL; -extern const long PTRACE_SINGLESTEP; -extern const long PTRACE_GETREGS; -extern const long PTRACE_SETREGS; -extern const long PTRACE_GETFPREGS; -extern const long PTRACE_SETFPREGS; -extern const long PTRACE_ATTACH; -extern const long PTRACE_DETACH; -extern const long PTRACE_GETFPXREGS; -extern const long PTRACE_SETFPXREGS; -extern const long PTRACE_SYSCALL; -extern const long PTRACE_GETEVENTMSG; -extern const long PTRACE_GETSIGINFO; -extern const long PTRACE_SETOPTIONS; -extern const long PTRACE_SETSIGINFO; -extern const long PTRACE_GETREGSET; -extern const long PTRACE_GETSIGMASK; -extern const long PTRACE_INTERRUPT; -extern const long PTRACE_LISTEN; -extern const long PTRACE_PEEKSIGINFO; -extern const long PTRACE_SECCOMP_GET_FILTER; -extern const long PTRACE_SEIZE; -extern const long PTRACE_SETREGSET; -extern const long PTRACE_SETSIGMASK; -extern const long PTRACE_O_TRACESYSGOOD; -extern const long PTRACE_O_TRACEFORK; -extern const long PTRACE_O_TRACEVFORK; -extern const long PTRACE_O_TRACECLONE; -extern const long PTRACE_O_TRACEEXEC; -extern const long PTRACE_O_TRACEVFORKDONE; -extern const long PTRACE_O_TRACEEXIT; -extern const long PTRACE_O_TRACESECCOMP; -extern const long PTRACE_O_MASK; -extern const long PTRACE_EVENT_FORK; -extern const long PTRACE_EVENT_VFORK; -extern const long PTRACE_EVENT_CLONE; -extern const long PTRACE_EVENT_EXEC; -extern const long PTRACE_EVENT_VFORK_DONE; -extern const long PTRACE_EVENT_EXIT; -extern const long PTRACE_EVENT_STOP; -extern const long PTRACE_EVENT_SECCOMP; +extern const int PTRACE_TRACEME; +extern const int PTRACE_PEEKTEXT; +extern const int PTRACE_PEEKDATA; +extern const int PTRACE_PEEKUSER; +extern const int PTRACE_POKETEXT; +extern const int PTRACE_POKEDATA; +extern const int PTRACE_POKEUSER; +extern const int PTRACE_CONT; +extern const int PTRACE_KILL; +extern const int PTRACE_SINGLESTEP; +extern const int PTRACE_GETREGS; +extern const int PTRACE_SETREGS; +extern const int PTRACE_GETFPREGS; +extern const int PTRACE_SETFPREGS; +extern const int PTRACE_ATTACH; +extern const int PTRACE_DETACH; +extern const int PTRACE_GETFPXREGS; +extern const int PTRACE_SETFPXREGS; +extern const int PTRACE_SYSCALL; +extern const int PTRACE_GETEVENTMSG; +extern const int PTRACE_GETSIGINFO; +extern const int PTRACE_SETOPTIONS; +extern const int PTRACE_SETSIGINFO; +extern const int PTRACE_GETREGSET; +extern const int PTRACE_GETSIGMASK; +extern const int PTRACE_INTERRUPT; +extern const int PTRACE_LISTEN; +extern const int PTRACE_PEEKSIGINFO; +extern const int PTRACE_SECCOMP_GET_FILTER; +extern const int PTRACE_SEIZE; +extern const int PTRACE_SETREGSET; +extern const int PTRACE_SETSIGMASK; +extern const int PTRACE_O_TRACESYSGOOD; +extern const int PTRACE_O_TRACEFORK; +extern const int PTRACE_O_TRACEVFORK; +extern const int PTRACE_O_TRACECLONE; +extern const int PTRACE_O_TRACEEXEC; +extern const int PTRACE_O_TRACEVFORKDONE; +extern const int PTRACE_O_TRACEEXIT; +extern const int PTRACE_O_TRACESECCOMP; +extern const int PTRACE_O_MASK; +extern const int PTRACE_EVENT_FORK; +extern const int PTRACE_EVENT_VFORK; +extern const int PTRACE_EVENT_CLONE; +extern const int PTRACE_EVENT_EXEC; +extern const int PTRACE_EVENT_VFORK_DONE; +extern const int PTRACE_EVENT_EXIT; +extern const int PTRACE_EVENT_STOP; +extern const int PTRACE_EVENT_SECCOMP; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/pty.h b/libc/sysv/consts/pty.h index 6030826d6..b4ec5410b 100644 --- a/libc/sysv/consts/pty.h +++ b/libc/sysv/consts/pty.h @@ -4,17 +4,17 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long TIOCPKT; -extern const long TIOCPKT_DATA; -extern const long TIOCPKT_DOSTOP; -extern const long TIOCPKT_FLUSHREAD; -extern const long TIOCPKT_FLUSHWRITE; -extern const long TIOCPKT_IOCTL; -extern const long TIOCPKT_NOSTOP; -extern const long TIOCPKT_START; -extern const long TIOCPKT_STOP; -extern const long TIOCSPTLCK; -extern const long PTMGET; +extern const int TIOCPKT; +extern const int TIOCPKT_DATA; +extern const int TIOCPKT_DOSTOP; +extern const int TIOCPKT_FLUSHREAD; +extern const int TIOCPKT_FLUSHWRITE; +extern const int TIOCPKT_IOCTL; +extern const int TIOCPKT_NOSTOP; +extern const int TIOCPKT_START; +extern const int TIOCPKT_STOP; +extern const int TIOCSPTLCK; +extern const int PTMGET; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/rlim.h b/libc/sysv/consts/rlim.h index 3f7040a17..500a03dd1 100644 --- a/libc/sysv/consts/rlim.h +++ b/libc/sysv/consts/rlim.h @@ -10,10 +10,10 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long RLIM_INFINITY; -extern const long RLIM_NLIMITS; -extern const long RLIM_SAVED_CUR; -extern const long RLIM_SAVED_MAX; +extern const uint64_t RLIM_INFINITY; +extern const uint64_t RLIM_NLIMITS; +extern const uint64_t RLIM_SAVED_CUR; +extern const uint64_t RLIM_SAVED_MAX; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/rlimit.h b/libc/sysv/consts/rlimit.h index b5b20041f..d55b0825e 100644 --- a/libc/sysv/consts/rlimit.h +++ b/libc/sysv/consts/rlimit.h @@ -26,26 +26,26 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long RLIMIT_AS; -extern const long RLIMIT_CORE; -extern const long RLIMIT_CPU; -extern const long RLIMIT_DATA; -extern const long RLIMIT_FSIZE; -extern const long RLIMIT_LOCKS; -extern const long RLIMIT_MEMLOCK; -extern const long RLIMIT_MSGQUEUE; -extern const long RLIMIT_NICE; -extern const long RLIMIT_NOFILE; -extern const long RLIMIT_NPROC; -extern const long RLIMIT_NPTS; -extern const long RLIMIT_RSS; -extern const long RLIMIT_RTPRIO; -extern const long RLIMIT_RTTIME; -extern const long RLIMIT_SBSIZE; -extern const long RLIMIT_SIGPENDING; -extern const long RLIMIT_STACK; -extern const long RLIMIT_SWAP; -extern const long RLIMIT_VMEM; +extern const uint64_t RLIMIT_AS; +extern const uint64_t RLIMIT_CORE; +extern const uint64_t RLIMIT_CPU; +extern const uint64_t RLIMIT_DATA; +extern const uint64_t RLIMIT_FSIZE; +extern const uint64_t RLIMIT_LOCKS; +extern const uint64_t RLIMIT_MEMLOCK; +extern const uint64_t RLIMIT_MSGQUEUE; +extern const uint64_t RLIMIT_NICE; +extern const uint64_t RLIMIT_NOFILE; +extern const uint64_t RLIMIT_NPROC; +extern const uint64_t RLIMIT_NPTS; +extern const uint64_t RLIMIT_RSS; +extern const uint64_t RLIMIT_RTPRIO; +extern const uint64_t RLIMIT_RTTIME; +extern const uint64_t RLIMIT_SBSIZE; +extern const uint64_t RLIMIT_SIGPENDING; +extern const uint64_t RLIMIT_STACK; +extern const uint64_t RLIMIT_SWAP; +extern const uint64_t RLIMIT_VMEM; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/rusage.h b/libc/sysv/consts/rusage.h index 420fe13c5..b1f43fb27 100644 --- a/libc/sysv/consts/rusage.h +++ b/libc/sysv/consts/rusage.h @@ -4,10 +4,10 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long RUSAGE_BOTH; -extern const long RUSAGE_CHILDREN; -extern const long RUSAGE_SELF; -extern const long RUSAGE_THREAD; +extern const int RUSAGE_BOTH; +extern const int RUSAGE_CHILDREN; +extern const int RUSAGE_SELF; +extern const int RUSAGE_THREAD; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sa.h b/libc/sysv/consts/sa.h index aa85f7660..70115bffe 100644 --- a/libc/sysv/consts/sa.h +++ b/libc/sysv/consts/sa.h @@ -15,15 +15,15 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SA_NOCLDSTOP; -extern const long SA_NOCLDWAIT; -extern const long SA_NODEFER; -extern const long SA_NOMASK; -extern const long SA_ONESHOT; -extern const long SA_ONSTACK; -extern const long SA_RESETHAND; -extern const long SA_RESTART; -extern const long SA_SIGINFO; +extern const uint64_t SA_NOCLDSTOP; +extern const uint64_t SA_NOCLDWAIT; +extern const uint64_t SA_NODEFER; +extern const uint64_t SA_NOMASK; +extern const uint64_t SA_ONESHOT; +extern const uint64_t SA_ONSTACK; +extern const uint64_t SA_RESETHAND; +extern const uint64_t SA_RESTART; +extern const uint64_t SA_SIGINFO; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sched.h b/libc/sysv/consts/sched.h index b7987b1af..8a5c881c1 100644 --- a/libc/sysv/consts/sched.h +++ b/libc/sysv/consts/sched.h @@ -14,13 +14,13 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SCHED_BATCH; -extern const long SCHED_DEADLINE; -extern const long SCHED_FIFO; -extern const long SCHED_IDLE; -extern const long SCHED_OTHER; -extern const long SCHED_RESET_ON_FORK; -extern const long SCHED_RR; +extern const int SCHED_BATCH; +extern const int SCHED_DEADLINE; +extern const int SCHED_FIFO; +extern const int SCHED_IDLE; +extern const int SCHED_OTHER; +extern const int SCHED_RESET_ON_FORK; +extern const int SCHED_RR; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/scm.h b/libc/sysv/consts/scm.h index 43e8ea829..5001d0ab3 100644 --- a/libc/sysv/consts/scm.h +++ b/libc/sysv/consts/scm.h @@ -4,11 +4,11 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SCM_TIMESTAMP; -extern const long SCM_CREDENTIALS; -extern const long SCM_TIMESTAMPING; -extern const long SCM_TIMESTAMPNS; -extern const long SCM_WIFI_STATUS; +extern const int SCM_TIMESTAMP; +extern const int SCM_CREDENTIALS; +extern const int SCM_TIMESTAMPING; +extern const int SCM_TIMESTAMPNS; +extern const int SCM_WIFI_STATUS; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sf.h b/libc/sysv/consts/sf.h index e4204fba0..8b408dadd 100644 --- a/libc/sysv/consts/sf.h +++ b/libc/sysv/consts/sf.h @@ -11,9 +11,9 @@ struct sf_hdtr { int trl_cnt; }; -extern const long SF_MNOWAIT; -extern const long SF_NODISKIO; -extern const long SF_SYNC; +extern const int SF_MNOWAIT; +extern const int SF_NODISKIO; +extern const int SF_SYNC; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/shm.h b/libc/sysv/consts/shm.h index 248b71af7..8d38d65db 100644 --- a/libc/sysv/consts/shm.h +++ b/libc/sysv/consts/shm.h @@ -20,20 +20,20 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SHM_DEST; -extern const long SHM_EXEC; -extern const long SHM_HUGETLB; -extern const long SHM_INFO; -extern const long SHM_LOCK; -extern const long SHM_LOCKED; -extern const long SHM_NORESERVE; -extern const long SHM_R; -extern const long SHM_RDONLY; -extern const long SHM_REMAP; -extern const long SHM_RND; -extern const long SHM_STAT; -extern const long SHM_UNLOCK; -extern const long SHM_W; +extern const int SHM_DEST; +extern const int SHM_EXEC; +extern const int SHM_HUGETLB; +extern const int SHM_INFO; +extern const int SHM_LOCK; +extern const int SHM_LOCKED; +extern const int SHM_NORESERVE; +extern const int SHM_R; +extern const int SHM_RDONLY; +extern const int SHM_REMAP; +extern const int SHM_RND; +extern const int SHM_STAT; +extern const int SHM_UNLOCK; +extern const int SHM_W; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/shut.h b/libc/sysv/consts/shut.h index 75e7fbf29..0a7c94d5c 100644 --- a/libc/sysv/consts/shut.h +++ b/libc/sysv/consts/shut.h @@ -4,9 +4,9 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SHUT_RD; -extern const long SHUT_RDWR; -extern const long SHUT_WR; +extern const int SHUT_RD; +extern const int SHUT_RDWR; +extern const int SHUT_WR; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sicode.h b/libc/sysv/consts/sicode.h index 7b79cc44d..d526ca518 100644 --- a/libc/sysv/consts/sicode.h +++ b/libc/sysv/consts/sicode.h @@ -4,56 +4,56 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SI_USER; -extern const long SI_QUEUE; -extern const long SI_TIMER; -extern const long SI_MESGQ; -extern const long SI_ASYNCIO; -extern const long SI_TKILL; -extern const long SI_ASYNCNL; -extern const long SI_KERNEL; -extern const long SI_NOINFO; -extern const long CLD_EXITED; -extern const long CLD_KILLED; -extern const long CLD_DUMPED; -extern const long CLD_TRAPPED; -extern const long CLD_STOPPED; -extern const long CLD_CONTINUED; -extern const long TRAP_BRKPT; -extern const long TRAP_TRACE; -extern const long SEGV_MAPERR; -extern const long SEGV_ACCERR; -extern const long SEGV_PKUERR; -extern const long FPE_INTDIV; -extern const long FPE_INTOVF; -extern const long FPE_FLTDIV; -extern const long FPE_FLTOVF; -extern const long FPE_FLTUND; -extern const long FPE_FLTRES; -extern const long FPE_FLTINV; -extern const long FPE_FLTSUB; -extern const long ILL_ILLOPC; -extern const long ILL_ILLOPN; -extern const long ILL_ILLADR; -extern const long ILL_ILLTRP; -extern const long ILL_PRVOPC; -extern const long ILL_PRVREG; -extern const long ILL_COPROC; -extern const long ILL_BADSTK; -extern const long BUS_ADRALN; -extern const long BUS_ADRERR; -extern const long BUS_OBJERR; -extern const long BUS_MCEERR_AR; -extern const long BUS_MCEERR_AO; -extern const long BUS_OOMERR; -extern const long POLL_IN; -extern const long POLL_OUT; -extern const long POLL_MSG; -extern const long POLL_ERR; -extern const long POLL_PRI; -extern const long POLL_HUP; -extern const long SYS_SECCOMP; -extern const long SYS_USER_DISPATCH; +extern const int32_t SI_USER; +extern const int32_t SI_QUEUE; +extern const int32_t SI_TIMER; +extern const int32_t SI_MESGQ; +extern const int32_t SI_ASYNCIO; +extern const int32_t SI_TKILL; +extern const int32_t SI_ASYNCNL; +extern const int32_t SI_KERNEL; +extern const int32_t SI_NOINFO; +extern const int32_t CLD_EXITED; +extern const int32_t CLD_KILLED; +extern const int32_t CLD_DUMPED; +extern const int32_t CLD_TRAPPED; +extern const int32_t CLD_STOPPED; +extern const int32_t CLD_CONTINUED; +extern const int32_t TRAP_BRKPT; +extern const int32_t TRAP_TRACE; +extern const int32_t SEGV_MAPERR; +extern const int32_t SEGV_ACCERR; +extern const int32_t SEGV_PKUERR; +extern const int32_t FPE_INTDIV; +extern const int32_t FPE_INTOVF; +extern const int32_t FPE_FLTDIV; +extern const int32_t FPE_FLTOVF; +extern const int32_t FPE_FLTUND; +extern const int32_t FPE_FLTRES; +extern const int32_t FPE_FLTINV; +extern const int32_t FPE_FLTSUB; +extern const int32_t ILL_ILLOPC; +extern const int32_t ILL_ILLOPN; +extern const int32_t ILL_ILLADR; +extern const int32_t ILL_ILLTRP; +extern const int32_t ILL_PRVOPC; +extern const int32_t ILL_PRVREG; +extern const int32_t ILL_COPROC; +extern const int32_t ILL_BADSTK; +extern const int32_t BUS_ADRALN; +extern const int32_t BUS_ADRERR; +extern const int32_t BUS_OBJERR; +extern const int32_t BUS_MCEERR_AR; +extern const int32_t BUS_MCEERR_AO; +extern const int32_t BUS_OOMERR; +extern const int32_t POLL_IN; +extern const int32_t POLL_OUT; +extern const int32_t POLL_MSG; +extern const int32_t POLL_ERR; +extern const int32_t POLL_PRI; +extern const int32_t POLL_HUP; +extern const int32_t SYS_SECCOMP; +extern const int32_t SYS_USER_DISPATCH; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sig.h b/libc/sysv/consts/sig.h index aa62d648d..980c5e457 100644 --- a/libc/sysv/consts/sig.h +++ b/libc/sysv/consts/sig.h @@ -4,49 +4,49 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SIGABRT; -extern const long SIGALRM; -extern const long SIGBUS; -extern const long SIGCHLD; -extern const long SIGCONT; -extern const long SIGEMT; -extern const long SIGFPE; -extern const long SIGHUP; -extern const long SIGILL; -extern const long SIGINFO; -extern const long SIGINT; -extern const long SIGIO; -extern const long SIGIOT; -extern const long SIGKILL; -extern const long SIGPIPE; -extern const long SIGPOLL; -extern const long SIGPROF; -extern const long SIGPWR; -extern const long SIGQUIT; -extern const long SIGRTMAX; -extern const long SIGRTMIN; -extern const long SIGSEGV; -extern const long SIGSTKFLT; -extern const long SIGSTOP; -extern const long SIGSYS; -extern const long SIGTERM; -extern const long SIGTRAP; -extern const long SIGTSTP; -extern const long SIGTTIN; -extern const long SIGTTOU; -extern const long SIGUNUSED; -extern const long SIGURG; -extern const long SIGUSR1; -extern const long SIGUSR2; -extern const long SIGVTALRM; -extern const long SIGWINCH; -extern const long SIGXCPU; -extern const long SIGXFSZ; +extern const int SIGABRT; +extern const int SIGALRM; +extern const int SIGBUS; +extern const int SIGCHLD; +extern const int SIGCONT; +extern const int SIGEMT; +extern const int SIGFPE; +extern const int SIGHUP; +extern const int SIGILL; +extern const int SIGINFO; +extern const int SIGINT; +extern const int SIGIO; +extern const int SIGIOT; +extern const int SIGKILL; +extern const int SIGPIPE; +extern const int SIGPOLL; +extern const int SIGPROF; +extern const int SIGPWR; +extern const int SIGQUIT; +extern const int SIGRTMAX; +extern const int SIGRTMIN; +extern const int SIGSEGV; +extern const int SIGSTKFLT; +extern const int SIGSTOP; +extern const int SIGSYS; +extern const int SIGTERM; +extern const int SIGTRAP; +extern const int SIGTSTP; +extern const int SIGTTIN; +extern const int SIGTTOU; +extern const int SIGUNUSED; +extern const int SIGURG; +extern const int SIGUSR1; +extern const int SIGUSR2; +extern const int SIGVTALRM; +extern const int SIGWINCH; +extern const int SIGXCPU; +extern const int SIGXFSZ; -extern const long SIG_ATOMIC_MIN; -extern const long SIG_BLOCK; -extern const long SIG_SETMASK; -extern const long SIG_UNBLOCK; +extern const int SIG_ATOMIC_MIN; +extern const int SIG_BLOCK; +extern const int SIG_SETMASK; +extern const int SIG_UNBLOCK; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sio.h b/libc/sysv/consts/sio.h index 7ecaf9626..f82abc80f 100644 --- a/libc/sysv/consts/sio.h +++ b/libc/sysv/consts/sio.h @@ -65,65 +65,65 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SIOCADDDLCI; -extern const long SIOCADDMULTI; -extern const long SIOCADDRT; -extern const long SIOCATMARK; -extern const long SIOCDARP; -extern const long SIOCDELDLCI; -extern const long SIOCDELMULTI; -extern const long SIOCDELRT; -extern const long SIOCDEVPRIVATE; -extern const long SIOCDIFADDR; -extern const long SIOCDRARP; -extern const long SIOCGARP; -extern const long SIOCGIFADDR; -extern const long SIOCGIFBR; -extern const long SIOCGIFBRDADDR; -extern const long SIOCGIFCONF; -extern const long SIOCGIFCOUNT; -extern const long SIOCGIFDSTADDR; -extern const long SIOCGIFENCAP; -extern const long SIOCGIFFLAGS; -extern const long SIOCGIFHWADDR; -extern const long SIOCGIFINDEX; -extern const long SIOCGIFMAP; -extern const long SIOCGIFMEM; -extern const long SIOCGIFMETRIC; -extern const long SIOCGIFMTU; -extern const long SIOCGIFNAME; -extern const long SIOCGIFNETMASK; -extern const long SIOCGIFPFLAGS; -extern const long SIOCGIFSLAVE; -extern const long SIOCGIFTXQLEN; -extern const long SIOCGPGRP; -extern const long SIOCGRARP; -extern const long SIOCGSTAMP; -extern const long SIOCGSTAMPNS; -extern const long SIOCPROTOPRIVATE; -extern const long SIOCRTMSG; -extern const long SIOCSARP; -extern const long SIOCSIFADDR; -extern const long SIOCSIFBR; -extern const long SIOCSIFBRDADDR; -extern const long SIOCSIFDSTADDR; -extern const long SIOCSIFENCAP; -extern const long SIOCSIFFLAGS; -extern const long SIOCSIFHWADDR; -extern const long SIOCSIFHWBROADCAST; -extern const long SIOCSIFLINK; -extern const long SIOCSIFMAP; -extern const long SIOCSIFMEM; -extern const long SIOCSIFMETRIC; -extern const long SIOCSIFMTU; -extern const long SIOCSIFNAME; -extern const long SIOCSIFNETMASK; -extern const long SIOCSIFPFLAGS; -extern const long SIOCSIFSLAVE; -extern const long SIOCSIFTXQLEN; -extern const long SIOCSPGRP; -extern const long SIOCSRARP; -extern const long SIOGIFINDEX; +extern const uint64_t SIOCADDDLCI; +extern const uint64_t SIOCADDMULTI; +extern const uint64_t SIOCADDRT; +extern const uint64_t SIOCATMARK; +extern const uint64_t SIOCDARP; +extern const uint64_t SIOCDELDLCI; +extern const uint64_t SIOCDELMULTI; +extern const uint64_t SIOCDELRT; +extern const uint64_t SIOCDEVPRIVATE; +extern const uint64_t SIOCDIFADDR; +extern const uint64_t SIOCDRARP; +extern const uint64_t SIOCGARP; +extern const uint64_t SIOCGIFADDR; +extern const uint64_t SIOCGIFBR; +extern const uint64_t SIOCGIFBRDADDR; +extern const uint64_t SIOCGIFCONF; +extern const uint64_t SIOCGIFCOUNT; +extern const uint64_t SIOCGIFDSTADDR; +extern const uint64_t SIOCGIFENCAP; +extern const uint64_t SIOCGIFFLAGS; +extern const uint64_t SIOCGIFHWADDR; +extern const uint64_t SIOCGIFINDEX; +extern const uint64_t SIOCGIFMAP; +extern const uint64_t SIOCGIFMEM; +extern const uint64_t SIOCGIFMETRIC; +extern const uint64_t SIOCGIFMTU; +extern const uint64_t SIOCGIFNAME; +extern const uint64_t SIOCGIFNETMASK; +extern const uint64_t SIOCGIFPFLAGS; +extern const uint64_t SIOCGIFSLAVE; +extern const uint64_t SIOCGIFTXQLEN; +extern const uint64_t SIOCGPGRP; +extern const uint64_t SIOCGRARP; +extern const uint64_t SIOCGSTAMP; +extern const uint64_t SIOCGSTAMPNS; +extern const uint64_t SIOCPROTOPRIVATE; +extern const uint64_t SIOCRTMSG; +extern const uint64_t SIOCSARP; +extern const uint64_t SIOCSIFADDR; +extern const uint64_t SIOCSIFBR; +extern const uint64_t SIOCSIFBRDADDR; +extern const uint64_t SIOCSIFDSTADDR; +extern const uint64_t SIOCSIFENCAP; +extern const uint64_t SIOCSIFFLAGS; +extern const uint64_t SIOCSIFHWADDR; +extern const uint64_t SIOCSIFHWBROADCAST; +extern const uint64_t SIOCSIFLINK; +extern const uint64_t SIOCSIFMAP; +extern const uint64_t SIOCSIFMEM; +extern const uint64_t SIOCSIFMETRIC; +extern const uint64_t SIOCSIFMTU; +extern const uint64_t SIOCSIFNAME; +extern const uint64_t SIOCSIFNETMASK; +extern const uint64_t SIOCSIFPFLAGS; +extern const uint64_t SIOCSIFSLAVE; +extern const uint64_t SIOCSIFTXQLEN; +extern const uint64_t SIOCSPGRP; +extern const uint64_t SIOCSRARP; +extern const uint64_t SIOGIFINDEX; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/so.h b/libc/sysv/consts/so.h index 3c61cf7a0..0dfaa34c3 100644 --- a/libc/sysv/consts/so.h +++ b/libc/sysv/consts/so.h @@ -4,65 +4,65 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long LOCAL_PEERCRED; -extern const long SO_ACCEPTCONN; -extern const long SO_ATTACH_BPF; -extern const long SO_ATTACH_FILTER; -extern const long SO_ATTACH_REUSEPORT_CBPF; -extern const long SO_ATTACH_REUSEPORT_EBPF; -extern const long SO_BINDTODEVICE; -extern const long SO_BPF_EXTENSIONS; -extern const long SO_BROADCAST; -extern const long SO_BSDCOMPAT; -extern const long SO_BUSY_POLL; -extern const long SO_CNX_ADVICE; -extern const long SO_DEBUG; -extern const long SO_DETACH_BPF; -extern const long SO_DETACH_FILTER; -extern const long SO_DOMAIN; -extern const long SO_DONTROUTE; -extern const long SO_ERROR; -extern const long SO_EXCLUSIVEADDRUSE; -extern const long SO_GET_FILTER; -extern const long SO_INCOMING_CPU; -extern const long SO_KEEPALIVE; -extern const long SO_LINGER; -extern const long SO_LOCK_FILTER; -extern const long SO_MARK; -extern const long SO_MAX_PACING_RATE; -extern const long SO_NOFCS; -extern const long SO_NO_CHECK; -extern const long SO_OOBINLINE; -extern const long SO_PASSCRED; -extern const long SO_PASSSEC; -extern const long SO_PEEK_OFF; -extern const long SO_PEERCRED; -extern const long SO_PEERNAME; -extern const long SO_PEERSEC; -extern const long SO_PRIORITY; -extern const long SO_PROTOCOL; -extern const long SO_RCVBUF; -extern const long SO_RCVBUFFORCE; -extern const long SO_RCVLOWAT; -extern const long SO_RCVTIMEO; -extern const long SO_REUSEADDR; -extern const long SO_REUSEPORT; -extern const long SO_RXQ_OVFL; -extern const long SO_SECURITY_AUTHENTICATION; -extern const long SO_SECURITY_ENCRYPTION_NETWORK; -extern const long SO_SECURITY_ENCRYPTION_TRANSPORT; -extern const long SO_SELECT_ERR_QUEUE; -extern const long SO_SETFIB; -extern const long SO_SNDBUF; -extern const long SO_SNDBUFFORCE; -extern const long SO_SNDLOWAT; -extern const long SO_SNDTIMEO; -extern const long SO_TIMESTAMP; -extern const long SO_TIMESTAMPING; -extern const long SO_TIMESTAMPNS; -extern const long SO_TYPE; -extern const long SO_USELOOPBACK; -extern const long SO_WIFI_STATUS; +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; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sock.h b/libc/sysv/consts/sock.h index 0609ecdc9..bb3e285c5 100644 --- a/libc/sysv/consts/sock.h +++ b/libc/sysv/consts/sock.h @@ -4,15 +4,15 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SOCK_CLOEXEC; -extern const long SOCK_DCCP; -extern const long SOCK_DGRAM; -extern const long SOCK_NONBLOCK; -extern const long SOCK_PACKET; -extern const long SOCK_RAW; -extern const long SOCK_RDM; -extern const long SOCK_SEQPACKET; -extern const long SOCK_STREAM; +extern const int SOCK_CLOEXEC; +extern const int SOCK_DCCP; +extern const int SOCK_DGRAM; +extern const int SOCK_NONBLOCK; +extern const int SOCK_PACKET; +extern const int SOCK_RAW; +extern const int SOCK_RDM; +extern const int SOCK_SEQPACKET; +extern const int SOCK_STREAM; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/sol.h b/libc/sysv/consts/sol.h index f3a1d6f06..5143a630a 100644 --- a/libc/sysv/consts/sol.h +++ b/libc/sysv/consts/sol.h @@ -4,34 +4,34 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SOL_AAL; -extern const long SOL_ALG; -extern const long SOL_ATM; -extern const long SOL_BLUETOOTH; -extern const long SOL_CAIF; -extern const long SOL_DCCP; -extern const long SOL_DECNET; -extern const long SOL_ICMPV6; -extern const long SOL_IP; -extern const long SOL_IPV6; -extern const long SOL_IRDA; -extern const long SOL_IUCV; -extern const long SOL_KCM; -extern const long SOL_LLC; -extern const long SOL_NETBEUI; -extern const long SOL_NETLINK; -extern const long SOL_NFC; -extern const long SOL_PACKET; -extern const long SOL_PNPIPE; -extern const long SOL_PPPOL2TP; -extern const long SOL_RAW; -extern const long SOL_RDS; -extern const long SOL_RXRPC; -extern const long SOL_SOCKET; -extern const long SOL_TCP; -extern const long SOL_TIPC; -extern const long SOL_UDP; -extern const long SOL_X25; +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) */ diff --git a/libc/sysv/consts/splice.h b/libc/sysv/consts/splice.h index 256c137d8..1fbe1b358 100644 --- a/libc/sysv/consts/splice.h +++ b/libc/sysv/consts/splice.h @@ -4,10 +4,10 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SPLICE_F_GIFT; -extern const long SPLICE_F_MORE; -extern const long SPLICE_F_MOVE; -extern const long SPLICE_F_NONBLOCK; +extern const unsigned int SPLICE_F_GIFT; +extern const unsigned int SPLICE_F_MORE; +extern const unsigned int SPLICE_F_MOVE; +extern const unsigned int SPLICE_F_NONBLOCK; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/ss.h b/libc/sysv/consts/ss.h index a2414c41a..68d135fae 100644 --- a/libc/sysv/consts/ss.h +++ b/libc/sysv/consts/ss.h @@ -3,9 +3,9 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long SIGSTKSZ; -extern const long MINSIGSTKSZ; -extern const long SS_DISABLE; +extern const size_t SIGSTKSZ; +extern const size_t MINSIGSTKSZ; +extern const int SS_DISABLE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/st.h b/libc/sysv/consts/st.h index 73d5e9089..35398516d 100644 --- a/libc/sysv/consts/st.h +++ b/libc/sysv/consts/st.h @@ -18,18 +18,18 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long ST_APPEND; -extern const long ST_IMMUTABLE; -extern const long ST_MANDLOCK; -extern const long ST_NOATIME; -extern const long ST_NODEV; -extern const long ST_NODIRATIME; -extern const long ST_NOEXEC; -extern const long ST_NOSUID; -extern const long ST_RDONLY; -extern const long ST_RELATIME; -extern const long ST_SYNCHRONOUS; -extern const long ST_WRITE; +extern const unsigned long ST_APPEND; +extern const unsigned long ST_IMMUTABLE; +extern const unsigned long ST_MANDLOCK; +extern const unsigned long ST_NOATIME; +extern const unsigned long ST_NODEV; +extern const unsigned long ST_NODIRATIME; +extern const unsigned long ST_NOEXEC; +extern const unsigned long ST_NOSUID; +extern const unsigned long ST_RDONLY; +extern const unsigned long ST_RELATIME; +extern const unsigned long ST_SYNCHRONOUS; +extern const unsigned long ST_WRITE; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/tcp.h b/libc/sysv/consts/tcp.h index 0fd438a65..766480282 100644 --- a/libc/sysv/consts/tcp.h +++ b/libc/sysv/consts/tcp.h @@ -4,37 +4,37 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long TCP_CC_INFO; -extern const long TCP_CONGESTION; -extern const long TCP_COOKIE_TRANSACTIONS; -extern const long TCP_CORK; -extern const long TCP_DEFER_ACCEPT; -extern const long TCP_FASTOPEN; -extern const long TCP_FASTOPEN_CONNECT; -extern const long TCP_INFO; -extern const long TCP_KEEPCNT; -extern const long TCP_KEEPIDLE; -extern const long TCP_KEEPINTVL; -extern const long TCP_LINGER2; -extern const long TCP_MAXSEG; -extern const long TCP_MD5SIG; -extern const long TCP_MD5SIG_MAXKEYLEN; -extern const long TCP_NODELAY; -extern const long TCP_NOTSENT_LOWAT; -extern const long TCP_QUEUE_SEQ; -extern const long TCP_QUICKACK; -extern const long TCP_REPAIR; -extern const long TCP_REPAIR_OPTIONS; -extern const long TCP_REPAIR_QUEUE; -extern const long TCP_SAVED_SYN; -extern const long TCP_SAVE_SYN; -extern const long TCP_SYNCNT; -extern const long TCP_THIN_DUPACK; -extern const long TCP_THIN_LINEAR_TIMEOUTS; -extern const long TCP_TIMESTAMP; -extern const long TCP_ULP; -extern const long TCP_USER_TIMEOUT; -extern const long TCP_WINDOW_CLAMP; +extern const int TCP_CC_INFO; +extern const int TCP_CONGESTION; +extern const int TCP_COOKIE_TRANSACTIONS; +extern const int TCP_CORK; +extern const int TCP_DEFER_ACCEPT; +extern const int TCP_FASTOPEN; +extern const int TCP_FASTOPEN_CONNECT; +extern const int TCP_INFO; +extern const int TCP_KEEPCNT; +extern const int TCP_KEEPIDLE; +extern const int TCP_KEEPINTVL; +extern const int TCP_LINGER2; +extern const int TCP_MAXSEG; +extern const int TCP_MD5SIG; +extern const int TCP_MD5SIG_MAXKEYLEN; +extern const int TCP_NODELAY; +extern const int TCP_NOTSENT_LOWAT; +extern const int TCP_QUEUE_SEQ; +extern const int TCP_QUICKACK; +extern const int TCP_REPAIR; +extern const int TCP_REPAIR_OPTIONS; +extern const int TCP_REPAIR_QUEUE; +extern const int TCP_SAVED_SYN; +extern const int TCP_SAVE_SYN; +extern const int TCP_SYNCNT; +extern const int TCP_THIN_DUPACK; +extern const int TCP_THIN_LINEAR_TIMEOUTS; +extern const int TCP_TIMESTAMP; +extern const int TCP_ULP; +extern const int TCP_USER_TIMEOUT; +extern const int TCP_WINDOW_CLAMP; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/termios.h b/libc/sysv/consts/termios.h index ed3edd650..cc770a566 100644 --- a/libc/sysv/consts/termios.h +++ b/libc/sysv/consts/termios.h @@ -4,175 +4,181 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long BRKINT; -extern const long BS1; -extern const long BS2; -extern const long BSDLY; +extern const uint32_t BRKINT; +extern const uint32_t BS0; +extern const uint32_t BS1; +extern const uint32_t BS2; +extern const uint32_t BSDLY; extern const long BUSY; extern const long CANBSIZ; -extern const long CBAUD; -extern const long CBAUDEX; -extern const long CIBAUD; -extern const long CLOCAL; -extern const long CMSPAR; -extern const long CR1; -extern const long CR2; -extern const long CR3; -extern const long CRDLY; -extern const long CREAD; -extern const long CS5; -extern const long CS6; -extern const long CS7; -extern const long CS8; -extern const long CSIZE; -extern const long CSTOPB; -extern const long ECHO; -extern const long ECHOCTL; -extern const long ECHOE; -extern const long ECHOK; -extern const long ECHOKE; -extern const long ECHONL; -extern const long ECHOPRT; +extern const uint32_t CBAUD; +extern const uint32_t CBAUDEX; +extern const uint32_t CIBAUD; +extern const uint32_t CLOCAL; +extern const uint32_t CMSPAR; +extern const uint32_t CR0; +extern const uint32_t CR1; +extern const uint32_t CR2; +extern const uint32_t CR3; +extern const uint32_t CRDLY; +extern const uint32_t CREAD; +extern const uint32_t CS5; +extern const uint32_t CS6; +extern const uint32_t CS7; +extern const uint32_t CS8; +extern const uint32_t CSIZE; +extern const uint32_t CSTOPB; +extern const uint32_t ECHO; +extern const uint32_t ECHOCTL; +extern const uint32_t ECHOE; +extern const uint32_t ECHOK; +extern const uint32_t ECHOKE; +extern const uint32_t ECHONL; +extern const uint32_t ECHOPRT; extern const long ENDRUNDISC; extern const long EXTA; extern const long EXTB; extern const long EXTPROC; -extern const long FF1; -extern const long FF2; -extern const long FFDLY; -extern const long FLUSHO; +extern const uint32_t FF0; +extern const uint32_t FF1; +extern const uint32_t FF2; +extern const uint32_t FFDLY; +extern const uint32_t FLUSHO; extern const long H4DISC; -extern const long HUPCL; -extern const long ICANON; -extern const long ICRNL; -extern const long IEXTEN; -extern const long IGNBRK; -extern const long IGNCR; -extern const long IGNPAR; -extern const long IMAXBEL; -extern const long INLCR; -extern const long INPCK; -extern const long ISIG; -extern const long ISTRIP; -extern const long IUCLC; -extern const long IUTF8; -extern const long IXANY; -extern const long IXOFF; -extern const long IXON; +extern const uint32_t HUPCL; +extern const uint32_t ICANON; +extern const uint32_t ICRNL; +extern const uint32_t IEXTEN; +extern const uint32_t IGNBRK; +extern const uint32_t IGNCR; +extern const uint32_t IGNPAR; +extern const uint32_t IMAXBEL; +extern const uint32_t INLCR; +extern const uint32_t INPCK; +extern const uint32_t ISIG; +extern const uint32_t ISTRIP; +extern const uint32_t IUCLC; +extern const uint32_t IUTF8; +extern const uint32_t IXANY; +extern const uint32_t IXOFF; +extern const uint32_t IXON; extern const long NETGRAPHDISC; -extern const long NL1; -extern const long NL2; -extern const long NL3; -extern const long NLDLY; +extern const uint32_t NL0; +extern const uint32_t NL1; +extern const uint32_t NL2; +extern const uint32_t NL3; +extern const uint32_t NLDLY; extern const long NMEADISC; -extern const long NOFLSH; -extern const long OCRNL; -extern const long OFDEL; -extern const long OFILL; -extern const long OLCUC; -extern const long ONLCR; -extern const long ONLRET; -extern const long ONOCR; -extern const long OPOST; -extern const long PARENB; -extern const long PARMRK; -extern const long PARODD; -extern const long PENDIN; +extern const uint32_t NOFLSH; +extern const uint32_t OCRNL; +extern const uint32_t OFDEL; +extern const uint32_t OFILL; +extern const uint32_t OLCUC; +extern const uint32_t ONLCR; +extern const uint32_t ONLRET; +extern const uint32_t ONOCR; +extern const uint32_t OPOST; +extern const uint32_t PARENB; +extern const uint32_t PARMRK; +extern const uint32_t PARODD; +extern const uint32_t PENDIN; extern const long PPPDISC; extern const long SLIPDISC; extern const long STRIPDISC; -extern const long TAB1; -extern const long TAB2; -extern const long TAB3; -extern const long TABDLY; +extern const uint32_t TAB0; +extern const uint32_t TAB1; +extern const uint32_t TAB2; +extern const uint32_t TAB3; +extern const uint32_t TABDLY; extern const long TABLDISC; -extern const long TCFLSH; -extern const long TCGETS; -extern const long TCIFLUSH; -extern const long TCIOFF; -extern const long TCIOFLUSH; -extern const long TCION; -extern const long TCOFLUSH; -extern const long TCOOFF; -extern const long TCOON; -extern const long TCSADRAIN; -extern const long TCSAFLUSH; -extern const long TCSANOW; -extern const long TCSBRK; -extern const long TCSETS; -extern const long TCSETSF; -extern const long TCSETSW; -extern const long TCXONC; -extern const long TIOCCBRK; -extern const long TIOCCDTR; -extern const long TIOCCHKVERAUTH; -extern const long TIOCCONS; -extern const long TIOCDRAIN; -extern const long TIOCEXT; -extern const long TIOCFLAG_CLOCAL; -extern const long TIOCFLAG_MDMBUF; -extern const long TIOCFLAG_PPS; -extern const long TIOCFLAG_SOFTCAR; -extern const long TIOCFLUSH; -extern const long TIOCGDRAINWAIT; -extern const long TIOCGETD; -extern const long TIOCGFLAGS; -extern const long TIOCGPGRP; -extern const long TIOCGPTN; -extern const long TIOCGSID; -extern const long TIOCGTSTAMP; -extern const long TIOCGWINSZ; -extern const long TIOCNOTTY; -extern const long TIOCNXCL; -extern const long TIOCOUTQ; -extern const long TIOCPTMASTER; -extern const long TIOCREMOTE; -extern const long TIOCSBRK; -extern const long TIOCSCTTY; -extern const long TIOCSDRAINWAIT; -extern const long TIOCSDTR; -extern const long TIOCSERGETLSR; -extern const long TIOCSERGETMULTI; -extern const long TIOCSERSETMULTI; -extern const long TIOCSER_TEMT; -extern const long TIOCSETD; -extern const long TIOCSETVERAUTH; -extern const long TIOCSFLAGS; -extern const long TIOCSIG; -extern const long TIOCSPGRP; -extern const long TIOCSTART; -extern const long TIOCSTAT; -extern const long TIOCSTI; -extern const long TIOCSTOP; -extern const long TIOCSTSTAMP; -extern const long TIOCSWINSZ; -extern const long TIOCTIMESTAMP; -extern const long TIOCUCNTL_CBRK; +extern const uint64_t TCFLSH; +extern const uint64_t TCGETS; +extern const int TCIFLUSH; +extern const int TCIOFF; +extern const int TCIOFLUSH; +extern const int TCION; +extern const int TCOFLUSH; +extern const int TCOOFF; +extern const int TCOON; +extern const int TCSADRAIN; +extern const int TCSAFLUSH; +extern const int TCSANOW; +extern const uint64_t TCSBRK; +extern const uint64_t TCSETS; +extern const uint64_t TCSETSF; +extern const uint64_t TCSETSW; +extern const uint64_t TCXONC; +extern const uint64_t TIOCCBRK; +extern const uint64_t TIOCCDTR; +extern const uint64_t TIOCCHKVERAUTH; +extern const uint64_t TIOCCONS; +extern const uint64_t TIOCDRAIN; +extern const uint64_t TIOCEXT; +extern const uint64_t TIOCFLAG_CLOCAL; +extern const uint64_t TIOCFLAG_MDMBUF; +extern const uint64_t TIOCFLAG_PPS; +extern const uint64_t TIOCFLAG_SOFTCAR; +extern const uint64_t TIOCFLUSH; +extern const uint64_t TIOCGDRAINWAIT; +extern const uint64_t TIOCGETD; +extern const uint64_t TIOCGFLAGS; +extern const uint64_t TIOCGPGRP; +extern const uint64_t TIOCGPTN; +extern const uint64_t TIOCGSID; +extern const uint64_t TIOCGTSTAMP; +extern const uint64_t TIOCGWINSZ; +extern const uint64_t TIOCNOTTY; +extern const uint64_t TIOCNXCL; +extern const uint64_t TIOCOUTQ; +extern const uint64_t TIOCPTMASTER; +extern const uint64_t TIOCREMOTE; +extern const uint64_t TIOCSBRK; +extern const uint64_t TIOCSCTTY; +extern const uint64_t TIOCSDRAINWAIT; +extern const uint64_t TIOCSDTR; +extern const uint64_t TIOCSERGETLSR; +extern const uint64_t TIOCSERGETMULTI; +extern const uint64_t TIOCSERSETMULTI; +extern const uint64_t TIOCSER_TEMT; +extern const uint64_t TIOCSETD; +extern const uint64_t TIOCSETVERAUTH; +extern const uint64_t TIOCSFLAGS; +extern const uint64_t TIOCSIG; +extern const uint64_t TIOCSPGRP; +extern const uint64_t TIOCSTART; +extern const uint64_t TIOCSTAT; +extern const uint64_t TIOCSTI; +extern const uint64_t TIOCSTOP; +extern const uint64_t TIOCSTSTAMP; +extern const uint64_t TIOCSWINSZ; +extern const uint64_t TIOCTIMESTAMP; +extern const uint64_t TIOCUCNTL_CBRK; extern const long TOSTOP; extern const long TTYDISC; -extern const long VDISCARD; -extern const long VEOF; -extern const long VEOL2; -extern const long VEOL; -extern const long VERASE; +extern const uint8_t VDISCARD; +extern const uint8_t VEOF; +extern const uint8_t VEOL2; +extern const uint8_t VEOL; +extern const uint8_t VERASE; extern const long VERIFY; -extern const long VINTR; -extern const long VKILL; -extern const long VLNEXT; -extern const long VMIN; -extern const long VQUIT; -extern const long VREPRINT; -extern const long VSTART; -extern const long VSTOP; -extern const long VSUSP; -extern const long VSWTC; -extern const long VT1; -extern const long VT2; -extern const long VTDLY; -extern const long VTIME; -extern const long VWERASE; -extern const long XCASE; -extern const long XTABS; +extern const uint8_t VINTR; +extern const uint8_t VKILL; +extern const uint8_t VLNEXT; +extern const uint8_t VMIN; +extern const uint8_t VQUIT; +extern const uint8_t VREPRINT; +extern const uint8_t VSTART; +extern const uint8_t VSTOP; +extern const uint8_t VSUSP; +extern const uint8_t VSWTC; +extern const uint32_t VT0; +extern const uint32_t VT1; +extern const uint32_t VT2; +extern const uint32_t VTDLY; +extern const uint8_t VTIME; +extern const uint8_t VWERASE; +extern const uint32_t XCASE; +extern const uint32_t XTABS; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/unmount.h b/libc/sysv/consts/unmount.h index cc1f4bb1d..f18989b49 100644 --- a/libc/sysv/consts/unmount.h +++ b/libc/sysv/consts/unmount.h @@ -4,11 +4,11 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long MNT_FORCE; -extern const long MNT_DETACH; -extern const long MNT_EXPIRE; -extern const long UMOUNT_NOFOLLOW; -extern const long MNT_BYFSID; +extern const int MNT_FORCE; +extern const int MNT_DETACH; +extern const int MNT_EXPIRE; +extern const int UMOUNT_NOFOLLOW; +extern const int MNT_BYFSID; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/w.h b/libc/sysv/consts/w.h index 571a6be32..f026ab3b1 100644 --- a/libc/sysv/consts/w.h +++ b/libc/sysv/consts/w.h @@ -4,9 +4,9 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long WNOHANG; -extern const long WUNTRACED; -extern const long WCONTINUED; +extern const int WNOHANG; +extern const int WUNTRACED; +extern const int WCONTINUED; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ diff --git a/libc/sysv/consts/waitid.h b/libc/sysv/consts/waitid.h index 3bfd2a4e1..d12c5bd97 100644 --- a/libc/sysv/consts/waitid.h +++ b/libc/sysv/consts/waitid.h @@ -4,9 +4,9 @@ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ -extern const long WEXITED; -extern const long WSTOPPED; -extern const long WNOWAIT; +extern const int WEXITED; +extern const int WSTOPPED; +extern const int WNOWAIT; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */