mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 01:38:30 +00:00
Remove malloc() dependency on pledge() / unveil()
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.
This commit is contained in:
parent
c921dc78f0
commit
3d2cf95af1
33 changed files with 270 additions and 100 deletions
15
libc/calls/_getauxval.internal.h
Normal file
15
libc/calls/_getauxval.internal.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#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_ */
|
Loading…
Add table
Add a link
Reference in a new issue