Improve isystem includes and magic numbers

This commit is contained in:
Justine Tunney 2021-08-14 17:16:33 -07:00
parent 1e5bd4d23e
commit 228fb7428b
143 changed files with 1183 additions and 266 deletions

View file

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

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mount,0x19a01501520a70a5,globl
.scall sys_mount,0x19a01501520a70a5,globl

View file

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

View file

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

View file

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

View file

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

View file

@ -135,6 +135,7 @@ syscon sig SIGUSR2 12 31 31 31 31 12 # do whatever you want; bsd
syscon sig SIGPIPE 13 13 13 13 13 13 # write to closed file descriptor; unix consensus & faked on nt
syscon sig SIGALRM 14 14 14 14 14 14 # sent by setitimer(2) or timer_settime(2); unix consensus & faked on nt
syscon sig SIGTERM 15 15 15 15 15 15 # terminate; resumable; unix consensus & faked on nt; X3.159-1988
syscon sig SIGSTKFLT 16 0 0 0 0 0 # wut
syscon sig SIGCHLD 17 20 20 20 20 17 # child process exited or terminated and is now a zombie (unless this is SIG_IGN or SA_NOCLDWAIT) or child process stopped due to terminal i/o or profiling/debugging (unless you used SA_NOCLDSTOP); bsd consensus
syscon sig SIGCONT 18 19 19 19 19 18 # child process resumed from profiling/debugging; bsd consensus
syscon sig SIGSTOP 19 17 17 17 17 19 # child process stopped due to profiling/debugging; bsd consensus
@ -1232,38 +1233,78 @@ syscon sf SF_NODISKIO 0 0 1 0 0 0
syscon sf SF_MNOWAIT 0 0 2 0 0 0
syscon sf SF_SYNC 0 0 4 0 0 0
# mount flags
# mount() flags
#
# group name GNU/Systemd XNU's Not UNIX! FreeBSD OpenBSD NetBSD The New Technology Commentary
syscon mount MS_ACTIVE 0x40000000 0 0 0 0 0
syscon mount MS_BIND 0x1000 0 0 0 0 0
syscon mount MS_DIRSYNC 0x80 0 0 0 0 0
syscon mount MS_I_VERSION 0x800000 0 0 0 0 0
syscon mount MS_KERNMOUNT 0x400000 0 0 0 0 0
syscon mount MS_LAZYTIME 0x02000000 0 0 0 0 0
syscon mount MS_MANDLOCK 0x40 0 0 0 0 0
syscon mount MS_MGC_VAL 0xc0ed0000 0 0 0 0 0
syscon mount MS_MOVE 0x2000 0 0 0 0 0
syscon mount MS_NOATIME 0x0400 0 0 0 0 0
syscon mount MS_NODEV 4 0 0 0 0 0
syscon mount MS_NODIRATIME 0x0800 0 0 0 0 0
syscon mount MS_NOEXEC 8 0 0 0 0 0
syscon mount MS_NOSUID 2 0 0 0 0 0
syscon mount MS_NOUSER -2147483648 0 0 0 0 0
syscon mount MS_POSIXACL 0x010000 0 0 0 0 0
syscon mount MS_PRIVATE 0x040000 0 0 0 0 0
syscon mount MS_RDONLY 1 0 0 0 0 0
syscon mount MS_REC 0x4000 0 0 0 0 0
syscon mount MS_RELATIME 0x200000 0 0 0 0 0
syscon mount MS_REMOUNT 0x20 0 0 0 0 0
syscon mount MS_RMT_MASK 0x02800051 0 0 0 0 0
syscon mount MS_SHARED 0x100000 0 0 0 0 0
syscon mount MS_SILENT 0x8000 0 0 0 0 0
syscon mount MS_SLAVE 0x080000 0 0 0 0 0
syscon mount MS_STRICTATIME 0x01000000 0 0 0 0 0
syscon mount MS_SYNCHRONOUS 0x10 0 0 0 0 0
syscon mount MS_UNBINDABLE 0x020000 0 0 0 0 0
syscon mount MS_MGC_MSK 0xffff0000 0 0 0 0 0
syscon mount MS_RDONLY 0x00000001 0x00000001 0x00000001 0x00000001 0x00000001 0x00000001 # consensus; MNT_RDONLY on bsd; faked nt
syscon mount MNT_RDONLY 0x00000001 0x00000001 0x00000001 0x00000001 0x00000001 0x00000001 # consensus; MS_RDONLY on linux; faked nt
syscon mount MS_NOSUID 0x00000002 0x00000008 0x00000008 0x00000008 0x00000008 0x00000001 # don't honor S_ISUID bit; bsd consensus; MNT_NOSUID on bsd; faked nt
syscon mount MNT_NOSUID 0 0x00000008 0x00000008 0x00000008 0x00000008 0x00000001 # don't honor S_ISUID bit; bsd consensus; appears incorrectly defined in linux headers; MS_NOSUID on linux; faked nt
syscon mount MS_NODEV 0x00000004 0x00000010 0x00000010 0x00000010 0x00000010 0x00000004 # disallow special files; bsd consensus; MNT_NODEV on bsd; faked nt
syscon mount MNT_NODEV 0x00000004 0x00000010 0x00000010 0x00000010 0x00000010 0x00000004 # disallow special files; bsd consensus; MS_NODEV on linux; faked nt
syscon mount MS_NOEXEC 0x00000008 0x00000004 0x00000004 0x00000004 0x00000004 0x00000008 # disallow program execution; bsd consensus; MNT_NOEXEC on bsd; faked nt
syscon mount MNT_NOEXEC 0x00000008 0x00000004 0x00000004 0x00000004 0x00000004 0x00000008 # disallow program execution; bsd consensus; MS_NOEXEC on linux; faked nt
syscon mount MS_SYNCHRONOUS 0x00000010 0x00000002 0x00000002 0x00000002 0x00000002 0x00000010 # bsd consensus; MNT_SYNCHRONOUS on bsd; faked nt
syscon mount MNT_SYNCHRONOUS 0x00000010 0x00000002 0x00000002 0x00000002 0x00000002 0x00000010 # bsd consensus; MS_SYNCHRONOUS on linux; faked nt
syscon mount MS_REMOUNT 0x00000020 0x00010000 0x00010000 0x00010000 0x00010000 0x00000020 # tune existing mounting; bsd consensus; MNT_UPDATE on bsd; faked nt
syscon mount MNT_UPDATE 0x00000020 0x00010000 0x00010000 0x00010000 0x00010000 0x00000020 # tune existing mounting; bsd consensus; MS_REMOUNT on linux; faked nt
syscon mount MS_MANDLOCK 0x00000040 0 0 0 0 0 #
syscon mount MS_DIRSYNC 0x00000080 0 0 0 0 0 #
syscon mount MS_NOATIME 0x00000400 0x10000000 0x10000000 0x00008000 0x04000000 0x00000400 # do not update access times; MNT_NOATIME on bsd
syscon mount MNT_NOATIME 0x00000400 0x10000000 0x10000000 0x00008000 0x04000000 0x00000400 # do not update access times; MS_NOATIME on linux
syscon mount MS_NODIRATIME 0x00000800 0 0 0 0 0 #
syscon mount MS_BIND 0x00001000 0 0 0 0 0 #
syscon mount MS_MOVE 0x00002000 0 0 0 0 0 #
syscon mount MS_REC 0x00004000 0 0 0 0 0 #
syscon mount MS_SILENT 0x00008000 0 0 0 0 0 #
syscon mount MS_POSIXACL 0x00010000 0 0 0 0 0 #
syscon mount MS_UNBINDABLE 0x00020000 0 0 0 0 0 #
syscon mount MS_PRIVATE 0x00040000 0 0 0 0 0 #
syscon mount MS_SLAVE 0x00080000 0 0 0 0 0 #
syscon mount MS_SHARED 0x00100000 0 0 0 0 0 #
syscon mount MS_RELATIME 0x00200000 0 0 0 0x00020000 0 # MNT_RELATIME on bsd
syscon mount MNT_RELATIME 0x00200000 0 0 0 0x00020000 0 # MS_RELATIME on linux
syscon mount MS_KERNMOUNT 0x00400000 0 0 0 0 0 #
syscon mount MS_I_VERSION 0x00800000 0 0 0 0 0 #
syscon mount MS_STRICTATIME 0x01000000 0x80000000 0 0 0 0 # enable strict update of file access time; MNT_STRICTATIME on bsd
syscon mount MNT_STRICTATIME 0x01000000 0x80000000 0 0 0 0 # enable strict update of file access time; MS_STRICTATIME on linux
syscon mount MS_LAZYTIME 0x02000000 0 0 0 0 0 #
syscon mount MS_ACTIVE 0x40000000 0 0 0 0 0 #
syscon mount MS_NOUSER 0x80000000 0 0 0 0 0 #
syscon mount MS_RMT_MASK 0x02800051 0 0 0 0 0 #
syscon mount MS_MGC_VAL 0xc0ed0000 0 0 0 0 0 # Linux 2.3
syscon mount MS_MGC_MSK 0xffff0000 0 0 0 0 0 # Linux 2.3
syscon mount MNT_ASYNC 0 0x00000040 0x00000040 0x00000040 0x00000040 0 # file system written asynchronously; bsd consensus
syscon mount MNT_RELOAD 0 0x00040000 0x00040000 0x00040000 0x00040000 0 # reload filesystem data; bsd consensus
syscon mount MNT_SUIDDIR 0 0 0x00100000 0 0 0 # special suid dir handling
syscon mount MNT_NOCLUSTERR 0 0 0x40000000 0 0 0 # disable cluster read
syscon mount MNT_NOCLUSTERW 0 0 0x80000000 0 0 0 # disable cluster write
syscon mount MNT_SNAPSHOT 0 0x40000000 0x01000000 0 0 0 # confusing
# unmount() flags
# a.k.a. umount2() on linux
#
# group name GNU/Systemd XNU's Not UNIX! FreeBSD OpenBSD NetBSD The New Technology Commentary
syscon unmount MNT_FORCE 1 0x00080000 0x00080000 0x00080000 0x00080000 2 # force unmount or readonly
syscon unmount MNT_DETACH 2 0 0 0 0 0 # just detach from the tree
syscon unmount MNT_EXPIRE 4 0 0 0 0 0 # mark for expiry
syscon unmount UMOUNT_NOFOLLOW 8 0 0 0 0 0 # don't follow symlinks on unmount
syscon unmount MNT_BYFSID 0 0 0x08000000 0 0 0 # if used pass "FSID:val0:val1", where val0 and val1 are the contents of the fsid_t val[] array in decimal
# reboot() magnums
#
# group name GNU/Systemd XNU's Not UNIX! FreeBSD OpenBSD NetBSD The New Technology Commentary
syscon reboot RB_AUTOBOOT 0x01234567 0 0 0 0 4 # reboots; SHUTDOWN_RESTART on NT
syscon reboot RB_POWER_OFF 0x4321fedc 0xffffffff 0x4000 0x1000 0x808 8 # SHUTDOWN_POWEROFF on NT
syscon reboot RB_POWERDOWN 0x4321fedc 0xffffffff 0x4000 0x1000 0x808 8 # openbsd/netbsd name
syscon reboot RB_POWEROFF 0x4321fedc 0xffffffff 0x4000 0x1000 0x808 8 # freebsd name
syscon reboot RB_HALT_SYSTEM 0xcdef0123 8 8 8 8 16 # the processor is simply halted; SHUTDOWN_NOREBOOT on NT
syscon reboot RB_HALT 0xcdef0123 8 8 8 8 16 # the processor is simply halted; bsd name
syscon reboot RB_SW_SUSPEND 0xd000fce2 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xd000fce2 #
syscon reboot RB_KEXEC 0x45584543 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff #
syscon reboot RB_ENABLE_CAD 0x89abcdef 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff # enable control-alt-delete reboot
syscon reboot RB_DISABLE_CAD 0 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff # make control-alt-delete just eintr
syscon reboot RB_NOSYNC 0x20000000 4 4 4 4 0x20000000 # prevents implicit sync() beforehand; polyfilled linux; polyfilled on nt just in case
# send() / recv() flags
#
@ -1484,7 +1525,6 @@ syscon termios BUSY 4 0 0 0 0 0
syscon termios CANBSIZ 255 0 0 0 0 0
syscon termios CBAUD 0x100f 0 0 0 0 0
syscon termios CBAUDEX 0x1000 0 0 0 0 0
syscon termios CBRK 0 255 255 255 255 0 #
syscon termios CEOL 0 255 255 255 255 0 #
syscon termios EXTA 14 0x4b00 0x4b00 0x4b00 0x4b00 0 # bsd consensus
syscon termios EXTB 15 0x9600 0x9600 0x9600 0x9600 0 # bsd consensus
@ -1503,8 +1543,6 @@ syscon termios CSTOPB 0x40 0x0400 0x0400 0x0400 0x0400 0 # bsd c
syscon termios HUPCL 0x0400 0x4000 0x4000 0x4000 0x4000 0 # bsd consensus
syscon termios CSTART 17 17 17 17 17 0 # unix consensus
syscon termios CSTOP 19 19 19 19 19 0 # unix consensus
syscon termios CSUSP 26 26 26 26 26 0 # unix consensus
syscon termios CWERASE 23 23 23 23 23 0 # unix consensus
# Pseudoteletypewriter Control
#
@ -1593,15 +1631,6 @@ syscon misc TH_PUSH 8 8 8 8 8 0 # unix consensus
syscon misc TH_URG 32 32 32 32 32 32 # consensus
syscon misc TH_ACK 16 16 16 16 16 16 # consensus
syscon misc IPC_PRIVATE 0 0 0 0 0 0 # consensus
syscon misc IPC_RMID 0 0 0 0 0 0 # consensus
syscon misc IPC_CREAT 0x0200 0x0200 0x0200 0x0200 0x0200 0 # unix consensus
syscon misc IPC_EXCL 0x0400 0x0400 0x0400 0x0400 0x0400 0 # unix consensus
syscon misc IPC_NOWAIT 0x0800 0x0800 0x0800 0x0800 0x0800 0 # unix consensus
syscon misc IPC_SET 1 1 1 1 1 0 # unix consensus
syscon misc IPC_STAT 2 2 2 2 2 0 # unix consensus
syscon misc IPC_INFO 3 0 3 0 0 0
syscon shm SHM_R 0x0100 0x0100 0x0100 0x0100 0x0100 0 # unix consensus
syscon shm SHM_RDONLY 0x1000 0x1000 0x1000 0x1000 0x1000 0 # unix consensus
syscon shm SHM_RND 0x2000 0x2000 0x2000 0x2000 0x2000 0 # unix consensus
@ -1645,14 +1674,6 @@ syscon misc NO_ADDRESS 4 4 4 4 4 0x2afc # unix consensus
syscon misc NO_DATA 4 4 4 4 4 0x2afc # unix consensus
syscon misc NO_RECOVERY 3 3 3 3 3 0x2afb # unix consensus
syscon misc RB_DISABLE_CAD 0 0 0 0 0 0 # consensus
syscon misc RB_AUTOBOOT 0x01234567 0 0 0 0 0
syscon misc RB_ENABLE_CAD 0x89abcdef 0 0 0 0 0
syscon misc RB_HALT_SYSTEM 0xcdef0123 0 0 0 0 0
syscon misc RB_KEXEC 0x45584543 0 0 0 0 0
syscon misc RB_POWER_OFF 0x4321fedc 0 0 0 0 0
syscon misc RB_SW_SUSPEND 0xd000fce2 0 0 0 0 0
syscon misc NI_DGRAM 0x10 0x10 0x10 0x10 0x10 0x10 # consensus
syscon misc NI_MAXSERV 0x20 0x20 0x20 0x20 0x20 0x20 # consensus
syscon misc NI_MAXHOST 0x0401 0x0401 0x0401 0x0100 0x0100 0x0401
@ -1894,10 +1915,6 @@ syscon misc LIO_READ 0 1 2 0 0 0
syscon misc LIO_WAIT 0 2 1 0 0 0
syscon misc LIO_NOP 2 0 0 0 0 0
syscon misc MNT_FORCE 1 0x080000 0 0x080000 0x080000 0
syscon misc MNT_DETACH 2 0 0 0 0 0
syscon misc MNT_EXPIRE 4 0 0 0 0 0
syscon misc UDP_ENCAP_ESPINUDP_NON_IKE 1 0 1 0 0 0
syscon misc UDP_NO_CHECK6_RX 102 0 0 0 0 0
syscon misc UDP_NO_CHECK6_TX 101 0 0 0 0 0
@ -3122,7 +3139,6 @@ syscon misc START_STOP 27 0 0 0 0 0
syscon misc STATUS_MASK 62 0 0 0 0 0
syscon misc SWAP_FLAG_DISCARD 0x010000 0 0 0 0 0
syscon misc SYNCHRONIZE_CACHE 53 0 0 0 0 0
syscon misc UMOUNT_NOFOLLOW 8 0 0 0 0 0
syscon misc UNIT_ATTENTION 6 0 0 0 0 0
syscon misc UPDATE_BLOCK 61 0 0 0 0 0
syscon misc UT_HOSTSIZE 0x0100 0x10 0 0x0100 0x0100 0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon termios,CBRK,0,255,255,255,255,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon termios,CWERASE,23,23,23,23,23,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_CREAT,0x0200,0x0200,0x0200,0x0200,0x0200,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_EXCL,0x0400,0x0400,0x0400,0x0400,0x0400,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_INFO,3,0,3,0,0,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_NOWAIT,0x0800,0x0800,0x0800,0x0800,0x0800,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_PRIVATE,0,0,0,0,0,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_RMID,0,0,0,0,0,0

