mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
3d2cf95af1
This change also fixes a bug with gettid() being incorrect after fork(). We now implement the ENOENT behavior for getauxval(). The getuid() etc. system calls are now faster too. Plus issetugid() will work on BSDs.
15 lines
388 B
C
15 lines
388 B
C
#ifndef COSMOPOLITAN_LIBC_CALLS__GETAUXVAL_H_
|
|
#define COSMOPOLITAN_LIBC_CALLS__GETAUXVAL_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
struct AuxiliaryValue {
|
|
unsigned long value;
|
|
bool isfound;
|
|
};
|
|
|
|
struct AuxiliaryValue _getauxval(unsigned long);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS__GETAUXVAL_H_ */
|