systbl.h 9.1 KB

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