View file

@ -1,2 +0,0 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_STAT,2,2,2,2,2,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_ASYNC,0,0x00000040,0x00000040,0x00000040,0x00000040,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon unmount,MNT_BYFSID,0,0,0x08000000,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,MNT_DETACH,2,0,0,0,0,0
.syscon unmount,MNT_DETACH,2,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,MNT_EXPIRE,4,0,0,0,0,0
.syscon unmount,MNT_EXPIRE,4,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,MNT_FORCE,1,0x080000,0,0x080000,0x080000,0
.syscon unmount,MNT_FORCE,1,0x00080000,0x00080000,0x00080000,0x00080000,2

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_NOATIME,0x00000400,0x10000000,0x10000000,0x00008000,0x04000000,0x00000400

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_NOCLUSTERR,0,0,0x40000000,0,0,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_NOCLUSTERW,0,0,0x80000000,0,0,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_NODEV,0x00000004,0x00000010,0x00000010,0x00000010,0x00000010,0x00000004

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_NOEXEC,0x00000008,0x00000004,0x00000004,0x00000004,0x00000004,0x00000008

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_NOSUID,0,0x00000008,0x00000008,0x00000008,0x00000008,0x00000001

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_RDONLY,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_RELATIME,0x00200000,0,0,0,0x00020000,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_RELOAD,0,0x00040000,0x00040000,0x00040000,0x00040000,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_SNAPSHOT,0,0x40000000,0x01000000,0,0,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_STRICTATIME,0x01000000,0x80000000,0,0,0,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_SUIDDIR,0,0,0x00100000,0,0,0

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_SYNCHRONOUS,0x00000010,0x00000002,0x00000002,0x00000002,0x00000002,0x00000010

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MNT_UPDATE,0x00000020,0x00010000,0x00010000,0x00010000,0x00010000,0x00000020

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_BIND,0x1000,0,0,0,0,0
.syscon mount,MS_BIND,0x00001000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_DIRSYNC,0x80,0,0,0,0,0
.syscon mount,MS_DIRSYNC,0x00000080,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_I_VERSION,0x800000,0,0,0,0,0
.syscon mount,MS_I_VERSION,0x00800000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_KERNMOUNT,0x400000,0,0,0,0,0
.syscon mount,MS_KERNMOUNT,0x00400000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_MANDLOCK,0x40,0,0,0,0,0
.syscon mount,MS_MANDLOCK,0x00000040,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_MOVE,0x2000,0,0,0,0,0
.syscon mount,MS_MOVE,0x00002000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_NOATIME,0x0400,0,0,0,0,0
.syscon mount,MS_NOATIME,0x00000400,0x10000000,0x10000000,0x00008000,0x04000000,0x00000400

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_NODEV,4,0,0,0,0,0
.syscon mount,MS_NODEV,0x00000004,0x00000010,0x00000010,0x00000010,0x00000010,0x00000004

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_NODIRATIME,0x0800,0,0,0,0,0
.syscon mount,MS_NODIRATIME,0x00000800,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_NOEXEC,8,0,0,0,0,0
.syscon mount,MS_NOEXEC,0x00000008,0x00000004,0x00000004,0x00000004,0x00000004,0x00000008

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_NOSUID,2,0,0,0,0,0
.syscon mount,MS_NOSUID,0x00000002,0x00000008,0x00000008,0x00000008,0x00000008,0x00000001

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_NOUSER,-2147483648,0,0,0,0,0
.syscon mount,MS_NOUSER,0x80000000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_POSIXACL,0x010000,0,0,0,0,0
.syscon mount,MS_POSIXACL,0x00010000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_PRIVATE,0x040000,0,0,0,0,0
.syscon mount,MS_PRIVATE,0x00040000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_RDONLY,1,0,0,0,0,0
.syscon mount,MS_RDONLY,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_REC,0x4000,0,0,0,0,0
.syscon mount,MS_REC,0x00004000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_RELATIME,0x200000,0,0,0,0,0
.syscon mount,MS_RELATIME,0x00200000,0,0,0,0x00020000,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_REMOUNT,0x20,0,0,0,0,0
.syscon mount,MS_REMOUNT,0x00000020,0x00010000,0x00010000,0x00010000,0x00010000,0x00000020

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_SHARED,0x100000,0,0,0,0,0
.syscon mount,MS_SHARED,0x00100000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_SILENT,0x8000,0,0,0,0,0
.syscon mount,MS_SILENT,0x00008000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_SLAVE,0x080000,0,0,0,0,0
.syscon mount,MS_SLAVE,0x00080000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_STRICTATIME,0x01000000,0,0,0,0,0
.syscon mount,MS_STRICTATIME,0x01000000,0x80000000,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_SYNCHRONOUS,0x10,0,0,0,0,0
.syscon mount,MS_SYNCHRONOUS,0x00000010,0x00000002,0x00000002,0x00000002,0x00000002,0x00000010

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon mount,MS_UNBINDABLE,0x020000,0,0,0,0,0
.syscon mount,MS_UNBINDABLE,0x00020000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,RB_AUTOBOOT,0x01234567,0,0,0,0,0
.syscon reboot,RB_AUTOBOOT,0x01234567,0,0,0,0,4

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,RB_DISABLE_CAD,0,0,0,0,0,0
.syscon reboot,RB_DISABLE_CAD,0,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,RB_ENABLE_CAD,0x89abcdef,0,0,0,0,0
.syscon reboot,RB_ENABLE_CAD,0x89abcdef,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon termios,CSUSP,26,26,26,26,26,0
.syscon reboot,RB_HALT,0xcdef0123,8,8,8,8,16

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,RB_HALT_SYSTEM,0xcdef0123,0,0,0,0,0
.syscon reboot,RB_HALT_SYSTEM,0xcdef0123,8,8,8,8,16

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,RB_KEXEC,0x45584543,0,0,0,0,0
.syscon reboot,RB_KEXEC,0x45584543,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon reboot,RB_NOSYNC,0x20000000,4,4,4,4,0x20000000

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon reboot,RB_POWERDOWN,0x4321fedc,0xffffffff,0x4000,0x1000,0x808,8

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon reboot,RB_POWEROFF,0x4321fedc,0xffffffff,0x4000,0x1000,0x808,8

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,RB_POWER_OFF,0x4321fedc,0,0,0,0,0
.syscon reboot,RB_POWER_OFF,0x4321fedc,0xffffffff,0x4000,0x1000,0x808,8

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,RB_SW_SUSPEND,0xd000fce2,0,0,0,0,0
.syscon reboot,RB_SW_SUSPEND,0xd000fce2,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xd000fce2

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,IPC_SET,1,1,1,1,1,0
.syscon sig,SIGSTKFLT,16,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc,UMOUNT_NOFOLLOW,8,0,0,0,0,0
.syscon unmount,UMOUNT_NOFOLLOW,8,0,0,0,0,0

