1 b8b572e1SStephen Rothwell #ifndef _ASM_POWERPC_UNISTD_H_ 2 b8b572e1SStephen Rothwell #define _ASM_POWERPC_UNISTD_H_ 3 b8b572e1SStephen Rothwell 4 b8b572e1SStephen Rothwell /* 5 b8b572e1SStephen Rothwell * This file contains the system call numbers. 6 b8b572e1SStephen Rothwell * 7 b8b572e1SStephen Rothwell * This program is free software; you can redistribute it and/or 8 b8b572e1SStephen Rothwell * modify it under the terms of the GNU General Public License 9 b8b572e1SStephen Rothwell * as published by the Free Software Foundation; either version 10 b8b572e1SStephen Rothwell * 2 of the License, or (at your option) any later version. 11 b8b572e1SStephen Rothwell */ 12 b8b572e1SStephen Rothwell 13 b8b572e1SStephen Rothwell #define __NR_restart_syscall 0 14 b8b572e1SStephen Rothwell #define __NR_exit 1 15 b8b572e1SStephen Rothwell #define __NR_fork 2 16 b8b572e1SStephen Rothwell #define __NR_read 3 17 b8b572e1SStephen Rothwell #define __NR_write 4 18 b8b572e1SStephen Rothwell #define __NR_open 5 19 b8b572e1SStephen Rothwell #define __NR_close 6 20 b8b572e1SStephen Rothwell #define __NR_waitpid 7 21 b8b572e1SStephen Rothwell #define __NR_creat 8 22 b8b572e1SStephen Rothwell #define __NR_link 9 23 b8b572e1SStephen Rothwell #define __NR_unlink 10 24 b8b572e1SStephen Rothwell #define __NR_execve 11 25 b8b572e1SStephen Rothwell #define __NR_chdir 12 26 b8b572e1SStephen Rothwell #define __NR_time 13 27 b8b572e1SStephen Rothwell #define __NR_mknod 14 28 b8b572e1SStephen Rothwell #define __NR_chmod 15 29 b8b572e1SStephen Rothwell #define __NR_lchown 16 30 b8b572e1SStephen Rothwell #define __NR_break 17 31 b8b572e1SStephen Rothwell #define __NR_oldstat 18 32 b8b572e1SStephen Rothwell #define __NR_lseek 19 33 b8b572e1SStephen Rothwell #define __NR_getpid 20 34 b8b572e1SStephen Rothwell #define __NR_mount 21 35 b8b572e1SStephen Rothwell #define __NR_umount 22 36 b8b572e1SStephen Rothwell #define __NR_setuid 23 37 b8b572e1SStephen Rothwell #define __NR_getuid 24 38 b8b572e1SStephen Rothwell #define __NR_stime 25 39 b8b572e1SStephen Rothwell #define __NR_ptrace 26 40 b8b572e1SStephen Rothwell #define __NR_alarm 27 41 b8b572e1SStephen Rothwell #define __NR_oldfstat 28 42 b8b572e1SStephen Rothwell #define __NR_pause 29 43 b8b572e1SStephen Rothwell #define __NR_utime 30 44 b8b572e1SStephen Rothwell #define __NR_stty 31 45 b8b572e1SStephen Rothwell #define __NR_gtty 32 46 b8b572e1SStephen Rothwell #define __NR_access 33 47 b8b572e1SStephen Rothwell #define __NR_nice 34 48 b8b572e1SStephen Rothwell #define __NR_ftime 35 49 b8b572e1SStephen Rothwell #define __NR_sync 36 50 b8b572e1SStephen Rothwell #define __NR_kill 37 51 b8b572e1SStephen Rothwell #define __NR_rename 38 52 b8b572e1SStephen Rothwell #define __NR_mkdir 39 53 b8b572e1SStephen Rothwell #define __NR_rmdir 40 54 b8b572e1SStephen Rothwell #define __NR_dup 41 55 b8b572e1SStephen Rothwell #define __NR_pipe 42 56 b8b572e1SStephen Rothwell #define __NR_times 43 57 b8b572e1SStephen Rothwell #define __NR_prof 44 58 b8b572e1SStephen Rothwell #define __NR_brk 45 59 b8b572e1SStephen Rothwell #define __NR_setgid 46 60 b8b572e1SStephen Rothwell #define __NR_getgid 47 61 b8b572e1SStephen Rothwell #define __NR_signal 48 62 b8b572e1SStephen Rothwell #define __NR_geteuid 49 63 b8b572e1SStephen Rothwell #define __NR_getegid 50 64 b8b572e1SStephen Rothwell #define __NR_acct 51 65 b8b572e1SStephen Rothwell #define __NR_umount2 52 66 b8b572e1SStephen Rothwell #define __NR_lock 53 67 b8b572e1SStephen Rothwell #define __NR_ioctl 54 68 b8b572e1SStephen Rothwell #define __NR_fcntl 55 69 b8b572e1SStephen Rothwell #define __NR_mpx 56 70 b8b572e1SStephen Rothwell #define __NR_setpgid 57 71 b8b572e1SStephen Rothwell #define __NR_ulimit 58 72 b8b572e1SStephen Rothwell #define __NR_oldolduname 59 73 b8b572e1SStephen Rothwell #define __NR_umask 60 74 b8b572e1SStephen Rothwell #define __NR_chroot 61 75 b8b572e1SStephen Rothwell #define __NR_ustat 62 76 b8b572e1SStephen Rothwell #define __NR_dup2 63 77 b8b572e1SStephen Rothwell #define __NR_getppid 64 78 b8b572e1SStephen Rothwell #define __NR_getpgrp 65 79 b8b572e1SStephen Rothwell #define __NR_setsid 66 80 b8b572e1SStephen Rothwell #define __NR_sigaction 67 81 b8b572e1SStephen Rothwell #define __NR_sgetmask 68 82 b8b572e1SStephen Rothwell #define __NR_ssetmask 69 83 b8b572e1SStephen Rothwell #define __NR_setreuid 70 84 b8b572e1SStephen Rothwell #define __NR_setregid 71 85 b8b572e1SStephen Rothwell #define __NR_sigsuspend 72 86 b8b572e1SStephen Rothwell #define __NR_sigpending 73 87 b8b572e1SStephen Rothwell #define __NR_sethostname 74 88 b8b572e1SStephen Rothwell #define __NR_setrlimit 75 89 b8b572e1SStephen Rothwell #define __NR_getrlimit 76 90 b8b572e1SStephen Rothwell #define __NR_getrusage 77 91 b8b572e1SStephen Rothwell #define __NR_gettimeofday 78 92 b8b572e1SStephen Rothwell #define __NR_settimeofday 79 93 b8b572e1SStephen Rothwell #define __NR_getgroups 80 94 b8b572e1SStephen Rothwell #define __NR_setgroups 81 95 b8b572e1SStephen Rothwell #define __NR_select 82 96 b8b572e1SStephen Rothwell #define __NR_symlink 83 97 b8b572e1SStephen Rothwell #define __NR_oldlstat 84 98 b8b572e1SStephen Rothwell #define __NR_readlink 85 99 b8b572e1SStephen Rothwell #define __NR_uselib 86 100 b8b572e1SStephen Rothwell #define __NR_swapon 87 101 b8b572e1SStephen Rothwell #define __NR_reboot 88 102 b8b572e1SStephen Rothwell #define __NR_readdir 89 103 b8b572e1SStephen Rothwell #define __NR_mmap 90 104 b8b572e1SStephen Rothwell #define __NR_munmap 91 105 b8b572e1SStephen Rothwell #define __NR_truncate 92 106 b8b572e1SStephen Rothwell #define __NR_ftruncate 93 107 b8b572e1SStephen Rothwell #define __NR_fchmod 94 108 b8b572e1SStephen Rothwell #define __NR_fchown 95 109 b8b572e1SStephen Rothwell #define __NR_getpriority 96 110 b8b572e1SStephen Rothwell #define __NR_setpriority 97 111 b8b572e1SStephen Rothwell #define __NR_profil 98 112 b8b572e1SStephen Rothwell #define __NR_statfs 99 113 b8b572e1SStephen Rothwell #define __NR_fstatfs 100 114 b8b572e1SStephen Rothwell #define __NR_ioperm 101 115 b8b572e1SStephen Rothwell #define __NR_socketcall 102 116 b8b572e1SStephen Rothwell #define __NR_syslog 103 117 b8b572e1SStephen Rothwell #define __NR_setitimer 104 118 b8b572e1SStephen Rothwell #define __NR_getitimer 105 119 b8b572e1SStephen Rothwell #define __NR_stat 106 120 b8b572e1SStephen Rothwell #define __NR_lstat 107 121 b8b572e1SStephen Rothwell #define __NR_fstat 108 122 b8b572e1SStephen Rothwell #define __NR_olduname 109 123 b8b572e1SStephen Rothwell #define __NR_iopl 110 124 b8b572e1SStephen Rothwell #define __NR_vhangup 111 125 b8b572e1SStephen Rothwell #define __NR_idle 112 126 b8b572e1SStephen Rothwell #define __NR_vm86 113 127 b8b572e1SStephen Rothwell #define __NR_wait4 114 128 b8b572e1SStephen Rothwell #define __NR_swapoff 115 129 b8b572e1SStephen Rothwell #define __NR_sysinfo 116 130 b8b572e1SStephen Rothwell #define __NR_ipc 117 131 b8b572e1SStephen Rothwell #define __NR_fsync 118 132 b8b572e1SStephen Rothwell #define __NR_sigreturn 119 133 b8b572e1SStephen Rothwell #define __NR_clone 120 134 b8b572e1SStephen Rothwell #define __NR_setdomainname 121 135 b8b572e1SStephen Rothwell #define __NR_uname 122 136 b8b572e1SStephen Rothwell #define __NR_modify_ldt 123 137 b8b572e1SStephen Rothwell #define __NR_adjtimex 124 138 b8b572e1SStephen Rothwell #define __NR_mprotect 125 139 b8b572e1SStephen Rothwell #define __NR_sigprocmask 126 140 b8b572e1SStephen Rothwell #define __NR_create_module 127 141 b8b572e1SStephen Rothwell #define __NR_init_module 128 142 b8b572e1SStephen Rothwell #define __NR_delete_module 129 143 b8b572e1SStephen Rothwell #define __NR_get_kernel_syms 130 144 b8b572e1SStephen Rothwell #define __NR_quotactl 131 145 b8b572e1SStephen Rothwell #define __NR_getpgid 132 146 b8b572e1SStephen Rothwell #define __NR_fchdir 133 147 b8b572e1SStephen Rothwell #define __NR_bdflush 134 148 b8b572e1SStephen Rothwell #define __NR_sysfs 135 149 b8b572e1SStephen Rothwell #define __NR_personality 136 150 b8b572e1SStephen Rothwell #define __NR_afs_syscall 137 /* Syscall for Andrew File System */ 151 b8b572e1SStephen Rothwell #define __NR_setfsuid 138 152 b8b572e1SStephen Rothwell #define __NR_setfsgid 139 153 b8b572e1SStephen Rothwell #define __NR__llseek 140 154 b8b572e1SStephen Rothwell #define __NR_getdents 141 155 b8b572e1SStephen Rothwell #define __NR__newselect 142 156 b8b572e1SStephen Rothwell #define __NR_flock 143 157 b8b572e1SStephen Rothwell #define __NR_msync 144 158 b8b572e1SStephen Rothwell #define __NR_readv 145 159 b8b572e1SStephen Rothwell #define __NR_writev 146 160 b8b572e1SStephen Rothwell #define __NR_getsid 147 161 b8b572e1SStephen Rothwell #define __NR_fdatasync 148 162 b8b572e1SStephen Rothwell #define __NR__sysctl 149 163 b8b572e1SStephen Rothwell #define __NR_mlock 150 164 b8b572e1SStephen Rothwell #define __NR_munlock 151 165 b8b572e1SStephen Rothwell #define __NR_mlockall 152 166 b8b572e1SStephen Rothwell #define __NR_munlockall 153 167 b8b572e1SStephen Rothwell #define __NR_sched_setparam 154 168 b8b572e1SStephen Rothwell #define __NR_sched_getparam 155 169 b8b572e1SStephen Rothwell #define __NR_sched_setscheduler 156 170 b8b572e1SStephen Rothwell #define __NR_sched_getscheduler 157 171 b8b572e1SStephen Rothwell #define __NR_sched_yield 158 172 b8b572e1SStephen Rothwell #define __NR_sched_get_priority_max 159 173 b8b572e1SStephen Rothwell #define __NR_sched_get_priority_min 160 174 b8b572e1SStephen Rothwell #define __NR_sched_rr_get_interval 161 175 b8b572e1SStephen Rothwell #define __NR_nanosleep 162 176 b8b572e1SStephen Rothwell #define __NR_mremap 163 177 b8b572e1SStephen Rothwell #define __NR_setresuid 164 178 b8b572e1SStephen Rothwell #define __NR_getresuid 165 179 b8b572e1SStephen Rothwell #define __NR_query_module 166 180 b8b572e1SStephen Rothwell #define __NR_poll 167 181 b8b572e1SStephen Rothwell #define __NR_nfsservctl 168 182 b8b572e1SStephen Rothwell #define __NR_setresgid 169 183 b8b572e1SStephen Rothwell #define __NR_getresgid 170 184 b8b572e1SStephen Rothwell #define __NR_prctl 171 185 b8b572e1SStephen Rothwell #define __NR_rt_sigreturn 172 186 b8b572e1SStephen Rothwell #define __NR_rt_sigaction 173 187 b8b572e1SStephen Rothwell #define __NR_rt_sigprocmask 174 188 b8b572e1SStephen Rothwell #define __NR_rt_sigpending 175 189 b8b572e1SStephen Rothwell #define __NR_rt_sigtimedwait 176 190 b8b572e1SStephen Rothwell #define __NR_rt_sigqueueinfo 177 191 b8b572e1SStephen Rothwell #define __NR_rt_sigsuspend 178 192 b8b572e1SStephen Rothwell #define __NR_pread64 179 193 b8b572e1SStephen Rothwell #define __NR_pwrite64 180 194 b8b572e1SStephen Rothwell #define __NR_chown 181 195 b8b572e1SStephen Rothwell #define __NR_getcwd 182 196 b8b572e1SStephen Rothwell #define __NR_capget 183 197 b8b572e1SStephen Rothwell #define __NR_capset 184 198 b8b572e1SStephen Rothwell #define __NR_sigaltstack 185 199 b8b572e1SStephen Rothwell #define __NR_sendfile 186 200 b8b572e1SStephen Rothwell #define __NR_getpmsg 187 /* some people actually want streams */ 201 b8b572e1SStephen Rothwell #define __NR_putpmsg 188 /* some people actually want streams */ 202 b8b572e1SStephen Rothwell #define __NR_vfork 189 203 b8b572e1SStephen Rothwell #define __NR_ugetrlimit 190 /* SuS compliant getrlimit */ 204 b8b572e1SStephen Rothwell #define __NR_readahead 191 205 b8b572e1SStephen Rothwell #ifndef __powerpc64__ /* these are 32-bit only */ 206 b8b572e1SStephen Rothwell #define __NR_mmap2 192 207 b8b572e1SStephen Rothwell #define __NR_truncate64 193 208 b8b572e1SStephen Rothwell #define __NR_ftruncate64 194 209 b8b572e1SStephen Rothwell #define __NR_stat64 195 210 b8b572e1SStephen Rothwell #define __NR_lstat64 196 211 b8b572e1SStephen Rothwell #define __NR_fstat64 197 212 b8b572e1SStephen Rothwell #endif 213 b8b572e1SStephen Rothwell #define __NR_pciconfig_read 198 214 b8b572e1SStephen Rothwell #define __NR_pciconfig_write 199 215 b8b572e1SStephen Rothwell #define __NR_pciconfig_iobase 200 216 b8b572e1SStephen Rothwell #define __NR_multiplexer 201 217 b8b572e1SStephen Rothwell #define __NR_getdents64 202 218 b8b572e1SStephen Rothwell #define __NR_pivot_root 203 219 b8b572e1SStephen Rothwell #ifndef __powerpc64__ 220 b8b572e1SStephen Rothwell #define __NR_fcntl64 204 221 b8b572e1SStephen Rothwell #endif 222 b8b572e1SStephen Rothwell #define __NR_madvise 205 223 b8b572e1SStephen Rothwell #define __NR_mincore 206 224 b8b572e1SStephen Rothwell #define __NR_gettid 207 225 b8b572e1SStephen Rothwell #define __NR_tkill 208 226 b8b572e1SStephen Rothwell #define __NR_setxattr 209 227 b8b572e1SStephen Rothwell #define __NR_lsetxattr 210 228 b8b572e1SStephen Rothwell #define __NR_fsetxattr 211 229 b8b572e1SStephen Rothwell #define __NR_getxattr 212 230 b8b572e1SStephen Rothwell #define __NR_lgetxattr 213 231 b8b572e1SStephen Rothwell #define __NR_fgetxattr 214 232 b8b572e1SStephen Rothwell #define __NR_listxattr 215 233 b8b572e1SStephen Rothwell #define __NR_llistxattr 216 234 b8b572e1SStephen Rothwell #define __NR_flistxattr 217 235 b8b572e1SStephen Rothwell #define __NR_removexattr 218 236 b8b572e1SStephen Rothwell #define __NR_lremovexattr 219 237 b8b572e1SStephen Rothwell #define __NR_fremovexattr 220 238 b8b572e1SStephen Rothwell #define __NR_futex 221 239 b8b572e1SStephen Rothwell #define __NR_sched_setaffinity 222 240 b8b572e1SStephen Rothwell #define __NR_sched_getaffinity 223 241 b8b572e1SStephen Rothwell /* 224 currently unused */ 242 b8b572e1SStephen Rothwell #define __NR_tuxcall 225 243 b8b572e1SStephen Rothwell #ifndef __powerpc64__ 244 b8b572e1SStephen Rothwell #define __NR_sendfile64 226 245 b8b572e1SStephen Rothwell #endif 246 b8b572e1SStephen Rothwell #define __NR_io_setup 227 247 b8b572e1SStephen Rothwell #define __NR_io_destroy 228 248 b8b572e1SStephen Rothwell #define __NR_io_getevents 229 249 b8b572e1SStephen Rothwell #define __NR_io_submit 230 250 b8b572e1SStephen Rothwell #define __NR_io_cancel 231 251 b8b572e1SStephen Rothwell #define __NR_set_tid_address 232 252 b8b572e1SStephen Rothwell #define __NR_fadvise64 233 253 b8b572e1SStephen Rothwell #define __NR_exit_group 234 254 b8b572e1SStephen Rothwell #define __NR_lookup_dcookie 235 255 b8b572e1SStephen Rothwell #define __NR_epoll_create 236 256 b8b572e1SStephen Rothwell #define __NR_epoll_ctl 237 257 b8b572e1SStephen Rothwell #define __NR_epoll_wait 238 258 b8b572e1SStephen Rothwell #define __NR_remap_file_pages 239 259 b8b572e1SStephen Rothwell #define __NR_timer_create 240 260 b8b572e1SStephen Rothwell #define __NR_timer_settime 241 261 b8b572e1SStephen Rothwell #define __NR_timer_gettime 242 262 b8b572e1SStephen Rothwell #define __NR_timer_getoverrun 243 263 b8b572e1SStephen Rothwell #define __NR_timer_delete 244 264 b8b572e1SStephen Rothwell #define __NR_clock_settime 245 265 b8b572e1SStephen Rothwell #define __NR_clock_gettime 246 266 b8b572e1SStephen Rothwell #define __NR_clock_getres 247 267 b8b572e1SStephen Rothwell #define __NR_clock_nanosleep 248 268 b8b572e1SStephen Rothwell #define __NR_swapcontext 249 269 b8b572e1SStephen Rothwell #define __NR_tgkill 250 270 b8b572e1SStephen Rothwell #define __NR_utimes 251 271 b8b572e1SStephen Rothwell #define __NR_statfs64 252 272 b8b572e1SStephen Rothwell #define __NR_fstatfs64 253 273 b8b572e1SStephen Rothwell #ifndef __powerpc64__ 274 b8b572e1SStephen Rothwell #define __NR_fadvise64_64 254 275 b8b572e1SStephen Rothwell #endif 276 b8b572e1SStephen Rothwell #define __NR_rtas 255 277 b8b572e1SStephen Rothwell #define __NR_sys_debug_setcontext 256 278 b8b572e1SStephen Rothwell /* Number 257 is reserved for vserver */ 279 b8b572e1SStephen Rothwell #define __NR_migrate_pages 258 280 b8b572e1SStephen Rothwell #define __NR_mbind 259 281 b8b572e1SStephen Rothwell #define __NR_get_mempolicy 260 282 b8b572e1SStephen Rothwell #define __NR_set_mempolicy 261 283 b8b572e1SStephen Rothwell #define __NR_mq_open 262 284 b8b572e1SStephen Rothwell #define __NR_mq_unlink 263 285 b8b572e1SStephen Rothwell #define __NR_mq_timedsend 264 286 b8b572e1SStephen Rothwell #define __NR_mq_timedreceive 265 287 b8b572e1SStephen Rothwell #define __NR_mq_notify 266 288 b8b572e1SStephen Rothwell #define __NR_mq_getsetattr 267 289 b8b572e1SStephen Rothwell #define __NR_kexec_load 268 290 b8b572e1SStephen Rothwell #define __NR_add_key 269 291 b8b572e1SStephen Rothwell #define __NR_request_key 270 292 b8b572e1SStephen Rothwell #define __NR_keyctl 271 293 b8b572e1SStephen Rothwell #define __NR_waitid 272 294 b8b572e1SStephen Rothwell #define __NR_ioprio_set 273 295 b8b572e1SStephen Rothwell #define __NR_ioprio_get 274 296 b8b572e1SStephen Rothwell #define __NR_inotify_init 275 297 b8b572e1SStephen Rothwell #define __NR_inotify_add_watch 276 298 b8b572e1SStephen Rothwell #define __NR_inotify_rm_watch 277 299 b8b572e1SStephen Rothwell #define __NR_spu_run 278 300 b8b572e1SStephen Rothwell #define __NR_spu_create 279 301 b8b572e1SStephen Rothwell #define __NR_pselect6 280 302 b8b572e1SStephen Rothwell #define __NR_ppoll 281 303 b8b572e1SStephen Rothwell #define __NR_unshare 282 304 b8b572e1SStephen Rothwell #define __NR_splice 283 305 b8b572e1SStephen Rothwell #define __NR_tee 284 306 b8b572e1SStephen Rothwell #define __NR_vmsplice 285 307 b8b572e1SStephen Rothwell #define __NR_openat 286 308 b8b572e1SStephen Rothwell #define __NR_mkdirat 287 309 b8b572e1SStephen Rothwell #define __NR_mknodat 288 310 b8b572e1SStephen Rothwell #define __NR_fchownat 289 311 b8b572e1SStephen Rothwell #define __NR_futimesat 290 312 b8b572e1SStephen Rothwell #ifdef __powerpc64__ 313 b8b572e1SStephen Rothwell #define __NR_newfstatat 291 314 b8b572e1SStephen Rothwell #else 315 b8b572e1SStephen Rothwell #define __NR_fstatat64 291 316 b8b572e1SStephen Rothwell #endif 317 b8b572e1SStephen Rothwell #define __NR_unlinkat 292 318 b8b572e1SStephen Rothwell #define __NR_renameat 293 319 b8b572e1SStephen Rothwell #define __NR_linkat 294 320 b8b572e1SStephen Rothwell #define __NR_symlinkat 295 321 b8b572e1SStephen Rothwell #define __NR_readlinkat 296 322 b8b572e1SStephen Rothwell #define __NR_fchmodat 297 323 b8b572e1SStephen Rothwell #define __NR_faccessat 298 324 b8b572e1SStephen Rothwell #define __NR_get_robust_list 299 325 b8b572e1SStephen Rothwell #define __NR_set_robust_list 300 326 b8b572e1SStephen Rothwell #define __NR_move_pages 301 327 b8b572e1SStephen Rothwell #define __NR_getcpu 302 328 b8b572e1SStephen Rothwell #define __NR_epoll_pwait 303 329 b8b572e1SStephen Rothwell #define __NR_utimensat 304 330 b8b572e1SStephen Rothwell #define __NR_signalfd 305 331 b8b572e1SStephen Rothwell #define __NR_timerfd_create 306 332 b8b572e1SStephen Rothwell #define __NR_eventfd 307 333 b8b572e1SStephen Rothwell #define __NR_sync_file_range2 308 334 b8b572e1SStephen Rothwell #define __NR_fallocate 309 335 b8b572e1SStephen Rothwell #define __NR_subpage_prot 310 336 b8b572e1SStephen Rothwell #define __NR_timerfd_settime 311 337 b8b572e1SStephen Rothwell #define __NR_timerfd_gettime 312 338 b8b572e1SStephen Rothwell #define __NR_signalfd4 313 339 b8b572e1SStephen Rothwell #define __NR_eventfd2 314 340 b8b572e1SStephen Rothwell #define __NR_epoll_create1 315 341 b8b572e1SStephen Rothwell #define __NR_dup3 316 342 b8b572e1SStephen Rothwell #define __NR_pipe2 317 343 b8b572e1SStephen Rothwell #define __NR_inotify_init1 318 344 cdd6c482SIngo Molnar #define __NR_perf_event_open 319 345 1a917bb5SStephen Rothwell #define __NR_preadv 320 346 1a917bb5SStephen Rothwell #define __NR_pwritev 321 347 3240776cSStephen Rothwell #define __NR_rt_tgsigqueueinfo 322 348 bcc30d37SAndreas Schwab #define __NR_fanotify_init 323 349 bcc30d37SAndreas Schwab #define __NR_fanotify_mark 324 350 bcc30d37SAndreas Schwab #define __NR_prlimit64 325 351 86250b9dSIan Munsie #define __NR_socket 326 352 86250b9dSIan Munsie #define __NR_bind 327 353 86250b9dSIan Munsie #define __NR_connect 328 354 86250b9dSIan Munsie #define __NR_listen 329 355 86250b9dSIan Munsie #define __NR_accept 330 356 86250b9dSIan Munsie #define __NR_getsockname 331 357 86250b9dSIan Munsie #define __NR_getpeername 332 358 86250b9dSIan Munsie #define __NR_socketpair 333 359 86250b9dSIan Munsie #define __NR_send 334 360 86250b9dSIan Munsie #define __NR_sendto 335 361 86250b9dSIan Munsie #define __NR_recv 336 362 86250b9dSIan Munsie #define __NR_recvfrom 337 363 86250b9dSIan Munsie #define __NR_shutdown 338 364 86250b9dSIan Munsie #define __NR_setsockopt 339 365 86250b9dSIan Munsie #define __NR_getsockopt 340 366 86250b9dSIan Munsie #define __NR_sendmsg 341 367 86250b9dSIan Munsie #define __NR_recvmsg 342 368 86250b9dSIan Munsie #define __NR_recvmmsg 343 369 86250b9dSIan Munsie #define __NR_accept4 344 370 *834796a8SStephen Rothwell #define __NR_name_to_handle_at 345 371 *834796a8SStephen Rothwell #define __NR_open_by_handle_at 346 372 *834796a8SStephen Rothwell #define __NR_clock_adjtime 347 373 *834796a8SStephen Rothwell #define __NR_syncfs 348 374 b8b572e1SStephen Rothwell 375 b8b572e1SStephen Rothwell #ifdef __KERNEL__ 376 b8b572e1SStephen Rothwell 377 *834796a8SStephen Rothwell #define __NR_syscalls 349 378 b8b572e1SStephen Rothwell 379 b8b572e1SStephen Rothwell #define __NR__exit __NR_exit 380 b8b572e1SStephen Rothwell #define NR_syscalls __NR_syscalls 381 b8b572e1SStephen Rothwell 382 b8b572e1SStephen Rothwell #ifndef __ASSEMBLY__ 383 b8b572e1SStephen Rothwell 384 b8b572e1SStephen Rothwell #include <linux/types.h> 385 b8b572e1SStephen Rothwell #include <linux/compiler.h> 386 b8b572e1SStephen Rothwell #include <linux/linkage.h> 387 b8b572e1SStephen Rothwell 388 b8b572e1SStephen Rothwell #define __ARCH_WANT_IPC_PARSE_VERSION 389 b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_READDIR 390 b8b572e1SStephen Rothwell #define __ARCH_WANT_STAT64 391 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_ALARM 392 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETHOSTNAME 393 baed7fc9SChristoph Hellwig #define __ARCH_WANT_SYS_IPC 394 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_PAUSE 395 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SGETMASK 396 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGNAL 397 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_TIME 398 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_UTIME 399 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_WAITPID 400 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SOCKETCALL 401 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_FADVISE64 402 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETPGRP 403 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_LLSEEK 404 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NICE 405 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLD_GETRLIMIT 406 5cacdb4aSChristoph Hellwig #define __ARCH_WANT_SYS_OLD_UNAME 407 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLDUMOUNT 408 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPENDING 409 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPROCMASK 410 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_RT_SIGACTION 411 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_RT_SIGSUSPEND 412 b8b572e1SStephen Rothwell #ifdef CONFIG_PPC32 413 b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_STAT 414 b8b572e1SStephen Rothwell #endif 415 b8b572e1SStephen Rothwell #ifdef CONFIG_PPC64 416 b8b572e1SStephen Rothwell #define __ARCH_WANT_COMPAT_SYS_TIME 417 b8b572e1SStephen Rothwell #define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND 418 b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NEWFSTATAT 419 b8b572e1SStephen Rothwell #endif 420 b8b572e1SStephen Rothwell 421 b8b572e1SStephen Rothwell /* 422 b8b572e1SStephen Rothwell * "Conditional" syscalls 423 b8b572e1SStephen Rothwell */ 424 b8b572e1SStephen Rothwell #define cond_syscall(x) \ 425 b8b572e1SStephen Rothwell asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall"))) 426 b8b572e1SStephen Rothwell 427 b8b572e1SStephen Rothwell #endif /* __ASSEMBLY__ */ 428 b8b572e1SStephen Rothwell #endif /* __KERNEL__ */ 429 b8b572e1SStephen Rothwell 430 b8b572e1SStephen Rothwell #endif /* _ASM_POWERPC_UNISTD_H_ */ 431