2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
2023-08-14 03:31:27 +00:00
|
|
|
#ifdef _COSMO_SOURCE
|
2023-06-09 06:44:03 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2020-06-15 14:18:57 +00:00
|
|
|
|
2023-06-09 06:44:03 +00:00
|
|
|
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
|
2022-09-11 18:02:07 +00:00
|
|
|
#define FUTEX_PRIVATE_FLAG 128
|
|
|
|
|
2022-05-27 20:25:46 +00:00
|
|
|
#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)
|
2020-06-15 14:18:57 +00:00
|
|
|
|
2022-09-11 18:02:07 +00:00
|
|
|
#define FUTEX_WAIT_BITSET 9
|
|
|
|
#define FUTEX_CLOCK_REALTIME 256
|
|
|
|
#define FUTEX_BITSET_MATCH_ANY 0xffffffff
|
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2023-08-14 03:31:27 +00:00
|
|
|
#endif /* _COSMO_SOURCE */
|
2020-06-15 14:18:57 +00:00
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_ */
|