View file

@ -1,28 +0,0 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_IPC_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_IPC_H_
#include "libc/runtime/symbolic.h"
#define IPC_CREAT SYMBOLIC(IPC_CREAT)
#define IPC_EXCL SYMBOLIC(IPC_EXCL)
#define IPC_INFO SYMBOLIC(IPC_INFO)
#define IPC_NOWAIT SYMBOLIC(IPC_NOWAIT)
#define IPC_PRIVATE SYMBOLIC(IPC_PRIVATE)
#define IPC_RMID SYMBOLIC(IPC_RMID)
#define IPC_SET SYMBOLIC(IPC_SET)
#define IPC_STAT SYMBOLIC(IPC_STAT)
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const long IPC_CREAT;
extern const long IPC_EXCL;
extern const long IPC_INFO;
extern const long IPC_NOWAIT;
extern const long IPC_PRIVATE;
extern const long IPC_RMID;
extern const long IPC_SET;
extern const long IPC_STAT;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_IPC_H_ */

View file

@ -1,18 +0,0 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_MNT_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_MNT_H_
#include "libc/runtime/symbolic.h"
#define MNT_DETACH SYMBOLIC(MNT_DETACH)
#define MNT_EXPIRE SYMBOLIC(MNT_EXPIRE)
#define MNT_FORCE SYMBOLIC(MNT_FORCE)
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const long MNT_DETACH;
extern const long MNT_EXPIRE;
extern const long MNT_FORCE;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MNT_H_ */

