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