Add NetBSD support

This commit is contained in:
Justine Tunney 2021-02-05 06:16:20 -08:00
parent 2fdc19e7a7
commit 23ae9dfceb
4020 changed files with 8955 additions and 8128 deletions

View file

@ -6,7 +6,7 @@
a build-once run-anywhere language, like Java, except it doesn't need an
interpreter or virtual machine. Instead, it reconfigures stock GCC to
output a POSIX-approved polyglot format that runs natively on Linux +
Mac + Windows + FreeBSD + OpenBSD + BIOS with the best possible
Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS with the best possible
performance and the tiniest footprint imaginable.
## Background

View file

@ -518,7 +518,7 @@ ape.phdrs:
.quad 0 # p_memsz
.quad 16 # p_align
.align __SIZEOF_POINTER__
.long PT_NOTE # openbsd note
.long PT_NOTE # notes
.long PF_R
.stub .Lape.note.offset,quad
.stub .Lape.note.vaddr,quad
@ -530,15 +530,28 @@ ape.phdrs:
.section .note.openbsd.ident,"a",@progbits
.Lopenbsd.ident:
.long 8
.long 4
.long 0x1
.asciz "OpenBSD"
.long 0
.size .Lopenbsd.ident,.-.Lopenbsd.ident
.long 2f-1f
.long 4f-3f
.long 1
1: .asciz "OpenBSD"
2: .align 4
3: .long 0
4: .size .Lopenbsd.ident,.-.Lopenbsd.ident
.type .Lopenbsd.ident,@object
.previous
.section .note.netbsd.ident,"a",@progbits
.Lnetbsd.ident:
.long 2f-1f
.long 4f-3f
.long 1
1: .asciz "NetBSD"
2: .align 4
3: .long 901000000
4: .size .Lnetbsd.ident,.-.Lnetbsd.ident
.type .Lnetbsd.ident,@object
.previous
/*

View file

@ -227,6 +227,7 @@ SECTIONS {
. = ALIGN(. != 0 ? __SIZEOF_POINTER__ : 1);
HIDDEN(.Lape.note = .);
KEEP(*(.note.openbsd.ident))
KEEP(*(.note.netbsd.ident))
HIDDEN(.Lape.note.end = .);
. += 1;

View file

@ -70,6 +70,12 @@ static textstartup void __stat2linux_openbsd(union metastat *ms) {
st_ctim);
}
static textstartup void __stat2linux_netbsd(union metastat *ms) {
SWITCHEROO(ms->netbsd, ms->linux, st_dev, st_ino, st_nlink, st_mode, st_uid,
st_gid, st_rdev, st_size, st_blksize, st_blocks, st_atim, st_mtim,
st_ctim);
}
/**
* Transcodes The Dismal Data Structure from BSDLinux ABI.
* @asyncsignalsafe
@ -82,6 +88,8 @@ textstartup void __stat2linux(void *ms) {
__stat2linux_freebsd((union metastat *)ms);
} else if (SupportsOpenbsd() && IsOpenbsd()) {
__stat2linux_openbsd((union metastat *)ms);
} else if (SupportsNetbsd() && IsNetbsd()) {
__stat2linux_netbsd((union metastat *)ms);
}
}
}

View file

@ -47,11 +47,24 @@ struct stat_openbsd {
struct timespec __st_birthtim;
};
struct stat_netbsd {
uint64_t st_dev;
uint32_t st_mode;
uint64_t st_ino;
uint32_t st_nlink, st_uid, st_gid;
uint64_t st_rdev;
struct timespec st_atim, st_mtim, st_ctim, st_birthtim;
int64_t st_size, st_blocks;
int32_t st_blksize;
uint32_t st_flags, st_gen, st_spare[2];
};
union metastat {
struct stat linux;
struct stat_xnu xnu;
struct stat_freebsd freebsd;
struct stat_openbsd openbsd;
struct stat_netbsd netbsd;
};
COSMOPOLITAN_C_END_

View file

@ -0,0 +1,18 @@
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_NETBSD_H_
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_NETBSD_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct sigset_netbsd {
uint32_t sig[4];
};
struct sigaction_netbsd {
intptr_t sa_handler;
struct sigset_netbsd sa_mask;
uint32_t sa_flags;
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_NETBSD_H_ */

View file