View file

@ -4,67 +4,97 @@
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const long MS_ACTIVE;
extern const long MS_BIND;
extern const long MS_DIRSYNC;
extern const long MS_I_VERSION;
extern const long MS_KERNMOUNT;
extern const long MS_LAZYTIME;
extern const long MS_MANDLOCK;
extern const long MS_MGC_MSK;
extern const long MS_MGC_VAL;
extern const long MS_MOVE;
extern const long MS_NOATIME;
extern const long MS_NODEV;
extern const long MS_NODIRATIME;
extern const long MS_NOEXEC;
extern const long MS_NOSUID;
extern const long MS_NOUSER;
extern const long MS_POSIXACL;
extern const long MS_PRIVATE;
extern const long MS_RDONLY;
extern const long MS_REC;
extern const long MS_RELATIME;
extern const long MS_REMOUNT;
extern const long MS_RMT_MASK;
extern const long MS_SHARED;
extern const long MS_SILENT;
extern const long MS_SLAVE;
extern const long MS_STRICTATIME;
extern const long MNT_RDONLY;
extern const long MS_NOSUID;
extern const long MNT_NOSUID;
extern const long MS_NODEV;
extern const long MNT_NODEV;
extern const long MS_NOEXEC;
extern const long MNT_NOEXEC;
extern const long MS_SYNCHRONOUS;
extern const long MNT_SYNCHRONOUS;
extern const long MS_REMOUNT;
extern const long MNT_UPDATE;
extern const long MS_MANDLOCK;
extern const long MS_DIRSYNC;
extern const long MS_NOATIME;
extern const long MNT_NOATIME;
extern const long MS_NODIRATIME;
extern const long MS_BIND;
extern const long MS_MOVE;
extern const long MS_REC;
extern const long MS_SILENT;
extern const long MS_POSIXACL;
extern const long MS_UNBINDABLE;
extern const long MS_PRIVATE;
extern const long MS_SLAVE;
extern const long MS_SHARED;
extern const long MS_RELATIME;
extern const long MNT_RELATIME;
extern const long MS_KERNMOUNT;
extern const long MS_I_VERSION;
extern const long MS_STRICTATIME;
extern const long MNT_STRICTATIME;
extern const long MS_LAZYTIME;
extern const long MS_ACTIVE;
extern const long MS_NOUSER;
extern const long MS_RMT_MASK;
extern const long MS_MGC_VAL;
extern const long MS_MGC_MSK;
extern const long MNT_ASYNC;
extern const long MNT_RELOAD;
extern const long MNT_SUIDDIR;
extern const long MNT_NOCLUSTERR;
extern const long MNT_NOCLUSTERW;
extern const long MNT_SNAPSHOT;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define MS_ACTIVE SYMBOLIC(MS_ACTIVE)
#define MS_BIND SYMBOLIC(MS_BIND)
#define MS_DIRSYNC SYMBOLIC(MS_DIRSYNC)
#define MS_I_VERSION SYMBOLIC(MS_I_VERSION)
#define MS_KERNMOUNT SYMBOLIC(MS_KERNMOUNT)
#define MS_LAZYTIME SYMBOLIC(MS_LAZYTIME)
#define MS_MANDLOCK SYMBOLIC(MS_MANDLOCK)
#define MS_MGC_MSK SYMBOLIC(MS_MGC_MSK)
#define MS_MGC_VAL SYMBOLIC(MS_MGC_VAL)
#define MS_MOVE SYMBOLIC(MS_MOVE)
#define MS_NOATIME SYMBOLIC(MS_NOATIME)
#define MS_NODEV SYMBOLIC(MS_NODEV)
#define MS_NODIRATIME SYMBOLIC(MS_NODIRATIME)
#define MS_NOEXEC SYMBOLIC(MS_NOEXEC)
#define MS_NOSUID SYMBOLIC(MS_NOSUID)
#define MS_NOUSER SYMBOLIC(MS_NOUSER)
#define MS_POSIXACL SYMBOLIC(MS_POSIXACL)
#define MS_PRIVATE SYMBOLIC(MS_PRIVATE)
#define MS_RDONLY SYMBOLIC(MS_RDONLY)
#define MS_REC SYMBOLIC(MS_REC)
#define MS_RELATIME SYMBOLIC(MS_RELATIME)
#define MS_REMOUNT SYMBOLIC(MS_REMOUNT)
#define MS_RMT_MASK SYMBOLIC(MS_RMT_MASK)
#define MS_SHARED SYMBOLIC(MS_SHARED)
#define MS_SILENT SYMBOLIC(MS_SILENT)
#define MS_SLAVE SYMBOLIC(MS_SLAVE)
#define MS_STRICTATIME SYMBOLIC(MS_STRICTATIME)
#define MS_SYNCHRONOUS SYMBOLIC(MS_SYNCHRONOUS)
#define MS_UNBINDABLE SYMBOLIC(MS_UNBINDABLE)
#define MS_RDONLY LITERALLY(0x00000001)
#define MNT_RDONLY LITERALLY(0x00000001)
#define MS_NOSUID SYMBOLIC(MS_NOSUID)
#define MNT_NOSUID SYMBOLIC(MNT_NOSUID)
#define MS_NODEV SYMBOLIC(MS_NODEV)
#define MNT_NODEV SYMBOLIC(MNT_NODEV)
#define MS_NOEXEC SYMBOLIC(MS_NOEXEC)
#define MNT_NOEXEC SYMBOLIC(MNT_NOEXEC)
#define MS_SYNCHRONOUS SYMBOLIC(MS_SYNCHRONOUS)
#define MNT_SYNCHRONOUS SYMBOLIC(MNT_SYNCHRONOUS)
#define MS_REMOUNT SYMBOLIC(MS_REMOUNT)
#define MNT_UPDATE SYMBOLIC(MNT_UPDATE)
#define MS_MANDLOCK SYMBOLIC(MS_MANDLOCK)
#define MS_DIRSYNC SYMBOLIC(MS_DIRSYNC)
#define MS_NOATIME SYMBOLIC(MS_NOATIME)
#define MNT_NOATIME SYMBOLIC(MNT_NOATIME)
#define MS_NODIRATIME SYMBOLIC(MS_NODIRATIME)
#define MS_BIND SYMBOLIC(MS_BIND)
#define MS_MOVE SYMBOLIC(MS_MOVE)
#define MS_REC SYMBOLIC(MS_REC)
#define MS_SILENT SYMBOLIC(MS_SILENT)
#define MS_POSIXACL SYMBOLIC(MS_POSIXACL)
#define MS_UNBINDABLE SYMBOLIC(MS_UNBINDABLE)
#define MS_PRIVATE SYMBOLIC(MS_PRIVATE)
#define MS_SLAVE SYMBOLIC(MS_SLAVE)
#define MS_SHARED SYMBOLIC(MS_SHARED)
#define MS_RELATIME SYMBOLIC(MS_RELATIME)
#define MNT_RELATIME SYMBOLIC(MNT_RELATIME)
#define MS_KERNMOUNT SYMBOLIC(MS_KERNMOUNT)
#define MS_I_VERSION SYMBOLIC(MS_I_VERSION)
#define MS_STRICTATIME SYMBOLIC(MS_STRICTATIME)
#define MNT_STRICTATIME SYMBOLIC(MNT_STRICTATIME)
#define MS_LAZYTIME SYMBOLIC(MS_LAZYTIME)
#define MS_ACTIVE SYMBOLIC(MS_ACTIVE)
#define MS_NOUSER SYMBOLIC(MS_NOUSER)
#define MS_RMT_MASK SYMBOLIC(MS_RMT_MASK)
#define MS_MGC_VAL SYMBOLIC(MS_MGC_VAL)
#define MS_MGC_MSK SYMBOLIC(MS_MGC_MSK)
#define MNT_ASYNC SYMBOLIC(MNT_ASYNC)
#define MNT_RELOAD SYMBOLIC(MNT_RELOAD)
#define MNT_SUIDDIR SYMBOLIC(MNT_SUIDDIR)
#define MNT_NOCLUSTERR SYMBOLIC(MNT_NOCLUSTERR)
#define MNT_NOCLUSTERW SYMBOLIC(MNT_NOCLUSTERW)
#define MNT_SNAPSHOT SYMBOLIC(MNT_SNAPSHOT)
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_ */

