GNU Linux-libre 4.14.262-gnu1
[releases.git] / arch / xtensa / include / uapi / asm / unistd.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #if !defined(_UAPI_XTENSA_UNISTD_H) || defined(__SYSCALL)
3 #define _UAPI_XTENSA_UNISTD_H
4
5 #ifndef __SYSCALL
6 # define __SYSCALL(nr,func,nargs)
7 #endif
8
9 #define __NR_spill                                0
10 __SYSCALL(  0, sys_ni_syscall, 0)
11 #define __NR_xtensa                               1
12 __SYSCALL(  1, sys_ni_syscall, 0)
13 #define __NR_available4                           2
14 __SYSCALL(  2, sys_ni_syscall, 0)
15 #define __NR_available5                           3
16 __SYSCALL(  3, sys_ni_syscall, 0)
17 #define __NR_available6                           4
18 __SYSCALL(  4, sys_ni_syscall, 0)
19 #define __NR_available7                           5
20 __SYSCALL(  5, sys_ni_syscall, 0)
21 #define __NR_available8                           6
22 __SYSCALL(  6, sys_ni_syscall, 0)
23 #define __NR_available9                           7
24 __SYSCALL(  7, sys_ni_syscall, 0)
25
26 /* File Operations */
27
28 #define __NR_open                                 8
29 __SYSCALL(  8, sys_open, 3)
30 #define __NR_close                                9
31 __SYSCALL(  9, sys_close, 1)
32 #define __NR_dup                                 10
33 __SYSCALL( 10, sys_dup, 1)
34 #define __NR_dup2                                11
35 __SYSCALL( 11, sys_dup2, 2)
36 #define __NR_read                                12
37 __SYSCALL( 12, sys_read, 3)
38 #define __NR_write                               13
39 __SYSCALL( 13, sys_write, 3)
40 #define __NR_select                              14
41 __SYSCALL( 14, sys_select, 5)
42 #define __NR_lseek                               15
43 __SYSCALL( 15, sys_lseek, 3)
44 #define __NR_poll                                16
45 __SYSCALL( 16, sys_poll, 3)
46 #define __NR__llseek                             17
47 __SYSCALL( 17, sys_llseek, 5)
48 #define __NR_epoll_wait                          18
49 __SYSCALL( 18, sys_epoll_wait, 4)
50 #define __NR_epoll_ctl                           19
51 __SYSCALL( 19, sys_epoll_ctl, 4)
52 #define __NR_epoll_create                        20
53 __SYSCALL( 20, sys_epoll_create, 1)
54 #define __NR_creat                               21
55 __SYSCALL( 21, sys_creat, 2)
56 #define __NR_truncate                            22
57 __SYSCALL( 22, sys_truncate, 2)
58 #define __NR_ftruncate                           23
59 __SYSCALL( 23, sys_ftruncate, 2)
60 #define __NR_readv                               24
61 __SYSCALL( 24, sys_readv, 3)
62 #define __NR_writev                              25
63 __SYSCALL( 25, sys_writev, 3)
64 #define __NR_fsync                               26
65 __SYSCALL( 26, sys_fsync, 1)
66 #define __NR_fdatasync                           27
67 __SYSCALL( 27, sys_fdatasync, 1)
68 #define __NR_truncate64                          28
69 __SYSCALL( 28, sys_truncate64, 2)
70 #define __NR_ftruncate64                         29
71 __SYSCALL( 29, sys_ftruncate64, 2)
72 #define __NR_pread64                             30
73 __SYSCALL( 30, sys_pread64, 6)
74 #define __NR_pwrite64                            31
75 __SYSCALL( 31, sys_pwrite64, 6)
76
77 #define __NR_link                                32
78 __SYSCALL( 32, sys_link, 2)
79 #define __NR_rename                              33
80 __SYSCALL( 33, sys_rename, 2)
81 #define __NR_symlink                             34
82 __SYSCALL( 34, sys_symlink, 2)
83 #define __NR_readlink                            35
84 __SYSCALL( 35, sys_readlink, 3)
85 #define __NR_mknod                               36
86 __SYSCALL( 36, sys_mknod, 3)
87 #define __NR_pipe                                37
88 __SYSCALL( 37, sys_pipe, 1)
89 #define __NR_unlink                              38
90 __SYSCALL( 38, sys_unlink, 1)
91 #define __NR_rmdir                               39
92 __SYSCALL( 39, sys_rmdir, 1)
93
94 #define __NR_mkdir                               40
95 __SYSCALL( 40, sys_mkdir, 2)
96 #define __NR_chdir                               41
97 __SYSCALL( 41, sys_chdir, 1)
98 #define __NR_fchdir                              42
99 __SYSCALL( 42, sys_fchdir, 1)
100 #define __NR_getcwd                              43
101 __SYSCALL( 43, sys_getcwd, 2)
102
103 #define __NR_chmod                               44
104 __SYSCALL( 44, sys_chmod, 2)
105 #define __NR_chown                               45
106 __SYSCALL( 45, sys_chown, 3)
107 #define __NR_stat                                46
108 __SYSCALL( 46, sys_newstat, 2)
109 #define __NR_stat64                              47
110 __SYSCALL( 47, sys_stat64, 2)
111
112 #define __NR_lchown                              48
113 __SYSCALL( 48, sys_lchown, 3)
114 #define __NR_lstat                               49
115 __SYSCALL( 49, sys_newlstat, 2)
116 #define __NR_lstat64                             50
117 __SYSCALL( 50, sys_lstat64, 2)
118 #define __NR_available51                         51
119 __SYSCALL( 51, sys_ni_syscall, 0)
120
121 #define __NR_fchmod                              52
122 __SYSCALL( 52, sys_fchmod, 2)
123 #define __NR_fchown                              53
124 __SYSCALL( 53, sys_fchown, 3)
125 #define __NR_fstat                               54
126 __SYSCALL( 54, sys_newfstat, 2)
127 #define __NR_fstat64                             55
128 __SYSCALL( 55, sys_fstat64, 2)
129
130 #define __NR_flock                               56
131 __SYSCALL( 56, sys_flock, 2)
132 #define __NR_access                              57
133 __SYSCALL( 57, sys_access, 2)
134 #define __NR_umask                               58
135 __SYSCALL( 58, sys_umask, 1)
136 #define __NR_getdents                            59
137 __SYSCALL( 59, sys_getdents, 3)
138 #define __NR_getdents64                          60
139 __SYSCALL( 60, sys_getdents64, 3)
140 #define __NR_fcntl64                             61
141 __SYSCALL( 61, sys_fcntl64, 3)
142 #define __NR_fallocate                           62
143 __SYSCALL( 62, sys_fallocate, 6)
144 #define __NR_fadvise64_64                        63
145 __SYSCALL( 63, xtensa_fadvise64_64, 6)
146 #define __NR_utime                               64     /* glibc 2.3.3 ?? */
147 __SYSCALL( 64, sys_utime, 2)
148 #define __NR_utimes                              65
149 __SYSCALL( 65, sys_utimes, 2)
150 #define __NR_ioctl                               66
151 __SYSCALL( 66, sys_ioctl, 3)
152 #define __NR_fcntl                               67
153 __SYSCALL( 67, sys_fcntl, 3)
154
155 #define __NR_setxattr                            68
156 __SYSCALL( 68, sys_setxattr, 5)
157 #define __NR_getxattr                            69
158 __SYSCALL( 69, sys_getxattr, 4)
159 #define __NR_listxattr                           70
160 __SYSCALL( 70, sys_listxattr, 3)
161 #define __NR_removexattr                         71
162 __SYSCALL( 71, sys_removexattr, 2)
163 #define __NR_lsetxattr                           72
164 __SYSCALL( 72, sys_lsetxattr, 5)
165 #define __NR_lgetxattr                           73
166 __SYSCALL( 73, sys_lgetxattr, 4)
167 #define __NR_llistxattr                          74
168 __SYSCALL( 74, sys_llistxattr, 3)
169 #define __NR_lremovexattr                        75
170 __SYSCALL( 75, sys_lremovexattr, 2)
171 #define __NR_fsetxattr                           76
172 __SYSCALL( 76, sys_fsetxattr, 5)
173 #define __NR_fgetxattr                           77
174 __SYSCALL( 77, sys_fgetxattr, 4)
175 #define __NR_flistxattr                          78
176 __SYSCALL( 78, sys_flistxattr, 3)
177 #define __NR_fremovexattr                        79
178 __SYSCALL( 79, sys_fremovexattr, 2)
179
180 /* File Map / Shared Memory Operations */
181
182 #define __NR_mmap2                               80
183 __SYSCALL( 80, sys_mmap_pgoff, 6)
184 #define __NR_munmap                              81
185 __SYSCALL( 81, sys_munmap, 2)
186 #define __NR_mprotect                            82
187 __SYSCALL( 82, sys_mprotect, 3)
188 #define __NR_brk                                 83
189 __SYSCALL( 83, sys_brk, 1)
190 #define __NR_mlock                               84
191 __SYSCALL( 84, sys_mlock, 2)
192 #define __NR_munlock                             85
193 __SYSCALL( 85, sys_munlock, 2)
194 #define __NR_mlockall                            86
195 __SYSCALL( 86, sys_mlockall, 1)
196 #define __NR_munlockall                          87
197 __SYSCALL( 87, sys_munlockall, 0)
198 #define __NR_mremap                              88
199 __SYSCALL( 88, sys_mremap, 4)
200 #define __NR_msync                               89
201 __SYSCALL( 89, sys_msync, 3)
202 #define __NR_mincore                             90
203 __SYSCALL( 90, sys_mincore, 3)
204 #define __NR_madvise                             91
205 __SYSCALL( 91, sys_madvise, 3)
206 #define __NR_shmget                              92
207 __SYSCALL( 92, sys_shmget, 4)
208 #define __NR_shmat                               93
209 __SYSCALL( 93, xtensa_shmat, 4)
210 #define __NR_shmctl                              94
211 __SYSCALL( 94, sys_shmctl, 4)
212 #define __NR_shmdt                               95
213 __SYSCALL( 95, sys_shmdt, 4)
214
215 /* Socket Operations */
216
217 #define __NR_socket                              96
218 __SYSCALL( 96, sys_socket, 3)
219 #define __NR_setsockopt                          97
220 __SYSCALL( 97, sys_setsockopt, 5)
221 #define __NR_getsockopt                          98
222 __SYSCALL( 98, sys_getsockopt, 5)
223 #define __NR_shutdown                            99
224 __SYSCALL( 99, sys_shutdown, 2)
225
226 #define __NR_bind                               100
227 __SYSCALL(100, sys_bind, 3)
228 #define __NR_connect                            101
229 __SYSCALL(101, sys_connect, 3)
230 #define __NR_listen                             102
231 __SYSCALL(102, sys_listen, 2)
232 #define __NR_accept                             103
233 __SYSCALL(103, sys_accept, 3)
234
235 #define __NR_getsockname                        104
236 __SYSCALL(104, sys_getsockname, 3)
237 #define __NR_getpeername                        105
238 __SYSCALL(105, sys_getpeername, 3)
239 #define __NR_sendmsg                            106
240 __SYSCALL(106, sys_sendmsg, 3)
241 #define __NR_recvmsg                            107
242 __SYSCALL(107, sys_recvmsg, 3)
243 #define __NR_send                               108
244 __SYSCALL(108, sys_send, 4)
245 #define __NR_recv                               109
246 __SYSCALL(109, sys_recv, 4)
247 #define __NR_sendto                             110
248 __SYSCALL(110, sys_sendto, 6)
249 #define __NR_recvfrom                           111
250 __SYSCALL(111, sys_recvfrom, 6)
251
252 #define __NR_socketpair                         112
253 __SYSCALL(112, sys_socketpair, 4)
254 #define __NR_sendfile                           113
255 __SYSCALL(113, sys_sendfile, 4)
256 #define __NR_sendfile64                         114
257 __SYSCALL(114, sys_sendfile64, 4)
258 #define __NR_sendmmsg                           115
259 __SYSCALL(115, sys_sendmmsg, 4)
260
261 /* Process Operations */
262
263 #define __NR_clone                              116
264 __SYSCALL(116, sys_clone, 5)
265 #define __NR_execve                             117
266 __SYSCALL(117, sys_execve, 3)
267 #define __NR_exit                               118
268 __SYSCALL(118, sys_exit, 1)
269 #define __NR_exit_group                         119
270 __SYSCALL(119, sys_exit_group, 1)
271 #define __NR_getpid                             120
272 __SYSCALL(120, sys_getpid, 0)
273 #define __NR_wait4                              121
274 __SYSCALL(121, sys_wait4, 4)
275 #define __NR_waitid                             122
276 __SYSCALL(122, sys_waitid, 5)
277 #define __NR_kill                               123
278 __SYSCALL(123, sys_kill, 2)
279 #define __NR_tkill                              124
280 __SYSCALL(124, sys_tkill, 2)
281 #define __NR_tgkill                             125
282 __SYSCALL(125, sys_tgkill, 3)
283 #define __NR_set_tid_address                    126
284 __SYSCALL(126, sys_set_tid_address, 1)
285 #define __NR_gettid                             127
286 __SYSCALL(127, sys_gettid, 0)
287 #define __NR_setsid                             128
288 __SYSCALL(128, sys_setsid, 0)
289 #define __NR_getsid                             129
290 __SYSCALL(129, sys_getsid, 1)
291 #define __NR_prctl                              130
292 __SYSCALL(130, sys_prctl, 5)
293 #define __NR_personality                        131
294 __SYSCALL(131, sys_personality, 1)
295 #define __NR_getpriority                        132
296 __SYSCALL(132, sys_getpriority, 2)
297 #define __NR_setpriority                        133
298 __SYSCALL(133, sys_setpriority, 3)
299 #define __NR_setitimer                          134
300 __SYSCALL(134, sys_setitimer, 3)
301 #define __NR_getitimer                          135
302 __SYSCALL(135, sys_getitimer, 2)
303 #define __NR_setuid                             136
304 __SYSCALL(136, sys_setuid, 1)
305 #define __NR_getuid                             137
306 __SYSCALL(137, sys_getuid, 0)
307 #define __NR_setgid                             138
308 __SYSCALL(138, sys_setgid, 1)
309 #define __NR_getgid                             139
310 __SYSCALL(139, sys_getgid, 0)
311 #define __NR_geteuid                            140
312 __SYSCALL(140, sys_geteuid, 0)
313 #define __NR_getegid                            141
314 __SYSCALL(141, sys_getegid, 0)
315 #define __NR_setreuid                           142
316 __SYSCALL(142, sys_setreuid, 2)
317 #define __NR_setregid                           143
318 __SYSCALL(143, sys_setregid, 2)
319 #define __NR_setresuid                          144
320 __SYSCALL(144, sys_setresuid, 3)
321 #define __NR_getresuid                          145
322 __SYSCALL(145, sys_getresuid, 3)
323 #define __NR_setresgid                          146
324 __SYSCALL(146, sys_setresgid, 3)
325 #define __NR_getresgid                          147
326 __SYSCALL(147, sys_getresgid, 3)
327 #define __NR_setpgid                            148
328 __SYSCALL(148, sys_setpgid, 2)
329 #define __NR_getpgid                            149
330 __SYSCALL(149, sys_getpgid, 1)
331 #define __NR_getppid                            150
332 __SYSCALL(150, sys_getppid, 0)
333 #define __NR_getpgrp                            151
334 __SYSCALL(151, sys_getpgrp, 0)
335
336 #define __NR_reserved152                        152     /* set_thread_area */
337 __SYSCALL(152, sys_ni_syscall, 0)
338 #define __NR_reserved153                        153     /* get_thread_area */
339 __SYSCALL(153, sys_ni_syscall, 0)
340 #define __NR_times                              154
341 __SYSCALL(154, sys_times, 1)
342 #define __NR_acct                               155
343 __SYSCALL(155, sys_acct, 1)
344 #define __NR_sched_setaffinity                  156
345 __SYSCALL(156, sys_sched_setaffinity, 3)
346 #define __NR_sched_getaffinity                  157
347 __SYSCALL(157, sys_sched_getaffinity, 3)
348 #define __NR_capget                             158
349 __SYSCALL(158, sys_capget, 2)
350 #define __NR_capset                             159
351 __SYSCALL(159, sys_capset, 2)
352 #define __NR_ptrace                             160
353 __SYSCALL(160, sys_ptrace, 4)
354 #define __NR_semtimedop                         161
355 __SYSCALL(161, sys_semtimedop, 5)
356 #define __NR_semget                             162
357 __SYSCALL(162, sys_semget, 4)
358 #define __NR_semop                              163
359 __SYSCALL(163, sys_semop, 4)
360 #define __NR_semctl                             164
361 __SYSCALL(164, sys_semctl, 4)
362 #define __NR_available165                       165
363 __SYSCALL(165, sys_ni_syscall, 0)
364 #define __NR_msgget                             166
365 __SYSCALL(166, sys_msgget, 4)
366 #define __NR_msgsnd                             167
367 __SYSCALL(167, sys_msgsnd, 4)
368 #define __NR_msgrcv                             168
369 __SYSCALL(168, sys_msgrcv, 4)
370 #define __NR_msgctl                             169
371 __SYSCALL(169, sys_msgctl, 4)
372 #define __NR_available170                       170
373 __SYSCALL(170, sys_ni_syscall, 0)
374
375 /* File System */
376
377 #define __NR_umount2                            171
378 __SYSCALL(171, sys_umount, 2)
379 #define __NR_mount                              172
380 __SYSCALL(172, sys_mount, 5)
381 #define __NR_swapon                             173
382 __SYSCALL(173, sys_swapon, 2)
383 #define __NR_chroot                             174
384 __SYSCALL(174, sys_chroot, 1)
385 #define __NR_pivot_root                         175
386 __SYSCALL(175, sys_pivot_root, 2)
387 #define __NR_umount                             176
388 __SYSCALL(176, sys_oldumount, 1)
389 #define __ARCH_WANT_SYS_OLDUMOUNT
390 #define __NR_swapoff                            177
391 __SYSCALL(177, sys_swapoff, 1)
392 #define __NR_sync                               178
393 __SYSCALL(178, sys_sync, 0)
394 #define __NR_syncfs                             179
395 __SYSCALL(179, sys_syncfs, 1)
396 #define __NR_setfsuid                           180
397 __SYSCALL(180, sys_setfsuid, 1)
398 #define __NR_setfsgid                           181
399 __SYSCALL(181, sys_setfsgid, 1)
400 #define __NR_sysfs                              182
401 __SYSCALL(182, sys_sysfs, 3)
402 #define __NR_ustat                              183
403 __SYSCALL(183, sys_ustat, 2)
404 #define __NR_statfs                             184
405 __SYSCALL(184, sys_statfs, 2)
406 #define __NR_fstatfs                            185
407 __SYSCALL(185, sys_fstatfs, 2)
408 #define __NR_statfs64                           186
409 __SYSCALL(186, sys_statfs64, 3)
410 #define __NR_fstatfs64                          187
411 __SYSCALL(187, sys_fstatfs64, 3)
412
413 /* System */
414
415 #define __NR_setrlimit                          188
416 __SYSCALL(188, sys_setrlimit, 2)
417 #define __NR_getrlimit                          189
418 __SYSCALL(189, sys_getrlimit, 2)
419 #define __NR_getrusage                          190
420 __SYSCALL(190, sys_getrusage, 2)
421 #define __NR_futex                              191
422 __SYSCALL(191, sys_futex, 5)
423 #define __NR_gettimeofday                       192
424 __SYSCALL(192, sys_gettimeofday, 2)
425 #define __NR_settimeofday                       193
426 __SYSCALL(193, sys_settimeofday, 2)
427 #define __NR_adjtimex                           194
428 __SYSCALL(194, sys_adjtimex, 1)
429 #define __NR_nanosleep                          195
430 __SYSCALL(195, sys_nanosleep, 2)
431 #define __NR_getgroups                          196
432 __SYSCALL(196, sys_getgroups, 2)
433 #define __NR_setgroups                          197
434 __SYSCALL(197, sys_setgroups, 2)
435 #define __NR_sethostname                        198
436 __SYSCALL(198, sys_sethostname, 2)
437 #define __NR_setdomainname                      199
438 __SYSCALL(199, sys_setdomainname, 2)
439 #define __NR_syslog                             200
440 __SYSCALL(200, sys_syslog, 3)
441 #define __NR_vhangup                            201
442 __SYSCALL(201, sys_vhangup, 0)
443 #define __NR_uselib                             202
444 __SYSCALL(202, sys_uselib, 1)
445 #define __NR_reboot                             203
446 __SYSCALL(203, sys_reboot, 3)
447 #define __NR_quotactl                           204
448 __SYSCALL(204, sys_quotactl, 4)
449 #define __NR_nfsservctl                         205
450 __SYSCALL(205, sys_ni_syscall, 0)                       /* old nfsservctl */
451 #define __NR__sysctl                            206
452 __SYSCALL(206, sys_sysctl, 1)
453 #define __NR_bdflush                            207
454 __SYSCALL(207, sys_bdflush, 2)
455 #define __NR_uname                              208
456 __SYSCALL(208, sys_newuname, 1)
457 #define __NR_sysinfo                            209
458 __SYSCALL(209, sys_sysinfo, 1)
459 #define __NR_init_module                        210
460 __SYSCALL(210, sys_init_module, 2)
461 #define __NR_delete_module                      211
462 __SYSCALL(211, sys_delete_module, 1)
463
464 #define __NR_sched_setparam                     212
465 __SYSCALL(212, sys_sched_setparam, 2)
466 #define __NR_sched_getparam                     213
467 __SYSCALL(213, sys_sched_getparam, 2)
468 #define __NR_sched_setscheduler                 214
469 __SYSCALL(214, sys_sched_setscheduler, 3)
470 #define __NR_sched_getscheduler                 215
471 __SYSCALL(215, sys_sched_getscheduler, 1)
472 #define __NR_sched_get_priority_max             216
473 __SYSCALL(216, sys_sched_get_priority_max, 1)
474 #define __NR_sched_get_priority_min             217
475 __SYSCALL(217, sys_sched_get_priority_min, 1)
476 #define __NR_sched_rr_get_interval              218
477 __SYSCALL(218, sys_sched_rr_get_interval, 2)
478 #define __NR_sched_yield                        219
479 __SYSCALL(219, sys_sched_yield, 0)
480 #define __NR_available222                       222
481 __SYSCALL(222, sys_ni_syscall, 0)
482
483 /* Signal Handling */
484
485 #define __NR_restart_syscall                    223
486 __SYSCALL(223, sys_restart_syscall, 0)
487 #define __NR_sigaltstack                        224
488 __SYSCALL(224, sys_sigaltstack, 2)
489 #define __NR_rt_sigreturn                       225
490 __SYSCALL(225, xtensa_rt_sigreturn, 1)
491 #define __NR_rt_sigaction                       226
492 __SYSCALL(226, sys_rt_sigaction, 4)
493 #define __NR_rt_sigprocmask                     227
494 __SYSCALL(227, sys_rt_sigprocmask, 4)
495 #define __NR_rt_sigpending                      228
496 __SYSCALL(228, sys_rt_sigpending, 2)
497 #define __NR_rt_sigtimedwait                    229
498 __SYSCALL(229, sys_rt_sigtimedwait, 4)
499 #define __NR_rt_sigqueueinfo                    230
500 __SYSCALL(230, sys_rt_sigqueueinfo, 3)
501 #define __NR_rt_sigsuspend                      231
502 __SYSCALL(231, sys_rt_sigsuspend, 2)
503
504 /* Message */
505
506 #define __NR_mq_open                            232
507 __SYSCALL(232, sys_mq_open, 4)
508 #define __NR_mq_unlink                          233
509 __SYSCALL(233, sys_mq_unlink, 1)
510 #define __NR_mq_timedsend                       234
511 __SYSCALL(234, sys_mq_timedsend, 5)
512 #define __NR_mq_timedreceive                    235
513 __SYSCALL(235, sys_mq_timedreceive, 5)
514 #define __NR_mq_notify                          236
515 __SYSCALL(236, sys_mq_notify, 2)
516 #define __NR_mq_getsetattr                      237
517 __SYSCALL(237, sys_mq_getsetattr, 3)
518 #define __NR_available238                       238
519 __SYSCALL(238, sys_ni_syscall, 0)
520
521 /* IO */
522
523 #define __NR_io_setup                           239
524 __SYSCALL(239, sys_io_setup, 2)
525 #define __NR_io_destroy                         240
526 __SYSCALL(240, sys_io_destroy, 1)
527 #define __NR_io_submit                          241
528 __SYSCALL(241, sys_io_submit, 3)
529 #define __NR_io_getevents                       242
530 __SYSCALL(242, sys_io_getevents, 5)
531 #define __NR_io_cancel                          243
532 __SYSCALL(243, sys_io_cancel, 3)
533 #define __NR_clock_settime                      244
534 __SYSCALL(244, sys_clock_settime, 2)
535 #define __NR_clock_gettime                      245
536 __SYSCALL(245, sys_clock_gettime, 2)
537 #define __NR_clock_getres                       246
538 __SYSCALL(246, sys_clock_getres, 2)
539 #define __NR_clock_nanosleep                    247
540 __SYSCALL(247, sys_clock_nanosleep, 4)
541
542 /* Timer */
543
544 #define __NR_timer_create                       248
545 __SYSCALL(248, sys_timer_create, 3)
546 #define __NR_timer_delete                       249
547 __SYSCALL(249, sys_timer_delete, 1)
548 #define __NR_timer_settime                      250
549 __SYSCALL(250, sys_timer_settime, 4)
550 #define __NR_timer_gettime                      251
551 __SYSCALL(251, sys_timer_gettime, 2)
552 #define __NR_timer_getoverrun                   252
553 __SYSCALL(252, sys_timer_getoverrun, 1)
554
555 /* System */
556
557 #define __NR_reserved253                        253
558 __SYSCALL(253, sys_ni_syscall, 0)
559 #define __NR_lookup_dcookie                     254
560 __SYSCALL(254, sys_lookup_dcookie, 4)
561 #define __NR_available255                       255
562 __SYSCALL(255, sys_ni_syscall, 0)
563 #define __NR_add_key                            256
564 __SYSCALL(256, sys_add_key, 5)
565 #define __NR_request_key                        257
566 __SYSCALL(257, sys_request_key, 5)
567 #define __NR_keyctl                             258
568 __SYSCALL(258, sys_keyctl, 5)
569 #define __NR_available259                       259
570 __SYSCALL(259, sys_ni_syscall, 0)
571
572
573 #define __NR_readahead                          260
574 __SYSCALL(260, sys_readahead, 5)
575 #define __NR_remap_file_pages                   261
576 __SYSCALL(261, sys_remap_file_pages, 5)
577 #define __NR_migrate_pages                      262
578 __SYSCALL(262, sys_migrate_pages, 0)
579 #define __NR_mbind                              263
580 __SYSCALL(263, sys_mbind, 6)
581 #define __NR_get_mempolicy                      264
582 __SYSCALL(264, sys_get_mempolicy, 5)
583 #define __NR_set_mempolicy                      265
584 __SYSCALL(265, sys_set_mempolicy, 3)
585 #define __NR_unshare                            266
586 __SYSCALL(266, sys_unshare, 1)
587 #define __NR_move_pages                         267
588 __SYSCALL(267, sys_move_pages, 0)
589 #define __NR_splice                             268
590 __SYSCALL(268, sys_splice, 0)
591 #define __NR_tee                                269
592 __SYSCALL(269, sys_tee, 0)
593 #define __NR_vmsplice                           270
594 __SYSCALL(270, sys_vmsplice, 0)
595 #define __NR_available271                       271
596 __SYSCALL(271, sys_ni_syscall, 0)
597
598 #define __NR_pselect6                           272
599 __SYSCALL(272, sys_pselect6, 0)
600 #define __NR_ppoll                              273
601 __SYSCALL(273, sys_ppoll, 0)
602 #define __NR_epoll_pwait                        274
603 __SYSCALL(274, sys_epoll_pwait, 0)
604 #define __NR_epoll_create1              275
605 __SYSCALL(275, sys_epoll_create1, 1)
606
607 #define __NR_inotify_init                       276
608 __SYSCALL(276, sys_inotify_init, 0)
609 #define __NR_inotify_add_watch                  277
610 __SYSCALL(277, sys_inotify_add_watch, 3)
611 #define __NR_inotify_rm_watch                   278
612 __SYSCALL(278, sys_inotify_rm_watch, 2)
613 #define __NR_inotify_init1                      279
614 __SYSCALL(279, sys_inotify_init1, 1)
615
616 #define __NR_getcpu                             280
617 __SYSCALL(280, sys_getcpu, 0)
618 #define __NR_kexec_load                         281
619 __SYSCALL(281, sys_ni_syscall, 0)
620
621 #define __NR_ioprio_set                         282
622 __SYSCALL(282, sys_ioprio_set, 2)
623 #define __NR_ioprio_get                         283
624 __SYSCALL(283, sys_ioprio_get, 3)
625
626 #define __NR_set_robust_list                    284
627 __SYSCALL(284, sys_set_robust_list, 3)
628 #define __NR_get_robust_list                    285
629 __SYSCALL(285, sys_get_robust_list, 3)
630 #define __NR_available286                       286
631 __SYSCALL(286, sys_ni_syscall, 0)
632 #define __NR_available287                       287
633 __SYSCALL(287, sys_ni_syscall, 0)
634
635 /* Relative File Operations */
636
637 #define __NR_openat                             288
638 __SYSCALL(288, sys_openat, 4)
639 #define __NR_mkdirat                            289
640 __SYSCALL(289, sys_mkdirat, 3)
641 #define __NR_mknodat                            290
642 __SYSCALL(290, sys_mknodat, 4)
643 #define __NR_unlinkat                           291
644 __SYSCALL(291, sys_unlinkat, 3)
645 #define __NR_renameat                           292
646 __SYSCALL(292, sys_renameat, 4)
647 #define __NR_linkat                             293
648 __SYSCALL(293, sys_linkat, 5)
649 #define __NR_symlinkat                          294
650 __SYSCALL(294, sys_symlinkat, 3)
651 #define __NR_readlinkat                         295
652 __SYSCALL(295, sys_readlinkat, 4)
653 #define __NR_utimensat                          296
654 __SYSCALL(296, sys_utimensat, 0)
655 #define __NR_fchownat                           297
656 __SYSCALL(297, sys_fchownat, 5)
657 #define __NR_futimesat                          298
658 __SYSCALL(298, sys_futimesat, 4)
659 #define __NR_fstatat64                          299
660 __SYSCALL(299, sys_fstatat64, 0)
661 #define __NR_fchmodat                           300
662 __SYSCALL(300, sys_fchmodat, 4)
663 #define __NR_faccessat                          301
664 __SYSCALL(301, sys_faccessat, 4)
665 #define __NR_available302                       302
666 __SYSCALL(302, sys_ni_syscall, 0)
667 #define __NR_available303                       303
668 __SYSCALL(303, sys_ni_syscall, 0)
669
670 #define __NR_signalfd                           304
671 __SYSCALL(304, sys_signalfd, 3)
672 /*  305 was __NR_timerfd  */
673 __SYSCALL(305, sys_ni_syscall, 0)
674 #define __NR_eventfd                            306
675 __SYSCALL(306, sys_eventfd, 1)
676 #define __NR_recvmmsg                           307
677 __SYSCALL(307, sys_recvmmsg, 5)
678
679 #define __NR_setns                              308
680 __SYSCALL(308, sys_setns, 2)
681 #define __NR_signalfd4                          309
682 __SYSCALL(309, sys_signalfd4, 4)
683 #define __NR_dup3                               310
684 __SYSCALL(310, sys_dup3, 3)
685 #define __NR_pipe2                              311
686 __SYSCALL(311, sys_pipe2, 2)
687
688 #define __NR_timerfd_create                     312
689 __SYSCALL(312, sys_timerfd_create, 2)
690 #define __NR_timerfd_settime                    313
691 __SYSCALL(313, sys_timerfd_settime, 4)
692 #define __NR_timerfd_gettime                    314
693 __SYSCALL(314, sys_timerfd_gettime, 2)
694 #define __NR_available315                       315
695 __SYSCALL(315, sys_ni_syscall, 0)
696
697 #define __NR_eventfd2                           316
698 __SYSCALL(316, sys_eventfd2, 2)
699 #define __NR_preadv                             317
700 __SYSCALL(317, sys_preadv, 5)
701 #define __NR_pwritev                            318
702 __SYSCALL(318, sys_pwritev, 5)
703 #define __NR_available319                       319
704 __SYSCALL(319, sys_ni_syscall, 0)
705
706 #define __NR_fanotify_init                      320
707 __SYSCALL(320, sys_fanotify_init, 2)
708 #define __NR_fanotify_mark                      321
709 __SYSCALL(321, sys_fanotify_mark, 6)
710 #define __NR_process_vm_readv                   322
711 __SYSCALL(322, sys_process_vm_readv, 6)
712 #define __NR_process_vm_writev                  323
713 __SYSCALL(323, sys_process_vm_writev, 6)
714
715 #define __NR_name_to_handle_at                  324
716 __SYSCALL(324, sys_name_to_handle_at, 5)
717 #define __NR_open_by_handle_at                  325
718 __SYSCALL(325, sys_open_by_handle_at, 3)
719 #define __NR_sync_file_range2                   326
720 __SYSCALL(326, sys_sync_file_range2, 6)
721 #define __NR_perf_event_open                    327
722 __SYSCALL(327, sys_perf_event_open, 5)
723
724 #define __NR_rt_tgsigqueueinfo                  328
725 __SYSCALL(328, sys_rt_tgsigqueueinfo, 4)
726 #define __NR_clock_adjtime                      329
727 __SYSCALL(329, sys_clock_adjtime, 2)
728 #define __NR_prlimit64                          330
729 __SYSCALL(330, sys_prlimit64, 4)
730 #define __NR_kcmp                               331
731 __SYSCALL(331, sys_kcmp, 5)
732
733 #define __NR_finit_module                       332
734 __SYSCALL(332, sys_finit_module, 3)
735
736 #define __NR_accept4                            333
737 __SYSCALL(333, sys_accept4, 4)
738
739 #define __NR_sched_setattr                      334
740 __SYSCALL(334, sys_sched_setattr, 2)
741 #define __NR_sched_getattr                      335
742 __SYSCALL(335, sys_sched_getattr, 3)
743
744 #define __NR_renameat2                          336
745 __SYSCALL(336, sys_renameat2, 5)
746
747 #define __NR_seccomp                            337
748 __SYSCALL(337, sys_seccomp, 3)
749 #define __NR_getrandom                          338
750 __SYSCALL(338, sys_getrandom, 3)
751 #define __NR_memfd_create                       339
752 __SYSCALL(339, sys_memfd_create, 2)
753 #define __NR_bpf                                340
754 __SYSCALL(340, sys_bpf, 3)
755 #define __NR_execveat                           341
756 __SYSCALL(341, sys_execveat, 5)
757
758 #define __NR_userfaultfd                        342
759 __SYSCALL(342, sys_userfaultfd, 1)
760 #define __NR_membarrier                         343
761 __SYSCALL(343, sys_membarrier, 2)
762 #define __NR_mlock2                             344
763 __SYSCALL(344, sys_mlock2, 3)
764 #define __NR_copy_file_range                    345
765 __SYSCALL(345, sys_copy_file_range, 6)
766 #define __NR_preadv2                            346
767 __SYSCALL(346, sys_preadv2, 6)
768 #define __NR_pwritev2                           347
769 __SYSCALL(347, sys_pwritev2, 6)
770
771 #define __NR_pkey_mprotect                      348
772 __SYSCALL(348, sys_pkey_mprotect, 4)
773 #define __NR_pkey_alloc                         349
774 __SYSCALL(349, sys_pkey_alloc, 2)
775 #define __NR_pkey_free                          350
776 __SYSCALL(350, sys_pkey_free, 1)
777
778 #define __NR_statx                              351
779 __SYSCALL(351, sys_statx, 5)
780
781 #define __NR_syscall_count                      352
782
783 /*
784  * sysxtensa syscall handler
785  *
786  * int sysxtensa (SYS_XTENSA_ATOMIC_SET,     ptr, val,    unused);
787  * int sysxtensa (SYS_XTENSA_ATOMIC_ADD,     ptr, val,    unused);
788  * int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val,    unused);
789  * int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval);
790  *        a2            a6                   a3    a4      a5
791  */
792
793 #define SYS_XTENSA_RESERVED               0     /* don't use this */
794 #define SYS_XTENSA_ATOMIC_SET             1     /* set variable */
795 #define SYS_XTENSA_ATOMIC_EXG_ADD         2     /* exchange memory and add */
796 #define SYS_XTENSA_ATOMIC_ADD             3     /* add to memory */
797 #define SYS_XTENSA_ATOMIC_CMP_SWP         4     /* compare and swap */
798
799 #define SYS_XTENSA_COUNT                  5     /* count */
800
801 #undef __SYSCALL
802
803 #endif /* _UAPI_XTENSA_UNISTD_H */