mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from https://github.com/ahgamut/musl-cross-make/ which fixes the issues we were having with our C language extension for symbolic constants. This change also performs some code cleanup and bug fixes to getaddrinfo(). It's now possible to compile projects like ncurses, readline and python without needing to patch anything upstream, except maybe a line or two. Pretty soon it should be possible to build a Linux distro on Cosmo.
27 lines
853 B
C
27 lines
853 B
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
|
#ifdef COSMO
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const int FUTEX_WAIT;
|
|
extern const int FUTEX_WAKE;
|
|
extern const int FUTEX_REQUEUE;
|
|
|
|
#define FUTEX_WAIT FUTEX_WAIT
|
|
#define FUTEX_WAKE FUTEX_WAKE
|
|
#define FUTEX_REQUEUE FUTEX_REQUEUE
|
|
#define FUTEX_PRIVATE_FLAG 128
|
|
|
|
#define FUTEX_WAIT_PRIVATE (FUTEX_WAIT | FUTEX_PRIVATE_FLAG)
|
|
#define FUTEX_WAKE_PRIVATE (FUTEX_WAKE | FUTEX_PRIVATE_FLAG)
|
|
#define FUTEX_REQUEUE_PRIVATE (FUTEX_REQUEUE | FUTEX_PRIVATE_FLAG)
|
|
|
|
#define FUTEX_WAIT_BITSET 9
|
|
#define FUTEX_CLOCK_REALTIME 256
|
|
#define FUTEX_BITSET_MATCH_ANY 0xffffffff
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMO */
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_ */
|