cosmopolitan/libc/sysv/consts/shm.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

41 lines
1.1 KiB
C

#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SHM_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SHM_H_
#define SHM_ANON SHM_ANON
#define SHM_DEST SHM_DEST
#define SHM_EXEC SHM_EXEC
#define SHM_HUGETLB SHM_HUGETLB
#define SHM_INFO SHM_INFO
#define SHM_LOCK SHM_LOCK
#define SHM_LOCKED SHM_LOCKED
#define SHM_NORESERVE SHM_NORESERVE
#define SHM_R SHM_R
#define SHM_RDONLY SHM_RDONLY
#define SHM_REMAP SHM_REMAP
#define SHM_RND SHM_RND
#define SHM_STAT SHM_STAT
#define SHM_UNLOCK SHM_UNLOCK
#define SHM_W SHM_W
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const char *SHM_ANON;
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) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SHM_H_ */