34
libc/sysv/consts/reboot.h Normal file
View file

@ -0,0 +1,34 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
#include "libc/runtime/symbolic.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const uint32_t RB_AUTOBOOT;
extern const uint32_t RB_POWER_OFF;
extern const uint32_t RB_POWERDOWN;
extern const uint32_t RB_POWEROFF;
extern const uint32_t RB_HALT_SYSTEM;
extern const uint32_t RB_HALT;
extern const uint32_t RB_SW_SUSPEND;
extern const uint32_t RB_KEXEC;
extern const uint32_t RB_ENABLE_CAD;
extern const uint32_t RB_DISABLE_CAD;
extern const uint32_t RB_NOSYNC;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define RB_AUTOBOOT SYMBOLIC(RB_AUTOBOOT)
#define RB_POWER_OFF SYMBOLIC(RB_POWER_OFF)
#define RB_POWERDOWN SYMBOLIC(RB_POWERDOWN)
#define RB_POWEROFF SYMBOLIC(RB_POWEROFF)
#define RB_HALT_SYSTEM SYMBOLIC(RB_HALT_SYSTEM)
#define RB_HALT SYMBOLIC(RB_HALT)
#define RB_SW_SUSPEND SYMBOLIC(RB_SW_SUSPEND)
#define RB_KEXEC SYMBOLIC(RB_KEXEC)
#define RB_ENABLE_CAD SYMBOLIC(RB_ENABLE_CAD)
#define RB_DISABLE_CAD SYMBOLIC(RB_DISABLE_CAD)
#define RB_NOSYNC SYMBOLIC(RB_NOSYNC)
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_ */

