mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-30 06:20:28 +00:00
Improve system call polyfills
- Polyfill open() w/ O_CLOEXEC on RHEL5 - Remove old workaround from rmdir() on the New Technology - preadv() and pwritev() are now smarter about demodernization - preadv() and pwritev() are now available on the New Technology
This commit is contained in:
parent
816b0e1851
commit
0ad609268f
21 changed files with 260 additions and 117 deletions
2
libc/sysv/consts/AT_FLAGS.S
Normal file
2
libc/sysv/consts/AT_FLAGS.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon auxv,AT_FLAGS,8,0,0,0,0,0
|
2
libc/sysv/consts/AT_HWCAP.S
Normal file
2
libc/sysv/consts/AT_HWCAP.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon auxv,AT_HWCAP,16,0,0,0,0,0
|
2
libc/sysv/consts/AT_HWCAP2.S
Normal file
2
libc/sysv/consts/AT_HWCAP2.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon auxv,AT_HWCAP2,26,0,0,0,0,0
|
|
@ -13,7 +13,10 @@ extern const long AT_ENTRY;
|
|||
extern const long AT_EUID;
|
||||
extern const long AT_EXECFD;
|
||||
extern const long AT_EXECFN;
|
||||
extern const long AT_FLAGS;
|
||||
extern const long AT_GID;
|
||||
extern const long AT_HWCAP2;
|
||||
extern const long AT_HWCAP;
|
||||
extern const long AT_ICACHEBSIZE;
|
||||
extern const long AT_NOTELF;
|
||||
extern const long AT_NO_AUTOMOUNT;
|
||||
|
@ -41,7 +44,10 @@ COSMOPOLITAN_C_END_
|
|||
#define AT_EUID SYMBOLIC(AT_EUID)
|
||||
#define AT_EXECFD SYMBOLIC(AT_EXECFD)
|
||||
#define AT_EXECFN SYMBOLIC(AT_EXECFN)
|
||||
#define AT_FLAGS SYMBOLIC(AT_FLAGS)
|
||||
#define AT_GID SYMBOLIC(AT_GID)
|
||||
#define AT_HWCAP SYMBOLIC(AT_HWCAP)
|
||||
#define AT_HWCAP2 SYMBOLIC(AT_HWCAP2)
|
||||
#define AT_ICACHEBSIZE SYMBOLIC(AT_ICACHEBSIZE)
|
||||
#define AT_NOTELF SYMBOLIC(AT_NOTELF)
|
||||
#define AT_NO_AUTOMOUNT SYMBOLIC(AT_NO_AUTOMOUNT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue