Add sys_ prefix to unwrapped system calls

This change also implements getlogin() and getlogin_r().
This commit is contained in:
Justine Tunney 2022-09-13 11:20:35 -07:00
parent 8f5678882d
commit aab4ee4072
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
811 changed files with 1112 additions and 1796 deletions

View file

@ -97,7 +97,6 @@ int flock(int, int);
int fork(void); int fork(void);
int fsync(int); int fsync(int);
int ftruncate(int, int64_t); int ftruncate(int, int64_t);
int getdents(unsigned, void *, unsigned, long *);
int getdomainname(char *, size_t); int getdomainname(char *, size_t);
int getegid(void) nosideeffect; int getegid(void) nosideeffect;
int geteuid(void) nosideeffect; int geteuid(void) nosideeffect;
@ -114,7 +113,7 @@ int getresuid(uint32_t *, uint32_t *, uint32_t *);
int getsid(int) nosideeffect libcesque; int getsid(int) nosideeffect libcesque;
int gettid(void) libcesque; int gettid(void) libcesque;
int getuid(void) libcesque; int getuid(void) libcesque;
int iopl(int); int sys_iopl(int);
int ioprio_get(int, int); int ioprio_get(int, int);
int ioprio_set(int, int, int); int ioprio_set(int, int, int);
int issetugid(void); int issetugid(void);
@ -133,11 +132,11 @@ int mkfifo(const char *, uint32_t);
int mkfifoat(int, const char *, uint32_t); int mkfifoat(int, const char *, uint32_t);
int mknod(const char *, uint32_t, uint64_t); int mknod(const char *, uint32_t, uint64_t);
int mknodat(int, const char *, int32_t, uint64_t); int mknodat(int, const char *, int32_t, uint64_t);
int mlock(const void *, size_t); int sys_mlock(const void *, size_t);
int mlock2(const void *, size_t, int); int sys_mlock2(const void *, size_t, int);
int mlockall(int); int sys_mlockall(int);
int munlock(const void *, size_t); int sys_munlock(const void *, size_t);
int munlockall(void); int sys_munlockall(void);
int nice(int); int nice(int);
int open(const char *, int, ...); int open(const char *, int, ...);
int openat(int, const char *, int, ...); int openat(int, const char *, int, ...);
@ -179,7 +178,7 @@ int symlink(const char *, const char *);
int symlinkat(const char *, int, const char *); int symlinkat(const char *, int, const char *);
int sync_file_range(int, int64_t, int64_t, unsigned); int sync_file_range(int, int64_t, int64_t, unsigned);
int sys_ptrace(int, ...); int sys_ptrace(int, ...);
int sysctl(const int *, unsigned, void *, size_t *, void *, size_t); int sys_sysctl(const int *, unsigned, void *, size_t *, void *, size_t);
int tcsetpgrp(int, int32_t); int tcsetpgrp(int, int32_t);
int tgkill(int, int, int); int tgkill(int, int, int);
int tkill(int, int); int tkill(int, int);

View file

@ -54,7 +54,7 @@ static unsigned GetCpuCountBsd(void) {
} else { } else {
cmd[1] = HW_NCPU; cmd[1] = HW_NCPU;
} }
if (!sysctl(cmd, 2, &c, &n, 0, 0)) { if (!sys_sysctl(cmd, 2, &c, &n, 0, 0)) {
return c; return c;
} else { } else {
return 0; return 0;

View file

@ -24,7 +24,7 @@
int gethostname_bsd(char *name, size_t len, int kind) { int gethostname_bsd(char *name, size_t len, int kind) {
int cmd[2] = {CTL_KERN, kind}; int cmd[2] = {CTL_KERN, kind};
if (sysctl(cmd, 2, name, &len, 0, 0) != -1) { if (sys_sysctl(cmd, 2, name, &len, 0, 0) != -1) {
return 0; return 0;
} else { } else {
if (errno == ENOMEM) { if (errno == ENOMEM) {

View file

@ -17,10 +17,10 @@
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
#include "libc/intrin/strace.internal.h"
#include "libc/calls/struct/sysinfo.h" #include "libc/calls/struct/sysinfo.h"
#include "libc/calls/syscall-nt.internal.h" #include "libc/calls/syscall-nt.internal.h"
#include "libc/dce.h" #include "libc/dce.h"
#include "libc/intrin/strace.internal.h"
#include "libc/sysv/errfuns.h" #include "libc/sysv/errfuns.h"
#define CTL_VM 2 #define CTL_VM 2
@ -62,7 +62,7 @@ int getloadavg(double *a, int n) {
struct loadavg loadinfo; struct loadavg loadinfo;
int mib[2] = {CTL_VM, VM_LOADAVG}; int mib[2] = {CTL_VM, VM_LOADAVG};
size = sizeof(loadinfo); size = sizeof(loadinfo);
if ((rc = sysctl(mib, 2, &loadinfo, &size, 0, 0)) != -1) { if ((rc = sys_sysctl(mib, 2, &loadinfo, &size, 0, 0)) != -1) {
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
a[i] = (double)loadinfo.ldavg[i] / loadinfo.fscale; a[i] = (double)loadinfo.ldavg[i] / loadinfo.fscale;
} }

View file

@ -113,7 +113,7 @@ static inline void GetProgramExecutableNameImpl(char *p, char *e) {
} }
u.cmd[3] = -1; // current process u.cmd[3] = -1; // current process
n = e - p; n = e - p;
if (sysctl(u.cmd, ARRAYLEN(u.cmd), p, &n, 0, 0) != -1) { if (sys_sysctl(u.cmd, ARRAYLEN(u.cmd), p, &n, 0, 0) != -1) {
return; return;
} }
} }

View file

@ -17,7 +17,6 @@
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
#include "libc/intrin/strace.internal.h"
#include "libc/calls/struct/sysinfo.h" #include "libc/calls/struct/sysinfo.h"
#include "libc/calls/struct/sysinfo.internal.h" #include "libc/calls/struct/sysinfo.internal.h"
#include "libc/calls/struct/timespec.h" #include "libc/calls/struct/timespec.h"
@ -25,6 +24,7 @@
#include "libc/calls/struct/vmmeter-meta.internal.h" #include "libc/calls/struct/vmmeter-meta.internal.h"
#include "libc/dce.h" #include "libc/dce.h"
#include "libc/intrin/asan.internal.h" #include "libc/intrin/asan.internal.h"
#include "libc/intrin/strace.internal.h"
#include "libc/macros.internal.h" #include "libc/macros.internal.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/errfuns.h" #include "libc/sysv/errfuns.h"
@ -39,7 +39,7 @@ static int64_t GetUptime(void) {
struct timeval x; struct timeval x;
size_t n = sizeof(x); size_t n = sizeof(x);
int mib[] = {CTL_KERN, KERN_BOOTTIME}; int mib[] = {CTL_KERN, KERN_BOOTTIME};
if (sysctl(mib, ARRAYLEN(mib), &x, &n, 0, 0) == -1) return 0; if (sys_sysctl(mib, ARRAYLEN(mib), &x, &n, 0, 0) == -1) return 0;
return _timespec_real().tv_sec - x.tv_sec; return _timespec_real().tv_sec - x.tv_sec;
} }
@ -47,7 +47,7 @@ static int64_t GetPhysmem(void) {
uint64_t x; uint64_t x;
size_t n = sizeof(x); size_t n = sizeof(x);
int mib[] = {CTL_HW, HW_PHYSMEM}; int mib[] = {CTL_HW, HW_PHYSMEM};
if (sysctl(mib, ARRAYLEN(mib), &x, &n, 0, 0) == -1) return 0; if (sys_sysctl(mib, ARRAYLEN(mib), &x, &n, 0, 0) == -1) return 0;
return x; return x;
} }

View file

@ -56,7 +56,7 @@ static void GetBsdStr(int c0, int c1, char *s) {
size_t n = SYS_NMLN; size_t n = SYS_NMLN;
int cmd[2] = {c0, c1}; int cmd[2] = {c0, c1};
bzero(s, n), --n; bzero(s, n), --n;
sysctl(cmd, 2, s, &n, NULL, 0); sys_sysctl(cmd, 2, s, &n, NULL, 0);
errno = e; errno = e;
// sysctl kern.version is too verbose for uname // sysctl kern.version is too verbose for uname
if ((p = strchr(s, '\n'))) { if ((p = strchr(s, '\n'))) {

View file

@ -28,6 +28,13 @@
sched_yield: sched_yield:
push %rbp push %rbp
mov %rsp,%rbp mov %rsp,%rbp
xor %eax,%eax
mov __hostos(%rip),%dl
#if SupportsMetal()
testb $METAL,%dl
jnz 9f
#endif
#if SupportsWindows() #if SupportsWindows()
// Windows Support // Windows Support
@ -39,7 +46,7 @@ sched_yield:
// threads ready to run and no user APCs are queued, the function // threads ready to run and no user APCs are queued, the function
// returns immediately, and the thread continues execution. // returns immediately, and the thread continues execution.
// Quoth MSDN // Quoth MSDN
testb IsWindows() testb $WINDOWS,%dl
jz 1f jz 1f
xor %ecx,%ecx xor %ecx,%ecx
xor %edx,%edx xor %edx,%edx

View file

@ -16,10 +16,10 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/intrin/_getauxval.internal.h"
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
#include "libc/dce.h" #include "libc/dce.h"
#include "libc/fmt/conv.h" #include "libc/fmt/conv.h"
#include "libc/intrin/_getauxval.internal.h"
#include "libc/runtime/clktck.h" #include "libc/runtime/clktck.h"
#include "libc/runtime/runtime.h" #include "libc/runtime/runtime.h"
#include "libc/sysv/consts/auxv.h" #include "libc/sysv/consts/auxv.h"
@ -49,7 +49,7 @@ static dontinline int __clk_tck_init(void) {
cmd[0] = 1; // CTL_KERN cmd[0] = 1; // CTL_KERN
cmd[1] = 12; // KERN_CLOCKRATE cmd[1] = 12; // KERN_CLOCKRATE
len = sizeof(clock); len = sizeof(clock);
if (sysctl(cmd, 2, &clock, &len, NULL, 0) != -1) { if (sys_sysctl(cmd, 2, &clock, &len, NULL, 0) != -1) {
x = clock.hz; x = clock.hz;
} else { } else {
x = -1; x = -1;

View file

@ -17,12 +17,12 @@
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
#include "libc/intrin/strace.internal.h"
#include "libc/calls/struct/ucontext-netbsd.internal.h" #include "libc/calls/struct/ucontext-netbsd.internal.h"
#include "libc/calls/syscall-sysv.internal.h" #include "libc/calls/syscall-sysv.internal.h"
#include "libc/dce.h" #include "libc/dce.h"
#include "libc/errno.h" #include "libc/errno.h"
#include "libc/intrin/asan.internal.h" #include "libc/intrin/asan.internal.h"
#include "libc/intrin/strace.internal.h"
#include "libc/limits.h" #include "libc/limits.h"
#include "libc/macros.internal.h" #include "libc/macros.internal.h"
#include "libc/nt/runtime.h" #include "libc/nt/runtime.h"
@ -200,7 +200,7 @@ static int CloneXnu(int (*fn)(void *), char *stk, size_t stksz, int flags,
static int broken; static int broken;
struct CloneArgs *wt; struct CloneArgs *wt;
if (!once) { if (!once) {
if (bsdthread_register(XnuThreadThunk, 0, 0, 0, 0, 0, 0) == -1) { if (sys_bsdthread_register(XnuThreadThunk, 0, 0, 0, 0, 0, 0) == -1) {
broken = errno; broken = errno;
} }
once = true; once = true;
@ -217,7 +217,8 @@ static int CloneXnu(int (*fn)(void *), char *stk, size_t stksz, int flags,
wt->ztid = flags & CLONE_CHILD_CLEARTID ? ctid : &wt->tid; wt->ztid = flags & CLONE_CHILD_CLEARTID ? ctid : &wt->tid;
wt->tls = flags & CLONE_SETTLS ? tls : 0; wt->tls = flags & CLONE_SETTLS ? tls : 0;
wt->lock._lock = 1; wt->lock._lock = 1;
if ((rc = bsdthread_create(fn, arg, wt, 0, PTHREAD_START_CUSTOM_XNU)) != -1) { if ((rc = sys_bsdthread_create(fn, arg, wt, 0, PTHREAD_START_CUSTOM_XNU)) !=
-1) {
pthread_spin_lock(&wt->lock); pthread_spin_lock(&wt->lock);
rc = wt->tid; rc = wt->tid;
pthread_spin_unlock(&wt->lock); pthread_spin_unlock(&wt->lock);

View file

@ -78,7 +78,7 @@ char *GetInterpreterExecutableName(char *p, size_t n) {
cmd[2] = 5; // KERN_PROC_PATHNAME cmd[2] = 5; // KERN_PROC_PATHNAME
} // } //
cmd[3] = -1; // current process cmd[3] = -1; // current process
if (sysctl(cmd, ARRAYLEN(cmd), p, &n, 0, 0) != -1) { if (sys_sysctl(cmd, ARRAYLEN(cmd), p, &n, 0, 0) != -1) {
errno = e; errno = e;
return p; return p;
} }

View file

@ -1,5 +1,5 @@
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi
Copyright 2022 Justine Alexandra Roberts Tunney Copyright 2022 Justine Alexandra Roberts Tunney
@ -16,8 +16,46 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/calls/syscall_support-nt.internal.h"
#include "libc/dce.h"
#include "libc/intrin/strace.internal.h"
#include "libc/macros.internal.h" #include "libc/macros.internal.h"
#include "libc/nt/accounting.h"
#include "libc/runtime/runtime.h"
#include "libc/str/str.h"
#include "libc/sysv/errfuns.h"
getdents64: int sys_getlogin(char *, uint32_t);
jmp getdents
.endfn getdents64,globl /**
* Returns login name.
*/
char *getlogin(void) {
uint32_t size;
const char *p, *res;
char16_t buf16[257];
static char login[128];
if (IsBsd()) {
if (sys_getlogin(login, sizeof(login)) != -1) {
res = login;
} else {
res = 0;
}
} else if (IsWindows()) {
size = ARRAYLEN(buf16);
if (GetUserName(&buf16, &size)) {
tprecode16to8(login, sizeof(login), buf16);
res = login;
} else {
__winerr();
res = 0;
}
} else if ((p = getenv("LOGNAME"))) {
res = p;
} else {
enoent();
res = 0;
}
STRACE("getlogin() → %#s% m", res);
return res;
}

View file

@ -1,5 +1,5 @@
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi
Copyright 2022 Justine Alexandra Roberts Tunney Copyright 2022 Justine Alexandra Roberts Tunney
@ -16,8 +16,46 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/calls/syscall_support-nt.internal.h"
#include "libc/dce.h"
#include "libc/intrin/kprintf.h"
#include "libc/intrin/strace.internal.h"
#include "libc/macros.internal.h" #include "libc/macros.internal.h"
#include "libc/nt/accounting.h"
#include "libc/runtime/runtime.h"
#include "libc/str/str.h"
#include "libc/sysv/errfuns.h"
prlimit64: int sys_getlogin(char *, uint32_t);
jmp prlimit
.endfn prlimit64,globl /**
* Returns login name.
*/
int getlogin_r(char *buf, size_t size) {
int rc;
uint32_t n32;
const char *p;
char16_t buf16[257];
if (IsBsd()) {
rc = sys_getlogin(buf, size);
} else if (IsWindows()) {
n32 = ARRAYLEN(buf16);
if (GetUserName(&buf16, &n32)) {
tprecode16to8(buf, sizeof(size), buf16);
rc = 0;
} else {
rc = __winerr();
}
} else if ((p = getenv("LOGNAME"))) {
if (strlen(p) < size) {
strcpy(buf, p);
rc = 0;
} else {
rc = enomem();
}
} else {
rc = enoent();
}
STRACE("getlogin_r([%#s], %'zu) → %d% m", rc != -1 ? buf : "n/a", size, rc);
return rc;
}

View file

@ -38,6 +38,7 @@ LIBC_RUNTIME_A_DIRECTDEPS = \
LIBC_FMT \ LIBC_FMT \
LIBC_INTRIN \ LIBC_INTRIN \
LIBC_NEXGEN32E \ LIBC_NEXGEN32E \
LIBC_NT_ADVAPI32 \
LIBC_NT_KERNEL32 \ LIBC_NT_KERNEL32 \
LIBC_STR \ LIBC_STR \
LIBC_STUBS \ LIBC_STUBS \

View file

@ -51,6 +51,8 @@
* has been done for five platforms, having a remarkably tiny footprint. * has been done for five platforms, having a remarkably tiny footprint.
*/ */
int sys_getdents(unsigned, void *, unsigned, long *);
/** /**
* Directory stream object. * Directory stream object.
*/ */
@ -375,8 +377,8 @@ static struct dirent *readdir_impl(DIR *dir) {
} else if (!IsWindows()) { } else if (!IsWindows()) {
if (dir->buf_pos >= dir->buf_end) { if (dir->buf_pos >= dir->buf_end) {
basep = dir->tell; /* TODO(jart): what does xnu do */ basep = dir->tell; /* TODO(jart): what does xnu do */
rc = getdents(dir->fd, dir->buf, sizeof(dir->buf) - 256, &basep); rc = sys_getdents(dir->fd, dir->buf, sizeof(dir->buf) - 256, &basep);
STRACE("getdents(%d) → %d% m", dir->fd, rc); STRACE("sys_getdents(%d) → %d% m", dir->fd, rc);
if (!rc || rc == -1) return NULL; if (!rc || rc == -1) return NULL;
dir->buf_pos = 0; dir->buf_pos = 0;
dir->buf_end = rc; dir->buf_end = rc;

View file

@ -17,7 +17,6 @@
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
#include "libc/intrin/strace.internal.h"
#include "libc/calls/struct/sigaction.h" #include "libc/calls/struct/sigaction.h"
#include "libc/calls/struct/sigset.h" #include "libc/calls/struct/sigset.h"
#include "libc/calls/syscall-sysv.internal.h" #include "libc/calls/syscall-sysv.internal.h"
@ -25,6 +24,7 @@
#include "libc/dce.h" #include "libc/dce.h"
#include "libc/errno.h" #include "libc/errno.h"
#include "libc/intrin/bits.h" #include "libc/intrin/bits.h"
#include "libc/intrin/strace.internal.h"
#include "libc/nexgen32e/kcpuids.h" #include "libc/nexgen32e/kcpuids.h"
#include "libc/nexgen32e/rdtsc.h" #include "libc/nexgen32e/rdtsc.h"
#include "libc/nexgen32e/vendor.internal.h" #include "libc/nexgen32e/vendor.internal.h"
@ -99,7 +99,7 @@ ssize_t getrandom(void *p, size_t n, unsigned f) {
cmd[1] = 81; /* KERN_ARND */ cmd[1] = 81; /* KERN_ARND */
} }
m = n; m = n;
if ((rc = sysctl(cmd, 2, p, &m, 0, 0)) != -1) { if ((rc = sys_sysctl(cmd, 2, p, &m, 0, 0)) != -1) {
rc = m; rc = m;
} }
} else if (have_getrandom) { } else if (have_getrandom) {

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_aclcheck_fd,0xffffff162fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_aclcheck_file,0xffffff161fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_aclcheck_link,0xffffff1acfffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_delete_fd,0xffffff160fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_delete_file,0xffffff15ffffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_delete_link,0xffffff1abfffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_get_fd,0xffffff15dfffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_get_file,0xffffff15bfffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_get_link,0xffffff1a9fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_set_fd,0xffffff15efffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_set_file,0xffffff15cfffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __acl_set_link,0xffffff1aafffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __cap_rights_get,0xffffff203fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __disable_threadsignal,0xfffffffff214bfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_execve,0xffffff19f217cfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_get_fd,0xffffff1822184fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_get_file,0xffffff183217efff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_get_link,0xffffff19a2180fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_get_mount,0xfffffffff21a9fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_get_pid,0xffffff1992186fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_get_proc,0xffffff1802182fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_getfsstat,0xfffffffff21aafff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_mount,0xfffffffff21a8fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_set_fd,0xffffff1842185fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_set_file,0xffffff185217ffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_set_link,0xffffff19b2181fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_set_proc,0xffffff1812183fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __mac_syscall,0xfffffffff217dfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __old_semwait_signal,0xfffffffff2172fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __old_semwait_signal_nocancel,0xfffffffff2173fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __pthread_canceled,0xfffffffff214dfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __pthread_chdir,0xfffffffff215cfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __pthread_fchdir,0xfffffffff215dfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __pthread_kill,0xfffffffff2148fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __pthread_markcancel,0xfffffffff214cfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __pthread_sigmask,0xfffffffff2149fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __semwait_signal,0xfffffffff214efff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __semwait_signal_nocancel,0xfffffffff21a7fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __sigwait_nocancel,0xfffffffff21a6fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __threxit,0xfff12effffffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __thrsigdivert,0xfff12fffffffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __thrsleep,0xfff05effffffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __thrwakeup,0xfff12dffffffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall abort_with_payload,0xfffffffff2209fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall accept_nocancel,0xfffffffff2194fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall access_extended,0xfffffffff211cfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall add_key,0xfffffffffffff0f8,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall adjfreq,0xfff131ffffffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall adjtime,0x1a508c08c208cfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall adjtimex,0xfffffffffffff09f,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall afs3_syscall,0xffffff179fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_cancel,0x18ffff13c213cfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_error,0x190fff13d213dfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_fsync,0x191fff1d12139fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_mlock,0xffffff21ffffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_read,0x192fff13e213efff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_return,0x193fff13a213afff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_suspend,0x1b6fff13b213bfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_suspend_nocancel,0xfffffffff21a5fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_waitcomplete,0xffffff167fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall aio_write,0x195fff13f213ffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall audit,0xffffff1bd215efff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall audit_session_join,0xfffffffff21adfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall audit_session_port,0xfffffffff21b0fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall audit_session_self,0xfffffffff21acfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall auditctl,0xffffff1c52167fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall auditon,0xffffff1be215ffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall bindat,0xffffff21afffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall bpf,0xfffffffffffff141,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall bsdthread_create,0xfffffffff2168fff,globl,hidden

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall bsdthread_ctl,0xfffffffff21defff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall bsdthread_register,0xfffffffff216efff,globl,hidden

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall bsdthread_terminate,0xfffffffff2169fff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall cap_enter,0xffffff204fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall cap_fcntls_get,0xffffff219fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall cap_fcntls_limit,0xffffff218fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall cap_getmode,0xffffff205fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall cap_ioctls_get,0xffffff217fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall cap_ioctls_limit,0xffffff216fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall cap_rights_limit,0xffffff215fffffff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall capget,0xfffffffffffff07d,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall capset,0xfffffffffffff07e,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall change_fdguard_np,0xfffffffff21bcfff,globl

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall chflags,0x0220220222022fff,globl

Some files were not shown because too many files have changed in this diff Show more