View file

@ -12,7 +12,6 @@ extern const long BUSY;
extern const long CANBSIZ;
extern const long CBAUD;
extern const long CBAUDEX;
extern const long CBRK;
extern const long CEOL;
extern const long CIBAUD;
extern const long CLOCAL;
@ -28,8 +27,6 @@ extern const long CS7;
extern const long CS8;
extern const long CSIZE;
extern const long CSTOPB;
extern const long CSUSP;
extern const long CWERASE;
extern const long ECHO;
extern const long ECHOCTL;
extern const long ECHOE;
@ -225,7 +222,6 @@ COSMOPOLITAN_C_END_
#define CANBSIZ SYMBOLIC(CANBSIZ)
#define CBAUD SYMBOLIC(CBAUD)
#define CBAUDEX SYMBOLIC(CBAUDEX)
#define CBRK SYMBOLIC(CBRK)
#define CEOL SYMBOLIC(CEOL)
#define CIBAUD SYMBOLIC(CIBAUD)
#define CLOCAL SYMBOLIC(CLOCAL)
@ -237,8 +233,6 @@ COSMOPOLITAN_C_END_
#define CS8 SYMBOLIC(CS8)
#define CSIZE SYMBOLIC(CSIZE)
#define CSTOPB SYMBOLIC(CSTOPB)
#define CSUSP SYMBOLIC(CSUSP)
#define CWERASE SYMBOLIC(CWERASE)
#define ECHO LITERALLY(8)
#define ECHOCTL SYMBOLIC(ECHOCTL)
#define ECHOE SYMBOLIC(ECHOE)

