Differences From
Artifact [ec4dc4b50d]:
1 1 #ifndef KIplatform_syscall
2 2 #define KIplatform_syscall
3 3
4 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 5 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 6 k_platform_syscall_ioctl = 29,
37 - k_platform_syscall_set = 30,
38 - k_platform_syscall_get = 31,
39 - k_platform_syscall_flock = 32,
7 + k_platform_syscall_getppid = 173,
8 + k_platform_syscall_getpgid = 155,
9 + k_platform_syscall_semctl = 191,
10 + k_platform_syscall_getpeername = 205,
11 + k_platform_syscall_clone = 220,
12 + k_platform_syscall_read = 63,
13 + k_platform_syscall_semget = 190,
14 + k_platform_syscall_setrlimit = 164,
15 + k_platform_syscall_getdents64 = 61,
16 + k_platform_syscall_seccomp = 277,
17 + k_platform_syscall_sync = 81,
18 + k_platform_syscall_setgid = 144,
19 + k_platform_syscall_listen = 201,
20 + k_platform_syscall_nfsservctl = 42,
21 + k_platform_syscall_sysinfo = 179,
22 + k_platform_syscall_semop = 193,
23 + k_platform_syscall_mremap = 216,
40 24 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,
25 + k_platform_syscall_pipe2 = 59,
26 + k_platform_syscall_llistxattr = 12,
27 + k_platform_syscall_personality = 92,
28 + k_platform_syscall_setns = 268,
29 + k_platform_syscall_readahead = 213,
30 + k_platform_syscall_connect = 203,
31 + k_platform_syscall_setdomainname = 162,
32 + k_platform_syscall_msgsnd = 189,
57 33 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,
34 + k_platform_syscall_fsetxattr = 7,
83 35 k_platform_syscall_sendfile = 71,
84 36 k_platform_syscall_pselect6 = 72,
37 + k_platform_syscall_flistxattr = 13,
38 + k_platform_syscall_exit = 93,
39 + k_platform_syscall_setuid = 146,
40 + k_platform_syscall_getsockname = 204,
41 + k_platform_syscall_sendto = 206,
42 + k_platform_syscall_unlinkat = 35,
85 43 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,
44 + k_platform_syscall_keyctl = 219,
45 + k_platform_syscall_preadv2 = 286,
46 + k_platform_syscall_ftruncate = 46,
47 + k_platform_syscall_lremovexattr = 15,
48 + k_platform_syscall_writev = 66,
49 + k_platform_syscall_chroot = 51,
50 + k_platform_syscall_getitimer = 102,
51 + k_platform_syscall_adjtimex = 171,
52 + k_platform_syscall_msgrcv = 188,
53 + k_platform_syscall_renameat2 = 276,
54 + k_platform_syscall_renameat = 38,
55 + k_platform_syscall_fsopen = 430,
56 + k_platform_syscall_getgroups = 158,
57 + k_platform_syscall_settimeofday = 170,
58 + k_platform_syscall_getcwd = 17,
101 59 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,
60 + k_platform_syscall_getsid = 156,
61 + k_platform_syscall_mbind = 235,
62 + k_platform_syscall_tgkill = 131,
63 + k_platform_syscall_accept = 202,
64 + k_platform_syscall_execve = 221,
65 + k_platform_syscall_listxattr = 11,
66 + k_platform_syscall_rseq = 293,
67 + k_platform_syscall_statx = 291,
68 + k_platform_syscall_readlinkat = 78,
69 + k_platform_syscall_fremovexattr = 16,
70 + k_platform_syscall_recvmmsg = 243,
71 + k_platform_syscall_shmctl = 195,
72 + k_platform_syscall_recvfrom = 207,
73 + k_platform_syscall_mount = 40,
74 + k_platform_syscall_getrlimit = 163,
75 + k_platform_syscall_fadvise64 = 223,
76 + k_platform_syscall_fchown = 55,
77 + k_platform_syscall_munmap = 215,
78 + k_platform_syscall_mprotect = 226,
79 + k_platform_syscall_mincore = 232,
127 80 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,
81 + k_platform_syscall_accept4 = 242,
82 + k_platform_syscall_socketpair = 199,
83 + k_platform_syscall_wait4 = 260,
84 + k_platform_syscall_getegid = 177,
85 + k_platform_syscall_shmget = 194,
86 + k_platform_syscall_socket = 198,
87 + k_platform_syscall_mmap = 222,
88 + k_platform_syscall_shmat = 196,
89 + k_platform_syscall_semtimedop = 192,
142 90 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,
91 + k_platform_syscall_uname = 160,
92 + k_platform_syscall_pwritev2 = 287,
93 + k_platform_syscall_shutdown = 210,
94 + k_platform_syscall_pread64 = 67,
95 + k_platform_syscall_times = 153,
96 + k_platform_syscall_getrusage = 165,
97 + k_platform_syscall_preadv = 69,
98 + k_platform_syscall_umount2 = 39,
99 + k_platform_syscall_fchmodat = 53,
100 + k_platform_syscall_lseek = 62,
101 + k_platform_syscall_setfsgid = 152,
102 + k_platform_syscall_geteuid = 175,
103 + k_platform_syscall_bpf = 280,
104 + k_platform_syscall_getrandom = 278,
105 + k_platform_syscall_gettid = 178,
106 + k_platform_syscall_prctl = 167,
107 + k_platform_syscall_syscalls = 434,
108 + k_platform_syscall_fspick = 433,
109 + k_platform_syscall_getxattr = 8,
110 + k_platform_syscall_setfsuid = 151,
111 + k_platform_syscall_setpgid = 154,
112 + k_platform_syscall_fcntl = 25,
113 + k_platform_syscall_mlockall = 230,
157 114 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,
115 + k_platform_syscall_msync = 227,
116 + k_platform_syscall_swapoff = 225,
117 + k_platform_syscall_brk = 214,
118 + k_platform_syscall_fchdir = 50,
119 + k_platform_syscall_mlock = 228,
171 120 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,
121 + k_platform_syscall_chdir = 49,
122 + k_platform_syscall_setresgid = 149,
123 + k_platform_syscall_kill = 129,
180 124 k_platform_syscall_getpid = 172,
181 - k_platform_syscall_getppid = 173,
182 - k_platform_syscall_getuid = 174,
183 - k_platform_syscall_geteuid = 175,
125 + k_platform_syscall_fchmod = 52,
126 + k_platform_syscall_readv = 65,
127 + k_platform_syscall_capget = 90,
128 + k_platform_syscall_tee = 77,
184 129 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,
130 + k_platform_syscall_dup = 23,
131 + k_platform_syscall_nanosleep = 101,
132 + k_platform_syscall_linkat = 37,
133 + k_platform_syscall_write = 64,
134 + k_platform_syscall_vhangup = 58,
208 135 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,
136 + k_platform_syscall_setregid = 143,
137 + k_platform_syscall_setxattr = 5,
138 + k_platform_syscall_reboot = 142,
139 + k_platform_syscall_signalfd4 = 74,
140 + k_platform_syscall_close = 57,
141 + k_platform_syscall_fsmount = 432,
142 + k_platform_syscall_pwrite64 = 68,
143 + k_platform_syscall_mlock2 = 284,
216 144 k_platform_syscall_setsockopt = 208,
145 + k_platform_syscall_madvise = 233,
146 + k_platform_syscall_membarrier = 283,
147 + k_platform_syscall_setsid = 157,
148 + k_platform_syscall_mkdirat = 34,
149 + k_platform_syscall_faccessat = 48,
150 + k_platform_syscall_getcpu = 168,
151 + k_platform_syscall_truncate = 45,
152 + k_platform_syscall_fsync = 82,
153 + k_platform_syscall_openat = 56,
154 + k_platform_syscall_gettimeofday = 169,
155 + k_platform_syscall_umask = 166,
156 + k_platform_syscall_getuid = 174,
157 + k_platform_syscall_flock = 32,
158 + k_platform_syscall_setreuid = 145,
159 + k_platform_syscall_munlock = 229,
160 + k_platform_syscall_newfstatat = 79,
161 + k_platform_syscall_quotactl = 60,
162 + k_platform_syscall_splice = 76,
163 + k_platform_syscall_dup3 = 24,
164 + k_platform_syscall_statfs = 43,
165 + k_platform_syscall_setpriority = 140,
217 166 k_platform_syscall_getsockopt = 209,
218 - k_platform_syscall_shutdown = 210,
219 - k_platform_syscall_sendmsg = 211,
167 + k_platform_syscall_removexattr = 14,
168 + k_platform_syscall_getresgid = 150,
169 + k_platform_syscall_getpriority = 141,
170 + k_platform_syscall_symlinkat = 36,
171 + k_platform_syscall_vmsplice = 75,
172 + k_platform_syscall_fdatasync = 83,
173 + k_platform_syscall_msgctl = 187,
174 + k_platform_syscall_unshare = 97,
220 175 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 176 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,
177 + k_platform_syscall_futex = 98,
178 + k_platform_syscall_lgetxattr = 9,
179 + k_platform_syscall_msgget = 186,
180 + k_platform_syscall_pwritev = 70,
181 + k_platform_syscall_kcmp = 272,
182 + k_platform_syscall_sendmmsg = 269,
183 + k_platform_syscall_eventfd2 = 19,
184 + k_platform_syscall_fsconfig = 431,
185 + k_platform_syscall_getresuid = 148,
186 + k_platform_syscall_acct = 89,
187 + k_platform_syscall_fstatfs = 44,
188 + k_platform_syscall_fchownat = 54,
189 + k_platform_syscall_fstat = 80,
256 190 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,
191 + k_platform_syscall_utimensat = 88,
192 + k_platform_syscall_setitimer = 103,
193 + k_platform_syscall_execveat = 281,
194 + k_platform_syscall_swapon = 224,
195 + k_platform_syscall_userfaultfd = 282,
196 + k_platform_syscall_setgroups = 159,
197 + k_platform_syscall_sendmsg = 211,
198 + k_platform_syscall_lsetxattr = 6,
262 199 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 -
200 + k_platform_syscall_syslog = 116,
201 + k_platform_syscall_tkill = 130,
202 + k_platform_syscall_waitid = 95,
203 + k_platform_syscall_shmdt = 197,
302 204 };
303 205
304 206 #endif
305 -