systbl.h 8.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/*
 * List of powerpc syscalls. For the meaning of the _SPU suffix see
 * arch/powerpc/platforms/cell/spu_callbacks.c
 */

SYSCALL(restart_syscall)
SYSCALL(exit)
PPC_SYS(fork)
SYSCALL_SPU(read)
SYSCALL_SPU(write)
COMPAT_SYS_SPU(open)
SYSCALL_SPU(close)
A
Al Viro 已提交
13 14
SYSCALL_SPU(waitpid)
SYSCALL_SPU(creat)
15 16 17 18 19 20 21 22 23 24
SYSCALL_SPU(link)
SYSCALL_SPU(unlink)
COMPAT_SYS(execve)
SYSCALL_SPU(chdir)
COMPAT_SYS_SPU(time)
SYSCALL_SPU(mknod)
SYSCALL_SPU(chmod)
SYSCALL_SPU(lchown)
SYSCALL(ni_syscall)
OLDSYS(stat)
A
Al Viro 已提交
25
COMPAT_SYS_SPU(lseek)
26 27 28 29 30 31 32 33 34
SYSCALL_SPU(getpid)
COMPAT_SYS(mount)
SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount)
SYSCALL_SPU(setuid)
SYSCALL_SPU(getuid)
COMPAT_SYS_SPU(stime)
COMPAT_SYS(ptrace)
SYSCALL_SPU(alarm)
OLDSYS(fstat)
35
SYSCALL(pause)
36 37 38
COMPAT_SYS(utime)
SYSCALL(ni_syscall)
SYSCALL(ni_syscall)
A
Al Viro 已提交
39 40
SYSCALL_SPU(access)
SYSCALL_SPU(nice)
41 42
SYSCALL(ni_syscall)
SYSCALL_SPU(sync)
A
Al Viro 已提交
43
SYSCALL_SPU(kill)
44
SYSCALL_SPU(rename)
A
Al Viro 已提交
45
SYSCALL_SPU(mkdir)
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
SYSCALL_SPU(rmdir)
SYSCALL_SPU(dup)
SYSCALL_SPU(pipe)
COMPAT_SYS_SPU(times)
SYSCALL(ni_syscall)
SYSCALL_SPU(brk)
SYSCALL_SPU(setgid)
SYSCALL_SPU(getgid)
SYSCALL(signal)
SYSCALL_SPU(geteuid)
SYSCALL_SPU(getegid)
SYSCALL(acct)
SYSCALL(umount)
SYSCALL(ni_syscall)
COMPAT_SYS_SPU(ioctl)
COMPAT_SYS_SPU(fcntl)
SYSCALL(ni_syscall)
A
Al Viro 已提交
63
SYSCALL_SPU(setpgid)
64
SYSCALL(ni_syscall)
65
SYSX(sys_ni_syscall,sys_olduname,sys_olduname)
A
Al Viro 已提交
66
SYSCALL_SPU(umask)
67
SYSCALL_SPU(chroot)
C
Christoph Hellwig 已提交
68
COMPAT_SYS(ustat)
69 70 71 72 73 74
SYSCALL_SPU(dup2)
SYSCALL_SPU(getppid)
SYSCALL_SPU(getpgrp)
SYSCALL_SPU(setsid)
SYS32ONLY(sigaction)
SYSCALL_SPU(sgetmask)
A
Al Viro 已提交
75
SYSCALL_SPU(ssetmask)
76 77
SYSCALL_SPU(setreuid)
SYSCALL_SPU(setregid)
78
#define compat_sys_sigsuspend sys_sigsuspend
79
SYS32ONLY(sigsuspend)
80
SYSX(sys_ni_syscall,compat_sys_sigpending,sys_sigpending)
A
Al Viro 已提交
81
SYSCALL_SPU(sethostname)
82
COMPAT_SYS_SPU(setrlimit)
83
SYSX(sys_ni_syscall,compat_sys_old_getrlimit,sys_old_getrlimit)
84 85 86
COMPAT_SYS_SPU(getrusage)
COMPAT_SYS_SPU(gettimeofday)
COMPAT_SYS_SPU(settimeofday)
A
Al Viro 已提交
87 88
SYSCALL_SPU(getgroups)
SYSCALL_SPU(setgroups)
89 90 91
SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select)
SYSCALL_SPU(symlink)
OLDSYS(lstat)
A
Al Viro 已提交
92
SYSCALL_SPU(readlink)
93 94 95
SYSCALL(uselib)
SYSCALL(swapon)
SYSCALL(reboot)
96
SYSX(sys_ni_syscall,compat_sys_old_readdir,sys_old_readdir)
97 98
SYSCALL_SPU(mmap)
SYSCALL_SPU(munmap)
99 100
COMPAT_SYS_SPU(truncate)
COMPAT_SYS_SPU(ftruncate)
101 102
SYSCALL_SPU(fchmod)
SYSCALL_SPU(fchown)
A
Al Viro 已提交
103 104
SYSCALL_SPU(getpriority)
SYSCALL_SPU(setpriority)
105 106 107 108 109
SYSCALL(ni_syscall)
COMPAT_SYS(statfs)
COMPAT_SYS(fstatfs)
SYSCALL(ni_syscall)
COMPAT_SYS_SPU(socketcall)
A
Al Viro 已提交
110
SYSCALL_SPU(syslog)
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
COMPAT_SYS_SPU(setitimer)
COMPAT_SYS_SPU(getitimer)
COMPAT_SYS_SPU(newstat)
COMPAT_SYS_SPU(newlstat)
COMPAT_SYS_SPU(newfstat)
SYSX(sys_ni_syscall,sys_uname,sys_uname)
SYSCALL(ni_syscall)
SYSCALL_SPU(vhangup)
SYSCALL(ni_syscall)
SYSCALL(ni_syscall)
COMPAT_SYS_SPU(wait4)
SYSCALL(swapoff)
COMPAT_SYS_SPU(sysinfo)
COMPAT_SYS(ipc)
SYSCALL_SPU(fsync)
SYS32ONLY(sigreturn)
PPC_SYS(clone)
A
Al Viro 已提交
128
SYSCALL_SPU(setdomainname)
129
SYSCALL_SPU(newuname)
130 131 132 133 134 135 136 137 138
SYSCALL(ni_syscall)
COMPAT_SYS_SPU(adjtimex)
SYSCALL_SPU(mprotect)
SYSX(sys_ni_syscall,compat_sys_sigprocmask,sys_sigprocmask)
SYSCALL(ni_syscall)
SYSCALL(init_module)
SYSCALL(delete_module)
SYSCALL(ni_syscall)
SYSCALL(quotactl)
A
Al Viro 已提交
139
SYSCALL_SPU(getpgid)
140 141
SYSCALL_SPU(fchdir)
SYSCALL_SPU(bdflush)
A
Al Viro 已提交
142
SYSCALL_SPU(sysfs)
143 144 145 146 147 148
SYSX_SPU(ppc64_personality,ppc64_personality,sys_personality)
SYSCALL(ni_syscall)
SYSCALL_SPU(setfsuid)
SYSCALL_SPU(setfsgid)
SYSCALL_SPU(llseek)
COMPAT_SYS_SPU(getdents)
149
SYSX_SPU(sys_select,ppc32_select,sys_select)
150 151 152 153
SYSCALL_SPU(flock)
SYSCALL_SPU(msync)
COMPAT_SYS_SPU(readv)
COMPAT_SYS_SPU(writev)
A
Al Viro 已提交
154
SYSCALL_SPU(getsid)
155 156 157 158 159 160
SYSCALL_SPU(fdatasync)
COMPAT_SYS(sysctl)
SYSCALL_SPU(mlock)
SYSCALL_SPU(munlock)
SYSCALL_SPU(mlockall)
SYSCALL_SPU(munlockall)
A
Al Viro 已提交
161 162 163 164
SYSCALL_SPU(sched_setparam)
SYSCALL_SPU(sched_getparam)
SYSCALL_SPU(sched_setscheduler)
SYSCALL_SPU(sched_getscheduler)
165
SYSCALL_SPU(sched_yield)
A
Al Viro 已提交
166 167 168
SYSCALL_SPU(sched_get_priority_max)
SYSCALL_SPU(sched_get_priority_min)
COMPAT_SYS_SPU(sched_rr_get_interval)
169 170 171 172 173 174
COMPAT_SYS_SPU(nanosleep)
SYSCALL_SPU(mremap)
SYSCALL_SPU(setresuid)
SYSCALL_SPU(getresuid)
SYSCALL(ni_syscall)
SYSCALL_SPU(poll)
175
SYSCALL(ni_syscall)
176 177
SYSCALL_SPU(setresgid)
SYSCALL_SPU(getresgid)
A
Al Viro 已提交
178
SYSCALL_SPU(prctl)
179 180 181 182 183 184 185 186 187 188 189 190 191 192
COMPAT_SYS(rt_sigreturn)
COMPAT_SYS(rt_sigaction)
COMPAT_SYS(rt_sigprocmask)
COMPAT_SYS(rt_sigpending)
COMPAT_SYS(rt_sigtimedwait)
COMPAT_SYS(rt_sigqueueinfo)
COMPAT_SYS(rt_sigsuspend)
COMPAT_SYS_SPU(pread64)
COMPAT_SYS_SPU(pwrite64)
SYSCALL_SPU(chown)
SYSCALL_SPU(getcwd)
SYSCALL_SPU(capget)
SYSCALL_SPU(capset)
COMPAT_SYS(sigaltstack)
193
SYSX_SPU(sys_sendfile64,compat_sys_sendfile,sys_sendfile)
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
SYSCALL(ni_syscall)
SYSCALL(ni_syscall)
PPC_SYS(vfork)
COMPAT_SYS_SPU(getrlimit)
COMPAT_SYS_SPU(readahead)
SYS32ONLY(mmap2)
SYS32ONLY(truncate64)
SYS32ONLY(ftruncate64)
SYSX(sys_ni_syscall,sys_stat64,sys_stat64)
SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64)
SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64)
SYSCALL(pciconfig_read)
SYSCALL(pciconfig_write)
SYSCALL(pciconfig_iobase)
SYSCALL(ni_syscall)
SYSCALL_SPU(getdents64)
SYSCALL_SPU(pivot_root)
SYSX(sys_ni_syscall,compat_sys_fcntl64,sys_fcntl64)
SYSCALL_SPU(madvise)
SYSCALL_SPU(mincore)
SYSCALL_SPU(gettid)
SYSCALL_SPU(tkill)
SYSCALL_SPU(setxattr)
SYSCALL_SPU(lsetxattr)
SYSCALL_SPU(fsetxattr)
SYSCALL_SPU(getxattr)
SYSCALL_SPU(lgetxattr)
SYSCALL_SPU(fgetxattr)
SYSCALL_SPU(listxattr)
SYSCALL_SPU(llistxattr)
SYSCALL_SPU(flistxattr)
SYSCALL_SPU(removexattr)
SYSCALL_SPU(lremovexattr)
SYSCALL_SPU(fremovexattr)
COMPAT_SYS_SPU(futex)
COMPAT_SYS_SPU(sched_setaffinity)
COMPAT_SYS_SPU(sched_getaffinity)
SYSCALL(ni_syscall)
SYSCALL(ni_syscall)
233
SYS32ONLY(sendfile64)
234 235 236 237 238 239 240 241
COMPAT_SYS_SPU(io_setup)
SYSCALL_SPU(io_destroy)
COMPAT_SYS_SPU(io_getevents)
COMPAT_SYS_SPU(io_submit)
SYSCALL_SPU(io_cancel)
SYSCALL(set_tid_address)
SYSX_SPU(sys_fadvise64,ppc32_fadvise64,sys_fadvise64)
SYSCALL(exit_group)
A
Al Viro 已提交
242
COMPAT_SYS(lookup_dcookie)
243 244 245 246 247 248 249 250 251 252 253 254 255 256
SYSCALL_SPU(epoll_create)
SYSCALL_SPU(epoll_ctl)
SYSCALL_SPU(epoll_wait)
SYSCALL_SPU(remap_file_pages)
SYSX_SPU(sys_timer_create,compat_sys_timer_create,sys_timer_create)
COMPAT_SYS_SPU(timer_settime)
COMPAT_SYS_SPU(timer_gettime)
SYSCALL_SPU(timer_getoverrun)
SYSCALL_SPU(timer_delete)
COMPAT_SYS_SPU(clock_settime)
COMPAT_SYS_SPU(clock_gettime)
COMPAT_SYS_SPU(clock_getres)
COMPAT_SYS_SPU(clock_nanosleep)
SYSX(ppc64_swapcontext,ppc32_swapcontext,ppc_swapcontext)
A
Al Viro 已提交
257
SYSCALL_SPU(tgkill)
258 259 260
COMPAT_SYS_SPU(utimes)
COMPAT_SYS_SPU(statfs64)
COMPAT_SYS_SPU(fstatfs64)
261
SYSX(sys_ni_syscall,ppc_fadvise64_64,ppc_fadvise64_64)
262 263 264
PPC_SYS_SPU(rtas)
OLDSYS(debug_setcontext)
SYSCALL(ni_syscall)
265
COMPAT_SYS(migrate_pages)
266 267 268 269 270 271 272 273 274 275
COMPAT_SYS(mbind)
COMPAT_SYS(get_mempolicy)
COMPAT_SYS(set_mempolicy)
COMPAT_SYS(mq_open)
SYSCALL(mq_unlink)
COMPAT_SYS(mq_timedsend)
COMPAT_SYS(mq_timedreceive)
COMPAT_SYS(mq_notify)
COMPAT_SYS(mq_getsetattr)
COMPAT_SYS(kexec_load)
276 277
SYSCALL(add_key)
SYSCALL(request_key)
278 279
COMPAT_SYS(keyctl)
COMPAT_SYS(waitid)
A
Al Viro 已提交
280 281
SYSCALL(ioprio_set)
SYSCALL(ioprio_get)
282 283 284 285 286 287 288 289 290 291
SYSCALL(inotify_init)
SYSCALL(inotify_add_watch)
SYSCALL(inotify_rm_watch)
SYSCALL(spu_run)
SYSCALL(spu_create)
COMPAT_SYS(pselect6)
COMPAT_SYS(ppoll)
SYSCALL_SPU(unshare)
SYSCALL_SPU(splice)
SYSCALL_SPU(tee)
292
COMPAT_SYS_SPU(vmsplice)
293 294 295 296 297
COMPAT_SYS_SPU(openat)
SYSCALL_SPU(mkdirat)
SYSCALL_SPU(mknodat)
SYSCALL_SPU(fchownat)
COMPAT_SYS_SPU(futimesat)
298
SYSX_SPU(sys_newfstatat,sys_fstatat64,sys_fstatat64)
299 300 301 302 303 304 305 306 307
SYSCALL_SPU(unlinkat)
SYSCALL_SPU(renameat)
SYSCALL_SPU(linkat)
SYSCALL_SPU(symlinkat)
SYSCALL_SPU(readlinkat)
SYSCALL_SPU(fchmodat)
SYSCALL_SPU(faccessat)
COMPAT_SYS_SPU(get_robust_list)
COMPAT_SYS_SPU(set_robust_list)
308
COMPAT_SYS_SPU(move_pages)
S
Stephen Rothwell 已提交
309
SYSCALL_SPU(getcpu)
310
COMPAT_SYS(epoll_pwait)
311
COMPAT_SYS_SPU(utimensat)
312
COMPAT_SYS_SPU(signalfd)
313
SYSCALL_SPU(timerfd_create)
314
SYSCALL_SPU(eventfd)
315
COMPAT_SYS_SPU(sync_file_range2)
316
COMPAT_SYS(fallocate)
317
SYSCALL(subpage_prot)
318 319
COMPAT_SYS_SPU(timerfd_settime)
COMPAT_SYS_SPU(timerfd_gettime)
T
Tony Breeds 已提交
320 321 322 323 324 325
COMPAT_SYS_SPU(signalfd4)
SYSCALL_SPU(eventfd2)
SYSCALL_SPU(epoll_create1)
SYSCALL_SPU(dup3)
SYSCALL_SPU(pipe2)
SYSCALL(inotify_init1)
326
SYSCALL_SPU(perf_event_open)
327 328
COMPAT_SYS_SPU(preadv)
COMPAT_SYS_SPU(pwritev)
329
COMPAT_SYS(rt_tgsigqueueinfo)
330 331 332
SYSCALL(fanotify_init)
COMPAT_SYS(fanotify_mark)
SYSCALL_SPU(prlimit64)
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
SYSCALL_SPU(socket)
SYSCALL_SPU(bind)
SYSCALL_SPU(connect)
SYSCALL_SPU(listen)
SYSCALL_SPU(accept)
SYSCALL_SPU(getsockname)
SYSCALL_SPU(getpeername)
SYSCALL_SPU(socketpair)
SYSCALL_SPU(send)
SYSCALL_SPU(sendto)
COMPAT_SYS_SPU(recv)
COMPAT_SYS_SPU(recvfrom)
SYSCALL_SPU(shutdown)
COMPAT_SYS_SPU(setsockopt)
COMPAT_SYS_SPU(getsockopt)
COMPAT_SYS_SPU(sendmsg)
COMPAT_SYS_SPU(recvmsg)
COMPAT_SYS_SPU(recvmmsg)
SYSCALL_SPU(accept4)
S
Stephen Rothwell 已提交
352 353 354 355
SYSCALL_SPU(name_to_handle_at)
COMPAT_SYS_SPU(open_by_handle_at)
COMPAT_SYS_SPU(clock_adjtime)
SYSCALL_SPU(syncfs)
356
COMPAT_SYS_SPU(sendmmsg)
357
SYSCALL_SPU(setns)
C
Christopher Yeoh 已提交
358 359
COMPAT_SYS(process_vm_readv)
COMPAT_SYS(process_vm_writev)
R
Rusty Russell 已提交
360
SYSCALL(finit_module)
361
SYSCALL(kcmp) /* sys_kcmp */
362 363
SYSCALL_SPU(sched_setattr)
SYSCALL_SPU(sched_getattr)
364
SYSCALL_SPU(renameat2)
365 366 367
SYSCALL_SPU(seccomp)
SYSCALL_SPU(getrandom)
SYSCALL_SPU(memfd_create)
P
Pranith Kumar 已提交
368
SYSCALL_SPU(bpf)
369
COMPAT_SYS(execveat)
370
PPC64ONLY(switch_endian)
371
SYSCALL_SPU(userfaultfd)
372
SYSCALL_SPU(membarrier)