blob: 535b6d8a41ccae912590c0ec14d2fb355f0f4800 [file] [log] [blame]
Andreas Schwab72abd542006-06-19 22:45:04 +02001/*
2 * List of powerpc syscalls. For the meaning of the _SPU suffix see
3 * arch/powerpc/platforms/cell/spu_callbacks.c
4 */
5
6SYSCALL(restart_syscall)
7SYSCALL(exit)
8PPC_SYS(fork)
9SYSCALL_SPU(read)
10SYSCALL_SPU(write)
11COMPAT_SYS_SPU(open)
12SYSCALL_SPU(close)
Al Viroa31dd962012-12-25 17:31:11 -050013SYSCALL_SPU(waitpid)
14SYSCALL_SPU(creat)
Andreas Schwab72abd542006-06-19 22:45:04 +020015SYSCALL_SPU(link)
16SYSCALL_SPU(unlink)
17COMPAT_SYS(execve)
18SYSCALL_SPU(chdir)
19COMPAT_SYS_SPU(time)
20SYSCALL_SPU(mknod)
21SYSCALL_SPU(chmod)
22SYSCALL_SPU(lchown)
23SYSCALL(ni_syscall)
24OLDSYS(stat)
Al Viro561c6732013-02-24 10:52:26 -050025COMPAT_SYS_SPU(lseek)
Andreas Schwab72abd542006-06-19 22:45:04 +020026SYSCALL_SPU(getpid)
27COMPAT_SYS(mount)
28SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount)
29SYSCALL_SPU(setuid)
30SYSCALL_SPU(getuid)
31COMPAT_SYS_SPU(stime)
32COMPAT_SYS(ptrace)
33SYSCALL_SPU(alarm)
34OLDSYS(fstat)
Christoph Hellwigd6c93ad2008-09-01 11:23:30 +100035SYSCALL(pause)
Andreas Schwab72abd542006-06-19 22:45:04 +020036COMPAT_SYS(utime)
37SYSCALL(ni_syscall)
38SYSCALL(ni_syscall)
Al Viroa31dd962012-12-25 17:31:11 -050039SYSCALL_SPU(access)
40SYSCALL_SPU(nice)
Andreas Schwab72abd542006-06-19 22:45:04 +020041SYSCALL(ni_syscall)
42SYSCALL_SPU(sync)
Al Viroa31dd962012-12-25 17:31:11 -050043SYSCALL_SPU(kill)
Andreas Schwab72abd542006-06-19 22:45:04 +020044SYSCALL_SPU(rename)
Al Viroa31dd962012-12-25 17:31:11 -050045SYSCALL_SPU(mkdir)
Andreas Schwab72abd542006-06-19 22:45:04 +020046SYSCALL_SPU(rmdir)
47SYSCALL_SPU(dup)
48SYSCALL_SPU(pipe)
49COMPAT_SYS_SPU(times)
50SYSCALL(ni_syscall)
51SYSCALL_SPU(brk)
52SYSCALL_SPU(setgid)
53SYSCALL_SPU(getgid)
54SYSCALL(signal)
55SYSCALL_SPU(geteuid)
56SYSCALL_SPU(getegid)
57SYSCALL(acct)
58SYSCALL(umount)
59SYSCALL(ni_syscall)
60COMPAT_SYS_SPU(ioctl)
61COMPAT_SYS_SPU(fcntl)
62SYSCALL(ni_syscall)
Al Viroa31dd962012-12-25 17:31:11 -050063SYSCALL_SPU(setpgid)
Andreas Schwab72abd542006-06-19 22:45:04 +020064SYSCALL(ni_syscall)
65SYSX(sys_ni_syscall,sys_olduname, sys_olduname)
Al Viroa31dd962012-12-25 17:31:11 -050066SYSCALL_SPU(umask)
Andreas Schwab72abd542006-06-19 22:45:04 +020067SYSCALL_SPU(chroot)
Christoph Hellwig2b1c6bd2008-11-28 10:09:09 +010068COMPAT_SYS(ustat)
Andreas Schwab72abd542006-06-19 22:45:04 +020069SYSCALL_SPU(dup2)
70SYSCALL_SPU(getppid)
71SYSCALL_SPU(getpgrp)
72SYSCALL_SPU(setsid)
73SYS32ONLY(sigaction)
74SYSCALL_SPU(sgetmask)
Al Viroa31dd962012-12-25 17:31:11 -050075SYSCALL_SPU(ssetmask)
Andreas Schwab72abd542006-06-19 22:45:04 +020076SYSCALL_SPU(setreuid)
77SYSCALL_SPU(setregid)
Al Viro0980cae2012-12-25 16:23:09 -050078#define compat_sys_sigsuspend sys_sigsuspend
Andreas Schwab72abd542006-06-19 22:45:04 +020079SYS32ONLY(sigsuspend)
80COMPAT_SYS(sigpending)
Al Viroa31dd962012-12-25 17:31:11 -050081SYSCALL_SPU(sethostname)
Andreas Schwab72abd542006-06-19 22:45:04 +020082COMPAT_SYS_SPU(setrlimit)
83COMPAT_SYS(old_getrlimit)
84COMPAT_SYS_SPU(getrusage)
85COMPAT_SYS_SPU(gettimeofday)
86COMPAT_SYS_SPU(settimeofday)
Al Viroa31dd962012-12-25 17:31:11 -050087SYSCALL_SPU(getgroups)
88SYSCALL_SPU(setgroups)
Andreas Schwab72abd542006-06-19 22:45:04 +020089SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select)
90SYSCALL_SPU(symlink)
91OLDSYS(lstat)
Al Viroa31dd962012-12-25 17:31:11 -050092SYSCALL_SPU(readlink)
Andreas Schwab72abd542006-06-19 22:45:04 +020093SYSCALL(uselib)
94SYSCALL(swapon)
95SYSCALL(reboot)
Heiko Carstense55380e2009-01-14 14:13:55 +010096SYSX(sys_ni_syscall,compat_sys_old_readdir,sys_old_readdir)
Andreas Schwab72abd542006-06-19 22:45:04 +020097SYSCALL_SPU(mmap)
98SYSCALL_SPU(munmap)
Benjamin Herrenschmidtdd90bbd2009-07-28 11:54:32 +100099COMPAT_SYS_SPU(truncate)
100COMPAT_SYS_SPU(ftruncate)
Andreas Schwab72abd542006-06-19 22:45:04 +0200101SYSCALL_SPU(fchmod)
102SYSCALL_SPU(fchown)
Al Viroa31dd962012-12-25 17:31:11 -0500103SYSCALL_SPU(getpriority)
104SYSCALL_SPU(setpriority)
Andreas Schwab72abd542006-06-19 22:45:04 +0200105SYSCALL(ni_syscall)
106COMPAT_SYS(statfs)
107COMPAT_SYS(fstatfs)
108SYSCALL(ni_syscall)
109COMPAT_SYS_SPU(socketcall)
Al Viroa31dd962012-12-25 17:31:11 -0500110SYSCALL_SPU(syslog)
Andreas Schwab72abd542006-06-19 22:45:04 +0200111COMPAT_SYS_SPU(setitimer)
112COMPAT_SYS_SPU(getitimer)
113COMPAT_SYS_SPU(newstat)
114COMPAT_SYS_SPU(newlstat)
115COMPAT_SYS_SPU(newfstat)
116SYSX(sys_ni_syscall,sys_uname,sys_uname)
117SYSCALL(ni_syscall)
118SYSCALL_SPU(vhangup)
119SYSCALL(ni_syscall)
120SYSCALL(ni_syscall)
121COMPAT_SYS_SPU(wait4)
122SYSCALL(swapoff)
123COMPAT_SYS_SPU(sysinfo)
124COMPAT_SYS(ipc)
125SYSCALL_SPU(fsync)
126SYS32ONLY(sigreturn)
127PPC_SYS(clone)
Al Viroa31dd962012-12-25 17:31:11 -0500128SYSCALL_SPU(setdomainname)
Christoph Hellwige28cbf22010-03-10 15:21:19 -0800129SYSCALL_SPU(newuname)
Andreas Schwab72abd542006-06-19 22:45:04 +0200130SYSCALL(ni_syscall)
131COMPAT_SYS_SPU(adjtimex)
132SYSCALL_SPU(mprotect)
133SYSX(sys_ni_syscall,compat_sys_sigprocmask,sys_sigprocmask)
134SYSCALL(ni_syscall)
135SYSCALL(init_module)
136SYSCALL(delete_module)
137SYSCALL(ni_syscall)
138SYSCALL(quotactl)
Al Viroa31dd962012-12-25 17:31:11 -0500139SYSCALL_SPU(getpgid)
Andreas Schwab72abd542006-06-19 22:45:04 +0200140SYSCALL_SPU(fchdir)
141SYSCALL_SPU(bdflush)
Al Viroa31dd962012-12-25 17:31:11 -0500142SYSCALL_SPU(sysfs)
Andreas Schwab72abd542006-06-19 22:45:04 +0200143SYSX_SPU(ppc64_personality,ppc64_personality,sys_personality)
144SYSCALL(ni_syscall)
145SYSCALL_SPU(setfsuid)
146SYSCALL_SPU(setfsgid)
147SYSCALL_SPU(llseek)
148COMPAT_SYS_SPU(getdents)
arnd@arndb.dedad2f2f2009-11-23 03:25:06 +0000149SYSX_SPU(sys_select,ppc32_select,sys_select)
Andreas Schwab72abd542006-06-19 22:45:04 +0200150SYSCALL_SPU(flock)
151SYSCALL_SPU(msync)
152COMPAT_SYS_SPU(readv)
153COMPAT_SYS_SPU(writev)
Al Viroa31dd962012-12-25 17:31:11 -0500154SYSCALL_SPU(getsid)
Andreas Schwab72abd542006-06-19 22:45:04 +0200155SYSCALL_SPU(fdatasync)
156COMPAT_SYS(sysctl)
157SYSCALL_SPU(mlock)
158SYSCALL_SPU(munlock)
159SYSCALL_SPU(mlockall)
160SYSCALL_SPU(munlockall)
Al Viroa31dd962012-12-25 17:31:11 -0500161SYSCALL_SPU(sched_setparam)
162SYSCALL_SPU(sched_getparam)
163SYSCALL_SPU(sched_setscheduler)
164SYSCALL_SPU(sched_getscheduler)
Andreas Schwab72abd542006-06-19 22:45:04 +0200165SYSCALL_SPU(sched_yield)
Al Viroa31dd962012-12-25 17:31:11 -0500166SYSCALL_SPU(sched_get_priority_max)
167SYSCALL_SPU(sched_get_priority_min)
168COMPAT_SYS_SPU(sched_rr_get_interval)
Andreas Schwab72abd542006-06-19 22:45:04 +0200169COMPAT_SYS_SPU(nanosleep)
170SYSCALL_SPU(mremap)
171SYSCALL_SPU(setresuid)
172SYSCALL_SPU(getresuid)
173SYSCALL(ni_syscall)
174SYSCALL_SPU(poll)
Stephen Rothwelld4d7b2a2011-08-29 10:38:57 +1000175SYSCALL(ni_syscall)
Andreas Schwab72abd542006-06-19 22:45:04 +0200176SYSCALL_SPU(setresgid)
177SYSCALL_SPU(getresgid)
Al Viroa31dd962012-12-25 17:31:11 -0500178SYSCALL_SPU(prctl)
Andreas Schwab72abd542006-06-19 22:45:04 +0200179COMPAT_SYS(rt_sigreturn)
180COMPAT_SYS(rt_sigaction)
181COMPAT_SYS(rt_sigprocmask)
182COMPAT_SYS(rt_sigpending)
183COMPAT_SYS(rt_sigtimedwait)
184COMPAT_SYS(rt_sigqueueinfo)
185COMPAT_SYS(rt_sigsuspend)
186COMPAT_SYS_SPU(pread64)
187COMPAT_SYS_SPU(pwrite64)
188SYSCALL_SPU(chown)
189SYSCALL_SPU(getcwd)
190SYSCALL_SPU(capget)
191SYSCALL_SPU(capset)
192COMPAT_SYS(sigaltstack)
Catalin Marinas8f9c0112012-09-19 12:01:52 +0100193SYSX_SPU(sys_sendfile,compat_sys_sendfile_wrapper,sys_sendfile)
Andreas Schwab72abd542006-06-19 22:45:04 +0200194SYSCALL(ni_syscall)
195SYSCALL(ni_syscall)
196PPC_SYS(vfork)
197COMPAT_SYS_SPU(getrlimit)
198COMPAT_SYS_SPU(readahead)
199SYS32ONLY(mmap2)
200SYS32ONLY(truncate64)
201SYS32ONLY(ftruncate64)
202SYSX(sys_ni_syscall,sys_stat64,sys_stat64)
203SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64)
204SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64)
205SYSCALL(pciconfig_read)
206SYSCALL(pciconfig_write)
207SYSCALL(pciconfig_iobase)
208SYSCALL(ni_syscall)
209SYSCALL_SPU(getdents64)
210SYSCALL_SPU(pivot_root)
211SYSX(sys_ni_syscall,compat_sys_fcntl64,sys_fcntl64)
212SYSCALL_SPU(madvise)
213SYSCALL_SPU(mincore)
214SYSCALL_SPU(gettid)
215SYSCALL_SPU(tkill)
216SYSCALL_SPU(setxattr)
217SYSCALL_SPU(lsetxattr)
218SYSCALL_SPU(fsetxattr)
219SYSCALL_SPU(getxattr)
220SYSCALL_SPU(lgetxattr)
221SYSCALL_SPU(fgetxattr)
222SYSCALL_SPU(listxattr)
223SYSCALL_SPU(llistxattr)
224SYSCALL_SPU(flistxattr)
225SYSCALL_SPU(removexattr)
226SYSCALL_SPU(lremovexattr)
227SYSCALL_SPU(fremovexattr)
228COMPAT_SYS_SPU(futex)
229COMPAT_SYS_SPU(sched_setaffinity)
230COMPAT_SYS_SPU(sched_getaffinity)
231SYSCALL(ni_syscall)
232SYSCALL(ni_syscall)
Catalin Marinas8f9c0112012-09-19 12:01:52 +0100233SYSX(sys_ni_syscall,compat_sys_sendfile64_wrapper,sys_sendfile64)
Andreas Schwab72abd542006-06-19 22:45:04 +0200234COMPAT_SYS_SPU(io_setup)
235SYSCALL_SPU(io_destroy)
236COMPAT_SYS_SPU(io_getevents)
237COMPAT_SYS_SPU(io_submit)
238SYSCALL_SPU(io_cancel)
239SYSCALL(set_tid_address)
240SYSX_SPU(sys_fadvise64,ppc32_fadvise64,sys_fadvise64)
241SYSCALL(exit_group)
242SYSX(sys_lookup_dcookie,ppc32_lookup_dcookie,sys_lookup_dcookie)
243SYSCALL_SPU(epoll_create)
244SYSCALL_SPU(epoll_ctl)
245SYSCALL_SPU(epoll_wait)
246SYSCALL_SPU(remap_file_pages)
247SYSX_SPU(sys_timer_create,compat_sys_timer_create,sys_timer_create)
248COMPAT_SYS_SPU(timer_settime)
249COMPAT_SYS_SPU(timer_gettime)
250SYSCALL_SPU(timer_getoverrun)
251SYSCALL_SPU(timer_delete)
252COMPAT_SYS_SPU(clock_settime)
253COMPAT_SYS_SPU(clock_gettime)
254COMPAT_SYS_SPU(clock_getres)
255COMPAT_SYS_SPU(clock_nanosleep)
256SYSX(ppc64_swapcontext,ppc32_swapcontext,ppc_swapcontext)
Al Viroa31dd962012-12-25 17:31:11 -0500257SYSCALL_SPU(tgkill)
Andreas Schwab72abd542006-06-19 22:45:04 +0200258COMPAT_SYS_SPU(utimes)
259COMPAT_SYS_SPU(statfs64)
260COMPAT_SYS_SPU(fstatfs64)
261SYSX(sys_ni_syscall, ppc_fadvise64_64, ppc_fadvise64_64)
262PPC_SYS_SPU(rtas)
263OLDSYS(debug_setcontext)
264SYSCALL(ni_syscall)
Stephen Rothwell43530d22006-11-02 22:07:24 -0800265COMPAT_SYS(migrate_pages)
Andreas Schwab72abd542006-06-19 22:45:04 +0200266COMPAT_SYS(mbind)
267COMPAT_SYS(get_mempolicy)
268COMPAT_SYS(set_mempolicy)
269COMPAT_SYS(mq_open)
270SYSCALL(mq_unlink)
271COMPAT_SYS(mq_timedsend)
272COMPAT_SYS(mq_timedreceive)
273COMPAT_SYS(mq_notify)
274COMPAT_SYS(mq_getsetattr)
275COMPAT_SYS(kexec_load)
276COMPAT_SYS(add_key)
277COMPAT_SYS(request_key)
278COMPAT_SYS(keyctl)
279COMPAT_SYS(waitid)
Al Viroa31dd962012-12-25 17:31:11 -0500280SYSCALL(ioprio_set)
281SYSCALL(ioprio_get)
Andreas Schwab72abd542006-06-19 22:45:04 +0200282SYSCALL(inotify_init)
283SYSCALL(inotify_add_watch)
284SYSCALL(inotify_rm_watch)
285SYSCALL(spu_run)
286SYSCALL(spu_create)
287COMPAT_SYS(pselect6)
288COMPAT_SYS(ppoll)
289SYSCALL_SPU(unshare)
290SYSCALL_SPU(splice)
291SYSCALL_SPU(tee)
Don Zickusc4b7e872007-04-16 22:53:12 -0700292COMPAT_SYS_SPU(vmsplice)
Andreas Schwab72abd542006-06-19 22:45:04 +0200293COMPAT_SYS_SPU(openat)
294SYSCALL_SPU(mkdirat)
295SYSCALL_SPU(mknodat)
296SYSCALL_SPU(fchownat)
297COMPAT_SYS_SPU(futimesat)
298SYSX_SPU(sys_newfstatat, sys_fstatat64, sys_fstatat64)
299SYSCALL_SPU(unlinkat)
300SYSCALL_SPU(renameat)
301SYSCALL_SPU(linkat)
302SYSCALL_SPU(symlinkat)
303SYSCALL_SPU(readlinkat)
304SYSCALL_SPU(fchmodat)
305SYSCALL_SPU(faccessat)
306COMPAT_SYS_SPU(get_robust_list)
307COMPAT_SYS_SPU(set_robust_list)
Stephen Rothwell7b3c3842007-03-09 11:58:11 +1100308COMPAT_SYS_SPU(move_pages)
Stephen Rothwell9b96ea62007-02-12 22:09:18 +1100309SYSCALL_SPU(getcpu)
Stephen Rothwell4b0092c2007-03-09 11:57:10 +1100310COMPAT_SYS(epoll_pwait)
Stephen Rothwellab5570f2007-05-09 17:32:33 +1000311COMPAT_SYS_SPU(utimensat)
Stephen Rothwell3692b942007-05-14 13:50:33 +1000312COMPAT_SYS_SPU(signalfd)
Stephen Rothwellfb8642d2008-02-11 11:38:40 +1100313SYSCALL_SPU(timerfd_create)
Stephen Rothwell3692b942007-05-14 13:50:33 +1000314SYSCALL_SPU(eventfd)
David Woodhouseedd5cd42007-06-27 14:10:09 -0700315COMPAT_SYS_SPU(sync_file_range2)
Patrick Mansfieldf2205fb2007-11-04 04:42:03 +1100316COMPAT_SYS(fallocate)
Paul Mackerrasfa282372008-01-24 08:35:13 +1100317SYSCALL(subpage_prot)
Stephen Rothwellfb8642d2008-02-11 11:38:40 +1100318COMPAT_SYS_SPU(timerfd_settime)
319COMPAT_SYS_SPU(timerfd_gettime)
Tony Breeds973b7d82008-07-25 16:21:51 +1000320COMPAT_SYS_SPU(signalfd4)
321SYSCALL_SPU(eventfd2)
322SYSCALL_SPU(epoll_create1)
323SYSCALL_SPU(dup3)
324SYSCALL_SPU(pipe2)
325SYSCALL(inotify_init1)
Ingo Molnarcdd6c482009-09-21 12:02:48 +0200326SYSCALL_SPU(perf_event_open)
Stephen Rothwell1a917bb2009-04-06 17:19:50 +0000327COMPAT_SYS_SPU(preadv)
328COMPAT_SYS_SPU(pwritev)
Stephen Rothwell32407762009-06-10 22:22:08 +0000329COMPAT_SYS(rt_tgsigqueueinfo)
Andreas Schwabbcc30d32010-08-19 05:15:37 +0000330SYSCALL(fanotify_init)
331COMPAT_SYS(fanotify_mark)
332SYSCALL_SPU(prlimit64)
Ian Munsie86250b92010-08-25 18:50:28 +0000333SYSCALL_SPU(socket)
334SYSCALL_SPU(bind)
335SYSCALL_SPU(connect)
336SYSCALL_SPU(listen)
337SYSCALL_SPU(accept)
338SYSCALL_SPU(getsockname)
339SYSCALL_SPU(getpeername)
340SYSCALL_SPU(socketpair)
341SYSCALL_SPU(send)
342SYSCALL_SPU(sendto)
343COMPAT_SYS_SPU(recv)
344COMPAT_SYS_SPU(recvfrom)
345SYSCALL_SPU(shutdown)
346COMPAT_SYS_SPU(setsockopt)
347COMPAT_SYS_SPU(getsockopt)
348COMPAT_SYS_SPU(sendmsg)
349COMPAT_SYS_SPU(recvmsg)
350COMPAT_SYS_SPU(recvmmsg)
351SYSCALL_SPU(accept4)
Stephen Rothwell834796a2011-03-23 18:40:47 +0000352SYSCALL_SPU(name_to_handle_at)
353COMPAT_SYS_SPU(open_by_handle_at)
354COMPAT_SYS_SPU(clock_adjtime)
355SYSCALL_SPU(syncfs)
Anton Blanchard228e5482011-05-02 20:21:35 +0000356COMPAT_SYS_SPU(sendmmsg)
Eric W. Biederman7b21fdd2011-05-27 19:28:27 -0700357SYSCALL_SPU(setns)
Christopher Yeohfcf63402011-10-31 17:06:39 -0700358COMPAT_SYS(process_vm_readv)
359COMPAT_SYS(process_vm_writev)
Rusty Russell71eac702012-11-02 14:57:20 +1030360SYSCALL(finit_module)