1 /* SPDX-License-Identifier: GPL-2.0 */
3 * List of powerpc syscalls. For the meaning of the _SPU suffix see
4 * arch/powerpc/platforms/cell/spu_callbacks.c
7 SYSCALL(restart_syscall
)
29 SYSX(sys_ni_syscall
,sys_oldumount
,sys_oldumount
)
66 SYSX(sys_ni_syscall
,sys_olduname
,sys_olduname
)
79 #define compat_sys_sigsuspend sys_sigsuspend
81 SYSX(sys_ni_syscall
,compat_sys_sigpending
,sys_sigpending
)
82 SYSCALL_SPU(sethostname
)
83 COMPAT_SYS_SPU(setrlimit
)
84 SYSX(sys_ni_syscall
,compat_sys_old_getrlimit
,sys_old_getrlimit
)
85 COMPAT_SYS_SPU(getrusage
)
86 COMPAT_SYS_SPU(gettimeofday
)
87 COMPAT_SYS_SPU(settimeofday
)
88 SYSCALL_SPU(getgroups
)
89 SYSCALL_SPU(setgroups
)
90 SYSX(sys_ni_syscall
,sys_ni_syscall
,ppc_select
)
97 SYSX(sys_ni_syscall
,compat_sys_old_readdir
,sys_old_readdir
)
100 COMPAT_SYS_SPU(truncate
)
101 COMPAT_SYS_SPU(ftruncate
)
104 SYSCALL_SPU(getpriority
)
105 SYSCALL_SPU(setpriority
)
110 COMPAT_SYS_SPU(socketcall
)
112 COMPAT_SYS_SPU(setitimer
)
113 COMPAT_SYS_SPU(getitimer
)
114 COMPAT_SYS_SPU(newstat
)
115 COMPAT_SYS_SPU(newlstat
)
116 COMPAT_SYS_SPU(newfstat
)
117 SYSX(sys_ni_syscall
,sys_uname
,sys_uname
)
122 COMPAT_SYS_SPU(wait4
)
124 COMPAT_SYS_SPU(sysinfo
)
129 SYSCALL_SPU(setdomainname
)
130 SYSCALL_SPU(newuname
)
132 COMPAT_SYS_SPU(adjtimex
)
133 SYSCALL_SPU(mprotect
)
134 SYSX(sys_ni_syscall
,compat_sys_sigprocmask
,sys_sigprocmask
)
137 SYSCALL(delete_module
)
144 SYSX_SPU(ppc64_personality
,ppc64_personality
,sys_personality
)
146 SYSCALL_SPU(setfsuid
)
147 SYSCALL_SPU(setfsgid
)
149 COMPAT_SYS_SPU(getdents
)
150 SYSX_SPU(sys_select
,ppc32_select
,sys_select
)
153 COMPAT_SYS_SPU(readv
)
154 COMPAT_SYS_SPU(writev
)
156 SYSCALL_SPU(fdatasync
)
160 SYSCALL_SPU(mlockall
)
161 SYSCALL_SPU(munlockall
)
162 SYSCALL_SPU(sched_setparam
)
163 SYSCALL_SPU(sched_getparam
)
164 SYSCALL_SPU(sched_setscheduler
)
165 SYSCALL_SPU(sched_getscheduler
)
166 SYSCALL_SPU(sched_yield
)
167 SYSCALL_SPU(sched_get_priority_max
)
168 SYSCALL_SPU(sched_get_priority_min
)
169 COMPAT_SYS_SPU(sched_rr_get_interval
)
170 COMPAT_SYS_SPU(nanosleep
)
172 SYSCALL_SPU(setresuid
)
173 SYSCALL_SPU(getresuid
)
177 SYSCALL_SPU(setresgid
)
178 SYSCALL_SPU(getresgid
)
180 COMPAT_SYS(rt_sigreturn
)
181 COMPAT_SYS(rt_sigaction
)
182 COMPAT_SYS(rt_sigprocmask
)
183 COMPAT_SYS(rt_sigpending
)
184 COMPAT_SYS(rt_sigtimedwait
)
185 COMPAT_SYS(rt_sigqueueinfo
)
186 COMPAT_SYS(rt_sigsuspend
)
187 COMPAT_SYS_SPU(pread64
)
188 COMPAT_SYS_SPU(pwrite64
)
193 COMPAT_SYS(sigaltstack
)
194 SYSX_SPU(sys_sendfile64
,compat_sys_sendfile
,sys_sendfile
)
198 COMPAT_SYS_SPU(getrlimit
)
199 COMPAT_SYS_SPU(readahead
)
201 SYS32ONLY(truncate64
)
202 SYS32ONLY(ftruncate64
)
203 SYSX(sys_ni_syscall
,sys_stat64
,sys_stat64
)
204 SYSX(sys_ni_syscall
,sys_lstat64
,sys_lstat64
)
205 SYSX(sys_ni_syscall
,sys_fstat64
,sys_fstat64
)
206 SYSCALL(pciconfig_read
)
207 SYSCALL(pciconfig_write
)
208 SYSCALL(pciconfig_iobase
)
210 SYSCALL_SPU(getdents64
)
211 SYSCALL_SPU(pivot_root
)
212 SYSX(sys_ni_syscall
,compat_sys_fcntl64
,sys_fcntl64
)
217 SYSCALL_SPU(setxattr
)
218 SYSCALL_SPU(lsetxattr
)
219 SYSCALL_SPU(fsetxattr
)
220 SYSCALL_SPU(getxattr
)
221 SYSCALL_SPU(lgetxattr
)
222 SYSCALL_SPU(fgetxattr
)
223 SYSCALL_SPU(listxattr
)
224 SYSCALL_SPU(llistxattr
)
225 SYSCALL_SPU(flistxattr
)
226 SYSCALL_SPU(removexattr
)
227 SYSCALL_SPU(lremovexattr
)
228 SYSCALL_SPU(fremovexattr
)
229 COMPAT_SYS_SPU(futex
)
230 COMPAT_SYS_SPU(sched_setaffinity
)
231 COMPAT_SYS_SPU(sched_getaffinity
)
234 SYS32ONLY(sendfile64
)
235 COMPAT_SYS_SPU(io_setup
)
236 SYSCALL_SPU(io_destroy
)
237 COMPAT_SYS_SPU(io_getevents
)
238 COMPAT_SYS_SPU(io_submit
)
239 SYSCALL_SPU(io_cancel
)
240 SYSCALL(set_tid_address
)
241 SYSX_SPU(sys_fadvise64
,ppc32_fadvise64
,sys_fadvise64
)
243 COMPAT_SYS(lookup_dcookie
)
244 SYSCALL_SPU(epoll_create
)
245 SYSCALL_SPU(epoll_ctl
)
246 SYSCALL_SPU(epoll_wait
)
247 SYSCALL_SPU(remap_file_pages
)
248 SYSX_SPU(sys_timer_create
,compat_sys_timer_create
,sys_timer_create
)
249 COMPAT_SYS_SPU(timer_settime
)
250 COMPAT_SYS_SPU(timer_gettime
)
251 SYSCALL_SPU(timer_getoverrun
)
252 SYSCALL_SPU(timer_delete
)
253 COMPAT_SYS_SPU(clock_settime
)
254 COMPAT_SYS_SPU(clock_gettime
)
255 COMPAT_SYS_SPU(clock_getres
)
256 COMPAT_SYS_SPU(clock_nanosleep
)
257 SYSX(ppc64_swapcontext
,ppc32_swapcontext
,ppc_swapcontext
)
259 COMPAT_SYS_SPU(utimes
)
260 COMPAT_SYS_SPU(statfs64
)
261 COMPAT_SYS_SPU(fstatfs64
)
262 SYSX(sys_ni_syscall
,ppc_fadvise64_64
,ppc_fadvise64_64
)
264 OLDSYS(debug_setcontext
)
266 COMPAT_SYS(migrate_pages
)
268 COMPAT_SYS(get_mempolicy
)
269 COMPAT_SYS(set_mempolicy
)
272 COMPAT_SYS(mq_timedsend
)
273 COMPAT_SYS(mq_timedreceive
)
274 COMPAT_SYS(mq_notify
)
275 COMPAT_SYS(mq_getsetattr
)
276 COMPAT_SYS(kexec_load
)
283 SYSCALL(inotify_init
)
284 SYSCALL(inotify_add_watch
)
285 SYSCALL(inotify_rm_watch
)
293 COMPAT_SYS_SPU(vmsplice
)
294 COMPAT_SYS_SPU(openat
)
297 SYSCALL_SPU(fchownat
)
298 COMPAT_SYS_SPU(futimesat
)
299 SYSX_SPU(sys_newfstatat
,sys_fstatat64
,sys_fstatat64
)
300 SYSCALL_SPU(unlinkat
)
301 SYSCALL_SPU(renameat
)
303 SYSCALL_SPU(symlinkat
)
304 SYSCALL_SPU(readlinkat
)
305 SYSCALL_SPU(fchmodat
)
306 SYSCALL_SPU(faccessat
)
307 COMPAT_SYS_SPU(get_robust_list
)
308 COMPAT_SYS_SPU(set_robust_list
)
309 COMPAT_SYS_SPU(move_pages
)
311 COMPAT_SYS(epoll_pwait
)
312 COMPAT_SYS_SPU(utimensat
)
313 COMPAT_SYS_SPU(signalfd
)
314 SYSCALL_SPU(timerfd_create
)
316 COMPAT_SYS_SPU(sync_file_range2
)
317 COMPAT_SYS(fallocate
)
318 SYSCALL(subpage_prot
)
319 COMPAT_SYS_SPU(timerfd_settime
)
320 COMPAT_SYS_SPU(timerfd_gettime
)
321 COMPAT_SYS_SPU(signalfd4
)
322 SYSCALL_SPU(eventfd2
)
323 SYSCALL_SPU(epoll_create1
)
326 SYSCALL(inotify_init1
)
327 SYSCALL_SPU(perf_event_open
)
328 COMPAT_SYS_SPU(preadv
)
329 COMPAT_SYS_SPU(pwritev
)
330 COMPAT_SYS(rt_tgsigqueueinfo
)
331 SYSCALL(fanotify_init
)
332 COMPAT_SYS(fanotify_mark
)
333 SYSCALL_SPU(prlimit64
)
339 SYSCALL_SPU(getsockname
)
340 SYSCALL_SPU(getpeername
)
341 SYSCALL_SPU(socketpair
)
345 COMPAT_SYS_SPU(recvfrom
)
346 SYSCALL_SPU(shutdown
)
347 COMPAT_SYS_SPU(setsockopt
)
348 COMPAT_SYS_SPU(getsockopt
)
349 COMPAT_SYS_SPU(sendmsg
)
350 COMPAT_SYS_SPU(recvmsg
)
351 COMPAT_SYS_SPU(recvmmsg
)
353 SYSCALL_SPU(name_to_handle_at
)
354 COMPAT_SYS_SPU(open_by_handle_at
)
355 COMPAT_SYS_SPU(clock_adjtime
)
357 COMPAT_SYS_SPU(sendmmsg
)
359 COMPAT_SYS(process_vm_readv
)
360 COMPAT_SYS(process_vm_writev
)
361 SYSCALL(finit_module
)
362 SYSCALL(kcmp
) /* sys_kcmp */
363 SYSCALL_SPU(sched_setattr
)
364 SYSCALL_SPU(sched_getattr
)
365 SYSCALL_SPU(renameat2
)
367 SYSCALL_SPU(getrandom
)
368 SYSCALL_SPU(memfd_create
)
371 PPC64ONLY(switch_endian
)
372 SYSCALL_SPU(userfaultfd
)
373 SYSCALL_SPU(membarrier
)
387 SYSCALL(copy_file_range
)
388 COMPAT_SYS_SPU(preadv2
)
389 COMPAT_SYS_SPU(pwritev2
)
390 SYSCALL(kexec_file_load
)
394 SYSCALL(pkey_mprotect
)