12f72d4f6SChris Zankel #if !defined(_UAPI_XTENSA_UNISTD_H) || defined(__SYSCALL) 27216cabfSChris Zankel #define _UAPI_XTENSA_UNISTD_H 37216cabfSChris Zankel 483596729SDavid Howells #ifndef __SYSCALL 583596729SDavid Howells # define __SYSCALL(nr,func,nargs) 683596729SDavid Howells #endif 783596729SDavid Howells 883596729SDavid Howells #define __NR_spill 0 983596729SDavid Howells __SYSCALL( 0, sys_ni_syscall, 0) 1083596729SDavid Howells #define __NR_xtensa 1 1183596729SDavid Howells __SYSCALL( 1, sys_ni_syscall, 0) 1283596729SDavid Howells #define __NR_available4 2 1383596729SDavid Howells __SYSCALL( 2, sys_ni_syscall, 0) 1483596729SDavid Howells #define __NR_available5 3 1583596729SDavid Howells __SYSCALL( 3, sys_ni_syscall, 0) 1683596729SDavid Howells #define __NR_available6 4 1783596729SDavid Howells __SYSCALL( 4, sys_ni_syscall, 0) 1883596729SDavid Howells #define __NR_available7 5 1983596729SDavid Howells __SYSCALL( 5, sys_ni_syscall, 0) 2083596729SDavid Howells #define __NR_available8 6 2183596729SDavid Howells __SYSCALL( 6, sys_ni_syscall, 0) 2283596729SDavid Howells #define __NR_available9 7 2383596729SDavid Howells __SYSCALL( 7, sys_ni_syscall, 0) 2483596729SDavid Howells 2583596729SDavid Howells /* File Operations */ 2683596729SDavid Howells 2783596729SDavid Howells #define __NR_open 8 2883596729SDavid Howells __SYSCALL( 8, sys_open, 3) 2983596729SDavid Howells #define __NR_close 9 3083596729SDavid Howells __SYSCALL( 9, sys_close, 1) 3183596729SDavid Howells #define __NR_dup 10 3283596729SDavid Howells __SYSCALL( 10, sys_dup, 1) 3383596729SDavid Howells #define __NR_dup2 11 3483596729SDavid Howells __SYSCALL( 11, sys_dup2, 2) 3583596729SDavid Howells #define __NR_read 12 3683596729SDavid Howells __SYSCALL( 12, sys_read, 3) 3783596729SDavid Howells #define __NR_write 13 3883596729SDavid Howells __SYSCALL( 13, sys_write, 3) 3983596729SDavid Howells #define __NR_select 14 4083596729SDavid Howells __SYSCALL( 14, sys_select, 5) 4183596729SDavid Howells #define __NR_lseek 15 4283596729SDavid Howells __SYSCALL( 15, sys_lseek, 3) 4383596729SDavid Howells #define __NR_poll 16 4483596729SDavid Howells __SYSCALL( 16, sys_poll, 3) 4583596729SDavid Howells #define __NR__llseek 17 4683596729SDavid Howells __SYSCALL( 17, sys_llseek, 5) 4783596729SDavid Howells #define __NR_epoll_wait 18 4883596729SDavid Howells __SYSCALL( 18, sys_epoll_wait, 4) 4983596729SDavid Howells #define __NR_epoll_ctl 19 5083596729SDavid Howells __SYSCALL( 19, sys_epoll_ctl, 4) 5183596729SDavid Howells #define __NR_epoll_create 20 5283596729SDavid Howells __SYSCALL( 20, sys_epoll_create, 1) 5383596729SDavid Howells #define __NR_creat 21 5483596729SDavid Howells __SYSCALL( 21, sys_creat, 2) 5583596729SDavid Howells #define __NR_truncate 22 5683596729SDavid Howells __SYSCALL( 22, sys_truncate, 2) 5783596729SDavid Howells #define __NR_ftruncate 23 5883596729SDavid Howells __SYSCALL( 23, sys_ftruncate, 2) 5983596729SDavid Howells #define __NR_readv 24 6083596729SDavid Howells __SYSCALL( 24, sys_readv, 3) 6183596729SDavid Howells #define __NR_writev 25 6283596729SDavid Howells __SYSCALL( 25, sys_writev, 3) 6383596729SDavid Howells #define __NR_fsync 26 6483596729SDavid Howells __SYSCALL( 26, sys_fsync, 1) 6583596729SDavid Howells #define __NR_fdatasync 27 6683596729SDavid Howells __SYSCALL( 27, sys_fdatasync, 1) 6783596729SDavid Howells #define __NR_truncate64 28 6883596729SDavid Howells __SYSCALL( 28, sys_truncate64, 2) 6983596729SDavid Howells #define __NR_ftruncate64 29 7083596729SDavid Howells __SYSCALL( 29, sys_ftruncate64, 2) 7183596729SDavid Howells #define __NR_pread64 30 7283596729SDavid Howells __SYSCALL( 30, sys_pread64, 6) 7383596729SDavid Howells #define __NR_pwrite64 31 7483596729SDavid Howells __SYSCALL( 31, sys_pwrite64, 6) 7583596729SDavid Howells 7683596729SDavid Howells #define __NR_link 32 7783596729SDavid Howells __SYSCALL( 32, sys_link, 2) 7883596729SDavid Howells #define __NR_rename 33 7983596729SDavid Howells __SYSCALL( 33, sys_rename, 2) 8083596729SDavid Howells #define __NR_symlink 34 8183596729SDavid Howells __SYSCALL( 34, sys_symlink, 2) 8283596729SDavid Howells #define __NR_readlink 35 8383596729SDavid Howells __SYSCALL( 35, sys_readlink, 3) 8483596729SDavid Howells #define __NR_mknod 36 8583596729SDavid Howells __SYSCALL( 36, sys_mknod, 3) 8683596729SDavid Howells #define __NR_pipe 37 8783596729SDavid Howells __SYSCALL( 37, sys_pipe, 1) 8883596729SDavid Howells #define __NR_unlink 38 8983596729SDavid Howells __SYSCALL( 38, sys_unlink, 1) 9083596729SDavid Howells #define __NR_rmdir 39 9183596729SDavid Howells __SYSCALL( 39, sys_rmdir, 1) 9283596729SDavid Howells 9383596729SDavid Howells #define __NR_mkdir 40 9483596729SDavid Howells __SYSCALL( 40, sys_mkdir, 2) 9583596729SDavid Howells #define __NR_chdir 41 9683596729SDavid Howells __SYSCALL( 41, sys_chdir, 1) 9783596729SDavid Howells #define __NR_fchdir 42 9883596729SDavid Howells __SYSCALL( 42, sys_fchdir, 1) 9983596729SDavid Howells #define __NR_getcwd 43 10083596729SDavid Howells __SYSCALL( 43, sys_getcwd, 2) 10183596729SDavid Howells 10283596729SDavid Howells #define __NR_chmod 44 10383596729SDavid Howells __SYSCALL( 44, sys_chmod, 2) 10483596729SDavid Howells #define __NR_chown 45 10583596729SDavid Howells __SYSCALL( 45, sys_chown, 3) 10683596729SDavid Howells #define __NR_stat 46 10783596729SDavid Howells __SYSCALL( 46, sys_newstat, 2) 10883596729SDavid Howells #define __NR_stat64 47 10983596729SDavid Howells __SYSCALL( 47, sys_stat64, 2) 11083596729SDavid Howells 11183596729SDavid Howells #define __NR_lchown 48 11283596729SDavid Howells __SYSCALL( 48, sys_lchown, 3) 11383596729SDavid Howells #define __NR_lstat 49 11483596729SDavid Howells __SYSCALL( 49, sys_newlstat, 2) 11583596729SDavid Howells #define __NR_lstat64 50 11683596729SDavid Howells __SYSCALL( 50, sys_lstat64, 2) 11783596729SDavid Howells #define __NR_available51 51 11883596729SDavid Howells __SYSCALL( 51, sys_ni_syscall, 0) 11983596729SDavid Howells 12083596729SDavid Howells #define __NR_fchmod 52 12183596729SDavid Howells __SYSCALL( 52, sys_fchmod, 2) 12283596729SDavid Howells #define __NR_fchown 53 12383596729SDavid Howells __SYSCALL( 53, sys_fchown, 3) 12483596729SDavid Howells #define __NR_fstat 54 12583596729SDavid Howells __SYSCALL( 54, sys_newfstat, 2) 12683596729SDavid Howells #define __NR_fstat64 55 12783596729SDavid Howells __SYSCALL( 55, sys_fstat64, 2) 12883596729SDavid Howells 12983596729SDavid Howells #define __NR_flock 56 13083596729SDavid Howells __SYSCALL( 56, sys_flock, 2) 13183596729SDavid Howells #define __NR_access 57 13283596729SDavid Howells __SYSCALL( 57, sys_access, 2) 13383596729SDavid Howells #define __NR_umask 58 13483596729SDavid Howells __SYSCALL( 58, sys_umask, 1) 13583596729SDavid Howells #define __NR_getdents 59 13683596729SDavid Howells __SYSCALL( 59, sys_getdents, 3) 13783596729SDavid Howells #define __NR_getdents64 60 13883596729SDavid Howells __SYSCALL( 60, sys_getdents64, 3) 13983596729SDavid Howells #define __NR_fcntl64 61 14083596729SDavid Howells __SYSCALL( 61, sys_fcntl64, 3) 1417216cabfSChris Zankel #define __NR_fallocate 62 1427216cabfSChris Zankel __SYSCALL( 62, sys_fallocate, 6) 14383596729SDavid Howells #define __NR_fadvise64_64 63 14483596729SDavid Howells __SYSCALL( 63, xtensa_fadvise64_64, 6) 14583596729SDavid Howells #define __NR_utime 64 /* glibc 2.3.3 ?? */ 14683596729SDavid Howells __SYSCALL( 64, sys_utime, 2) 14783596729SDavid Howells #define __NR_utimes 65 14883596729SDavid Howells __SYSCALL( 65, sys_utimes, 2) 14983596729SDavid Howells #define __NR_ioctl 66 15083596729SDavid Howells __SYSCALL( 66, sys_ioctl, 3) 15183596729SDavid Howells #define __NR_fcntl 67 15283596729SDavid Howells __SYSCALL( 67, sys_fcntl, 3) 15383596729SDavid Howells 15483596729SDavid Howells #define __NR_setxattr 68 15583596729SDavid Howells __SYSCALL( 68, sys_setxattr, 5) 15683596729SDavid Howells #define __NR_getxattr 69 15783596729SDavid Howells __SYSCALL( 69, sys_getxattr, 4) 15883596729SDavid Howells #define __NR_listxattr 70 15983596729SDavid Howells __SYSCALL( 70, sys_listxattr, 3) 16083596729SDavid Howells #define __NR_removexattr 71 16183596729SDavid Howells __SYSCALL( 71, sys_removexattr, 2) 16283596729SDavid Howells #define __NR_lsetxattr 72 16383596729SDavid Howells __SYSCALL( 72, sys_lsetxattr, 5) 16483596729SDavid Howells #define __NR_lgetxattr 73 16583596729SDavid Howells __SYSCALL( 73, sys_lgetxattr, 4) 16683596729SDavid Howells #define __NR_llistxattr 74 16783596729SDavid Howells __SYSCALL( 74, sys_llistxattr, 3) 16883596729SDavid Howells #define __NR_lremovexattr 75 16983596729SDavid Howells __SYSCALL( 75, sys_lremovexattr, 2) 17083596729SDavid Howells #define __NR_fsetxattr 76 17183596729SDavid Howells __SYSCALL( 76, sys_fsetxattr, 5) 17283596729SDavid Howells #define __NR_fgetxattr 77 17383596729SDavid Howells __SYSCALL( 77, sys_fgetxattr, 4) 17483596729SDavid Howells #define __NR_flistxattr 78 17583596729SDavid Howells __SYSCALL( 78, sys_flistxattr, 3) 17683596729SDavid Howells #define __NR_fremovexattr 79 17783596729SDavid Howells __SYSCALL( 79, sys_fremovexattr, 2) 17883596729SDavid Howells 17983596729SDavid Howells /* File Map / Shared Memory Operations */ 18083596729SDavid Howells 18183596729SDavid Howells #define __NR_mmap2 80 18283596729SDavid Howells __SYSCALL( 80, sys_mmap_pgoff, 6) 18383596729SDavid Howells #define __NR_munmap 81 18483596729SDavid Howells __SYSCALL( 81, sys_munmap, 2) 18583596729SDavid Howells #define __NR_mprotect 82 18683596729SDavid Howells __SYSCALL( 82, sys_mprotect, 3) 18783596729SDavid Howells #define __NR_brk 83 18883596729SDavid Howells __SYSCALL( 83, sys_brk, 1) 18983596729SDavid Howells #define __NR_mlock 84 19083596729SDavid Howells __SYSCALL( 84, sys_mlock, 2) 19183596729SDavid Howells #define __NR_munlock 85 19283596729SDavid Howells __SYSCALL( 85, sys_munlock, 2) 19383596729SDavid Howells #define __NR_mlockall 86 19483596729SDavid Howells __SYSCALL( 86, sys_mlockall, 1) 19583596729SDavid Howells #define __NR_munlockall 87 19683596729SDavid Howells __SYSCALL( 87, sys_munlockall, 0) 19783596729SDavid Howells #define __NR_mremap 88 19883596729SDavid Howells __SYSCALL( 88, sys_mremap, 4) 19983596729SDavid Howells #define __NR_msync 89 20083596729SDavid Howells __SYSCALL( 89, sys_msync, 3) 20183596729SDavid Howells #define __NR_mincore 90 20283596729SDavid Howells __SYSCALL( 90, sys_mincore, 3) 20383596729SDavid Howells #define __NR_madvise 91 20483596729SDavid Howells __SYSCALL( 91, sys_madvise, 3) 20583596729SDavid Howells #define __NR_shmget 92 20683596729SDavid Howells __SYSCALL( 92, sys_shmget, 4) 20783596729SDavid Howells #define __NR_shmat 93 20883596729SDavid Howells __SYSCALL( 93, xtensa_shmat, 4) 20983596729SDavid Howells #define __NR_shmctl 94 21083596729SDavid Howells __SYSCALL( 94, sys_shmctl, 4) 21183596729SDavid Howells #define __NR_shmdt 95 21283596729SDavid Howells __SYSCALL( 95, sys_shmdt, 4) 21383596729SDavid Howells 21483596729SDavid Howells /* Socket Operations */ 21583596729SDavid Howells 21683596729SDavid Howells #define __NR_socket 96 21783596729SDavid Howells __SYSCALL( 96, sys_socket, 3) 21883596729SDavid Howells #define __NR_setsockopt 97 21983596729SDavid Howells __SYSCALL( 97, sys_setsockopt, 5) 22083596729SDavid Howells #define __NR_getsockopt 98 22183596729SDavid Howells __SYSCALL( 98, sys_getsockopt, 5) 22283596729SDavid Howells #define __NR_shutdown 99 22383596729SDavid Howells __SYSCALL( 99, sys_shutdown, 2) 22483596729SDavid Howells 22583596729SDavid Howells #define __NR_bind 100 22683596729SDavid Howells __SYSCALL(100, sys_bind, 3) 22783596729SDavid Howells #define __NR_connect 101 22883596729SDavid Howells __SYSCALL(101, sys_connect, 3) 22983596729SDavid Howells #define __NR_listen 102 23083596729SDavid Howells __SYSCALL(102, sys_listen, 2) 23183596729SDavid Howells #define __NR_accept 103 23283596729SDavid Howells __SYSCALL(103, sys_accept, 3) 23383596729SDavid Howells 23483596729SDavid Howells #define __NR_getsockname 104 23583596729SDavid Howells __SYSCALL(104, sys_getsockname, 3) 23683596729SDavid Howells #define __NR_getpeername 105 23783596729SDavid Howells __SYSCALL(105, sys_getpeername, 3) 23883596729SDavid Howells #define __NR_sendmsg 106 23983596729SDavid Howells __SYSCALL(106, sys_sendmsg, 3) 24083596729SDavid Howells #define __NR_recvmsg 107 24183596729SDavid Howells __SYSCALL(107, sys_recvmsg, 3) 24283596729SDavid Howells #define __NR_send 108 24383596729SDavid Howells __SYSCALL(108, sys_send, 4) 24483596729SDavid Howells #define __NR_recv 109 24583596729SDavid Howells __SYSCALL(109, sys_recv, 4) 24683596729SDavid Howells #define __NR_sendto 110 24783596729SDavid Howells __SYSCALL(110, sys_sendto, 6) 24883596729SDavid Howells #define __NR_recvfrom 111 24983596729SDavid Howells __SYSCALL(111, sys_recvfrom, 6) 25083596729SDavid Howells 25183596729SDavid Howells #define __NR_socketpair 112 25283596729SDavid Howells __SYSCALL(112, sys_socketpair, 4) 25383596729SDavid Howells #define __NR_sendfile 113 25483596729SDavid Howells __SYSCALL(113, sys_sendfile, 4) 25583596729SDavid Howells #define __NR_sendfile64 114 25683596729SDavid Howells __SYSCALL(114, sys_sendfile64, 4) 2577216cabfSChris Zankel #define __NR_sendmmsg 115 2587216cabfSChris Zankel __SYSCALL(115, sys_sendmmsg, 4) 25983596729SDavid Howells 26083596729SDavid Howells /* Process Operations */ 26183596729SDavid Howells 26283596729SDavid Howells #define __NR_clone 116 2633e41f9baSAl Viro __SYSCALL(116, sys_clone, 5) 26483596729SDavid Howells #define __NR_execve 117 265dc241f2cSMax Filippov __SYSCALL(117, sys_execve, 3) 26683596729SDavid Howells #define __NR_exit 118 26783596729SDavid Howells __SYSCALL(118, sys_exit, 1) 26883596729SDavid Howells #define __NR_exit_group 119 26983596729SDavid Howells __SYSCALL(119, sys_exit_group, 1) 27083596729SDavid Howells #define __NR_getpid 120 27183596729SDavid Howells __SYSCALL(120, sys_getpid, 0) 27283596729SDavid Howells #define __NR_wait4 121 27383596729SDavid Howells __SYSCALL(121, sys_wait4, 4) 27483596729SDavid Howells #define __NR_waitid 122 27583596729SDavid Howells __SYSCALL(122, sys_waitid, 5) 27683596729SDavid Howells #define __NR_kill 123 27783596729SDavid Howells __SYSCALL(123, sys_kill, 2) 27883596729SDavid Howells #define __NR_tkill 124 27983596729SDavid Howells __SYSCALL(124, sys_tkill, 2) 28083596729SDavid Howells #define __NR_tgkill 125 28183596729SDavid Howells __SYSCALL(125, sys_tgkill, 3) 28283596729SDavid Howells #define __NR_set_tid_address 126 28383596729SDavid Howells __SYSCALL(126, sys_set_tid_address, 1) 28483596729SDavid Howells #define __NR_gettid 127 28583596729SDavid Howells __SYSCALL(127, sys_gettid, 0) 28683596729SDavid Howells #define __NR_setsid 128 28783596729SDavid Howells __SYSCALL(128, sys_setsid, 0) 28883596729SDavid Howells #define __NR_getsid 129 28983596729SDavid Howells __SYSCALL(129, sys_getsid, 1) 29083596729SDavid Howells #define __NR_prctl 130 29183596729SDavid Howells __SYSCALL(130, sys_prctl, 5) 29283596729SDavid Howells #define __NR_personality 131 29383596729SDavid Howells __SYSCALL(131, sys_personality, 1) 29483596729SDavid Howells #define __NR_getpriority 132 29583596729SDavid Howells __SYSCALL(132, sys_getpriority, 2) 29683596729SDavid Howells #define __NR_setpriority 133 29783596729SDavid Howells __SYSCALL(133, sys_setpriority, 3) 29883596729SDavid Howells #define __NR_setitimer 134 29983596729SDavid Howells __SYSCALL(134, sys_setitimer, 3) 30083596729SDavid Howells #define __NR_getitimer 135 30183596729SDavid Howells __SYSCALL(135, sys_getitimer, 2) 30283596729SDavid Howells #define __NR_setuid 136 30383596729SDavid Howells __SYSCALL(136, sys_setuid, 1) 30483596729SDavid Howells #define __NR_getuid 137 30583596729SDavid Howells __SYSCALL(137, sys_getuid, 0) 30683596729SDavid Howells #define __NR_setgid 138 30783596729SDavid Howells __SYSCALL(138, sys_setgid, 1) 30883596729SDavid Howells #define __NR_getgid 139 30983596729SDavid Howells __SYSCALL(139, sys_getgid, 0) 31083596729SDavid Howells #define __NR_geteuid 140 31183596729SDavid Howells __SYSCALL(140, sys_geteuid, 0) 31283596729SDavid Howells #define __NR_getegid 141 31383596729SDavid Howells __SYSCALL(141, sys_getegid, 0) 31483596729SDavid Howells #define __NR_setreuid 142 31583596729SDavid Howells __SYSCALL(142, sys_setreuid, 2) 31683596729SDavid Howells #define __NR_setregid 143 31783596729SDavid Howells __SYSCALL(143, sys_setregid, 2) 31883596729SDavid Howells #define __NR_setresuid 144 31983596729SDavid Howells __SYSCALL(144, sys_setresuid, 3) 32083596729SDavid Howells #define __NR_getresuid 145 32183596729SDavid Howells __SYSCALL(145, sys_getresuid, 3) 32283596729SDavid Howells #define __NR_setresgid 146 32383596729SDavid Howells __SYSCALL(146, sys_setresgid, 3) 32483596729SDavid Howells #define __NR_getresgid 147 32583596729SDavid Howells __SYSCALL(147, sys_getresgid, 3) 32683596729SDavid Howells #define __NR_setpgid 148 32783596729SDavid Howells __SYSCALL(148, sys_setpgid, 2) 32883596729SDavid Howells #define __NR_getpgid 149 32983596729SDavid Howells __SYSCALL(149, sys_getpgid, 1) 33083596729SDavid Howells #define __NR_getppid 150 33183596729SDavid Howells __SYSCALL(150, sys_getppid, 0) 33283596729SDavid Howells #define __NR_getpgrp 151 33383596729SDavid Howells __SYSCALL(151, sys_getpgrp, 0) 33483596729SDavid Howells 33583596729SDavid Howells #define __NR_reserved152 152 /* set_thread_area */ 33683596729SDavid Howells __SYSCALL(152, sys_ni_syscall, 0) 33783596729SDavid Howells #define __NR_reserved153 153 /* get_thread_area */ 33883596729SDavid Howells __SYSCALL(153, sys_ni_syscall, 0) 33983596729SDavid Howells #define __NR_times 154 34083596729SDavid Howells __SYSCALL(154, sys_times, 1) 34183596729SDavid Howells #define __NR_acct 155 34283596729SDavid Howells __SYSCALL(155, sys_acct, 1) 34383596729SDavid Howells #define __NR_sched_setaffinity 156 34483596729SDavid Howells __SYSCALL(156, sys_sched_setaffinity, 3) 34583596729SDavid Howells #define __NR_sched_getaffinity 157 34683596729SDavid Howells __SYSCALL(157, sys_sched_getaffinity, 3) 34783596729SDavid Howells #define __NR_capget 158 34883596729SDavid Howells __SYSCALL(158, sys_capget, 2) 34983596729SDavid Howells #define __NR_capset 159 35083596729SDavid Howells __SYSCALL(159, sys_capset, 2) 35183596729SDavid Howells #define __NR_ptrace 160 35283596729SDavid Howells __SYSCALL(160, sys_ptrace, 4) 35383596729SDavid Howells #define __NR_semtimedop 161 35483596729SDavid Howells __SYSCALL(161, sys_semtimedop, 5) 35583596729SDavid Howells #define __NR_semget 162 35683596729SDavid Howells __SYSCALL(162, sys_semget, 4) 35783596729SDavid Howells #define __NR_semop 163 35883596729SDavid Howells __SYSCALL(163, sys_semop, 4) 35983596729SDavid Howells #define __NR_semctl 164 36083596729SDavid Howells __SYSCALL(164, sys_semctl, 4) 36183596729SDavid Howells #define __NR_available165 165 36283596729SDavid Howells __SYSCALL(165, sys_ni_syscall, 0) 36383596729SDavid Howells #define __NR_msgget 166 36483596729SDavid Howells __SYSCALL(166, sys_msgget, 4) 36583596729SDavid Howells #define __NR_msgsnd 167 36683596729SDavid Howells __SYSCALL(167, sys_msgsnd, 4) 36783596729SDavid Howells #define __NR_msgrcv 168 36883596729SDavid Howells __SYSCALL(168, sys_msgrcv, 4) 36983596729SDavid Howells #define __NR_msgctl 169 37083596729SDavid Howells __SYSCALL(169, sys_msgctl, 4) 37183596729SDavid Howells #define __NR_available170 170 37283596729SDavid Howells __SYSCALL(170, sys_ni_syscall, 0) 37383596729SDavid Howells 37483596729SDavid Howells /* File System */ 37583596729SDavid Howells 3767216cabfSChris Zankel #define __NR_umount2 171 3777216cabfSChris Zankel __SYSCALL(171, sys_umount, 2) 37883596729SDavid Howells #define __NR_mount 172 37983596729SDavid Howells __SYSCALL(172, sys_mount, 5) 38083596729SDavid Howells #define __NR_swapon 173 38183596729SDavid Howells __SYSCALL(173, sys_swapon, 2) 38283596729SDavid Howells #define __NR_chroot 174 38383596729SDavid Howells __SYSCALL(174, sys_chroot, 1) 38483596729SDavid Howells #define __NR_pivot_root 175 38583596729SDavid Howells __SYSCALL(175, sys_pivot_root, 2) 38683596729SDavid Howells #define __NR_umount 176 387*2651cc69SMax Filippov __SYSCALL(176, sys_oldumount, 1) 388*2651cc69SMax Filippov #define __ARCH_WANT_SYS_OLDUMOUNT 38983596729SDavid Howells #define __NR_swapoff 177 39083596729SDavid Howells __SYSCALL(177, sys_swapoff, 1) 39183596729SDavid Howells #define __NR_sync 178 39283596729SDavid Howells __SYSCALL(178, sys_sync, 0) 3937216cabfSChris Zankel #define __NR_syncfs 179 3947216cabfSChris Zankel __SYSCALL(179, sys_syncfs, 1) 39583596729SDavid Howells #define __NR_setfsuid 180 39683596729SDavid Howells __SYSCALL(180, sys_setfsuid, 1) 39783596729SDavid Howells #define __NR_setfsgid 181 39883596729SDavid Howells __SYSCALL(181, sys_setfsgid, 1) 39983596729SDavid Howells #define __NR_sysfs 182 40083596729SDavid Howells __SYSCALL(182, sys_sysfs, 3) 40183596729SDavid Howells #define __NR_ustat 183 40283596729SDavid Howells __SYSCALL(183, sys_ustat, 2) 40383596729SDavid Howells #define __NR_statfs 184 40483596729SDavid Howells __SYSCALL(184, sys_statfs, 2) 40583596729SDavid Howells #define __NR_fstatfs 185 40683596729SDavid Howells __SYSCALL(185, sys_fstatfs, 2) 40783596729SDavid Howells #define __NR_statfs64 186 40883596729SDavid Howells __SYSCALL(186, sys_statfs64, 3) 40983596729SDavid Howells #define __NR_fstatfs64 187 41083596729SDavid Howells __SYSCALL(187, sys_fstatfs64, 3) 41183596729SDavid Howells 41283596729SDavid Howells /* System */ 41383596729SDavid Howells 41483596729SDavid Howells #define __NR_setrlimit 188 41583596729SDavid Howells __SYSCALL(188, sys_setrlimit, 2) 41683596729SDavid Howells #define __NR_getrlimit 189 41783596729SDavid Howells __SYSCALL(189, sys_getrlimit, 2) 41883596729SDavid Howells #define __NR_getrusage 190 41983596729SDavid Howells __SYSCALL(190, sys_getrusage, 2) 42083596729SDavid Howells #define __NR_futex 191 42183596729SDavid Howells __SYSCALL(191, sys_futex, 5) 42283596729SDavid Howells #define __NR_gettimeofday 192 42383596729SDavid Howells __SYSCALL(192, sys_gettimeofday, 2) 42483596729SDavid Howells #define __NR_settimeofday 193 42583596729SDavid Howells __SYSCALL(193, sys_settimeofday, 2) 42683596729SDavid Howells #define __NR_adjtimex 194 42783596729SDavid Howells __SYSCALL(194, sys_adjtimex, 1) 42883596729SDavid Howells #define __NR_nanosleep 195 42983596729SDavid Howells __SYSCALL(195, sys_nanosleep, 2) 43083596729SDavid Howells #define __NR_getgroups 196 43183596729SDavid Howells __SYSCALL(196, sys_getgroups, 2) 43283596729SDavid Howells #define __NR_setgroups 197 43383596729SDavid Howells __SYSCALL(197, sys_setgroups, 2) 43483596729SDavid Howells #define __NR_sethostname 198 43583596729SDavid Howells __SYSCALL(198, sys_sethostname, 2) 43683596729SDavid Howells #define __NR_setdomainname 199 43783596729SDavid Howells __SYSCALL(199, sys_setdomainname, 2) 43883596729SDavid Howells #define __NR_syslog 200 43983596729SDavid Howells __SYSCALL(200, sys_syslog, 3) 44083596729SDavid Howells #define __NR_vhangup 201 44183596729SDavid Howells __SYSCALL(201, sys_vhangup, 0) 44283596729SDavid Howells #define __NR_uselib 202 44383596729SDavid Howells __SYSCALL(202, sys_uselib, 1) 44483596729SDavid Howells #define __NR_reboot 203 44583596729SDavid Howells __SYSCALL(203, sys_reboot, 3) 44683596729SDavid Howells #define __NR_quotactl 204 44783596729SDavid Howells __SYSCALL(204, sys_quotactl, 4) 44883596729SDavid Howells #define __NR_nfsservctl 205 4497216cabfSChris Zankel __SYSCALL(205, sys_ni_syscall, 0) /* old nfsservctl */ 45083596729SDavid Howells #define __NR__sysctl 206 45183596729SDavid Howells __SYSCALL(206, sys_sysctl, 1) 45283596729SDavid Howells #define __NR_bdflush 207 45383596729SDavid Howells __SYSCALL(207, sys_bdflush, 2) 45483596729SDavid Howells #define __NR_uname 208 45583596729SDavid Howells __SYSCALL(208, sys_newuname, 1) 45683596729SDavid Howells #define __NR_sysinfo 209 45783596729SDavid Howells __SYSCALL(209, sys_sysinfo, 1) 45883596729SDavid Howells #define __NR_init_module 210 45983596729SDavid Howells __SYSCALL(210, sys_init_module, 2) 46083596729SDavid Howells #define __NR_delete_module 211 46183596729SDavid Howells __SYSCALL(211, sys_delete_module, 1) 46283596729SDavid Howells 46383596729SDavid Howells #define __NR_sched_setparam 212 46483596729SDavid Howells __SYSCALL(212, sys_sched_setparam, 2) 46583596729SDavid Howells #define __NR_sched_getparam 213 46683596729SDavid Howells __SYSCALL(213, sys_sched_getparam, 2) 46783596729SDavid Howells #define __NR_sched_setscheduler 214 46883596729SDavid Howells __SYSCALL(214, sys_sched_setscheduler, 3) 46983596729SDavid Howells #define __NR_sched_getscheduler 215 47083596729SDavid Howells __SYSCALL(215, sys_sched_getscheduler, 1) 47183596729SDavid Howells #define __NR_sched_get_priority_max 216 47283596729SDavid Howells __SYSCALL(216, sys_sched_get_priority_max, 1) 47383596729SDavid Howells #define __NR_sched_get_priority_min 217 47483596729SDavid Howells __SYSCALL(217, sys_sched_get_priority_min, 1) 47583596729SDavid Howells #define __NR_sched_rr_get_interval 218 47683596729SDavid Howells __SYSCALL(218, sys_sched_rr_get_interval, 2) 47783596729SDavid Howells #define __NR_sched_yield 219 47883596729SDavid Howells __SYSCALL(219, sys_sched_yield, 0) 47983596729SDavid Howells #define __NR_available222 222 48083596729SDavid Howells __SYSCALL(222, sys_ni_syscall, 0) 48183596729SDavid Howells 48283596729SDavid Howells /* Signal Handling */ 48383596729SDavid Howells 48483596729SDavid Howells #define __NR_restart_syscall 223 48583596729SDavid Howells __SYSCALL(223, sys_restart_syscall, 0) 48683596729SDavid Howells #define __NR_sigaltstack 224 4870430f2f2SAl Viro __SYSCALL(224, sys_sigaltstack, 2) 48883596729SDavid Howells #define __NR_rt_sigreturn 225 48983596729SDavid Howells __SYSCALL(225, xtensa_rt_sigreturn, 1) 49083596729SDavid Howells #define __NR_rt_sigaction 226 49183596729SDavid Howells __SYSCALL(226, sys_rt_sigaction, 4) 49283596729SDavid Howells #define __NR_rt_sigprocmask 227 49383596729SDavid Howells __SYSCALL(227, sys_rt_sigprocmask, 4) 49483596729SDavid Howells #define __NR_rt_sigpending 228 49583596729SDavid Howells __SYSCALL(228, sys_rt_sigpending, 2) 49683596729SDavid Howells #define __NR_rt_sigtimedwait 229 49783596729SDavid Howells __SYSCALL(229, sys_rt_sigtimedwait, 4) 49883596729SDavid Howells #define __NR_rt_sigqueueinfo 230 49983596729SDavid Howells __SYSCALL(230, sys_rt_sigqueueinfo, 3) 50083596729SDavid Howells #define __NR_rt_sigsuspend 231 50183596729SDavid Howells __SYSCALL(231, sys_rt_sigsuspend, 2) 50283596729SDavid Howells 50383596729SDavid Howells /* Message */ 50483596729SDavid Howells 50583596729SDavid Howells #define __NR_mq_open 232 50683596729SDavid Howells __SYSCALL(232, sys_mq_open, 4) 50783596729SDavid Howells #define __NR_mq_unlink 233 50883596729SDavid Howells __SYSCALL(233, sys_mq_unlink, 1) 50983596729SDavid Howells #define __NR_mq_timedsend 234 51083596729SDavid Howells __SYSCALL(234, sys_mq_timedsend, 5) 51183596729SDavid Howells #define __NR_mq_timedreceive 235 51283596729SDavid Howells __SYSCALL(235, sys_mq_timedreceive, 5) 51383596729SDavid Howells #define __NR_mq_notify 236 51483596729SDavid Howells __SYSCALL(236, sys_mq_notify, 2) 51583596729SDavid Howells #define __NR_mq_getsetattr 237 51683596729SDavid Howells __SYSCALL(237, sys_mq_getsetattr, 3) 51783596729SDavid Howells #define __NR_available238 238 51883596729SDavid Howells __SYSCALL(238, sys_ni_syscall, 0) 51983596729SDavid Howells 52083596729SDavid Howells /* IO */ 52183596729SDavid Howells 52283596729SDavid Howells #define __NR_io_setup 239 52383596729SDavid Howells __SYSCALL(239, sys_io_setup, 2) 52483596729SDavid Howells #define __NR_io_destroy 240 52583596729SDavid Howells __SYSCALL(240, sys_io_destroy, 1) 52683596729SDavid Howells #define __NR_io_submit 241 52783596729SDavid Howells __SYSCALL(241, sys_io_submit, 3) 52883596729SDavid Howells #define __NR_io_getevents 242 52983596729SDavid Howells __SYSCALL(242, sys_io_getevents, 5) 53083596729SDavid Howells #define __NR_io_cancel 243 53183596729SDavid Howells __SYSCALL(243, sys_io_cancel, 3) 53283596729SDavid Howells #define __NR_clock_settime 244 53383596729SDavid Howells __SYSCALL(244, sys_clock_settime, 2) 53483596729SDavid Howells #define __NR_clock_gettime 245 53583596729SDavid Howells __SYSCALL(245, sys_clock_gettime, 2) 53683596729SDavid Howells #define __NR_clock_getres 246 53783596729SDavid Howells __SYSCALL(246, sys_clock_getres, 2) 53883596729SDavid Howells #define __NR_clock_nanosleep 247 53983596729SDavid Howells __SYSCALL(247, sys_clock_nanosleep, 4) 54083596729SDavid Howells 54183596729SDavid Howells /* Timer */ 54283596729SDavid Howells 54383596729SDavid Howells #define __NR_timer_create 248 54483596729SDavid Howells __SYSCALL(248, sys_timer_create, 3) 54583596729SDavid Howells #define __NR_timer_delete 249 54683596729SDavid Howells __SYSCALL(249, sys_timer_delete, 1) 54783596729SDavid Howells #define __NR_timer_settime 250 54883596729SDavid Howells __SYSCALL(250, sys_timer_settime, 4) 54983596729SDavid Howells #define __NR_timer_gettime 251 55083596729SDavid Howells __SYSCALL(251, sys_timer_gettime, 2) 55183596729SDavid Howells #define __NR_timer_getoverrun 252 55283596729SDavid Howells __SYSCALL(252, sys_timer_getoverrun, 1) 55383596729SDavid Howells 55483596729SDavid Howells /* System */ 55583596729SDavid Howells 5567216cabfSChris Zankel #define __NR_reserved253 253 55783596729SDavid Howells __SYSCALL(253, sys_ni_syscall, 0) 55883596729SDavid Howells #define __NR_lookup_dcookie 254 55983596729SDavid Howells __SYSCALL(254, sys_lookup_dcookie, 4) 56083596729SDavid Howells #define __NR_available255 255 56183596729SDavid Howells __SYSCALL(255, sys_ni_syscall, 0) 56283596729SDavid Howells #define __NR_add_key 256 56383596729SDavid Howells __SYSCALL(256, sys_add_key, 5) 56483596729SDavid Howells #define __NR_request_key 257 56583596729SDavid Howells __SYSCALL(257, sys_request_key, 5) 56683596729SDavid Howells #define __NR_keyctl 258 56783596729SDavid Howells __SYSCALL(258, sys_keyctl, 5) 56883596729SDavid Howells #define __NR_available259 259 56983596729SDavid Howells __SYSCALL(259, sys_ni_syscall, 0) 57083596729SDavid Howells 57183596729SDavid Howells 57283596729SDavid Howells #define __NR_readahead 260 57383596729SDavid Howells __SYSCALL(260, sys_readahead, 5) 57483596729SDavid Howells #define __NR_remap_file_pages 261 57583596729SDavid Howells __SYSCALL(261, sys_remap_file_pages, 5) 57683596729SDavid Howells #define __NR_migrate_pages 262 57783596729SDavid Howells __SYSCALL(262, sys_migrate_pages, 0) 57883596729SDavid Howells #define __NR_mbind 263 57983596729SDavid Howells __SYSCALL(263, sys_mbind, 6) 58083596729SDavid Howells #define __NR_get_mempolicy 264 58183596729SDavid Howells __SYSCALL(264, sys_get_mempolicy, 5) 58283596729SDavid Howells #define __NR_set_mempolicy 265 58383596729SDavid Howells __SYSCALL(265, sys_set_mempolicy, 3) 58483596729SDavid Howells #define __NR_unshare 266 58583596729SDavid Howells __SYSCALL(266, sys_unshare, 1) 58683596729SDavid Howells #define __NR_move_pages 267 58783596729SDavid Howells __SYSCALL(267, sys_move_pages, 0) 58883596729SDavid Howells #define __NR_splice 268 58983596729SDavid Howells __SYSCALL(268, sys_splice, 0) 59083596729SDavid Howells #define __NR_tee 269 59183596729SDavid Howells __SYSCALL(269, sys_tee, 0) 59283596729SDavid Howells #define __NR_vmsplice 270 59383596729SDavid Howells __SYSCALL(270, sys_vmsplice, 0) 59483596729SDavid Howells #define __NR_available271 271 59583596729SDavid Howells __SYSCALL(271, sys_ni_syscall, 0) 59683596729SDavid Howells 59783596729SDavid Howells #define __NR_pselect6 272 59883596729SDavid Howells __SYSCALL(272, sys_pselect6, 0) 59983596729SDavid Howells #define __NR_ppoll 273 60083596729SDavid Howells __SYSCALL(273, sys_ppoll, 0) 60183596729SDavid Howells #define __NR_epoll_pwait 274 60283596729SDavid Howells __SYSCALL(274, sys_epoll_pwait, 0) 6037216cabfSChris Zankel #define __NR_epoll_create1 275 6047216cabfSChris Zankel __SYSCALL(275, sys_epoll_create1, 1) 60583596729SDavid Howells 60683596729SDavid Howells #define __NR_inotify_init 276 60783596729SDavid Howells __SYSCALL(276, sys_inotify_init, 0) 60883596729SDavid Howells #define __NR_inotify_add_watch 277 60983596729SDavid Howells __SYSCALL(277, sys_inotify_add_watch, 3) 61083596729SDavid Howells #define __NR_inotify_rm_watch 278 61183596729SDavid Howells __SYSCALL(278, sys_inotify_rm_watch, 2) 6127216cabfSChris Zankel #define __NR_inotify_init1 279 6137216cabfSChris Zankel __SYSCALL(279, sys_inotify_init1, 1) 61483596729SDavid Howells 61583596729SDavid Howells #define __NR_getcpu 280 61683596729SDavid Howells __SYSCALL(280, sys_getcpu, 0) 61783596729SDavid Howells #define __NR_kexec_load 281 61883596729SDavid Howells __SYSCALL(281, sys_ni_syscall, 0) 61983596729SDavid Howells 62083596729SDavid Howells #define __NR_ioprio_set 282 62183596729SDavid Howells __SYSCALL(282, sys_ioprio_set, 2) 62283596729SDavid Howells #define __NR_ioprio_get 283 62383596729SDavid Howells __SYSCALL(283, sys_ioprio_get, 3) 62483596729SDavid Howells 62583596729SDavid Howells #define __NR_set_robust_list 284 62683596729SDavid Howells __SYSCALL(284, sys_set_robust_list, 3) 62783596729SDavid Howells #define __NR_get_robust_list 285 62883596729SDavid Howells __SYSCALL(285, sys_get_robust_list, 3) 6297216cabfSChris Zankel #define __NR_available286 286 6307216cabfSChris Zankel __SYSCALL(286, sys_ni_syscall, 0) 63183596729SDavid Howells #define __NR_available287 287 6327216cabfSChris Zankel __SYSCALL(287, sys_ni_syscall, 0) 63383596729SDavid Howells 63483596729SDavid Howells /* Relative File Operations */ 63583596729SDavid Howells 63683596729SDavid Howells #define __NR_openat 288 63783596729SDavid Howells __SYSCALL(288, sys_openat, 4) 63883596729SDavid Howells #define __NR_mkdirat 289 63983596729SDavid Howells __SYSCALL(289, sys_mkdirat, 3) 64083596729SDavid Howells #define __NR_mknodat 290 64183596729SDavid Howells __SYSCALL(290, sys_mknodat, 4) 64283596729SDavid Howells #define __NR_unlinkat 291 64383596729SDavid Howells __SYSCALL(291, sys_unlinkat, 3) 64483596729SDavid Howells #define __NR_renameat 292 64583596729SDavid Howells __SYSCALL(292, sys_renameat, 4) 64683596729SDavid Howells #define __NR_linkat 293 64783596729SDavid Howells __SYSCALL(293, sys_linkat, 5) 64883596729SDavid Howells #define __NR_symlinkat 294 64983596729SDavid Howells __SYSCALL(294, sys_symlinkat, 3) 65083596729SDavid Howells #define __NR_readlinkat 295 65183596729SDavid Howells __SYSCALL(295, sys_readlinkat, 4) 65283596729SDavid Howells #define __NR_utimensat 296 65383596729SDavid Howells __SYSCALL(296, sys_utimensat, 0) 65483596729SDavid Howells #define __NR_fchownat 297 65583596729SDavid Howells __SYSCALL(297, sys_fchownat, 5) 65683596729SDavid Howells #define __NR_futimesat 298 65783596729SDavid Howells __SYSCALL(298, sys_futimesat, 4) 65883596729SDavid Howells #define __NR_fstatat64 299 65983596729SDavid Howells __SYSCALL(299, sys_fstatat64, 0) 66083596729SDavid Howells #define __NR_fchmodat 300 66183596729SDavid Howells __SYSCALL(300, sys_fchmodat, 4) 66283596729SDavid Howells #define __NR_faccessat 301 66383596729SDavid Howells __SYSCALL(301, sys_faccessat, 4) 66483596729SDavid Howells #define __NR_available302 302 66583596729SDavid Howells __SYSCALL(302, sys_ni_syscall, 0) 66683596729SDavid Howells #define __NR_available303 303 66783596729SDavid Howells __SYSCALL(303, sys_ni_syscall, 0) 66883596729SDavid Howells 66983596729SDavid Howells #define __NR_signalfd 304 67083596729SDavid Howells __SYSCALL(304, sys_signalfd, 3) 67183596729SDavid Howells /* 305 was __NR_timerfd */ 67283596729SDavid Howells __SYSCALL(305, sys_ni_syscall, 0) 67383596729SDavid Howells #define __NR_eventfd 306 67483596729SDavid Howells __SYSCALL(306, sys_eventfd, 1) 67583596729SDavid Howells #define __NR_recvmmsg 307 67683596729SDavid Howells __SYSCALL(307, sys_recvmmsg, 5) 6777216cabfSChris Zankel 67883596729SDavid Howells #define __NR_setns 308 67983596729SDavid Howells __SYSCALL(308, sys_setns, 2) 6807216cabfSChris Zankel #define __NR_signalfd4 309 6817216cabfSChris Zankel __SYSCALL(309, sys_signalfd4, 4) 6827216cabfSChris Zankel #define __NR_dup3 310 6837216cabfSChris Zankel __SYSCALL(310, sys_dup3, 3) 6847216cabfSChris Zankel #define __NR_pipe2 311 6857216cabfSChris Zankel __SYSCALL(311, sys_pipe2, 2) 68683596729SDavid Howells 6877216cabfSChris Zankel #define __NR_timerfd_create 312 6887216cabfSChris Zankel __SYSCALL(312, sys_timerfd_create, 2) 6897216cabfSChris Zankel #define __NR_timerfd_settime 313 6907216cabfSChris Zankel __SYSCALL(313, sys_timerfd_settime, 4) 6917216cabfSChris Zankel #define __NR_timerfd_gettime 314 6927216cabfSChris Zankel __SYSCALL(314, sys_timerfd_gettime, 2) 6937216cabfSChris Zankel #define __NR_available315 315 6947216cabfSChris Zankel __SYSCALL(315, sys_ni_syscall, 0) 6957216cabfSChris Zankel 6967216cabfSChris Zankel #define __NR_eventfd2 316 6977216cabfSChris Zankel __SYSCALL(316, sys_eventfd2, 2) 6987216cabfSChris Zankel #define __NR_preadv 317 6997216cabfSChris Zankel __SYSCALL(317, sys_preadv, 5) 7007216cabfSChris Zankel #define __NR_pwritev 318 7017216cabfSChris Zankel __SYSCALL(318, sys_pwritev, 5) 7027216cabfSChris Zankel #define __NR_available319 319 7037216cabfSChris Zankel __SYSCALL(319, sys_ni_syscall, 0) 7047216cabfSChris Zankel 7057216cabfSChris Zankel #define __NR_fanotify_init 320 7067216cabfSChris Zankel __SYSCALL(320, sys_fanotify_init, 2) 7077216cabfSChris Zankel #define __NR_fanotify_mark 321 7087216cabfSChris Zankel __SYSCALL(321, sys_fanotify_mark, 6) 7097216cabfSChris Zankel #define __NR_process_vm_readv 322 7107216cabfSChris Zankel __SYSCALL(322, sys_process_vm_readv, 6) 7117216cabfSChris Zankel #define __NR_process_vm_writev 323 7127216cabfSChris Zankel __SYSCALL(323, sys_process_vm_writev, 6) 7137216cabfSChris Zankel 7147216cabfSChris Zankel #define __NR_name_to_handle_at 324 7157216cabfSChris Zankel __SYSCALL(324, sys_name_to_handle_at, 5) 7167216cabfSChris Zankel #define __NR_open_by_handle_at 325 7177216cabfSChris Zankel __SYSCALL(325, sys_open_by_handle_at, 3) 7187216cabfSChris Zankel #define __NR_sync_file_range 326 7197216cabfSChris Zankel __SYSCALL(326, sys_sync_file_range2, 6) 7207216cabfSChris Zankel #define __NR_perf_event_open 327 7217216cabfSChris Zankel __SYSCALL(327, sys_perf_event_open, 5) 7227216cabfSChris Zankel 7237216cabfSChris Zankel #define __NR_rt_tgsigqueueinfo 328 7247216cabfSChris Zankel __SYSCALL(328, sys_rt_tgsigqueueinfo, 4) 7257216cabfSChris Zankel #define __NR_clock_adjtime 329 7267216cabfSChris Zankel __SYSCALL(329, sys_clock_adjtime, 2) 7277216cabfSChris Zankel #define __NR_prlimit64 330 7287216cabfSChris Zankel __SYSCALL(330, sys_prlimit64, 4) 7297216cabfSChris Zankel #define __NR_kcmp 331 7307216cabfSChris Zankel __SYSCALL(331, sys_kcmp, 5) 7317216cabfSChris Zankel 732475c32d0SMax Filippov #define __NR_finit_module 332 733475c32d0SMax Filippov __SYSCALL(332, sys_finit_module, 3) 7347216cabfSChris Zankel 7359cf81c75SChris Zankel #define __NR_accept4 333 7369cf81c75SChris Zankel __SYSCALL(333, sys_accept4, 4) 7379cf81c75SChris Zankel 738f63b6d75SMax Filippov #define __NR_sched_setattr 334 739f63b6d75SMax Filippov __SYSCALL(334, sys_sched_setattr, 2) 740f63b6d75SMax Filippov #define __NR_sched_getattr 335 741f63b6d75SMax Filippov __SYSCALL(335, sys_sched_getattr, 3) 742f63b6d75SMax Filippov 74389f77c6fSMiklos Szeredi #define __NR_renameat2 336 74489f77c6fSMiklos Szeredi __SYSCALL(336, sys_renameat2, 5) 74589f77c6fSMiklos Szeredi 746bb550fd5SMax Filippov #define __NR_seccomp 337 747bb550fd5SMax Filippov __SYSCALL(337, sys_seccomp, 3) 748bb550fd5SMax Filippov #define __NR_getrandom 338 749bb550fd5SMax Filippov __SYSCALL(338, sys_getrandom, 3) 750bb550fd5SMax Filippov #define __NR_memfd_create 339 751bb550fd5SMax Filippov __SYSCALL(339, sys_memfd_create, 2) 752bb550fd5SMax Filippov 753bb550fd5SMax Filippov #define __NR_syscall_count 340 75483596729SDavid Howells 75583596729SDavid Howells /* 75683596729SDavid Howells * sysxtensa syscall handler 75783596729SDavid Howells * 75883596729SDavid Howells * int sysxtensa (SYS_XTENSA_ATOMIC_SET, ptr, val, unused); 75983596729SDavid Howells * int sysxtensa (SYS_XTENSA_ATOMIC_ADD, ptr, val, unused); 76083596729SDavid Howells * int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val, unused); 76183596729SDavid Howells * int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval); 76283596729SDavid Howells * a2 a6 a3 a4 a5 76383596729SDavid Howells */ 76483596729SDavid Howells 76583596729SDavid Howells #define SYS_XTENSA_RESERVED 0 /* don't use this */ 76683596729SDavid Howells #define SYS_XTENSA_ATOMIC_SET 1 /* set variable */ 76783596729SDavid Howells #define SYS_XTENSA_ATOMIC_EXG_ADD 2 /* exchange memory and add */ 76883596729SDavid Howells #define SYS_XTENSA_ATOMIC_ADD 3 /* add to memory */ 76983596729SDavid Howells #define SYS_XTENSA_ATOMIC_CMP_SWP 4 /* compare and swap */ 77083596729SDavid Howells 77183596729SDavid Howells #define SYS_XTENSA_COUNT 5 /* count */ 7727216cabfSChris Zankel 7732f72d4f6SChris Zankel #undef __SYSCALL 7742f72d4f6SChris Zankel 7757216cabfSChris Zankel #endif /* _UAPI_XTENSA_UNISTD_H */ 776