View file

@ -0,0 +1,22 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_
#include "libc/runtime/symbolic.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const long MNT_FORCE;
extern const long MNT_DETACH;
extern const long MNT_EXPIRE;
extern const long UMOUNT_NOFOLLOW;
extern const long MNT_BYFSID;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define MNT_FORCE SYMBOLIC(MNT_FORCE)
#define MNT_DETACH SYMBOLIC(MNT_DETACH)
#define MNT_EXPIRE SYMBOLIC(MNT_EXPIRE)
#define UMOUNT_NOFOLLOW SYMBOLIC(UMOUNT_NOFOLLOW)
#define MNT_BYFSID SYMBOLIC(MNT_BYFSID)
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_ */

View file

@ -182,8 +182,10 @@ scall chroot 0x03d03d03d203d0a1 globl
scall sys_sync 0xfff02402420240a2 globl hidden
scall acct 0x03303303320330a3 globl
scall settimeofday 0x1a304407a207a0a4 globl
scall mount 0x19a01501520a70a5 globl
scall reboot 0x0d003703720370a9 globl
scall sys_mount 0x19a01501520a70a5 globl
scall sys_unmount 0x016016016209f0a6 globl hidden # umount2() on linux
scall umount2 0x016016016209f0a6 globl hidden # unmount() on bsd
scall sys_reboot 0x0d003703720370a9 globl hidden # two arguments b/c netbsd/sparc lool
scall quotactl 0xfff09409420a50b3 globl
scall setfsuid 0xfffffffffffff07a globl
scall setfsgid 0xfffffffffffff07b globl
@ -209,7 +211,6 @@ scall _sysctl 0xfffffffffffff09c globl
scall prctl 0xfffffffffffff09d globl
scall sys_arch_prctl 0xfff0a50a5ffff09e globl hidden # sysarch() on bsd
scall adjtimex 0xfffffffffffff09f globl
scall umount2 0xfffffffffffff0a6 globl
scall swapon 0xffffff05520550a7 globl
scall swapoff 0xffffff1a8ffff0a8 globl
scall sethostname 0xffffff058ffff0aa globl
@ -398,7 +399,6 @@ scall __bsd_seteuid 0xfff0b70b720b7fff globl hidden # wrapped via setreuid()
scall __bsd_setegid 0xfff0b60b620b6fff globl hidden # wrapped via setregid()
scall fpathconf 0x0c00c00c020c0fff globl
scall fhopen 0x18c10812a20f8fff globl
scall unmount 0x016016016209ffff globl
scall issetugid 0xfff0fd0fd2147fff globl
scall minherit 0x1110fa0fa20fafff globl
scall pathconf 0x0bf0bf0bf20bffff globl