mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
de5de19004
- Document redbean's argon2 module - Fix regressions in cthreads library - Make testlib work better with threads - Give the cthreads library lots of love - Remove some of the stdio assembly code - Implement getloadavg() across platforms - Code size optimizations for errnos, etc. - Only check for signals in main thread on Windows - Make errnos for dup2 / dup3 consistent with posix This change also fixes a bug in the argon2 module, where the NUL terminator was being included in the hash encoded ascii string. This shouldn't require any database migrations to folks who found this module and productionized it, since the argon2 library treats it as a c string.
23 lines
853 B
C
23 lines
853 B
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
|
#include "libc/runtime/symbolic.h"
|
|
|
|
#define FUTEX_WAIT SYMBOLIC(FUTEX_WAIT)
|
|
#define FUTEX_WAKE SYMBOLIC(FUTEX_WAKE)
|
|
#define FUTEX_REQUEUE SYMBOLIC(FUTEX_REQUEUE)
|
|
#define FUTEX_PRIVATE_FLAG SYMBOLIC(FUTEX_PRIVATE_FLAG)
|
|
#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)
|
|
|
|
#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;
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_ */
|