cosmopolitan/libc/sysv/consts/st.h
Justine Tunney 23e235b7a5
Fix bugs in cosmocc toolchain
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from
https://github.com/ahgamut/musl-cross-make/ which fixes the issues we
were having with our C language extension for symbolic constants. This
change also performs some code cleanup and bug fixes to getaddrinfo().
It's now possible to compile projects like ncurses, readline and python
without needing to patch anything upstream, except maybe a line or two.
Pretty soon it should be possible to build a Linux distro on Cosmo.
2023-06-08 23:44:03 -07:00

47 lines
1.5 KiB
C

#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_ST_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_ST_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const int ST_APPEND;
extern const int ST_IMMUTABLE;
extern const int ST_MANDLOCK;
extern const int ST_NOATIME;
extern const int ST_NODEV;
extern const int ST_NODIRATIME;
extern const int ST_NOEXEC;
extern const int ST_NOSUID;
extern const int ST_RDONLY;
extern const int ST_RELATIME;
extern const int ST_SYNCHRONOUS;
extern const int ST_WRITE;
#define ST_APPEND ST_APPEND
#define ST_IMMUTABLE ST_IMMUTABLE
#define ST_MANDLOCK ST_MANDLOCK
#define ST_NOATIME ST_NOATIME
#define ST_NODEV ST_NODEV
#define ST_NODIRATIME ST_NODIRATIME
#define ST_NOEXEC ST_NOEXEC
#define ST_NOSUID ST_NOSUID
#define ST_RDONLY ST_RDONLY
#define ST_RELATIME ST_RELATIME
#define ST_SYNCHRONOUS ST_SYNCHRONOUS
#define ST_WRITE ST_WRITE
#define __tmpcosmo_ST_APPEND -1388286836
#define __tmpcosmo_ST_IMMUTABLE 1267544033
#define __tmpcosmo_ST_MANDLOCK -2094813813
#define __tmpcosmo_ST_NOATIME 771964228
#define __tmpcosmo_ST_NODEV -836140326
#define __tmpcosmo_ST_NODIRATIME 152697025
#define __tmpcosmo_ST_NOEXEC 315123377
#define __tmpcosmo_ST_NOSUID -1060040535
#define __tmpcosmo_ST_RDONLY 237934379
#define __tmpcosmo_ST_RELATIME -1170584536
#define __tmpcosmo_ST_SYNCHRONOUS 1353832369
#define __tmpcosmo_ST_WRITE -317138758
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_ST_H_ */