Overview
Comment: | remove useless script, delete junk files, credit contributors, add documentation for typesize.c |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
312e446cfc67664e15828677b1b00e82 |
User & Date: | lexi on 2019-08-25 03:55:01 |
Other Links: | manifest | tags |
Context
2019-08-25
| ||
04:15 | comment out non-standard use of enums pending rewrite with #defines :( check-in: 04ed009476 user: lexi tags: trunk | |
03:55 | remove useless script, delete junk files, credit contributors, add documentation for typesize.c check-in: 312e446cfc user: lexi tags: trunk | |
02:47 | fix check for 128-bit int type check-in: 1fba7a324a user: lexi tags: trunk | |
Changes
Deleted arch/mktbl.posix.sh version [c6b3376c79].
1 -#!/usr/bin/env bash 2 - 3 -ABI=$2 4 - 5 -cat >$1/system_calls.h <<HEADER 6 -#ifndef KIplatform_syscall 7 -#define KIplatform_syscall 8 - 9 -enum k_platform_syscall { 10 - 11 -HEADER 12 - 13 -awk <$1/system_calls.tbl >>$1/system_calls.h -F'\t+' '$2 == "common" || $2 == "'$ABI'" { print "\tk_platform_syscall_" $3 " = " $1 "," }' 14 - 15 -cat >>$1/system_calls.h <<FOOTER 16 - 17 -}; 18 - 19 -#endif 20 - 21 -FOOTER 22 - 23 -cat >$1/error_table.h <<HEADER 24 -#ifndef KIplatform_error 25 -#define KIplatform_error 26 - 27 -enum k_platform_error { 28 - 29 -HEADER 30 - 31 -awk <$1/error_table.tbl >>$1/error_table.h -F' +' '{ print "\tk_platform_error_" $1 " = " $2 "," }' 32 - 33 -cat >>$1/error_table.h <<FOOTER 34 - 35 -}; 36 - 37 -#endif 38 - 39 -FOOTER
Modified arch/readme.md from [64fc8029a6] to [51b8ad36cd].
8 8 9 9 ## scripts 10 10 arch contains a number of shell scripts. unlike the shell scripts in /global, the shell scripts in /arch are not part of the build process; they are simply developer tools, usually for generating syscall tables for new architectures. the output of the scripts is written directly to the appropriate target directory; these files should be added to the source tree and committed. 11 11 12 12 - `mktbl.posix.sh <target> <ABI>`: generates the C headers for a particular target based on the system_calls.h and error_table.h files in its directory. the ABI parameter controls which syscalls are included; the ABI is the second column in the kernel system calls table. 13 13 - `mktbl.linux.errno.sh <target> <ABI>`: generates the errno table for a given architecture and ABI. requires the kernel source tree to be installed on the host system. 14 14 - `mktbl.linux.syscall.sh <target> <ABI>`: generates the syscall table for a given architecture and ABI. requires the kernel source tree to be installed on the host system. note that some architectures like x86 have separate, architecture-specific tables. this script is not meant to be used with these architectures. 15 + 16 +## sources 17 +the arch directory also contains C sources for programs that need to be compiled *and* executed during the build process. 18 + 19 +- `typesize.c`: calculates type metadata for the system it is compiled on, producing macros needed for the creation of `<k/type.h>` (mod/kcore/type.h.m).
Deleted arch/x86.lin.32/error_table.tbl version [206e6b2419].
1 -EPERM 1 2 -ENOENT 2 3 -ESRCH 3 4 -EINTR 4 5 -EIO 5 6 -ENXIO 6 7 -E2BIG 7 8 -ENOEXEC 8 9 -EBADF 9 10 -ECHILD 10 11 -EAGAIN 11 12 -EWOULDBLOCK 11 13 -ENOMEM 12 14 -EACCES 13 15 -EFAULT 14 16 -ENOTBLK 15 17 -EBUSY 16 18 -EEXIST 17 19 -EXDEV 18 20 -ENODEV 19 21 -ENOTDIR 20 22 -EISDIR 21 23 -EINVAL 22 24 -ENFILE 23 25 -EMFILE 24 26 -ENOTTY 25 27 -ETXTBSY 26 28 -EFBIG 27 29 -ENOSPC 28 30 -ESPIPE 29 31 -EROFS 30 32 -EMLINK 31 33 -EPIPE 32 34 -EDOM 33 35 -ERANGE 34 36 -EDEADLK 35 37 -EDEADLOCK 35 38 -ENAMETOOLONG 36 39 -ENOLCK 37 40 -ENOSYS 38 41 -ENOTEMPTY 39 42 -ELOOP 40 43 -ENOMSG 42 44 -EIDRM 43 45 -ECHRNG 44 46 -EL2NSYNC 45 47 -EL3HLT 46 48 -EL3RST 47 49 -ELNRNG 48 50 -EUNATCH 49 51 -ENOCSI 50 52 -EL2HLT 51 53 -EBADE 52 54 -EBADR 53 55 -EXFULL 54 56 -ENOANO 55 57 -EBADRQC 56 58 -EBADSLT 57 59 -EBFONT 59 60 -ENOSTR 60 61 -ENODATA 61 62 -ETIME 62 63 -ENOSR 63 64 -ENONET 64 65 -ENOPKG 65 66 -EREMOTE 66 67 -ENOLINK 67 68 -EADV 68 69 -ESRMNT 69 70 -ECOMM 70 71 -EPROTO 71 72 -EMULTIHOP 72 73 -EDOTDOT 73 74 -EBADMSG 74 75 -EOVERFLOW 75 76 -ENOTUNIQ 76 77 -EBADFD 77 78 -EREMCHG 78 79 -ELIBACC 79 80 -ELIBBAD 80 81 -ELIBSCN 81 82 -ELIBMAX 82 83 -ELIBEXEC 83 84 -EILSEQ 84 85 -ERESTART 85 86 -ESTRPIPE 86 87 -EUSERS 87 88 -ENOTSOCK 88 89 -EDESTADDRREQ 89 90 -EMSGSIZE 90 91 -EPROTOTYPE 91 92 -ENOPROTOOPT 92 93 -EPROTONOSUPPORT 93 94 -ESOCKTNOSUPPORT 94 95 -EOPNOTSUPP 95 96 -EPFNOSUPPORT 96 97 -EAFNOSUPPORT 97 98 -EADDRINUSE 98 99 -EADDRNOTAVAIL 99 100 -ENETDOWN 100 101 -ENETUNREACH 101 102 -ENETRESET 102 103 -ECONNABORTED 103 104 -ECONNRESET 104 105 -ENOBUFS 105 106 -EISCONN 106 107 -ENOTCONN 107 108 -ESHUTDOWN 108 109 -ETOOMANYREFS 109 110 -ETIMEDOUT 110 111 -ECONNREFUSED 111 112 -EHOSTDOWN 112 113 -EHOSTUNREACH 113 114 -EALREADY 114 115 -EINPROGRESS 115 116 -ESTALE 116 117 -EUCLEAN 117 118 -ENOTNAM 118 119 -ENAVAIL 119 120 -EISNAM 120 121 -EREMOTEIO 121 122 -EDQUOT 122 123 -ENOMEDIUM 123 124 -EMEDIUMTYPE 124 125 -ECANCELED 125 126 -ENOKEY 126 127 -EKEYEXPIRED 127 128 -EKEYREVOKED 128 129 -EKEYREJECTED 129 130 -EOWNERDEAD 130 131 -ENOTRECOVERABLE 131 132 -ERFKILL 132 133 -EHWPOISON 133
Modified arch/x86.lin.32/system_calls.h from [a027e596b1] to [bbcc695bc0].
1 +/* this file was generated from the Linux kernel source 2 + * file /arch/x86/entry/syscalls/syscall_32.tbl. since 3 + * the x86-32 syscalls are a special case and are unlikely 4 + * to change in the future, the code used to generate this 5 + * header was not preserved. */ 6 + 1 7 #ifndef KIplatform_syscall 2 8 #define KIplatform_syscall 3 9 4 10 enum k_platform_syscall { 5 11 6 12 k_platform_syscall_restart_syscall = 0, 7 13 k_platform_syscall_exit = 1,
Deleted arch/x86.lin.32/system_calls.tbl version [b397883a8c].
1 -# imported from kernel source tree; original file 2 -# at /arch/x86/entry/syscalls/syscall_32.tbl 3 -# ---- 4 -# 32-bit system call numbers and entry vectors 5 -# 6 -# The format is: 7 -# <number> <abi> <name> <entry point> <compat entry point> 8 -# 9 -# The __ia32_sys and __ia32_compat_sys stubs are created on-the-fly for 10 -# sys_*() system calls and compat_sys_*() compat system calls if 11 -# IA32_EMULATION is defined, and expect struct pt_regs *regs as their only 12 -# parameter. 13 -# 14 -# The abi is always "i386" for this file. 15 -# 16 -0 i386 restart_syscall sys_restart_syscall __ia32_sys_restart_syscall 17 -1 i386 exit sys_exit __ia32_sys_exit 18 -2 i386 fork sys_fork __ia32_sys_fork 19 -3 i386 read sys_read __ia32_sys_read 20 -4 i386 write sys_write __ia32_sys_write 21 -5 i386 open sys_open __ia32_compat_sys_open 22 -6 i386 close sys_close __ia32_sys_close 23 -7 i386 waitpid sys_waitpid __ia32_sys_waitpid 24 -8 i386 creat sys_creat __ia32_sys_creat 25 -9 i386 link sys_link __ia32_sys_link 26 -10 i386 unlink sys_unlink __ia32_sys_unlink 27 -11 i386 execve sys_execve __ia32_compat_sys_execve 28 -12 i386 chdir sys_chdir __ia32_sys_chdir 29 -13 i386 time sys_time32 __ia32_sys_time32 30 -14 i386 mknod sys_mknod __ia32_sys_mknod 31 -15 i386 chmod sys_chmod __ia32_sys_chmod 32 -16 i386 lchown sys_lchown16 __ia32_sys_lchown16 33 -17 i386 break 34 -18 i386 oldstat sys_stat __ia32_sys_stat 35 -19 i386 lseek sys_lseek __ia32_compat_sys_lseek 36 -20 i386 getpid sys_getpid __ia32_sys_getpid 37 -21 i386 mount sys_mount __ia32_compat_sys_mount 38 -22 i386 umount sys_oldumount __ia32_sys_oldumount 39 -23 i386 setuid sys_setuid16 __ia32_sys_setuid16 40 -24 i386 getuid sys_getuid16 __ia32_sys_getuid16 41 -25 i386 stime sys_stime32 __ia32_sys_stime32 42 -26 i386 ptrace sys_ptrace __ia32_compat_sys_ptrace 43 -27 i386 alarm sys_alarm __ia32_sys_alarm 44 -28 i386 oldfstat sys_fstat __ia32_sys_fstat 45 -29 i386 pause sys_pause __ia32_sys_pause 46 -30 i386 utime sys_utime32 __ia32_sys_utime32 47 -31 i386 stty 48 -32 i386 gtty 49 -33 i386 access sys_access __ia32_sys_access 50 -34 i386 nice sys_nice __ia32_sys_nice 51 -35 i386 ftime 52 -36 i386 sync sys_sync __ia32_sys_sync 53 -37 i386 kill sys_kill __ia32_sys_kill 54 -38 i386 rename sys_rename __ia32_sys_rename 55 -39 i386 mkdir sys_mkdir __ia32_sys_mkdir 56 -40 i386 rmdir sys_rmdir __ia32_sys_rmdir 57 -41 i386 dup sys_dup __ia32_sys_dup 58 -42 i386 pipe sys_pipe __ia32_sys_pipe 59 -43 i386 times sys_times __ia32_compat_sys_times 60 -44 i386 prof 61 -45 i386 brk sys_brk __ia32_sys_brk 62 -46 i386 setgid sys_setgid16 __ia32_sys_setgid16 63 -47 i386 getgid sys_getgid16 __ia32_sys_getgid16 64 -48 i386 signal sys_signal __ia32_sys_signal 65 -49 i386 geteuid sys_geteuid16 __ia32_sys_geteuid16 66 -50 i386 getegid sys_getegid16 __ia32_sys_getegid16 67 -51 i386 acct sys_acct __ia32_sys_acct 68 -52 i386 umount2 sys_umount __ia32_sys_umount 69 -53 i386 lock 70 -54 i386 ioctl sys_ioctl __ia32_compat_sys_ioctl 71 -55 i386 fcntl sys_fcntl __ia32_compat_sys_fcntl64 72 -56 i386 mpx 73 -57 i386 setpgid sys_setpgid __ia32_sys_setpgid 74 -58 i386 ulimit 75 -59 i386 oldolduname sys_olduname __ia32_sys_olduname 76 -60 i386 umask sys_umask __ia32_sys_umask 77 -61 i386 chroot sys_chroot __ia32_sys_chroot 78 -62 i386 ustat sys_ustat __ia32_compat_sys_ustat 79 -63 i386 dup2 sys_dup2 __ia32_sys_dup2 80 -64 i386 getppid sys_getppid __ia32_sys_getppid 81 -65 i386 getpgrp sys_getpgrp __ia32_sys_getpgrp 82 -66 i386 setsid sys_setsid __ia32_sys_setsid 83 -67 i386 sigaction sys_sigaction __ia32_compat_sys_sigaction 84 -68 i386 sgetmask sys_sgetmask __ia32_sys_sgetmask 85 -69 i386 ssetmask sys_ssetmask __ia32_sys_ssetmask 86 -70 i386 setreuid sys_setreuid16 __ia32_sys_setreuid16 87 -71 i386 setregid sys_setregid16 __ia32_sys_setregid16 88 -72 i386 sigsuspend sys_sigsuspend __ia32_sys_sigsuspend 89 -73 i386 sigpending sys_sigpending __ia32_compat_sys_sigpending 90 -74 i386 sethostname sys_sethostname __ia32_sys_sethostname 91 -75 i386 setrlimit sys_setrlimit __ia32_compat_sys_setrlimit 92 -76 i386 getrlimit sys_old_getrlimit __ia32_compat_sys_old_getrlimit 93 -77 i386 getrusage sys_getrusage __ia32_compat_sys_getrusage 94 -78 i386 gettimeofday sys_gettimeofday __ia32_compat_sys_gettimeofday 95 -79 i386 settimeofday sys_settimeofday __ia32_compat_sys_settimeofday 96 -80 i386 getgroups sys_getgroups16 __ia32_sys_getgroups16 97 -81 i386 setgroups sys_setgroups16 __ia32_sys_setgroups16 98 -82 i386 select sys_old_select __ia32_compat_sys_old_select 99 -83 i386 symlink sys_symlink __ia32_sys_symlink 100 -84 i386 oldlstat sys_lstat __ia32_sys_lstat 101 -85 i386 readlink sys_readlink __ia32_sys_readlink 102 -86 i386 uselib sys_uselib __ia32_sys_uselib 103 -87 i386 swapon sys_swapon __ia32_sys_swapon 104 -88 i386 reboot sys_reboot __ia32_sys_reboot 105 -89 i386 readdir sys_old_readdir __ia32_compat_sys_old_readdir 106 -90 i386 mmap sys_old_mmap __ia32_compat_sys_x86_mmap 107 -91 i386 munmap sys_munmap __ia32_sys_munmap 108 -92 i386 truncate sys_truncate __ia32_compat_sys_truncate 109 -93 i386 ftruncate sys_ftruncate __ia32_compat_sys_ftruncate 110 -94 i386 fchmod sys_fchmod __ia32_sys_fchmod 111 -95 i386 fchown sys_fchown16 __ia32_sys_fchown16 112 -96 i386 getpriority sys_getpriority __ia32_sys_getpriority 113 -97 i386 setpriority sys_setpriority __ia32_sys_setpriority 114 -98 i386 profil 115 -99 i386 statfs sys_statfs __ia32_compat_sys_statfs 116 -100 i386 fstatfs sys_fstatfs __ia32_compat_sys_fstatfs 117 -101 i386 ioperm sys_ioperm __ia32_sys_ioperm 118 -102 i386 socketcall sys_socketcall __ia32_compat_sys_socketcall 119 -103 i386 syslog sys_syslog __ia32_sys_syslog 120 -104 i386 setitimer sys_setitimer __ia32_compat_sys_setitimer 121 -105 i386 getitimer sys_getitimer __ia32_compat_sys_getitimer 122 -106 i386 stat sys_newstat __ia32_compat_sys_newstat 123 -107 i386 lstat sys_newlstat __ia32_compat_sys_newlstat 124 -108 i386 fstat sys_newfstat __ia32_compat_sys_newfstat 125 -109 i386 olduname sys_uname __ia32_sys_uname 126 -110 i386 iopl sys_iopl __ia32_sys_iopl 127 -111 i386 vhangup sys_vhangup __ia32_sys_vhangup 128 -112 i386 idle 129 -113 i386 vm86old sys_vm86old sys_ni_syscall 130 -114 i386 wait4 sys_wait4 __ia32_compat_sys_wait4 131 -115 i386 swapoff sys_swapoff __ia32_sys_swapoff 132 -116 i386 sysinfo sys_sysinfo __ia32_compat_sys_sysinfo 133 -117 i386 ipc sys_ipc __ia32_compat_sys_ipc 134 -118 i386 fsync sys_fsync __ia32_sys_fsync 135 -119 i386 sigreturn sys_sigreturn sys32_sigreturn 136 -120 i386 clone sys_clone __ia32_compat_sys_x86_clone 137 -121 i386 setdomainname sys_setdomainname __ia32_sys_setdomainname 138 -122 i386 uname sys_newuname __ia32_sys_newuname 139 -123 i386 modify_ldt sys_modify_ldt __ia32_sys_modify_ldt 140 -124 i386 adjtimex sys_adjtimex_time32 __ia32_sys_adjtimex_time32 141 -125 i386 mprotect sys_mprotect __ia32_sys_mprotect 142 -126 i386 sigprocmask sys_sigprocmask __ia32_compat_sys_sigprocmask 143 -127 i386 create_module 144 -128 i386 init_module sys_init_module __ia32_sys_init_module 145 -129 i386 delete_module sys_delete_module __ia32_sys_delete_module 146 -130 i386 get_kernel_syms 147 -131 i386 quotactl sys_quotactl __ia32_compat_sys_quotactl32 148 -132 i386 getpgid sys_getpgid __ia32_sys_getpgid 149 -133 i386 fchdir sys_fchdir __ia32_sys_fchdir 150 -134 i386 bdflush sys_bdflush __ia32_sys_bdflush 151 -135 i386 sysfs sys_sysfs __ia32_sys_sysfs 152 -136 i386 personality sys_personality __ia32_sys_personality 153 -137 i386 afs_syscall 154 -138 i386 setfsuid sys_setfsuid16 __ia32_sys_setfsuid16 155 -139 i386 setfsgid sys_setfsgid16 __ia32_sys_setfsgid16 156 -140 i386 _llseek sys_llseek __ia32_sys_llseek 157 -141 i386 getdents sys_getdents __ia32_compat_sys_getdents 158 -142 i386 _newselect sys_select __ia32_compat_sys_select 159 -143 i386 flock sys_flock __ia32_sys_flock 160 -144 i386 msync sys_msync __ia32_sys_msync 161 -145 i386 readv sys_readv __ia32_compat_sys_readv 162 -146 i386 writev sys_writev __ia32_compat_sys_writev 163 -147 i386 getsid sys_getsid __ia32_sys_getsid 164 -148 i386 fdatasync sys_fdatasync __ia32_sys_fdatasync 165 -149 i386 _sysctl sys_sysctl __ia32_compat_sys_sysctl 166 -150 i386 mlock sys_mlock __ia32_sys_mlock 167 -151 i386 munlock sys_munlock __ia32_sys_munlock 168 -152 i386 mlockall sys_mlockall __ia32_sys_mlockall 169 -153 i386 munlockall sys_munlockall __ia32_sys_munlockall 170 -154 i386 sched_setparam sys_sched_setparam __ia32_sys_sched_setparam 171 -155 i386 sched_getparam sys_sched_getparam __ia32_sys_sched_getparam 172 -156 i386 sched_setscheduler sys_sched_setscheduler __ia32_sys_sched_setscheduler 173 -157 i386 sched_getscheduler sys_sched_getscheduler __ia32_sys_sched_getscheduler 174 -158 i386 sched_yield sys_sched_yield __ia32_sys_sched_yield 175 -159 i386 sched_get_priority_max sys_sched_get_priority_max __ia32_sys_sched_get_priority_max 176 -160 i386 sched_get_priority_min sys_sched_get_priority_min __ia32_sys_sched_get_priority_min 177 -161 i386 sched_rr_get_interval sys_sched_rr_get_interval_time32 __ia32_sys_sched_rr_get_interval_time32 178 -162 i386 nanosleep sys_nanosleep_time32 __ia32_sys_nanosleep_time32 179 -163 i386 mremap sys_mremap __ia32_sys_mremap 180 -164 i386 setresuid sys_setresuid16 __ia32_sys_setresuid16 181 -165 i386 getresuid sys_getresuid16 __ia32_sys_getresuid16 182 -166 i386 vm86 sys_vm86 sys_ni_syscall 183 -167 i386 query_module 184 -168 i386 poll sys_poll __ia32_sys_poll 185 -169 i386 nfsservctl 186 -170 i386 setresgid sys_setresgid16 __ia32_sys_setresgid16 187 -171 i386 getresgid sys_getresgid16 __ia32_sys_getresgid16 188 -172 i386 prctl sys_prctl __ia32_sys_prctl 189 -173 i386 rt_sigreturn sys_rt_sigreturn sys32_rt_sigreturn 190 -174 i386 rt_sigaction sys_rt_sigaction __ia32_compat_sys_rt_sigaction 191 -175 i386 rt_sigprocmask sys_rt_sigprocmask __ia32_sys_rt_sigprocmask 192 -176 i386 rt_sigpending sys_rt_sigpending __ia32_compat_sys_rt_sigpending 193 -177 i386 rt_sigtimedwait sys_rt_sigtimedwait_time32 __ia32_compat_sys_rt_sigtimedwait_time32 194 -178 i386 rt_sigqueueinfo sys_rt_sigqueueinfo __ia32_compat_sys_rt_sigqueueinfo 195 -179 i386 rt_sigsuspend sys_rt_sigsuspend __ia32_sys_rt_sigsuspend 196 -180 i386 pread64 sys_pread64 __ia32_compat_sys_x86_pread 197 -181 i386 pwrite64 sys_pwrite64 __ia32_compat_sys_x86_pwrite 198 -182 i386 chown sys_chown16 __ia32_sys_chown16 199 -183 i386 getcwd sys_getcwd __ia32_sys_getcwd 200 -184 i386 capget sys_capget __ia32_sys_capget 201 -185 i386 capset sys_capset __ia32_sys_capset 202 -186 i386 sigaltstack sys_sigaltstack __ia32_compat_sys_sigaltstack 203 -187 i386 sendfile sys_sendfile __ia32_compat_sys_sendfile 204 -188 i386 getpmsg 205 -189 i386 putpmsg 206 -190 i386 vfork sys_vfork __ia32_sys_vfork 207 -191 i386 ugetrlimit sys_getrlimit __ia32_compat_sys_getrlimit 208 -192 i386 mmap2 sys_mmap_pgoff __ia32_sys_mmap_pgoff 209 -193 i386 truncate64 sys_truncate64 __ia32_compat_sys_x86_truncate64 210 -194 i386 ftruncate64 sys_ftruncate64 __ia32_compat_sys_x86_ftruncate64 211 -195 i386 stat64 sys_stat64 __ia32_compat_sys_x86_stat64 212 -196 i386 lstat64 sys_lstat64 __ia32_compat_sys_x86_lstat64 213 -197 i386 fstat64 sys_fstat64 __ia32_compat_sys_x86_fstat64 214 -198 i386 lchown32 sys_lchown __ia32_sys_lchown 215 -199 i386 getuid32 sys_getuid __ia32_sys_getuid 216 -200 i386 getgid32 sys_getgid __ia32_sys_getgid 217 -201 i386 geteuid32 sys_geteuid __ia32_sys_geteuid 218 -202 i386 getegid32 sys_getegid __ia32_sys_getegid 219 -203 i386 setreuid32 sys_setreuid __ia32_sys_setreuid 220 -204 i386 setregid32 sys_setregid __ia32_sys_setregid 221 -205 i386 getgroups32 sys_getgroups __ia32_sys_getgroups 222 -206 i386 setgroups32 sys_setgroups __ia32_sys_setgroups 223 -207 i386 fchown32 sys_fchown __ia32_sys_fchown 224 -208 i386 setresuid32 sys_setresuid __ia32_sys_setresuid 225 -209 i386 getresuid32 sys_getresuid __ia32_sys_getresuid 226 -210 i386 setresgid32 sys_setresgid __ia32_sys_setresgid 227 -211 i386 getresgid32 sys_getresgid __ia32_sys_getresgid 228 -212 i386 chown32 sys_chown __ia32_sys_chown 229 -213 i386 setuid32 sys_setuid __ia32_sys_setuid 230 -214 i386 setgid32 sys_setgid __ia32_sys_setgid 231 -215 i386 setfsuid32 sys_setfsuid __ia32_sys_setfsuid 232 -216 i386 setfsgid32 sys_setfsgid __ia32_sys_setfsgid 233 -217 i386 pivot_root sys_pivot_root __ia32_sys_pivot_root 234 -218 i386 mincore sys_mincore __ia32_sys_mincore 235 -219 i386 madvise sys_madvise __ia32_sys_madvise 236 -220 i386 getdents64 sys_getdents64 __ia32_sys_getdents64 237 -221 i386 fcntl64 sys_fcntl64 __ia32_compat_sys_fcntl64 238 -# 222 is unused 239 -# 223 is unused 240 -224 i386 gettid sys_gettid __ia32_sys_gettid 241 -225 i386 readahead sys_readahead __ia32_compat_sys_x86_readahead 242 -226 i386 setxattr sys_setxattr __ia32_sys_setxattr 243 -227 i386 lsetxattr sys_lsetxattr __ia32_sys_lsetxattr 244 -228 i386 fsetxattr sys_fsetxattr __ia32_sys_fsetxattr 245 -229 i386 getxattr sys_getxattr __ia32_sys_getxattr 246 -230 i386 lgetxattr sys_lgetxattr __ia32_sys_lgetxattr 247 -231 i386 fgetxattr sys_fgetxattr __ia32_sys_fgetxattr 248 -232 i386 listxattr sys_listxattr __ia32_sys_listxattr 249 -233 i386 llistxattr sys_llistxattr __ia32_sys_llistxattr 250 -234 i386 flistxattr sys_flistxattr __ia32_sys_flistxattr 251 -235 i386 removexattr sys_removexattr __ia32_sys_removexattr 252 -236 i386 lremovexattr sys_lremovexattr __ia32_sys_lremovexattr 253 -237 i386 fremovexattr sys_fremovexattr __ia32_sys_fremovexattr 254 -238 i386 tkill sys_tkill __ia32_sys_tkill 255 -239 i386 sendfile64 sys_sendfile64 __ia32_sys_sendfile64 256 -240 i386 futex sys_futex_time32 __ia32_sys_futex_time32 257 -241 i386 sched_setaffinity sys_sched_setaffinity __ia32_compat_sys_sched_setaffinity 258 -242 i386 sched_getaffinity sys_sched_getaffinity __ia32_compat_sys_sched_getaffinity 259 -243 i386 set_thread_area sys_set_thread_area __ia32_sys_set_thread_area 260 -244 i386 get_thread_area sys_get_thread_area __ia32_sys_get_thread_area 261 -245 i386 io_setup sys_io_setup __ia32_compat_sys_io_setup 262 -246 i386 io_destroy sys_io_destroy __ia32_sys_io_destroy 263 -247 i386 io_getevents sys_io_getevents_time32 __ia32_sys_io_getevents_time32 264 -248 i386 io_submit sys_io_submit __ia32_compat_sys_io_submit 265 -249 i386 io_cancel sys_io_cancel __ia32_sys_io_cancel 266 -250 i386 fadvise64 sys_fadvise64 __ia32_compat_sys_x86_fadvise64 267 -# 251 is available for reuse (was briefly sys_set_zone_reclaim) 268 -252 i386 exit_group sys_exit_group __ia32_sys_exit_group 269 -253 i386 lookup_dcookie sys_lookup_dcookie __ia32_compat_sys_lookup_dcookie 270 -254 i386 epoll_create sys_epoll_create __ia32_sys_epoll_create 271 -255 i386 epoll_ctl sys_epoll_ctl __ia32_sys_epoll_ctl 272 -256 i386 epoll_wait sys_epoll_wait __ia32_sys_epoll_wait 273 -257 i386 remap_file_pages sys_remap_file_pages __ia32_sys_remap_file_pages 274 -258 i386 set_tid_address sys_set_tid_address __ia32_sys_set_tid_address 275 -259 i386 timer_create sys_timer_create __ia32_compat_sys_timer_create 276 -260 i386 timer_settime sys_timer_settime32 __ia32_sys_timer_settime32 277 -261 i386 timer_gettime sys_timer_gettime32 __ia32_sys_timer_gettime32 278 -262 i386 timer_getoverrun sys_timer_getoverrun __ia32_sys_timer_getoverrun 279 -263 i386 timer_delete sys_timer_delete __ia32_sys_timer_delete 280 -264 i386 clock_settime sys_clock_settime32 __ia32_sys_clock_settime32 281 -265 i386 clock_gettime sys_clock_gettime32 __ia32_sys_clock_gettime32 282 -266 i386 clock_getres sys_clock_getres_time32 __ia32_sys_clock_getres_time32 283 -267 i386 clock_nanosleep sys_clock_nanosleep_time32 __ia32_sys_clock_nanosleep_time32 284 -268 i386 statfs64 sys_statfs64 __ia32_compat_sys_statfs64 285 -269 i386 fstatfs64 sys_fstatfs64 __ia32_compat_sys_fstatfs64 286 -270 i386 tgkill sys_tgkill __ia32_sys_tgkill 287 -271 i386 utimes sys_utimes_time32 __ia32_sys_utimes_time32 288 -272 i386 fadvise64_64 sys_fadvise64_64 __ia32_compat_sys_x86_fadvise64_64 289 -273 i386 vserver 290 -274 i386 mbind sys_mbind __ia32_sys_mbind 291 -275 i386 get_mempolicy sys_get_mempolicy __ia32_compat_sys_get_mempolicy 292 -276 i386 set_mempolicy sys_set_mempolicy __ia32_sys_set_mempolicy 293 -277 i386 mq_open sys_mq_open __ia32_compat_sys_mq_open 294 -278 i386 mq_unlink sys_mq_unlink __ia32_sys_mq_unlink 295 -279 i386 mq_timedsend sys_mq_timedsend_time32 __ia32_sys_mq_timedsend_time32 296 -280 i386 mq_timedreceive sys_mq_timedreceive_time32 __ia32_sys_mq_timedreceive_time32 297 -281 i386 mq_notify sys_mq_notify __ia32_compat_sys_mq_notify 298 -282 i386 mq_getsetattr sys_mq_getsetattr __ia32_compat_sys_mq_getsetattr 299 -283 i386 kexec_load sys_kexec_load __ia32_compat_sys_kexec_load 300 -284 i386 waitid sys_waitid __ia32_compat_sys_waitid 301 -# 285 sys_setaltroot 302 -286 i386 add_key sys_add_key __ia32_sys_add_key 303 -287 i386 request_key sys_request_key __ia32_sys_request_key 304 -288 i386 keyctl sys_keyctl __ia32_compat_sys_keyctl 305 -289 i386 ioprio_set sys_ioprio_set __ia32_sys_ioprio_set 306 -290 i386 ioprio_get sys_ioprio_get __ia32_sys_ioprio_get 307 -291 i386 inotify_init sys_inotify_init __ia32_sys_inotify_init 308 -292 i386 inotify_add_watch sys_inotify_add_watch __ia32_sys_inotify_add_watch 309 -293 i386 inotify_rm_watch sys_inotify_rm_watch __ia32_sys_inotify_rm_watch 310 -294 i386 migrate_pages sys_migrate_pages __ia32_sys_migrate_pages 311 -295 i386 openat sys_openat __ia32_compat_sys_openat 312 -296 i386 mkdirat sys_mkdirat __ia32_sys_mkdirat 313 -297 i386 mknodat sys_mknodat __ia32_sys_mknodat 314 -298 i386 fchownat sys_fchownat __ia32_sys_fchownat 315 -299 i386 futimesat sys_futimesat_time32 __ia32_sys_futimesat_time32 316 -300 i386 fstatat64 sys_fstatat64 __ia32_compat_sys_x86_fstatat 317 -301 i386 unlinkat sys_unlinkat __ia32_sys_unlinkat 318 -302 i386 renameat sys_renameat __ia32_sys_renameat 319 -303 i386 linkat sys_linkat __ia32_sys_linkat 320 -304 i386 symlinkat sys_symlinkat __ia32_sys_symlinkat 321 -305 i386 readlinkat sys_readlinkat __ia32_sys_readlinkat 322 -306 i386 fchmodat sys_fchmodat __ia32_sys_fchmodat 323 -307 i386 faccessat sys_faccessat __ia32_sys_faccessat 324 -308 i386 pselect6 sys_pselect6_time32 __ia32_compat_sys_pselect6_time32 325 -309 i386 ppoll sys_ppoll_time32 __ia32_compat_sys_ppoll_time32 326 -310 i386 unshare sys_unshare __ia32_sys_unshare 327 -311 i386 set_robust_list sys_set_robust_list __ia32_compat_sys_set_robust_list 328 -312 i386 get_robust_list sys_get_robust_list __ia32_compat_sys_get_robust_list 329 -313 i386 splice sys_splice __ia32_sys_splice 330 -314 i386 sync_file_range sys_sync_file_range __ia32_compat_sys_x86_sync_file_range 331 -315 i386 tee sys_tee __ia32_sys_tee 332 -316 i386 vmsplice sys_vmsplice __ia32_compat_sys_vmsplice 333 -317 i386 move_pages sys_move_pages __ia32_compat_sys_move_pages 334 -318 i386 getcpu sys_getcpu __ia32_sys_getcpu 335 -319 i386 epoll_pwait sys_epoll_pwait __ia32_sys_epoll_pwait 336 -320 i386 utimensat sys_utimensat_time32 __ia32_sys_utimensat_time32 337 -321 i386 signalfd sys_signalfd __ia32_compat_sys_signalfd 338 -322 i386 timerfd_create sys_timerfd_create __ia32_sys_timerfd_create 339 -323 i386 eventfd sys_eventfd __ia32_sys_eventfd 340 -324 i386 fallocate sys_fallocate __ia32_compat_sys_x86_fallocate 341 -325 i386 timerfd_settime sys_timerfd_settime32 __ia32_sys_timerfd_settime32 342 -326 i386 timerfd_gettime sys_timerfd_gettime32 __ia32_sys_timerfd_gettime32 343 -327 i386 signalfd4 sys_signalfd4 __ia32_compat_sys_signalfd4 344 -328 i386 eventfd2 sys_eventfd2 __ia32_sys_eventfd2 345 -329 i386 epoll_create1 sys_epoll_create1 __ia32_sys_epoll_create1 346 -330 i386 dup3 sys_dup3 __ia32_sys_dup3 347 -331 i386 pipe2 sys_pipe2 __ia32_sys_pipe2 348 -332 i386 inotify_init1 sys_inotify_init1 __ia32_sys_inotify_init1 349 -333 i386 preadv sys_preadv __ia32_compat_sys_preadv 350 -334 i386 pwritev sys_pwritev __ia32_compat_sys_pwritev 351 -335 i386 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo __ia32_compat_sys_rt_tgsigqueueinfo 352 -336 i386 perf_event_open sys_perf_event_open __ia32_sys_perf_event_open 353 -337 i386 recvmmsg sys_recvmmsg_time32 __ia32_compat_sys_recvmmsg_time32 354 -338 i386 fanotify_init sys_fanotify_init __ia32_sys_fanotify_init 355 -339 i386 fanotify_mark sys_fanotify_mark __ia32_compat_sys_fanotify_mark 356 -340 i386 prlimit64 sys_prlimit64 __ia32_sys_prlimit64 357 -341 i386 name_to_handle_at sys_name_to_handle_at __ia32_sys_name_to_handle_at 358 -342 i386 open_by_handle_at sys_open_by_handle_at __ia32_compat_sys_open_by_handle_at 359 -343 i386 clock_adjtime sys_clock_adjtime32 __ia32_sys_clock_adjtime32 360 -344 i386 syncfs sys_syncfs __ia32_sys_syncfs 361 -345 i386 sendmmsg sys_sendmmsg __ia32_compat_sys_sendmmsg 362 -346 i386 setns sys_setns __ia32_sys_setns 363 -347 i386 process_vm_readv sys_process_vm_readv __ia32_compat_sys_process_vm_readv 364 -348 i386 process_vm_writev sys_process_vm_writev __ia32_compat_sys_process_vm_writev 365 -349 i386 kcmp sys_kcmp __ia32_sys_kcmp 366 -350 i386 finit_module sys_finit_module __ia32_sys_finit_module 367 -351 i386 sched_setattr sys_sched_setattr __ia32_sys_sched_setattr 368 -352 i386 sched_getattr sys_sched_getattr __ia32_sys_sched_getattr 369 -353 i386 renameat2 sys_renameat2 __ia32_sys_renameat2 370 -354 i386 seccomp sys_seccomp __ia32_sys_seccomp 371 -355 i386 getrandom sys_getrandom __ia32_sys_getrandom 372 -356 i386 memfd_create sys_memfd_create __ia32_sys_memfd_create 373 -357 i386 bpf sys_bpf __ia32_sys_bpf 374 -358 i386 execveat sys_execveat __ia32_compat_sys_execveat 375 -359 i386 socket sys_socket __ia32_sys_socket 376 -360 i386 socketpair sys_socketpair __ia32_sys_socketpair 377 -361 i386 bind sys_bind __ia32_sys_bind 378 -362 i386 connect sys_connect __ia32_sys_connect 379 -363 i386 listen sys_listen __ia32_sys_listen 380 -364 i386 accept4 sys_accept4 __ia32_sys_accept4 381 -365 i386 getsockopt sys_getsockopt __ia32_compat_sys_getsockopt 382 -366 i386 setsockopt sys_setsockopt __ia32_compat_sys_setsockopt 383 -367 i386 getsockname sys_getsockname __ia32_sys_getsockname 384 -368 i386 getpeername sys_getpeername __ia32_sys_getpeername 385 -369 i386 sendto sys_sendto __ia32_sys_sendto 386 -370 i386 sendmsg sys_sendmsg __ia32_compat_sys_sendmsg 387 -371 i386 recvfrom sys_recvfrom __ia32_compat_sys_recvfrom 388 -372 i386 recvmsg sys_recvmsg __ia32_compat_sys_recvmsg 389 -373 i386 shutdown sys_shutdown __ia32_sys_shutdown 390 -374 i386 userfaultfd sys_userfaultfd __ia32_sys_userfaultfd 391 -375 i386 membarrier sys_membarrier __ia32_sys_membarrier 392 -376 i386 mlock2 sys_mlock2 __ia32_sys_mlock2 393 -377 i386 copy_file_range sys_copy_file_range __ia32_sys_copy_file_range 394 -378 i386 preadv2 sys_preadv2 __ia32_compat_sys_preadv2 395 -379 i386 pwritev2 sys_pwritev2 __ia32_compat_sys_pwritev2 396 -380 i386 pkey_mprotect sys_pkey_mprotect __ia32_sys_pkey_mprotect 397 -381 i386 pkey_alloc sys_pkey_alloc __ia32_sys_pkey_alloc 398 -382 i386 pkey_free sys_pkey_free __ia32_sys_pkey_free 399 -383 i386 statx sys_statx __ia32_sys_statx 400 -384 i386 arch_prctl sys_arch_prctl __ia32_compat_sys_arch_prctl 401 -385 i386 io_pgetevents sys_io_pgetevents_time32 __ia32_compat_sys_io_pgetevents 402 -386 i386 rseq sys_rseq __ia32_sys_rseq 403 -393 i386 semget sys_semget __ia32_sys_semget 404 -394 i386 semctl sys_semctl __ia32_compat_sys_semctl 405 -395 i386 shmget sys_shmget __ia32_sys_shmget 406 -396 i386 shmctl sys_shmctl __ia32_compat_sys_shmctl 407 -397 i386 shmat sys_shmat __ia32_compat_sys_shmat 408 -398 i386 shmdt sys_shmdt __ia32_sys_shmdt 409 -399 i386 msgget sys_msgget __ia32_sys_msgget 410 -400 i386 msgsnd sys_msgsnd __ia32_compat_sys_msgsnd 411 -401 i386 msgrcv sys_msgrcv __ia32_compat_sys_msgrcv 412 -402 i386 msgctl sys_msgctl __ia32_compat_sys_msgctl 413 -403 i386 clock_gettime64 sys_clock_gettime __ia32_sys_clock_gettime 414 -404 i386 clock_settime64 sys_clock_settime __ia32_sys_clock_settime 415 -405 i386 clock_adjtime64 sys_clock_adjtime __ia32_sys_clock_adjtime 416 -406 i386 clock_getres_time64 sys_clock_getres __ia32_sys_clock_getres 417 -407 i386 clock_nanosleep_time64 sys_clock_nanosleep __ia32_sys_clock_nanosleep 418 -408 i386 timer_gettime64 sys_timer_gettime __ia32_sys_timer_gettime 419 -409 i386 timer_settime64 sys_timer_settime __ia32_sys_timer_settime 420 -410 i386 timerfd_gettime64 sys_timerfd_gettime __ia32_sys_timerfd_gettime 421 -411 i386 timerfd_settime64 sys_timerfd_settime __ia32_sys_timerfd_settime 422 -412 i386 utimensat_time64 sys_utimensat __ia32_sys_utimensat 423 -413 i386 pselect6_time64 sys_pselect6 __ia32_compat_sys_pselect6_time64 424 -414 i386 ppoll_time64 sys_ppoll __ia32_compat_sys_ppoll_time64 425 -416 i386 io_pgetevents_time64 sys_io_pgetevents __ia32_sys_io_pgetevents 426 -417 i386 recvmmsg_time64 sys_recvmmsg __ia32_compat_sys_recvmmsg_time64 427 -418 i386 mq_timedsend_time64 sys_mq_timedsend __ia32_sys_mq_timedsend 428 -419 i386 mq_timedreceive_time64 sys_mq_timedreceive __ia32_sys_mq_timedreceive 429 -420 i386 semtimedop_time64 sys_semtimedop __ia32_sys_semtimedop 430 -421 i386 rt_sigtimedwait_time64 sys_rt_sigtimedwait __ia32_compat_sys_rt_sigtimedwait_time64 431 -422 i386 futex_time64 sys_futex __ia32_sys_futex 432 -423 i386 sched_rr_get_interval_time64 sys_sched_rr_get_interval __ia32_sys_sched_rr_get_interval 433 -424 i386 pidfd_send_signal sys_pidfd_send_signal __ia32_sys_pidfd_send_signal 434 -425 i386 io_uring_setup sys_io_uring_setup __ia32_sys_io_uring_setup 435 -426 i386 io_uring_enter sys_io_uring_enter __ia32_sys_io_uring_enter 436 -427 i386 io_uring_register sys_io_uring_register __ia32_sys_io_uring_register 437 -428 i386 open_tree sys_open_tree __ia32_sys_open_tree 438 -429 i386 move_mount sys_move_mount __ia32_sys_move_mount 439 -430 i386 fsopen sys_fsopen __ia32_sys_fsopen 440 -431 i386 fsconfig sys_fsconfig __ia32_sys_fsconfig 441 -432 i386 fsmount sys_fsmount __ia32_sys_fsmount 442 -433 i386 fspick sys_fspick __ia32_sys_fspick
Deleted arch/x86.lin.64/error_table.tbl version [206e6b2419].
1 -EPERM 1 2 -ENOENT 2 3 -ESRCH 3 4 -EINTR 4 5 -EIO 5 6 -ENXIO 6 7 -E2BIG 7 8 -ENOEXEC 8 9 -EBADF 9 10 -ECHILD 10 11 -EAGAIN 11 12 -EWOULDBLOCK 11 13 -ENOMEM 12 14 -EACCES 13 15 -EFAULT 14 16 -ENOTBLK 15 17 -EBUSY 16 18 -EEXIST 17 19 -EXDEV 18 20 -ENODEV 19 21 -ENOTDIR 20 22 -EISDIR 21 23 -EINVAL 22 24 -ENFILE 23 25 -EMFILE 24 26 -ENOTTY 25 27 -ETXTBSY 26 28 -EFBIG 27 29 -ENOSPC 28 30 -ESPIPE 29 31 -EROFS 30 32 -EMLINK 31 33 -EPIPE 32 34 -EDOM 33 35 -ERANGE 34 36 -EDEADLK 35 37 -EDEADLOCK 35 38 -ENAMETOOLONG 36 39 -ENOLCK 37 40 -ENOSYS 38 41 -ENOTEMPTY 39 42 -ELOOP 40 43 -ENOMSG 42 44 -EIDRM 43 45 -ECHRNG 44 46 -EL2NSYNC 45 47 -EL3HLT 46 48 -EL3RST 47 49 -ELNRNG 48 50 -EUNATCH 49 51 -ENOCSI 50 52 -EL2HLT 51 53 -EBADE 52 54 -EBADR 53 55 -EXFULL 54 56 -ENOANO 55 57 -EBADRQC 56 58 -EBADSLT 57 59 -EBFONT 59 60 -ENOSTR 60 61 -ENODATA 61 62 -ETIME 62 63 -ENOSR 63 64 -ENONET 64 65 -ENOPKG 65 66 -EREMOTE 66 67 -ENOLINK 67 68 -EADV 68 69 -ESRMNT 69 70 -ECOMM 70 71 -EPROTO 71 72 -EMULTIHOP 72 73 -EDOTDOT 73 74 -EBADMSG 74 75 -EOVERFLOW 75 76 -ENOTUNIQ 76 77 -EBADFD 77 78 -EREMCHG 78 79 -ELIBACC 79 80 -ELIBBAD 80 81 -ELIBSCN 81 82 -ELIBMAX 82 83 -ELIBEXEC 83 84 -EILSEQ 84 85 -ERESTART 85 86 -ESTRPIPE 86 87 -EUSERS 87 88 -ENOTSOCK 88 89 -EDESTADDRREQ 89 90 -EMSGSIZE 90 91 -EPROTOTYPE 91 92 -ENOPROTOOPT 92 93 -EPROTONOSUPPORT 93 94 -ESOCKTNOSUPPORT 94 95 -EOPNOTSUPP 95 96 -EPFNOSUPPORT 96 97 -EAFNOSUPPORT 97 98 -EADDRINUSE 98 99 -EADDRNOTAVAIL 99 100 -ENETDOWN 100 101 -ENETUNREACH 101 102 -ENETRESET 102 103 -ECONNABORTED 103 104 -ECONNRESET 104 105 -ENOBUFS 105 106 -EISCONN 106 107 -ENOTCONN 107 108 -ESHUTDOWN 108 109 -ETOOMANYREFS 109 110 -ETIMEDOUT 110 111 -ECONNREFUSED 111 112 -EHOSTDOWN 112 113 -EHOSTUNREACH 113 114 -EALREADY 114 115 -EINPROGRESS 115 116 -ESTALE 116 117 -EUCLEAN 117 118 -ENOTNAM 118 119 -ENAVAIL 119 120 -EISNAM 120 121 -EREMOTEIO 121 122 -EDQUOT 122 123 -ENOMEDIUM 123 124 -EMEDIUMTYPE 124 125 -ECANCELED 125 126 -ENOKEY 126 127 -EKEYEXPIRED 127 128 -EKEYREVOKED 128 129 -EKEYREJECTED 129 130 -EOWNERDEAD 130 131 -ENOTRECOVERABLE 131 132 -ERFKILL 132 133 -EHWPOISON 133
Modified arch/x86.lin.64/system_calls.h from [5cd1df41a9] to [f2700fc28d].
1 +/* this file was generated from the Linux kernel source 2 + * file /arch/x86/entry/syscalls/syscall_64.tbl. since 3 + * the x86-64 syscalls are a special case and are unlikely 4 + * to change in the future, the code used to generate this 5 + * header was not preserved. */ 6 + 1 7 #ifndef KIplatform_syscall 2 8 #define KIplatform_syscall 3 9 4 10 enum k_platform_syscall { 5 11 6 12 k_platform_syscall_read = 0, 7 13 k_platform_syscall_write = 1,
Deleted arch/x86.lin.64/system_calls.tbl version [474283bc8d].
1 -# imported from kernel source tree; original file 2 -# at /arch/x86/entry/syscalls/syscall_64.tbl 3 -# ---- 4 -# 64-bit system call numbers and entry vectors 5 -# 6 -# The format is: 7 -# <number> <abi> <name> <entry point> 8 -# 9 -# The __x64_sys_*() stubs are created on-the-fly for sys_*() system calls 10 -# 11 -# The abi is "common", "64" or "x32" for this file. 12 -# 13 -0 common read __x64_sys_read 14 -1 common write __x64_sys_write 15 -2 common open __x64_sys_open 16 -3 common close __x64_sys_close 17 -4 common stat __x64_sys_newstat 18 -5 common fstat __x64_sys_newfstat 19 -6 common lstat __x64_sys_newlstat 20 -7 common poll __x64_sys_poll 21 -8 common lseek __x64_sys_lseek 22 -9 common mmap __x64_sys_mmap 23 -10 common mprotect __x64_sys_mprotect 24 -11 common munmap __x64_sys_munmap 25 -12 common brk __x64_sys_brk 26 -13 64 rt_sigaction __x64_sys_rt_sigaction 27 -14 common rt_sigprocmask __x64_sys_rt_sigprocmask 28 -15 64 rt_sigreturn __x64_sys_rt_sigreturn/ptregs 29 -16 64 ioctl __x64_sys_ioctl 30 -17 common pread64 __x64_sys_pread64 31 -18 common pwrite64 __x64_sys_pwrite64 32 -19 64 readv __x64_sys_readv 33 -20 64 writev __x64_sys_writev 34 -21 common access __x64_sys_access 35 -22 common pipe __x64_sys_pipe 36 -23 common select __x64_sys_select 37 -24 common sched_yield __x64_sys_sched_yield 38 -25 common mremap __x64_sys_mremap 39 -26 common msync __x64_sys_msync 40 -27 common mincore __x64_sys_mincore 41 -28 common madvise __x64_sys_madvise 42 -29 common shmget __x64_sys_shmget 43 -30 common shmat __x64_sys_shmat 44 -31 common shmctl __x64_sys_shmctl 45 -32 common dup __x64_sys_dup 46 -33 common dup2 __x64_sys_dup2 47 -34 common pause __x64_sys_pause 48 -35 common nanosleep __x64_sys_nanosleep 49 -36 common getitimer __x64_sys_getitimer 50 -37 common alarm __x64_sys_alarm 51 -38 common setitimer __x64_sys_setitimer 52 -39 common getpid __x64_sys_getpid 53 -40 common sendfile __x64_sys_sendfile64 54 -41 common socket __x64_sys_socket 55 -42 common connect __x64_sys_connect 56 -43 common accept __x64_sys_accept 57 -44 common sendto __x64_sys_sendto 58 -45 64 recvfrom __x64_sys_recvfrom 59 -46 64 sendmsg __x64_sys_sendmsg 60 -47 64 recvmsg __x64_sys_recvmsg 61 -48 common shutdown __x64_sys_shutdown 62 -49 common bind __x64_sys_bind 63 -50 common listen __x64_sys_listen 64 -51 common getsockname __x64_sys_getsockname 65 -52 common getpeername __x64_sys_getpeername 66 -53 common socketpair __x64_sys_socketpair 67 -54 64 setsockopt __x64_sys_setsockopt 68 -55 64 getsockopt __x64_sys_getsockopt 69 -56 common clone __x64_sys_clone/ptregs 70 -57 common fork __x64_sys_fork/ptregs 71 -58 common vfork __x64_sys_vfork/ptregs 72 -59 64 execve __x64_sys_execve/ptregs 73 -60 common exit __x64_sys_exit 74 -61 common wait4 __x64_sys_wait4 75 -62 common kill __x64_sys_kill 76 -63 common uname __x64_sys_newuname 77 -64 common semget __x64_sys_semget 78 -65 common semop __x64_sys_semop 79 -66 common semctl __x64_sys_semctl 80 -67 common shmdt __x64_sys_shmdt 81 -68 common msgget __x64_sys_msgget 82 -69 common msgsnd __x64_sys_msgsnd 83 -70 common msgrcv __x64_sys_msgrcv 84 -71 common msgctl __x64_sys_msgctl 85 -72 common fcntl __x64_sys_fcntl 86 -73 common flock __x64_sys_flock 87 -74 common fsync __x64_sys_fsync 88 -75 common fdatasync __x64_sys_fdatasync 89 -76 common truncate __x64_sys_truncate 90 -77 common ftruncate __x64_sys_ftruncate 91 -78 common getdents __x64_sys_getdents 92 -79 common getcwd __x64_sys_getcwd 93 -80 common chdir __x64_sys_chdir 94 -81 common fchdir __x64_sys_fchdir 95 -82 common rename __x64_sys_rename 96 -83 common mkdir __x64_sys_mkdir 97 -84 common rmdir __x64_sys_rmdir 98 -85 common creat __x64_sys_creat 99 -86 common link __x64_sys_link 100 -87 common unlink __x64_sys_unlink 101 -88 common symlink __x64_sys_symlink 102 -89 common readlink __x64_sys_readlink 103 -90 common chmod __x64_sys_chmod 104 -91 common fchmod __x64_sys_fchmod 105 -92 common chown __x64_sys_chown 106 -93 common fchown __x64_sys_fchown 107 -94 common lchown __x64_sys_lchown 108 -95 common umask __x64_sys_umask 109 -96 common gettimeofday __x64_sys_gettimeofday 110 -97 common getrlimit __x64_sys_getrlimit 111 -98 common getrusage __x64_sys_getrusage 112 -99 common sysinfo __x64_sys_sysinfo 113 -100 common times __x64_sys_times 114 -101 64 ptrace __x64_sys_ptrace 115 -102 common getuid __x64_sys_getuid 116 -103 common syslog __x64_sys_syslog 117 -104 common getgid __x64_sys_getgid 118 -105 common setuid __x64_sys_setuid 119 -106 common setgid __x64_sys_setgid 120 -107 common geteuid __x64_sys_geteuid 121 -108 common getegid __x64_sys_getegid 122 -109 common setpgid __x64_sys_setpgid 123 -110 common getppid __x64_sys_getppid 124 -111 common getpgrp __x64_sys_getpgrp 125 -112 common setsid __x64_sys_setsid 126 -113 common setreuid __x64_sys_setreuid 127 -114 common setregid __x64_sys_setregid 128 -115 common getgroups __x64_sys_getgroups 129 -116 common setgroups __x64_sys_setgroups 130 -117 common setresuid __x64_sys_setresuid 131 -118 common getresuid __x64_sys_getresuid 132 -119 common setresgid __x64_sys_setresgid 133 -120 common getresgid __x64_sys_getresgid 134 -121 common getpgid __x64_sys_getpgid 135 -122 common setfsuid __x64_sys_setfsuid 136 -123 common setfsgid __x64_sys_setfsgid 137 -124 common getsid __x64_sys_getsid 138 -125 common capget __x64_sys_capget 139 -126 common capset __x64_sys_capset 140 -127 64 rt_sigpending __x64_sys_rt_sigpending 141 -128 64 rt_sigtimedwait __x64_sys_rt_sigtimedwait 142 -129 64 rt_sigqueueinfo __x64_sys_rt_sigqueueinfo 143 -130 common rt_sigsuspend __x64_sys_rt_sigsuspend 144 -131 64 sigaltstack __x64_sys_sigaltstack 145 -132 common utime __x64_sys_utime 146 -133 common mknod __x64_sys_mknod 147 -134 64 uselib 148 -135 common personality __x64_sys_personality 149 -136 common ustat __x64_sys_ustat 150 -137 common statfs __x64_sys_statfs 151 -138 common fstatfs __x64_sys_fstatfs 152 -139 common sysfs __x64_sys_sysfs 153 -140 common getpriority __x64_sys_getpriority 154 -141 common setpriority __x64_sys_setpriority 155 -142 common sched_setparam __x64_sys_sched_setparam 156 -143 common sched_getparam __x64_sys_sched_getparam 157 -144 common sched_setscheduler __x64_sys_sched_setscheduler 158 -145 common sched_getscheduler __x64_sys_sched_getscheduler 159 -146 common sched_get_priority_max __x64_sys_sched_get_priority_max 160 -147 common sched_get_priority_min __x64_sys_sched_get_priority_min 161 -148 common sched_rr_get_interval __x64_sys_sched_rr_get_interval 162 -149 common mlock __x64_sys_mlock 163 -150 common munlock __x64_sys_munlock 164 -151 common mlockall __x64_sys_mlockall 165 -152 common munlockall __x64_sys_munlockall 166 -153 common vhangup __x64_sys_vhangup 167 -154 common modify_ldt __x64_sys_modify_ldt 168 -155 common pivot_root __x64_sys_pivot_root 169 -156 64 _sysctl __x64_sys_sysctl 170 -157 common prctl __x64_sys_prctl 171 -158 common arch_prctl __x64_sys_arch_prctl 172 -159 common adjtimex __x64_sys_adjtimex 173 -160 common setrlimit __x64_sys_setrlimit 174 -161 common chroot __x64_sys_chroot 175 -162 common sync __x64_sys_sync 176 -163 common acct __x64_sys_acct 177 -164 common settimeofday __x64_sys_settimeofday 178 -165 common mount __x64_sys_mount 179 -166 common umount2 __x64_sys_umount 180 -167 common swapon __x64_sys_swapon 181 -168 common swapoff __x64_sys_swapoff 182 -169 common reboot __x64_sys_reboot 183 -170 common sethostname __x64_sys_sethostname 184 -171 common setdomainname __x64_sys_setdomainname 185 -172 common iopl __x64_sys_iopl/ptregs 186 -173 common ioperm __x64_sys_ioperm 187 -174 64 create_module 188 -175 common init_module __x64_sys_init_module 189 -176 common delete_module __x64_sys_delete_module 190 -177 64 get_kernel_syms 191 -178 64 query_module 192 -179 common quotactl __x64_sys_quotactl 193 -180 64 nfsservctl 194 -181 common getpmsg 195 -182 common putpmsg 196 -183 common afs_syscall 197 -184 common tuxcall 198 -185 common security 199 -186 common gettid __x64_sys_gettid 200 -187 common readahead __x64_sys_readahead 201 -188 common setxattr __x64_sys_setxattr 202 -189 common lsetxattr __x64_sys_lsetxattr 203 -190 common fsetxattr __x64_sys_fsetxattr 204 -191 common getxattr __x64_sys_getxattr 205 -192 common lgetxattr __x64_sys_lgetxattr 206 -193 common fgetxattr __x64_sys_fgetxattr 207 -194 common listxattr __x64_sys_listxattr 208 -195 common llistxattr __x64_sys_llistxattr 209 -196 common flistxattr __x64_sys_flistxattr 210 -197 common removexattr __x64_sys_removexattr 211 -198 common lremovexattr __x64_sys_lremovexattr 212 -199 common fremovexattr __x64_sys_fremovexattr 213 -200 common tkill __x64_sys_tkill 214 -201 common time __x64_sys_time 215 -202 common futex __x64_sys_futex 216 -203 common sched_setaffinity __x64_sys_sched_setaffinity 217 -204 common sched_getaffinity __x64_sys_sched_getaffinity 218 -205 64 set_thread_area 219 -206 64 io_setup __x64_sys_io_setup 220 -207 common io_destroy __x64_sys_io_destroy 221 -208 common io_getevents __x64_sys_io_getevents 222 -209 64 io_submit __x64_sys_io_submit 223 -210 common io_cancel __x64_sys_io_cancel 224 -211 64 get_thread_area 225 -212 common lookup_dcookie __x64_sys_lookup_dcookie 226 -213 common epoll_create __x64_sys_epoll_create 227 -214 64 epoll_ctl_old 228 -215 64 epoll_wait_old 229 -216 common remap_file_pages __x64_sys_remap_file_pages 230 -217 common getdents64 __x64_sys_getdents64 231 -218 common set_tid_address __x64_sys_set_tid_address 232 -219 common restart_syscall __x64_sys_restart_syscall 233 -220 common semtimedop __x64_sys_semtimedop 234 -221 common fadvise64 __x64_sys_fadvise64 235 -222 64 timer_create __x64_sys_timer_create 236 -223 common timer_settime __x64_sys_timer_settime 237 -224 common timer_gettime __x64_sys_timer_gettime 238 -225 common timer_getoverrun __x64_sys_timer_getoverrun 239 -226 common timer_delete __x64_sys_timer_delete 240 -227 common clock_settime __x64_sys_clock_settime 241 -228 common clock_gettime __x64_sys_clock_gettime 242 -229 common clock_getres __x64_sys_clock_getres 243 -230 common clock_nanosleep __x64_sys_clock_nanosleep 244 -231 common exit_group __x64_sys_exit_group 245 -232 common epoll_wait __x64_sys_epoll_wait 246 -233 common epoll_ctl __x64_sys_epoll_ctl 247 -234 common tgkill __x64_sys_tgkill 248 -235 common utimes __x64_sys_utimes 249 -236 64 vserver 250 -237 common mbind __x64_sys_mbind 251 -238 common set_mempolicy __x64_sys_set_mempolicy 252 -239 common get_mempolicy __x64_sys_get_mempolicy 253 -240 common mq_open __x64_sys_mq_open 254 -241 common mq_unlink __x64_sys_mq_unlink 255 -242 common mq_timedsend __x64_sys_mq_timedsend 256 -243 common mq_timedreceive __x64_sys_mq_timedreceive 257 -244 64 mq_notify __x64_sys_mq_notify 258 -245 common mq_getsetattr __x64_sys_mq_getsetattr 259 -246 64 kexec_load __x64_sys_kexec_load 260 -247 64 waitid __x64_sys_waitid 261 -248 common add_key __x64_sys_add_key 262 -249 common request_key __x64_sys_request_key 263 -250 common keyctl __x64_sys_keyctl 264 -251 common ioprio_set __x64_sys_ioprio_set 265 -252 common ioprio_get __x64_sys_ioprio_get 266 -253 common inotify_init __x64_sys_inotify_init 267 -254 common inotify_add_watch __x64_sys_inotify_add_watch 268 -255 common inotify_rm_watch __x64_sys_inotify_rm_watch 269 -256 common migrate_pages __x64_sys_migrate_pages 270 -257 common openat __x64_sys_openat 271 -258 common mkdirat __x64_sys_mkdirat 272 -259 common mknodat __x64_sys_mknodat 273 -260 common fchownat __x64_sys_fchownat 274 -261 common futimesat __x64_sys_futimesat 275 -262 common newfstatat __x64_sys_newfstatat 276 -263 common unlinkat __x64_sys_unlinkat 277 -264 common renameat __x64_sys_renameat 278 -265 common linkat __x64_sys_linkat 279 -266 common symlinkat __x64_sys_symlinkat 280 -267 common readlinkat __x64_sys_readlinkat 281 -268 common fchmodat __x64_sys_fchmodat 282 -269 common faccessat __x64_sys_faccessat 283 -270 common pselect6 __x64_sys_pselect6 284 -271 common ppoll __x64_sys_ppoll 285 -272 common unshare __x64_sys_unshare 286 -273 64 set_robust_list __x64_sys_set_robust_list 287 -274 64 get_robust_list __x64_sys_get_robust_list 288 -275 common splice __x64_sys_splice 289 -276 common tee __x64_sys_tee 290 -277 common sync_file_range __x64_sys_sync_file_range 291 -278 64 vmsplice __x64_sys_vmsplice 292 -279 64 move_pages __x64_sys_move_pages 293 -280 common utimensat __x64_sys_utimensat 294 -281 common epoll_pwait __x64_sys_epoll_pwait 295 -282 common signalfd __x64_sys_signalfd 296 -283 common timerfd_create __x64_sys_timerfd_create 297 -284 common eventfd __x64_sys_eventfd 298 -285 common fallocate __x64_sys_fallocate 299 -286 common timerfd_settime __x64_sys_timerfd_settime 300 -287 common timerfd_gettime __x64_sys_timerfd_gettime 301 -288 common accept4 __x64_sys_accept4 302 -289 common signalfd4 __x64_sys_signalfd4 303 -290 common eventfd2 __x64_sys_eventfd2 304 -291 common epoll_create1 __x64_sys_epoll_create1 305 -292 common dup3 __x64_sys_dup3 306 -293 common pipe2 __x64_sys_pipe2 307 -294 common inotify_init1 __x64_sys_inotify_init1 308 -295 64 preadv __x64_sys_preadv 309 -296 64 pwritev __x64_sys_pwritev 310 -297 64 rt_tgsigqueueinfo __x64_sys_rt_tgsigqueueinfo 311 -298 common perf_event_open __x64_sys_perf_event_open 312 -299 64 recvmmsg __x64_sys_recvmmsg 313 -300 common fanotify_init __x64_sys_fanotify_init 314 -301 common fanotify_mark __x64_sys_fanotify_mark 315 -302 common prlimit64 __x64_sys_prlimit64 316 -303 common name_to_handle_at __x64_sys_name_to_handle_at 317 -304 common open_by_handle_at __x64_sys_open_by_handle_at 318 -305 common clock_adjtime __x64_sys_clock_adjtime 319 -306 common syncfs __x64_sys_syncfs 320 -307 64 sendmmsg __x64_sys_sendmmsg 321 -308 common setns __x64_sys_setns 322 -309 common getcpu __x64_sys_getcpu 323 -310 64 process_vm_readv __x64_sys_process_vm_readv 324 -311 64 process_vm_writev __x64_sys_process_vm_writev 325 -312 common kcmp __x64_sys_kcmp 326 -313 common finit_module __x64_sys_finit_module 327 -314 common sched_setattr __x64_sys_sched_setattr 328 -315 common sched_getattr __x64_sys_sched_getattr 329 -316 common renameat2 __x64_sys_renameat2 330 -317 common seccomp __x64_sys_seccomp 331 -318 common getrandom __x64_sys_getrandom 332 -319 common memfd_create __x64_sys_memfd_create 333 -320 common kexec_file_load __x64_sys_kexec_file_load 334 -321 common bpf __x64_sys_bpf 335 -322 64 execveat __x64_sys_execveat/ptregs 336 -323 common userfaultfd __x64_sys_userfaultfd 337 -324 common membarrier __x64_sys_membarrier 338 -325 common mlock2 __x64_sys_mlock2 339 -326 common copy_file_range __x64_sys_copy_file_range 340 -327 64 preadv2 __x64_sys_preadv2 341 -328 64 pwritev2 __x64_sys_pwritev2 342 -329 common pkey_mprotect __x64_sys_pkey_mprotect 343 -330 common pkey_alloc __x64_sys_pkey_alloc 344 -331 common pkey_free __x64_sys_pkey_free 345 -332 common statx __x64_sys_statx 346 -333 common io_pgetevents __x64_sys_io_pgetevents 347 -334 common rseq __x64_sys_rseq 348 -# don't use numbers 387 through 423, add new calls after the last 349 -# 'common' entry 350 -424 common pidfd_send_signal __x64_sys_pidfd_send_signal 351 -425 common io_uring_setup __x64_sys_io_uring_setup 352 -426 common io_uring_enter __x64_sys_io_uring_enter 353 -427 common io_uring_register __x64_sys_io_uring_register 354 -428 common open_tree __x64_sys_open_tree 355 -429 common move_mount __x64_sys_move_mount 356 -430 common fsopen __x64_sys_fsopen 357 -431 common fsconfig __x64_sys_fsconfig 358 -432 common fsmount __x64_sys_fsmount 359 -433 common fspick __x64_sys_fspick 360 -434 common pidfd_open __x64_sys_pidfd_open 361 -435 common clone3 __x64_sys_clone3/ptregs 362 - 363 -# 364 -# x32-specific system call numbers start at 512 to avoid cache impact 365 -# for native 64-bit operation. The __x32_compat_sys stubs are created 366 -# on-the-fly for compat_sys_*() compatibility system calls if X86_X32 367 -# is defined. 368 -# 369 -512 x32 rt_sigaction __x32_compat_sys_rt_sigaction 370 -513 x32 rt_sigreturn sys32_x32_rt_sigreturn 371 -514 x32 ioctl __x32_compat_sys_ioctl 372 -515 x32 readv __x32_compat_sys_readv 373 -516 x32 writev __x32_compat_sys_writev 374 -517 x32 recvfrom __x32_compat_sys_recvfrom 375 -518 x32 sendmsg __x32_compat_sys_sendmsg 376 -519 x32 recvmsg __x32_compat_sys_recvmsg 377 -520 x32 execve __x32_compat_sys_execve/ptregs 378 -521 x32 ptrace __x32_compat_sys_ptrace 379 -522 x32 rt_sigpending __x32_compat_sys_rt_sigpending 380 -523 x32 rt_sigtimedwait __x32_compat_sys_rt_sigtimedwait_time64 381 -524 x32 rt_sigqueueinfo __x32_compat_sys_rt_sigqueueinfo 382 -525 x32 sigaltstack __x32_compat_sys_sigaltstack 383 -526 x32 timer_create __x32_compat_sys_timer_create 384 -527 x32 mq_notify __x32_compat_sys_mq_notify 385 -528 x32 kexec_load __x32_compat_sys_kexec_load 386 -529 x32 waitid __x32_compat_sys_waitid 387 -530 x32 set_robust_list __x32_compat_sys_set_robust_list 388 -531 x32 get_robust_list __x32_compat_sys_get_robust_list 389 -532 x32 vmsplice __x32_compat_sys_vmsplice 390 -533 x32 move_pages __x32_compat_sys_move_pages 391 -534 x32 preadv __x32_compat_sys_preadv64 392 -535 x32 pwritev __x32_compat_sys_pwritev64 393 -536 x32 rt_tgsigqueueinfo __x32_compat_sys_rt_tgsigqueueinfo 394 -537 x32 recvmmsg __x32_compat_sys_recvmmsg_time64 395 -538 x32 sendmmsg __x32_compat_sys_sendmmsg 396 -539 x32 process_vm_readv __x32_compat_sys_process_vm_readv 397 -540 x32 process_vm_writev __x32_compat_sys_process_vm_writev 398 -541 x32 setsockopt __x32_compat_sys_setsockopt 399 -542 x32 getsockopt __x32_compat_sys_getsockopt 400 -543 x32 io_setup __x32_compat_sys_io_setup 401 -544 x32 io_submit __x32_compat_sys_io_submit 402 -545 x32 execveat __x32_compat_sys_execveat/ptregs 403 -546 x32 preadv2 __x32_compat_sys_preadv64v2 404 -547 x32 pwritev2 __x32_compat_sys_pwritev64v2
Modified libk.md from [2ea8d59951] to [58fe849cf0].
208 208 rule_target_bourgeoisie 209 209 }; 210 210 211 211 this makes code much more legible and has the added benefit of making the definitions easier to expand at a later date if new functionality is needed without breaking the API or ABI. 212 212 213 213 # authors 214 214 215 -so far, this is a one-woman show. contributions are welcome however. 216 - 217 - * lexi hale <lexi@hale.su> 215 + * lexi `velartrill` hale <lexi@hale.su> 216 + * lachs0r 217 + * glowpelt 218 218 219 219 # caveats 220 220 221 221 the main coder, lexi hale, is first and foremost a writer, not a coder. this is a side-project of hers and will remain so unless it picks up a significant amount of attention. 222 222 223 223 while MRs adding support for Windows, OS X, and other operating systems will be gratefully accepted, the maintainer is a Linux and FreeBSD developer, will not be writing such support infrastructure herself, and has limited ability even to vet code for those platforms. 224 224 225 225 # license 226 226 227 -libk-specific code (obviously excluding the syscall and error tables imported from the linux kernel tree) is released under the terms of the [GNU AGPLv3](LICENSE). contributors do not relinquish ownership of the code they contribute, but agree to release it under the same terms as the overall project license. 227 +libk is released under the terms of the [GNU AGPLv3](LICENSE). contributors do not relinquish ownership of the code they contribute, but agree to release it under the same terms as the overall project license. 228 228 229 229 the AGPL may seem like an inappropriately restrictive license for a project with such grandiose ambitions. it is an ideological choice. i selected it because libk is intended very specifically as a contribution to the *free software* community, a community that i hope will continue to grow at the expense of closed-source ecosystems. i have no interest in enabling people or corporations to profit from keeping secrets, especially not with my own free labor (or anyone else's, for that matter). 230 230 231 231 if you disagree with this philosophy, you are welcome to continue using libc. 232 232 233 233 # what does the k stand for? 234 234 235 235 nothing. it was chosen in reference to libc - the letter C was part of the original roman alphabet, while K was added later by analogy to the Greek kappa ‹κ›. in my native language, the older letter ‹c› can make a number of different sounds based on context, including [k] and [s], while ‹k› is fairly consistently used for the sound [k]. and for orthographical reasons, [k] is often represented by the digraph ‹ck› - that is, a C followed by a K. hopefully the analogies are obvious. 236 236 237 237 this project has nothing to do with KDE.