@ -8,26 +8,18 @@
#ifndef SUPPORT_VECTOR
/**
* Supported Platforms Tuning Knob (Runtime & Compile-Time)
*
* Cosmopolitan's design allows us to support eight platforms. We enable
* them all by default, since we're able to do eight so efficiently. We
* can't do more, due to the way the 80x86 instruction set is encoded.
*
* The user may optionally tune this bitmask, which effectively asks the
* compiler to leave out system call polyfills for a platform, which may
* offer marginal improvements in terms of code size and performance, at
* the cost of portability.
* Tuning this bitmask will remove platform polyfills at compile-time.
*/
#define SUPPORT_VECTOR 0b11111111
#endif
#define LINUX 1
#define METAL 2
#define WINDOWS 4
#define XNU 8
#define OPENBSD 16
#define FREEBSD 32
/* #define YOUR_CLOUD_PLATFORM_HERE 64 /\* jtunney@gmail.com *\/ */
/* #define YOUR_CLOUD_PLATFORM_HERE 128 /\* jtunney@gmail.com *\/ */
#define NETBSD 64
#ifdef NDEBUG
#define NoDebug() 1
@ -89,28 +81,31 @@
#define SupportsXnu() ((SUPPORT_VECTOR & XNU) == XNU)
#define SupportsFreebsd() ((SUPPORT_VECTOR & FREEBSD) == FREEBSD)
#define SupportsOpenbsd() ((SUPPORT_VECTOR & OPENBSD) == OPENBSD)
#define SupportsBsd() (!!(SUPPORT_VECTOR & (XNU | FREEBSD | OPENBSD)))
#define SupportsNetbsd() ((SUPPORT_VECTOR & NETBSD) == NETBSD)
#define SupportsBsd() (!!(SUPPORT_VECTOR & (XNU | FREEBSD | OPENBSD | NETBSD)))
#define SupportsSystemv() \
((SUPPORT_VECTOR & (LINUX | METAL | XNU | OPENBSD | FREEBSD)) != 0)
((SUPPORT_VECTOR & (LINUX | METAL | XNU | OPENBSD | FREEBSD | NETBSD)) != 0)
#ifndef __ASSEMBLER__
#define __HOSTOS (__hostos & SUPPORT_VECTOR)
#define IsLinux() ((__HOSTOS & LINUX) == LINUX)
#define IsMetal() ((__HOSTOS & METAL) == METAL)
#define IsWindows() ((__HOSTOS & WINDOWS) == WINDOWS)
#define IsBsd() ((__HOSTOS & (XNU | FREEBSD | OPENBSD)) != 0)
#define IsBsd() ((__HOSTOS & (XNU | FREEBSD | OPENBSD | NETBSD)) != 0)
#define IsXnu() ((__HOSTOS & XNU) == XNU)
#define IsFreebsd() ((__HOSTOS & FREEBSD) == FREEBSD)
#define IsOpenbsd() ((__HOSTOS & OPENBSD) == OPENBSD)
#define IsNetbsd() ((__HOSTOS & NETBSD) == NETBSD)
#else
/* clang-format off */
#define IsLinux() $LINUX,__hostos(%rip)
#define IsMetal() $METAL,__hostos(%rip)
#define IsWindows() $WINDOWS,__hostos(%rip)
#define IsBsd() $XNU|FREEBSD|OPENBSD,__hostos(%rip)
#define IsBsd() $XNU|FREEBSD|OPENBSD|NETBSD,__hostos(%rip)
#define IsXnu() $XNU,__hostos(%rip)
#define IsFreebsd() $FREEBSD,__hostos(%rip)
#define IsOpenbsd() $OPENBSD,__hostos(%rip)
#define IsNetbsd() $NETBSD,__hostos(%rip)
/* clang-format on */
#endif

View file

@ -88,9 +88,9 @@ static long __pflink(long x) {
x |= kCp437[0];
x |= ntoa(0, 0, 0, 0, 0, 0, 0, 0, 0);
x |= ftoa(0, 0, 0, 0, 0, 0);
x |= strnwidth(0, 0);
x |= strnwidth16(0, 0);
x |= wcsnwidth(0, 0);
x |= strnwidth(0, 0, 0);
x |= strnwidth16(0, 0, 0);
x |= wcsnwidth(0, 0, 0);
x |= malloc(0);
x |= __grow(0, 0, 0, 0);
x |= (intptr_t)strerror(0);

View file

@ -144,14 +144,14 @@ int stoa(int out(long, void *), void *arg, void *data, unsigned long flags,
w = precision;
if (signbit == 63) {
if (weaken(wcsnwidth)) {
w = weaken(wcsnwidth)((const wchar_t *)p, precision);
w = weaken(wcsnwidth)((const wchar_t *)p, precision, 0);
}
} else if (signbit == 15) {
if (weaken(strnwidth16)) {
w = weaken(strnwidth16)((const char16_t *)p, precision);
w = weaken(strnwidth16)((const char16_t *)p, precision, 0);
}
} else if (weaken(strnwidth)) {
w = weaken(strnwidth)(p, precision);
w = weaken(strnwidth)(p, precision, 0);
}
if (w < width) {
pad = width - w;

View file

@ -16,7 +16,6 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/macros.h"
#include "libc/str/str.h"
/**

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __get_tcb 0x014affffffffffff globl
.scall __get_tcb 0xfff14affffffffff globl

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __set_tcb 0x0149ffffffffffff globl
.scall __set_tcb 0xfff149ffffffffff globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __setugid 0xffff0176ffffffff globl
.scall __setugid 0xffffff176fffffff globl

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __syscall 0x00c6ffffffffffff globl
.scall __syscall 0xfff0c6ffffffffff globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __sysctl 0xffff00caffffffff globl
.scall __sysctl 0xffffff0cafffffff globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall __tfork 0x0008ffffffffffff globl
.scall __tfork 0xfff008ffffffffff globl

View file

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

View file

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

View file

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

View file

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

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _sysctl 0xffffffffffff009c globl
.scall _sysctl 0xfffffffffffff09c globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _umtx_op 0xffff01c6ffffffff globl
.scall _umtx_op 0xffffff1c6fffffff globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall abort2 0xffff01cfffffffff globl
.scall abort2 0xffffff1cffffffff globl

View file

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

View file

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

View file

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

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall acct 0x00330033203300a3 globl
.scall acct 0x03303303320330a3 globl

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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