Overview
Comment: | arch: add script to generate linux syscall tables from generic headers; add arm.lin.64 (untested) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c15c92895e24047476f07616ee8a22e6 |
User & Date: | lachs0r on 2019-08-25 02:42:11 |
Other Links: | manifest | tags |
Context
2019-08-25
| ||
02:47 | fix check for 128-bit int type check-in: 1fba7a324a user: lexi tags: trunk | |
02:42 | arch: add script to generate linux syscall tables from generic headers; add arm.lin.64 (untested) check-in: c15c92895e user: lachs0r tags: trunk | |
01:47 | add /arch readme file check-in: 03d58c0419 user: lexi tags: trunk | |
Changes
Added arch/arm.lin.64/error_table.h version [88f88edd37].
1 +#ifndef KIplatform_error 2 +#define KIplatform_error 3 + 4 +enum k_platform_error { 5 + 6 + k_platform_error_EPERM = 1, 7 + k_platform_error_ENOENT = 2, 8 + k_platform_error_ESRCH = 3, 9 + k_platform_error_EINTR = 4, 10 + k_platform_error_EIO = 5, 11 + k_platform_error_ENXIO = 6, 12 + k_platform_error_E2BIG = 7, 13 + k_platform_error_ENOEXEC = 8, 14 + k_platform_error_EBADF = 9, 15 + k_platform_error_ECHILD = 10, 16 + k_platform_error_EAGAIN = 11, 17 + k_platform_error_EWOULDBLOCK = 11, 18 + k_platform_error_ENOMEM = 12, 19 + k_platform_error_EACCES = 13, 20 + k_platform_error_EFAULT = 14, 21 + k_platform_error_ENOTBLK = 15, 22 + k_platform_error_EBUSY = 16, 23 + k_platform_error_EEXIST = 17, 24 + k_platform_error_EXDEV = 18, 25 + k_platform_error_ENODEV = 19, 26 + k_platform_error_ENOTDIR = 20, 27 + k_platform_error_EISDIR = 21, 28 + k_platform_error_EINVAL = 22, 29 + k_platform_error_ENFILE = 23, 30 + k_platform_error_EMFILE = 24, 31 + k_platform_error_ENOTTY = 25, 32 + k_platform_error_ETXTBSY = 26, 33 + k_platform_error_EFBIG = 27, 34 + k_platform_error_ENOSPC = 28, 35 + k_platform_error_ESPIPE = 29, 36 + k_platform_error_EROFS = 30, 37 + k_platform_error_EMLINK = 31, 38 + k_platform_error_EPIPE = 32, 39 + k_platform_error_EDOM = 33, 40 + k_platform_error_ERANGE = 34, 41 + k_platform_error_EDEADLK = 35, 42 + k_platform_error_EDEADLOCK = 35, 43 + k_platform_error_ENAMETOOLONG = 36, 44 + k_platform_error_ENOLCK = 37, 45 + k_platform_error_ENOSYS = 38, 46 + k_platform_error_ENOTEMPTY = 39, 47 + k_platform_error_ELOOP = 40, 48 + k_platform_error_ENOMSG = 42, 49 + k_platform_error_EIDRM = 43, 50 + k_platform_error_ECHRNG = 44, 51 + k_platform_error_EL2NSYNC = 45, 52 + k_platform_error_EL3HLT = 46, 53 + k_platform_error_EL3RST = 47, 54 + k_platform_error_ELNRNG = 48, 55 + k_platform_error_EUNATCH = 49, 56 + k_platform_error_ENOCSI = 50, 57 + k_platform_error_EL2HLT = 51, 58 + k_platform_error_EBADE = 52, 59 + k_platform_error_EBADR = 53, 60 + k_platform_error_EXFULL = 54, 61 + k_platform_error_ENOANO = 55, 62 + k_platform_error_EBADRQC = 56, 63 + k_platform_error_EBADSLT = 57, 64 + k_platform_error_EBFONT = 59, 65 + k_platform_error_ENOSTR = 60, 66 + k_platform_error_ENODATA = 61, 67 + k_platform_error_ETIME = 62, 68 + k_platform_error_ENOSR = 63, 69 + k_platform_error_ENONET = 64, 70 + k_platform_error_ENOPKG = 65, 71 + k_platform_error_EREMOTE = 66, 72 + k_platform_error_ENOLINK = 67, 73 + k_platform_error_EADV = 68, 74 + k_platform_error_ESRMNT = 69, 75 + k_platform_error_ECOMM = 70, 76 + k_platform_error_EPROTO = 71, 77 + k_platform_error_EMULTIHOP = 72, 78 + k_platform_error_EDOTDOT = 73, 79 + k_platform_error_EBADMSG = 74, 80 + k_platform_error_EOVERFLOW = 75, 81 + k_platform_error_ENOTUNIQ = 76, 82 + k_platform_error_EBADFD = 77, 83 + k_platform_error_EREMCHG = 78, 84 + k_platform_error_ELIBACC = 79, 85 + k_platform_error_ELIBBAD = 80, 86 + k_platform_error_ELIBSCN = 81, 87 + k_platform_error_ELIBMAX = 82, 88 + k_platform_error_ELIBEXEC = 83, 89 + k_platform_error_EILSEQ = 84, 90 + k_platform_error_ERESTART = 85, 91 + k_platform_error_ESTRPIPE = 86, 92 + k_platform_error_EUSERS = 87, 93 + k_platform_error_ENOTSOCK = 88, 94 + k_platform_error_EDESTADDRREQ = 89, 95 + k_platform_error_EMSGSIZE = 90, 96 + k_platform_error_EPROTOTYPE = 91, 97 + k_platform_error_ENOPROTOOPT = 92, 98 + k_platform_error_EPROTONOSUPPORT = 93, 99 + k_platform_error_ESOCKTNOSUPPORT = 94, 100 + k_platform_error_EOPNOTSUPP = 95, 101 + k_platform_error_EPFNOSUPPORT = 96, 102 + k_platform_error_EAFNOSUPPORT = 97, 103 + k_platform_error_EADDRINUSE = 98, 104 + k_platform_error_EADDRNOTAVAIL = 99, 105 + k_platform_error_ENETDOWN = 100, 106 + k_platform_error_ENETUNREACH = 101, 107 + k_platform_error_ENETRESET = 102, 108 + k_platform_error_ECONNABORTED = 103, 109 + k_platform_error_ECONNRESET = 104, 110 + k_platform_error_ENOBUFS = 105, 111 + k_platform_error_EISCONN = 106, 112 + k_platform_error_ENOTCONN = 107, 113 + k_platform_error_ESHUTDOWN = 108, 114 + k_platform_error_ETOOMANYREFS = 109, 115 + k_platform_error_ETIMEDOUT = 110, 116 + k_platform_error_ECONNREFUSED = 111, 117 + k_platform_error_EHOSTDOWN = 112, 118 + k_platform_error_EHOSTUNREACH = 113, 119 + k_platform_error_EALREADY = 114, 120 + k_platform_error_EINPROGRESS = 115, 121 + k_platform_error_ESTALE = 116, 122 + k_platform_error_EUCLEAN = 117, 123 + k_platform_error_ENOTNAM = 118, 124 + k_platform_error_ENAVAIL = 119, 125 + k_platform_error_EISNAM = 120, 126 + k_platform_error_EREMOTEIO = 121, 127 + k_platform_error_EDQUOT = 122, 128 + k_platform_error_ENOMEDIUM = 123, 129 + k_platform_error_EMEDIUMTYPE = 124, 130 + k_platform_error_ECANCELED = 125, 131 + k_platform_error_ENOKEY = 126, 132 + k_platform_error_EKEYEXPIRED = 127, 133 + k_platform_error_EKEYREVOKED = 128, 134 + k_platform_error_EKEYREJECTED = 129, 135 + k_platform_error_EOWNERDEAD = 130, 136 + k_platform_error_ENOTRECOVERABLE = 131, 137 + k_platform_error_ERFKILL = 132, 138 + k_platform_error_EHWPOISON = 133, 139 + 140 +}; 141 + 142 +#endif 143 +
Added arch/arm.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
Added arch/arm.lin.64/system_calls.h version [ec4dc4b50d].
1 +#ifndef KIplatform_syscall 2 +#define KIplatform_syscall 3 + 4 +enum k_platform_syscall { 5 + 6 + k_platform_syscall_setup = 0, 7 + k_platform_syscall_destroy = 1, 8 + k_platform_syscall_submit = 2, 9 + k_platform_syscall_cancel = 3, 10 + k_platform_syscall_getevents = 4, 11 + k_platform_syscall_setxattr = 5, 12 + k_platform_syscall_lsetxattr = 6, 13 + k_platform_syscall_fsetxattr = 7, 14 + k_platform_syscall_getxattr = 8, 15 + k_platform_syscall_lgetxattr = 9, 16 + k_platform_syscall_fgetxattr = 10, 17 + k_platform_syscall_listxattr = 11, 18 + k_platform_syscall_llistxattr = 12, 19 + k_platform_syscall_flistxattr = 13, 20 + k_platform_syscall_removexattr = 14, 21 + k_platform_syscall_lremovexattr = 15, 22 + k_platform_syscall_fremovexattr = 16, 23 + k_platform_syscall_getcwd = 17, 24 + k_platform_syscall_dcookie = 18, 25 + k_platform_syscall_eventfd2 = 19, 26 + k_platform_syscall_create1 = 20, 27 + k_platform_syscall_ctl = 21, 28 + k_platform_syscall_pwait = 22, 29 + k_platform_syscall_dup = 23, 30 + k_platform_syscall_dup3 = 24, 31 + k_platform_syscall_fcntl = 25, 32 + k_platform_syscall_fcntl = 25, 33 + k_platform_syscall_init1 = 26, 34 + k_platform_syscall_watch = 27, 35 + k_platform_syscall_watch = 28, 36 + k_platform_syscall_ioctl = 29, 37 + k_platform_syscall_set = 30, 38 + k_platform_syscall_get = 31, 39 + k_platform_syscall_flock = 32, 40 + k_platform_syscall_mknodat = 33, 41 + k_platform_syscall_mkdirat = 34, 42 + k_platform_syscall_unlinkat = 35, 43 + k_platform_syscall_symlinkat = 36, 44 + k_platform_syscall_linkat = 37, 45 + k_platform_syscall_umount2 = 39, 46 + k_platform_syscall_mount = 40, 47 + k_platform_syscall_root = 41, 48 + k_platform_syscall_nfsservctl = 42, 49 + k_platform_syscall_statfs = 43, 50 + k_platform_syscall_statfs = 43, 51 + k_platform_syscall_fstatfs = 44, 52 + k_platform_syscall_fstatfs = 44, 53 + k_platform_syscall_truncate = 45, 54 + k_platform_syscall_truncate = 45, 55 + k_platform_syscall_ftruncate = 46, 56 + k_platform_syscall_ftruncate = 46, 57 + k_platform_syscall_fallocate = 47, 58 + k_platform_syscall_faccessat = 48, 59 + k_platform_syscall_chdir = 49, 60 + k_platform_syscall_fchdir = 50, 61 + k_platform_syscall_chroot = 51, 62 + k_platform_syscall_fchmod = 52, 63 + k_platform_syscall_fchmodat = 53, 64 + k_platform_syscall_fchownat = 54, 65 + k_platform_syscall_fchown = 55, 66 + k_platform_syscall_openat = 56, 67 + k_platform_syscall_close = 57, 68 + k_platform_syscall_vhangup = 58, 69 + k_platform_syscall_pipe2 = 59, 70 + k_platform_syscall_quotactl = 60, 71 + k_platform_syscall_getdents64 = 61, 72 + k_platform_syscall_lseek = 62, 73 + k_platform_syscall_lseek = 62, 74 + k_platform_syscall_read = 63, 75 + k_platform_syscall_write = 64, 76 + k_platform_syscall_readv = 65, 77 + k_platform_syscall_writev = 66, 78 + k_platform_syscall_pread64 = 67, 79 + k_platform_syscall_pwrite64 = 68, 80 + k_platform_syscall_preadv = 69, 81 + k_platform_syscall_pwritev = 70, 82 + k_platform_syscall_sendfile = 71, 83 + k_platform_syscall_sendfile = 71, 84 + k_platform_syscall_pselect6 = 72, 85 + k_platform_syscall_ppoll = 73, 86 + k_platform_syscall_signalfd4 = 74, 87 + k_platform_syscall_vmsplice = 75, 88 + k_platform_syscall_splice = 76, 89 + k_platform_syscall_tee = 77, 90 + k_platform_syscall_readlinkat = 78, 91 + k_platform_syscall_sync = 81, 92 + k_platform_syscall_fsync = 82, 93 + k_platform_syscall_fdatasync = 83, 94 + k_platform_syscall_range = 84, 95 + k_platform_syscall_create = 85, 96 + k_platform_syscall_settime = 86, 97 + k_platform_syscall_gettime = 87, 98 + k_platform_syscall_utimensat = 88, 99 + k_platform_syscall_acct = 89, 100 + k_platform_syscall_capget = 90, 101 + k_platform_syscall_capset = 91, 102 + k_platform_syscall_personality = 92, 103 + k_platform_syscall_exit = 93, 104 + k_platform_syscall_group = 94, 105 + k_platform_syscall_waitid = 95, 106 + k_platform_syscall_address = 96, 107 + k_platform_syscall_unshare = 97, 108 + k_platform_syscall_futex = 98, 109 + k_platform_syscall_list = 99, 110 + k_platform_syscall_list = 100, 111 + k_platform_syscall_nanosleep = 101, 112 + k_platform_syscall_getitimer = 102, 113 + k_platform_syscall_setitimer = 103, 114 + k_platform_syscall_load = 104, 115 + k_platform_syscall_module = 105, 116 + k_platform_syscall_module = 106, 117 + k_platform_syscall_create = 107, 118 + k_platform_syscall_gettime = 108, 119 + k_platform_syscall_getoverrun = 109, 120 + k_platform_syscall_settime = 110, 121 + k_platform_syscall_delete = 111, 122 + k_platform_syscall_settime = 112, 123 + k_platform_syscall_gettime = 113, 124 + k_platform_syscall_getres = 114, 125 + k_platform_syscall_nanosleep = 115, 126 + k_platform_syscall_syslog = 116, 127 + k_platform_syscall_ptrace = 117, 128 + k_platform_syscall_setparam = 118, 129 + k_platform_syscall_setscheduler = 119, 130 + k_platform_syscall_getscheduler = 120, 131 + k_platform_syscall_getparam = 121, 132 + k_platform_syscall_setaffinity = 122, 133 + k_platform_syscall_getaffinity = 123, 134 + k_platform_syscall_yield = 124, 135 + k_platform_syscall_max = 125, 136 + k_platform_syscall_min = 126, 137 + k_platform_syscall_interval = 127, 138 + k_platform_syscall_syscall = 128, 139 + k_platform_syscall_kill = 129, 140 + k_platform_syscall_tkill = 130, 141 + k_platform_syscall_tgkill = 131, 142 + k_platform_syscall_sigaltstack = 132, 143 + k_platform_syscall_sigsuspend = 133, 144 + k_platform_syscall_sigaction = 134, 145 + k_platform_syscall_sigprocmask = 135, 146 + k_platform_syscall_sigpending = 136, 147 + k_platform_syscall_sigtimedwait = 137, 148 + k_platform_syscall_sigqueueinfo = 138, 149 + k_platform_syscall_sigreturn = 139, 150 + k_platform_syscall_setpriority = 140, 151 + k_platform_syscall_getpriority = 141, 152 + k_platform_syscall_reboot = 142, 153 + k_platform_syscall_setregid = 143, 154 + k_platform_syscall_setgid = 144, 155 + k_platform_syscall_setreuid = 145, 156 + k_platform_syscall_setuid = 146, 157 + k_platform_syscall_setresuid = 147, 158 + k_platform_syscall_getresuid = 148, 159 + k_platform_syscall_setresgid = 149, 160 + k_platform_syscall_getresgid = 150, 161 + k_platform_syscall_setfsuid = 151, 162 + k_platform_syscall_setfsgid = 152, 163 + k_platform_syscall_times = 153, 164 + k_platform_syscall_setpgid = 154, 165 + k_platform_syscall_getpgid = 155, 166 + k_platform_syscall_getsid = 156, 167 + k_platform_syscall_setsid = 157, 168 + k_platform_syscall_getgroups = 158, 169 + k_platform_syscall_setgroups = 159, 170 + k_platform_syscall_uname = 160, 171 + k_platform_syscall_sethostname = 161, 172 + k_platform_syscall_setdomainname = 162, 173 + k_platform_syscall_getrusage = 165, 174 + k_platform_syscall_umask = 166, 175 + k_platform_syscall_prctl = 167, 176 + k_platform_syscall_getcpu = 168, 177 + k_platform_syscall_gettimeofday = 169, 178 + k_platform_syscall_settimeofday = 170, 179 + k_platform_syscall_adjtimex = 171, 180 + k_platform_syscall_getpid = 172, 181 + k_platform_syscall_getppid = 173, 182 + k_platform_syscall_getuid = 174, 183 + k_platform_syscall_geteuid = 175, 184 + k_platform_syscall_getgid = 176, 185 + k_platform_syscall_getegid = 177, 186 + k_platform_syscall_gettid = 178, 187 + k_platform_syscall_sysinfo = 179, 188 + k_platform_syscall_open = 180, 189 + k_platform_syscall_unlink = 181, 190 + k_platform_syscall_timedsend = 182, 191 + k_platform_syscall_timedreceive = 183, 192 + k_platform_syscall_notify = 184, 193 + k_platform_syscall_getsetattr = 185, 194 + k_platform_syscall_msgget = 186, 195 + k_platform_syscall_msgctl = 187, 196 + k_platform_syscall_msgrcv = 188, 197 + k_platform_syscall_msgsnd = 189, 198 + k_platform_syscall_semget = 190, 199 + k_platform_syscall_semctl = 191, 200 + k_platform_syscall_semtimedop = 192, 201 + k_platform_syscall_semop = 193, 202 + k_platform_syscall_shmget = 194, 203 + k_platform_syscall_shmctl = 195, 204 + k_platform_syscall_shmat = 196, 205 + k_platform_syscall_shmdt = 197, 206 + k_platform_syscall_socket = 198, 207 + k_platform_syscall_socketpair = 199, 208 + k_platform_syscall_bind = 200, 209 + k_platform_syscall_listen = 201, 210 + k_platform_syscall_accept = 202, 211 + k_platform_syscall_connect = 203, 212 + k_platform_syscall_getsockname = 204, 213 + k_platform_syscall_getpeername = 205, 214 + k_platform_syscall_sendto = 206, 215 + k_platform_syscall_recvfrom = 207, 216 + k_platform_syscall_setsockopt = 208, 217 + k_platform_syscall_getsockopt = 209, 218 + k_platform_syscall_shutdown = 210, 219 + k_platform_syscall_sendmsg = 211, 220 + k_platform_syscall_recvmsg = 212, 221 + k_platform_syscall_readahead = 213, 222 + k_platform_syscall_brk = 214, 223 + k_platform_syscall_munmap = 215, 224 + k_platform_syscall_mremap = 216, 225 + k_platform_syscall_key = 217, 226 + k_platform_syscall_key = 218, 227 + k_platform_syscall_keyctl = 219, 228 + k_platform_syscall_clone = 220, 229 + k_platform_syscall_execve = 221, 230 + k_platform_syscall_mmap = 222, 231 + k_platform_syscall_mmap = 222, 232 + k_platform_syscall_fadvise64 = 223, 233 + k_platform_syscall_fadvise64 = 223, 234 + k_platform_syscall_swapon = 224, 235 + k_platform_syscall_swapoff = 225, 236 + k_platform_syscall_mprotect = 226, 237 + k_platform_syscall_msync = 227, 238 + k_platform_syscall_mlock = 228, 239 + k_platform_syscall_munlock = 229, 240 + k_platform_syscall_mlockall = 230, 241 + k_platform_syscall_munlockall = 231, 242 + k_platform_syscall_mincore = 232, 243 + k_platform_syscall_madvise = 233, 244 + k_platform_syscall_pages = 234, 245 + k_platform_syscall_mbind = 235, 246 + k_platform_syscall_mempolicy = 236, 247 + k_platform_syscall_mempolicy = 237, 248 + k_platform_syscall_pages = 238, 249 + k_platform_syscall_pages = 239, 250 + k_platform_syscall_tgsigqueueinfo = 240, 251 + k_platform_syscall_open = 241, 252 + k_platform_syscall_accept4 = 242, 253 + k_platform_syscall_recvmmsg = 243, 254 + k_platform_syscall_syscall = 244, 255 + k_platform_syscall_wait4 = 260, 256 + k_platform_syscall_prlimit64 = 261, 257 + k_platform_syscall_init = 262, 258 + k_platform_syscall_mark = 263, 259 + k_platform_syscall_at = 264, 260 + k_platform_syscall_at = 265, 261 + k_platform_syscall_adjtime = 266, 262 + k_platform_syscall_syncfs = 267, 263 + k_platform_syscall_setns = 268, 264 + k_platform_syscall_sendmmsg = 269, 265 + k_platform_syscall_readv = 270, 266 + k_platform_syscall_writev = 271, 267 + k_platform_syscall_kcmp = 272, 268 + k_platform_syscall_module = 273, 269 + k_platform_syscall_setattr = 274, 270 + k_platform_syscall_getattr = 275, 271 + k_platform_syscall_renameat2 = 276, 272 + k_platform_syscall_seccomp = 277, 273 + k_platform_syscall_getrandom = 278, 274 + k_platform_syscall_create = 279, 275 + k_platform_syscall_bpf = 280, 276 + k_platform_syscall_execveat = 281, 277 + k_platform_syscall_userfaultfd = 282, 278 + k_platform_syscall_membarrier = 283, 279 + k_platform_syscall_mlock2 = 284, 280 + k_platform_syscall_range = 285, 281 + k_platform_syscall_preadv2 = 286, 282 + k_platform_syscall_pwritev2 = 287, 283 + k_platform_syscall_mprotect = 288, 284 + k_platform_syscall_alloc = 289, 285 + k_platform_syscall_free = 290, 286 + k_platform_syscall_statx = 291, 287 + k_platform_syscall_pgetevents = 292, 288 + k_platform_syscall_rseq = 293, 289 + k_platform_syscall_load = 294, 290 + k_platform_syscall_signal = 424, 291 + k_platform_syscall_setup = 425, 292 + k_platform_syscall_enter = 426, 293 + k_platform_syscall_register = 427, 294 + k_platform_syscall_tree = 428, 295 + k_platform_syscall_mount = 429, 296 + k_platform_syscall_fsopen = 430, 297 + k_platform_syscall_fsconfig = 431, 298 + k_platform_syscall_fsmount = 432, 299 + k_platform_syscall_fspick = 433, 300 + k_platform_syscall_syscalls = 434, 301 + 302 +}; 303 + 304 +#endif 305 +
Added arch/arm.lin.64/system_calls.tbl version [982f97727a].
1 +0 common setup 2 +1 common destroy 3 +2 common submit 4 +3 common cancel 5 +4 common getevents 6 +5 common setxattr 7 +6 common lsetxattr 8 +7 common fsetxattr 9 +8 common getxattr 10 +9 common lgetxattr 11 +10 common fgetxattr 12 +11 common listxattr 13 +12 common llistxattr 14 +13 common flistxattr 15 +14 common removexattr 16 +15 common lremovexattr 17 +16 common fremovexattr 18 +17 common getcwd 19 +18 common dcookie 20 +19 common eventfd2 21 +20 common create1 22 +21 common ctl 23 +22 common pwait 24 +23 common dup 25 +24 common dup3 26 +25 common fcntl 27 +25 common fcntl 28 +26 common init1 29 +27 common watch 30 +28 common watch 31 +29 common ioctl 32 +30 common set 33 +31 common get 34 +32 common flock 35 +33 common mknodat 36 +34 common mkdirat 37 +35 common unlinkat 38 +36 common symlinkat 39 +37 common linkat 40 +39 common umount2 41 +40 common mount 42 +41 common root 43 +42 common nfsservctl 44 +43 common statfs 45 +43 common statfs 46 +44 common fstatfs 47 +44 common fstatfs 48 +45 common truncate 49 +45 common truncate 50 +46 common ftruncate 51 +46 common ftruncate 52 +47 common fallocate 53 +48 common faccessat 54 +49 common chdir 55 +50 common fchdir 56 +51 common chroot 57 +52 common fchmod 58 +53 common fchmodat 59 +54 common fchownat 60 +55 common fchown 61 +56 common openat 62 +57 common close 63 +58 common vhangup 64 +59 common pipe2 65 +60 common quotactl 66 +61 common getdents64 67 +62 common lseek 68 +62 common lseek 69 +63 common read 70 +64 common write 71 +65 common readv 72 +66 common writev 73 +67 common pread64 74 +68 common pwrite64 75 +69 common preadv 76 +70 common pwritev 77 +71 common sendfile 78 +71 common sendfile 79 +72 common pselect6 80 +73 common ppoll 81 +74 common signalfd4 82 +75 common vmsplice 83 +76 common splice 84 +77 common tee 85 +78 common readlinkat 86 +81 common sync 87 +82 common fsync 88 +83 common fdatasync 89 +84 common range 90 +85 common create 91 +86 common settime 92 +87 common gettime 93 +88 common utimensat 94 +89 common acct 95 +90 common capget 96 +91 common capset 97 +92 common personality 98 +93 common exit 99 +94 common group 100 +95 common waitid 101 +96 common address 102 +97 common unshare 103 +98 common futex 104 +99 common list 105 +100 common list 106 +101 common nanosleep 107 +102 common getitimer 108 +103 common setitimer 109 +104 common load 110 +105 common module 111 +106 common module 112 +107 common create 113 +108 common gettime 114 +109 common getoverrun 115 +110 common settime 116 +111 common delete 117 +112 common settime 118 +113 common gettime 119 +114 common getres 120 +115 common nanosleep 121 +116 common syslog 122 +117 common ptrace 123 +118 common setparam 124 +119 common setscheduler 125 +120 common getscheduler 126 +121 common getparam 127 +122 common setaffinity 128 +123 common getaffinity 129 +124 common yield 130 +125 common max 131 +126 common min 132 +127 common interval 133 +128 common syscall 134 +129 common kill 135 +130 common tkill 136 +131 common tgkill 137 +132 common sigaltstack 138 +133 common sigsuspend 139 +134 common sigaction 140 +135 common sigprocmask 141 +136 common sigpending 142 +137 common sigtimedwait 143 +138 common sigqueueinfo 144 +139 common sigreturn 145 +140 common setpriority 146 +141 common getpriority 147 +142 common reboot 148 +143 common setregid 149 +144 common setgid 150 +145 common setreuid 151 +146 common setuid 152 +147 common setresuid 153 +148 common getresuid 154 +149 common setresgid 155 +150 common getresgid 156 +151 common setfsuid 157 +152 common setfsgid 158 +153 common times 159 +154 common setpgid 160 +155 common getpgid 161 +156 common getsid 162 +157 common setsid 163 +158 common getgroups 164 +159 common setgroups 165 +160 common uname 166 +161 common sethostname 167 +162 common setdomainname 168 +165 common getrusage 169 +166 common umask 170 +167 common prctl 171 +168 common getcpu 172 +169 common gettimeofday 173 +170 common settimeofday 174 +171 common adjtimex 175 +172 common getpid 176 +173 common getppid 177 +174 common getuid 178 +175 common geteuid 179 +176 common getgid 180 +177 common getegid 181 +178 common gettid 182 +179 common sysinfo 183 +180 common open 184 +181 common unlink 185 +182 common timedsend 186 +183 common timedreceive 187 +184 common notify 188 +185 common getsetattr 189 +186 common msgget 190 +187 common msgctl 191 +188 common msgrcv 192 +189 common msgsnd 193 +190 common semget 194 +191 common semctl 195 +192 common semtimedop 196 +193 common semop 197 +194 common shmget 198 +195 common shmctl 199 +196 common shmat 200 +197 common shmdt 201 +198 common socket 202 +199 common socketpair 203 +200 common bind 204 +201 common listen 205 +202 common accept 206 +203 common connect 207 +204 common getsockname 208 +205 common getpeername 209 +206 common sendto 210 +207 common recvfrom 211 +208 common setsockopt 212 +209 common getsockopt 213 +210 common shutdown 214 +211 common sendmsg 215 +212 common recvmsg 216 +213 common readahead 217 +214 common brk 218 +215 common munmap 219 +216 common mremap 220 +217 common key 221 +218 common key 222 +219 common keyctl 223 +220 common clone 224 +221 common execve 225 +222 common mmap 226 +222 common mmap 227 +223 common fadvise64 228 +223 common fadvise64 229 +224 common swapon 230 +225 common swapoff 231 +226 common mprotect 232 +227 common msync 233 +228 common mlock 234 +229 common munlock 235 +230 common mlockall 236 +231 common munlockall 237 +232 common mincore 238 +233 common madvise 239 +234 common pages 240 +235 common mbind 241 +236 common mempolicy 242 +237 common mempolicy 243 +238 common pages 244 +239 common pages 245 +240 common tgsigqueueinfo 246 +241 common open 247 +242 common accept4 248 +243 common recvmmsg 249 +244 common syscall 250 +260 common wait4 251 +261 common prlimit64 252 +262 common init 253 +263 common mark 254 +264 common at 255 +265 common at 256 +266 common adjtime 257 +267 common syncfs 258 +268 common setns 259 +269 common sendmmsg 260 +270 common readv 261 +271 common writev 262 +272 common kcmp 263 +273 common module 264 +274 common setattr 265 +275 common getattr 266 +276 common renameat2 267 +277 common seccomp 268 +278 common getrandom 269 +279 common create 270 +280 common bpf 271 +281 common execveat 272 +282 common userfaultfd 273 +283 common membarrier 274 +284 common mlock2 275 +285 common range 276 +286 common preadv2 277 +287 common pwritev2 278 +288 common mprotect 279 +289 common alloc 280 +290 common free 281 +291 common statx 282 +292 common pgetevents 283 +293 common rseq 284 +294 common load 285 +424 common signal 286 +425 common setup 287 +426 common enter 288 +427 common register 289 +428 common tree 290 +429 common mount 291 +430 common fsopen 292 +431 common fsconfig 293 +432 common fsmount 294 +433 common fspick 295 +434 common syscalls
Name change from arch/mktbl.errno.linux.sh to arch/mktbl.linux.errno.sh.
Added arch/mktbl.linux.syscall.sh version [736d8ba137].
1 +#!/usr/bin/env bash 2 +set -eu 3 + 4 +OUTDIR=$1 5 +ABI=$2 6 + 7 +INC_DEF=/usr/src/linux 8 +p_include="${LINUX_SRC:-$INC_DEF}" 9 +p_uapi="$p_include/tools/include/uapi" 10 + 11 +cpp -D__"$ABI"__ -undef -dM -I"$p_uapi" "$p_uapi/asm-generic/unistd.h" | sort -nrk3 | awk -F' ' '{ 12 +if ($2 ~ "__NR") { 13 + ids[$2]=$3; 14 + sub("^.*_", "", $2); 15 + if ($3 ~ /^[0-9]+$/) val=$3; 16 + else val=ids[$3]; 17 + print val "\tcommon\t" $2}}' | sort -n > "$OUTDIR/system_calls.tbl"
Modified arch/readme.md from [1fee89bb29] to [64fc8029a6].
6 6 ## structure 7 7 each subdirectory should be named for a specific target tuple. the top level is reserved for development tools and files of relevance to more than one architecture; for instance, the standardized x86-64 SysV syscall ABI is kept at `/arch/x86.syscall.64.s`. these files should not be included directly from any files under the `/mod` directory; rather, they should be included from stub files in the appropriate target directory. this provides a consistent header selection mechanism. 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 -- `mktbl.errno.linux.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. 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 +- `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.