init_sysent.c 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. /* $OpenBSD: init_sysent.c,v 1.168 2015/07/20 00:57:06 guenther Exp $ */
  2. /*
  3. * System call switch table.
  4. *
  5. * DO NOT EDIT-- this file is automatically generated.
  6. * created from; OpenBSD: syscalls.master,v 1.155 2015/07/20 00:56:10 guenther Exp
  7. */
  8. #include <sys/param.h>
  9. #include <sys/systm.h>
  10. #include <sys/signal.h>
  11. #include <sys/mount.h>
  12. #include <sys/syscallargs.h>
  13. #include <sys/poll.h>
  14. #define s(type) sizeof(type)
  15. struct sysent sysent[] = {
  16. { 0, 0, 0,
  17. sys_nosys }, /* 0 = syscall (indir) */
  18. { 1, s(struct sys_exit_args), 0,
  19. sys_exit }, /* 1 = exit */
  20. { 0, 0, 0,
  21. sys_fork }, /* 2 = fork */
  22. { 3, s(struct sys_read_args), 0,
  23. sys_read }, /* 3 = read */
  24. { 3, s(struct sys_write_args), 0,
  25. sys_write }, /* 4 = write */
  26. { 3, s(struct sys_open_args), 0,
  27. sys_open }, /* 5 = open */
  28. { 1, s(struct sys_close_args), 0,
  29. sys_close }, /* 6 = close */
  30. { 2, s(struct sys_getentropy_args), SY_NOLOCK | 0,
  31. sys_getentropy }, /* 7 = getentropy */
  32. { 2, s(struct sys___tfork_args), 0,
  33. sys___tfork }, /* 8 = __tfork */
  34. { 2, s(struct sys_link_args), 0,
  35. sys_link }, /* 9 = link */
  36. { 1, s(struct sys_unlink_args), 0,
  37. sys_unlink }, /* 10 = unlink */
  38. { 4, s(struct sys_wait4_args), 0,
  39. sys_wait4 }, /* 11 = wait4 */
  40. { 1, s(struct sys_chdir_args), 0,
  41. sys_chdir }, /* 12 = chdir */
  42. { 1, s(struct sys_fchdir_args), 0,
  43. sys_fchdir }, /* 13 = fchdir */
  44. { 3, s(struct sys_mknod_args), 0,
  45. sys_mknod }, /* 14 = mknod */
  46. { 2, s(struct sys_chmod_args), 0,
  47. sys_chmod }, /* 15 = chmod */
  48. { 3, s(struct sys_chown_args), 0,
  49. sys_chown }, /* 16 = chown */
  50. { 1, s(struct sys_obreak_args), 0,
  51. sys_obreak }, /* 17 = break */
  52. { 0, 0, SY_NOLOCK | 0,
  53. sys_getdtablecount }, /* 18 = getdtablecount */
  54. { 2, s(struct sys_getrusage_args), 0,
  55. sys_getrusage }, /* 19 = getrusage */
  56. { 0, 0, SY_NOLOCK | 0,
  57. sys_getpid }, /* 20 = getpid */
  58. { 4, s(struct sys_mount_args), 0,
  59. sys_mount }, /* 21 = mount */
  60. { 2, s(struct sys_unmount_args), 0,
  61. sys_unmount }, /* 22 = unmount */
  62. { 1, s(struct sys_setuid_args), 0,
  63. sys_setuid }, /* 23 = setuid */
  64. { 0, 0, SY_NOLOCK | 0,
  65. sys_getuid }, /* 24 = getuid */
  66. { 0, 0, SY_NOLOCK | 0,
  67. sys_geteuid }, /* 25 = geteuid */
  68. #ifdef PTRACE
  69. { 4, s(struct sys_ptrace_args), 0,
  70. sys_ptrace }, /* 26 = ptrace */
  71. #else
  72. { 0, 0, 0,
  73. sys_nosys }, /* 26 = unimplemented ptrace */
  74. #endif
  75. { 3, s(struct sys_recvmsg_args), 0,
  76. sys_recvmsg }, /* 27 = recvmsg */
  77. { 3, s(struct sys_sendmsg_args), 0,
  78. sys_sendmsg }, /* 28 = sendmsg */
  79. { 6, s(struct sys_recvfrom_args), 0,
  80. sys_recvfrom }, /* 29 = recvfrom */
  81. { 3, s(struct sys_accept_args), 0,
  82. sys_accept }, /* 30 = accept */
  83. { 3, s(struct sys_getpeername_args), 0,
  84. sys_getpeername }, /* 31 = getpeername */
  85. { 3, s(struct sys_getsockname_args), 0,
  86. sys_getsockname }, /* 32 = getsockname */
  87. { 2, s(struct sys_access_args), 0,
  88. sys_access }, /* 33 = access */
  89. { 2, s(struct sys_chflags_args), 0,
  90. sys_chflags }, /* 34 = chflags */
  91. { 2, s(struct sys_fchflags_args), 0,
  92. sys_fchflags }, /* 35 = fchflags */
  93. { 0, 0, 0,
  94. sys_sync }, /* 36 = sync */
  95. { 2, s(struct sys_kill_args), 0,
  96. sys_kill }, /* 37 = kill */
  97. { 2, s(struct sys_stat_args), 0,
  98. sys_stat }, /* 38 = stat */
  99. { 0, 0, 0,
  100. sys_getppid }, /* 39 = getppid */
  101. { 2, s(struct sys_lstat_args), 0,
  102. sys_lstat }, /* 40 = lstat */
  103. { 1, s(struct sys_dup_args), 0,
  104. sys_dup }, /* 41 = dup */
  105. { 4, s(struct sys_fstatat_args), 0,
  106. sys_fstatat }, /* 42 = fstatat */
  107. { 0, 0, SY_NOLOCK | 0,
  108. sys_getegid }, /* 43 = getegid */
  109. { 4, s(struct sys_profil_args), 0,
  110. sys_profil }, /* 44 = profil */
  111. #ifdef KTRACE
  112. { 4, s(struct sys_ktrace_args), 0,
  113. sys_ktrace }, /* 45 = ktrace */
  114. #else
  115. { 0, 0, 0,
  116. sys_nosys }, /* 45 = unimplemented ktrace */
  117. #endif
  118. { 3, s(struct sys_sigaction_args), 0,
  119. sys_sigaction }, /* 46 = sigaction */
  120. { 0, 0, SY_NOLOCK | 0,
  121. sys_getgid }, /* 47 = getgid */
  122. { 2, s(struct sys_sigprocmask_args), SY_NOLOCK | 0,
  123. sys_sigprocmask }, /* 48 = sigprocmask */
  124. { 2, s(struct sys_getlogin_args), 0,
  125. sys_getlogin }, /* 49 = getlogin */
  126. { 1, s(struct sys_setlogin_args), 0,
  127. sys_setlogin }, /* 50 = setlogin */
  128. #ifdef ACCOUNTING
  129. { 1, s(struct sys_acct_args), 0,
  130. sys_acct }, /* 51 = acct */
  131. #else
  132. { 0, 0, 0,
  133. sys_nosys }, /* 51 = unimplemented acct */
  134. #endif
  135. { 0, 0, 0,
  136. sys_sigpending }, /* 52 = sigpending */
  137. { 2, s(struct sys_fstat_args), 0,
  138. sys_fstat }, /* 53 = fstat */
  139. { 3, s(struct sys_ioctl_args), 0,
  140. sys_ioctl }, /* 54 = ioctl */
  141. { 1, s(struct sys_reboot_args), 0,
  142. sys_reboot }, /* 55 = reboot */
  143. { 1, s(struct sys_revoke_args), 0,
  144. sys_revoke }, /* 56 = revoke */
  145. { 2, s(struct sys_symlink_args), 0,
  146. sys_symlink }, /* 57 = symlink */
  147. { 3, s(struct sys_readlink_args), 0,
  148. sys_readlink }, /* 58 = readlink */
  149. { 3, s(struct sys_execve_args), 0,
  150. sys_execve }, /* 59 = execve */
  151. { 1, s(struct sys_umask_args), 0,
  152. sys_umask }, /* 60 = umask */
  153. { 1, s(struct sys_chroot_args), 0,
  154. sys_chroot }, /* 61 = chroot */
  155. { 3, s(struct sys_getfsstat_args), 0,
  156. sys_getfsstat }, /* 62 = getfsstat */
  157. { 2, s(struct sys_statfs_args), 0,
  158. sys_statfs }, /* 63 = statfs */
  159. { 2, s(struct sys_fstatfs_args), 0,
  160. sys_fstatfs }, /* 64 = fstatfs */
  161. { 2, s(struct sys_fhstatfs_args), 0,
  162. sys_fhstatfs }, /* 65 = fhstatfs */
  163. { 0, 0, 0,
  164. sys_vfork }, /* 66 = vfork */
  165. { 2, s(struct sys_gettimeofday_args), SY_NOLOCK | 0,
  166. sys_gettimeofday }, /* 67 = gettimeofday */
  167. { 2, s(struct sys_settimeofday_args), 0,
  168. sys_settimeofday }, /* 68 = settimeofday */
  169. { 3, s(struct sys_setitimer_args), 0,
  170. sys_setitimer }, /* 69 = setitimer */
  171. { 2, s(struct sys_getitimer_args), 0,
  172. sys_getitimer }, /* 70 = getitimer */
  173. { 5, s(struct sys_select_args), 0,
  174. sys_select }, /* 71 = select */
  175. { 6, s(struct sys_kevent_args), 0,
  176. sys_kevent }, /* 72 = kevent */
  177. { 2, s(struct sys_munmap_args), 0,
  178. sys_munmap }, /* 73 = munmap */
  179. { 3, s(struct sys_mprotect_args), 0,
  180. sys_mprotect }, /* 74 = mprotect */
  181. { 3, s(struct sys_madvise_args), 0,
  182. sys_madvise }, /* 75 = madvise */
  183. { 2, s(struct sys_utimes_args), 0,
  184. sys_utimes }, /* 76 = utimes */
  185. { 2, s(struct sys_futimes_args), 0,
  186. sys_futimes }, /* 77 = futimes */
  187. { 3, s(struct sys_mincore_args), 0,
  188. sys_mincore }, /* 78 = mincore */
  189. { 2, s(struct sys_getgroups_args), SY_NOLOCK | 0,
  190. sys_getgroups }, /* 79 = getgroups */
  191. { 2, s(struct sys_setgroups_args), 0,
  192. sys_setgroups }, /* 80 = setgroups */
  193. { 0, 0, 0,
  194. sys_getpgrp }, /* 81 = getpgrp */
  195. { 2, s(struct sys_setpgid_args), 0,
  196. sys_setpgid }, /* 82 = setpgid */
  197. { 2, s(struct sys_sendsyslog_args), 0,
  198. sys_sendsyslog }, /* 83 = sendsyslog */
  199. { 4, s(struct sys_utimensat_args), 0,
  200. sys_utimensat }, /* 84 = utimensat */
  201. { 2, s(struct sys_futimens_args), 0,
  202. sys_futimens }, /* 85 = futimens */
  203. { 3, s(struct sys_kbind_args), 0,
  204. sys_kbind }, /* 86 = kbind */
  205. { 2, s(struct sys_clock_gettime_args), SY_NOLOCK | 0,
  206. sys_clock_gettime }, /* 87 = clock_gettime */
  207. { 2, s(struct sys_clock_settime_args), 0,
  208. sys_clock_settime }, /* 88 = clock_settime */
  209. { 2, s(struct sys_clock_getres_args), SY_NOLOCK | 0,
  210. sys_clock_getres }, /* 89 = clock_getres */
  211. { 2, s(struct sys_dup2_args), 0,
  212. sys_dup2 }, /* 90 = dup2 */
  213. { 2, s(struct sys_nanosleep_args), 0,
  214. sys_nanosleep }, /* 91 = nanosleep */
  215. { 3, s(struct sys_fcntl_args), 0,
  216. sys_fcntl }, /* 92 = fcntl */
  217. { 4, s(struct sys_accept4_args), 0,
  218. sys_accept4 }, /* 93 = accept4 */
  219. { 5, s(struct sys___thrsleep_args), 0,
  220. sys___thrsleep }, /* 94 = __thrsleep */
  221. { 1, s(struct sys_fsync_args), 0,
  222. sys_fsync }, /* 95 = fsync */
  223. { 3, s(struct sys_setpriority_args), 0,
  224. sys_setpriority }, /* 96 = setpriority */
  225. { 3, s(struct sys_socket_args), 0,
  226. sys_socket }, /* 97 = socket */
  227. { 3, s(struct sys_connect_args), 0,
  228. sys_connect }, /* 98 = connect */
  229. { 3, s(struct sys_getdents_args), 0,
  230. sys_getdents }, /* 99 = getdents */
  231. { 2, s(struct sys_getpriority_args), 0,
  232. sys_getpriority }, /* 100 = getpriority */
  233. { 2, s(struct sys_pipe2_args), 0,
  234. sys_pipe2 }, /* 101 = pipe2 */
  235. { 3, s(struct sys_dup3_args), 0,
  236. sys_dup3 }, /* 102 = dup3 */
  237. { 1, s(struct sys_sigreturn_args), 0,
  238. sys_sigreturn }, /* 103 = sigreturn */
  239. { 3, s(struct sys_bind_args), 0,
  240. sys_bind }, /* 104 = bind */
  241. { 5, s(struct sys_setsockopt_args), 0,
  242. sys_setsockopt }, /* 105 = setsockopt */
  243. { 2, s(struct sys_listen_args), 0,
  244. sys_listen }, /* 106 = listen */
  245. { 4, s(struct sys_chflagsat_args), 0,
  246. sys_chflagsat }, /* 107 = chflagsat */
  247. { 1, s(struct sys_tame_args), 0,
  248. sys_tame }, /* 108 = tame */
  249. { 4, s(struct sys_ppoll_args), 0,
  250. sys_ppoll }, /* 109 = ppoll */
  251. { 6, s(struct sys_pselect_args), 0,
  252. sys_pselect }, /* 110 = pselect */
  253. { 1, s(struct sys_sigsuspend_args), 0,
  254. sys_sigsuspend }, /* 111 = sigsuspend */
  255. { 0, 0, 0,
  256. sys_nosys }, /* 112 = obsolete osigstack */
  257. { 0, 0, 0,
  258. sys_nosys }, /* 113 = obsolete orecvmsg */
  259. { 0, 0, 0,
  260. sys_nosys }, /* 114 = obsolete osendmsg */
  261. { 0, 0, 0,
  262. sys_nosys }, /* 115 = obsolete vtrace */
  263. { 0, 0, 0,
  264. sys_nosys }, /* 116 = obsolete t32_gettimeofday */
  265. { 0, 0, 0,
  266. sys_nosys }, /* 117 = obsolete t32_getrusage */
  267. { 5, s(struct sys_getsockopt_args), 0,
  268. sys_getsockopt }, /* 118 = getsockopt */
  269. { 0, 0, 0,
  270. sys_nosys }, /* 119 = obsolete resuba */
  271. { 3, s(struct sys_readv_args), 0,
  272. sys_readv }, /* 120 = readv */
  273. { 3, s(struct sys_writev_args), 0,
  274. sys_writev }, /* 121 = writev */
  275. { 0, 0, 0,
  276. sys_nosys }, /* 122 = obsolete t32_settimeofday */
  277. { 3, s(struct sys_fchown_args), 0,
  278. sys_fchown }, /* 123 = fchown */
  279. { 2, s(struct sys_fchmod_args), 0,
  280. sys_fchmod }, /* 124 = fchmod */
  281. { 0, 0, 0,
  282. sys_nosys }, /* 125 = obsolete orecvfrom */
  283. { 2, s(struct sys_setreuid_args), 0,
  284. sys_setreuid }, /* 126 = setreuid */
  285. { 2, s(struct sys_setregid_args), 0,
  286. sys_setregid }, /* 127 = setregid */
  287. { 2, s(struct sys_rename_args), 0,
  288. sys_rename }, /* 128 = rename */
  289. { 0, 0, 0,
  290. sys_nosys }, /* 129 = obsolete otruncate */
  291. { 0, 0, 0,
  292. sys_nosys }, /* 130 = obsolete oftruncate */
  293. { 2, s(struct sys_flock_args), 0,
  294. sys_flock }, /* 131 = flock */
  295. { 2, s(struct sys_mkfifo_args), 0,
  296. sys_mkfifo }, /* 132 = mkfifo */
  297. { 6, s(struct sys_sendto_args), 0,
  298. sys_sendto }, /* 133 = sendto */
  299. { 2, s(struct sys_shutdown_args), 0,
  300. sys_shutdown }, /* 134 = shutdown */
  301. { 4, s(struct sys_socketpair_args), 0,
  302. sys_socketpair }, /* 135 = socketpair */
  303. { 2, s(struct sys_mkdir_args), 0,
  304. sys_mkdir }, /* 136 = mkdir */
  305. { 1, s(struct sys_rmdir_args), 0,
  306. sys_rmdir }, /* 137 = rmdir */
  307. { 0, 0, 0,
  308. sys_nosys }, /* 138 = obsolete t32_utimes */
  309. { 0, 0, 0,
  310. sys_nosys }, /* 139 = obsolete 4.2 sigreturn */
  311. { 2, s(struct sys_adjtime_args), 0,
  312. sys_adjtime }, /* 140 = adjtime */
  313. { 0, 0, 0,
  314. sys_nosys }, /* 141 = obsolete ogetpeername */
  315. { 0, 0, 0,
  316. sys_nosys }, /* 142 = obsolete ogethostid */
  317. { 0, 0, 0,
  318. sys_nosys }, /* 143 = obsolete osethostid */
  319. { 0, 0, 0,
  320. sys_nosys }, /* 144 = obsolete ogetrlimit */
  321. { 0, 0, 0,
  322. sys_nosys }, /* 145 = obsolete osetrlimit */
  323. { 0, 0, 0,
  324. sys_nosys }, /* 146 = obsolete okillpg */
  325. { 0, 0, 0,
  326. sys_setsid }, /* 147 = setsid */
  327. { 4, s(struct sys_quotactl_args), 0,
  328. sys_quotactl }, /* 148 = quotactl */
  329. { 0, 0, 0,
  330. sys_nosys }, /* 149 = obsolete oquota */
  331. { 0, 0, 0,
  332. sys_nosys }, /* 150 = obsolete ogetsockname */
  333. { 0, 0, 0,
  334. sys_nosys }, /* 151 = unimplemented */
  335. { 0, 0, 0,
  336. sys_nosys }, /* 152 = unimplemented */
  337. { 0, 0, 0,
  338. sys_nosys }, /* 153 = unimplemented */
  339. { 0, 0, 0,
  340. sys_nosys }, /* 154 = unimplemented */
  341. #if defined(NFSCLIENT) || defined(NFSSERVER)
  342. { 2, s(struct sys_nfssvc_args), 0,
  343. sys_nfssvc }, /* 155 = nfssvc */
  344. #else
  345. { 0, 0, 0,
  346. sys_nosys }, /* 155 = unimplemented */
  347. #endif
  348. { 0, 0, 0,
  349. sys_nosys }, /* 156 = obsolete ogetdirentries */
  350. { 0, 0, 0,
  351. sys_nosys }, /* 157 = obsolete statfs25 */
  352. { 0, 0, 0,
  353. sys_nosys }, /* 158 = obsolete fstatfs25 */
  354. { 0, 0, 0,
  355. sys_nosys }, /* 159 = unimplemented */
  356. { 0, 0, 0,
  357. sys_nosys }, /* 160 = unimplemented */
  358. { 2, s(struct sys_getfh_args), 0,
  359. sys_getfh }, /* 161 = getfh */
  360. { 0, 0, 0,
  361. sys_nosys }, /* 162 = obsolete ogetdomainname */
  362. { 0, 0, 0,
  363. sys_nosys }, /* 163 = obsolete osetdomainname */
  364. { 0, 0, 0,
  365. sys_nosys }, /* 164 = unimplemented ouname */
  366. { 2, s(struct sys_sysarch_args), 0,
  367. sys_sysarch }, /* 165 = sysarch */
  368. { 0, 0, 0,
  369. sys_nosys }, /* 166 = unimplemented */
  370. { 0, 0, 0,
  371. sys_nosys }, /* 167 = unimplemented */
  372. { 0, 0, 0,
  373. sys_nosys }, /* 168 = unimplemented */
  374. { 0, 0, 0,
  375. sys_nosys }, /* 169 = obsolete semsys10 */
  376. { 0, 0, 0,
  377. sys_nosys }, /* 170 = obsolete msgsys10 */
  378. { 0, 0, 0,
  379. sys_nosys }, /* 171 = obsolete shmsys10 */
  380. { 0, 0, 0,
  381. sys_nosys }, /* 172 = unimplemented */
  382. { 5, s(struct sys_pread_args), 0,
  383. sys_pread }, /* 173 = pread */
  384. { 5, s(struct sys_pwrite_args), 0,
  385. sys_pwrite }, /* 174 = pwrite */
  386. { 0, 0, 0,
  387. sys_nosys }, /* 175 = unimplemented ntp_gettime */
  388. { 0, 0, 0,
  389. sys_nosys }, /* 176 = unimplemented ntp_adjtime */
  390. { 0, 0, 0,
  391. sys_nosys }, /* 177 = unimplemented */
  392. { 0, 0, 0,
  393. sys_nosys }, /* 178 = unimplemented */
  394. { 0, 0, 0,
  395. sys_nosys }, /* 179 = unimplemented */
  396. { 0, 0, 0,
  397. sys_nosys }, /* 180 = unimplemented */
  398. { 1, s(struct sys_setgid_args), 0,
  399. sys_setgid }, /* 181 = setgid */
  400. { 1, s(struct sys_setegid_args), 0,
  401. sys_setegid }, /* 182 = setegid */
  402. { 1, s(struct sys_seteuid_args), 0,
  403. sys_seteuid }, /* 183 = seteuid */
  404. { 0, 0, 0,
  405. sys_nosys }, /* 184 = obsolete lfs_bmapv */
  406. { 0, 0, 0,
  407. sys_nosys }, /* 185 = obsolete lfs_markv */
  408. { 0, 0, 0,
  409. sys_nosys }, /* 186 = obsolete lfs_segclean */
  410. { 0, 0, 0,
  411. sys_nosys }, /* 187 = obsolete lfs_segwait */
  412. { 0, 0, 0,
  413. sys_nosys }, /* 188 = obsolete stat35 */
  414. { 0, 0, 0,
  415. sys_nosys }, /* 189 = obsolete fstat35 */
  416. { 0, 0, 0,
  417. sys_nosys }, /* 190 = obsolete lstat35 */
  418. { 2, s(struct sys_pathconf_args), 0,
  419. sys_pathconf }, /* 191 = pathconf */
  420. { 2, s(struct sys_fpathconf_args), 0,
  421. sys_fpathconf }, /* 192 = fpathconf */
  422. { 3, s(struct sys_swapctl_args), 0,
  423. sys_swapctl }, /* 193 = swapctl */
  424. { 2, s(struct sys_getrlimit_args), 0,
  425. sys_getrlimit }, /* 194 = getrlimit */
  426. { 2, s(struct sys_setrlimit_args), 0,
  427. sys_setrlimit }, /* 195 = setrlimit */
  428. { 0, 0, 0,
  429. sys_nosys }, /* 196 = obsolete ogetdirentries48 */
  430. { 7, s(struct sys_mmap_args), 0,
  431. sys_mmap }, /* 197 = mmap */
  432. { 0, 0, 0,
  433. sys_nosys }, /* 198 = __syscall (indir) */
  434. { 4, s(struct sys_lseek_args), 0,
  435. sys_lseek }, /* 199 = lseek */
  436. { 3, s(struct sys_truncate_args), 0,
  437. sys_truncate }, /* 200 = truncate */
  438. { 3, s(struct sys_ftruncate_args), 0,
  439. sys_ftruncate }, /* 201 = ftruncate */
  440. { 6, s(struct sys___sysctl_args), 0,
  441. sys___sysctl }, /* 202 = __sysctl */
  442. { 2, s(struct sys_mlock_args), 0,
  443. sys_mlock }, /* 203 = mlock */
  444. { 2, s(struct sys_munlock_args), 0,
  445. sys_munlock }, /* 204 = munlock */
  446. { 0, 0, 0,
  447. sys_nosys }, /* 205 = unimplemented sys_undelete */
  448. { 0, 0, 0,
  449. sys_nosys }, /* 206 = obsolete t32_futimes */
  450. { 1, s(struct sys_getpgid_args), 0,
  451. sys_getpgid }, /* 207 = getpgid */
  452. { 0, 0, 0,
  453. sys_nosys }, /* 208 = obsolete nnpfspioctl */
  454. { 3, s(struct sys_utrace_args), 0,
  455. sys_utrace }, /* 209 = utrace */
  456. { 0, 0, 0,
  457. sys_nosys }, /* 210 = unimplemented */
  458. { 0, 0, 0,
  459. sys_nosys }, /* 211 = unimplemented */
  460. { 0, 0, 0,
  461. sys_nosys }, /* 212 = unimplemented */
  462. { 0, 0, 0,
  463. sys_nosys }, /* 213 = unimplemented */
  464. { 0, 0, 0,
  465. sys_nosys }, /* 214 = unimplemented */
  466. { 0, 0, 0,
  467. sys_nosys }, /* 215 = unimplemented */
  468. { 0, 0, 0,
  469. sys_nosys }, /* 216 = unimplemented */
  470. { 0, 0, 0,
  471. sys_nosys }, /* 217 = unimplemented */
  472. { 0, 0, 0,
  473. sys_nosys }, /* 218 = unimplemented */
  474. { 0, 0, 0,
  475. sys_nosys }, /* 219 = unimplemented */
  476. #ifdef SYSVSEM
  477. { 0, 0, 0,
  478. sys_nosys }, /* 220 = unimplemented */
  479. { 3, s(struct sys_semget_args), 0,
  480. sys_semget }, /* 221 = semget */
  481. #else
  482. { 0, 0, 0,
  483. sys_nosys }, /* 220 = unimplemented semctl */
  484. { 0, 0, 0,
  485. sys_nosys }, /* 221 = unimplemented semget */
  486. #endif
  487. { 0, 0, 0,
  488. sys_nosys }, /* 222 = obsolete semop35 */
  489. { 0, 0, 0,
  490. sys_nosys }, /* 223 = obsolete semconfig35 */
  491. #ifdef SYSVMSG
  492. { 0, 0, 0,
  493. sys_nosys }, /* 224 = unimplemented */
  494. { 2, s(struct sys_msgget_args), 0,
  495. sys_msgget }, /* 225 = msgget */
  496. { 4, s(struct sys_msgsnd_args), 0,
  497. sys_msgsnd }, /* 226 = msgsnd */
  498. { 5, s(struct sys_msgrcv_args), 0,
  499. sys_msgrcv }, /* 227 = msgrcv */
  500. #else
  501. { 0, 0, 0,
  502. sys_nosys }, /* 224 = unimplemented msgctl */
  503. { 0, 0, 0,
  504. sys_nosys }, /* 225 = unimplemented msgget */
  505. { 0, 0, 0,
  506. sys_nosys }, /* 226 = unimplemented msgsnd */
  507. { 0, 0, 0,
  508. sys_nosys }, /* 227 = unimplemented msgrcv */
  509. #endif
  510. #ifdef SYSVSHM
  511. { 3, s(struct sys_shmat_args), 0,
  512. sys_shmat }, /* 228 = shmat */
  513. { 0, 0, 0,
  514. sys_nosys }, /* 229 = unimplemented */
  515. { 1, s(struct sys_shmdt_args), 0,
  516. sys_shmdt }, /* 230 = shmdt */
  517. #else
  518. { 0, 0, 0,
  519. sys_nosys }, /* 228 = unimplemented shmat */
  520. { 0, 0, 0,
  521. sys_nosys }, /* 229 = unimplemented shmctl */
  522. { 0, 0, 0,
  523. sys_nosys }, /* 230 = unimplemented shmdt */
  524. #endif
  525. { 0, 0, 0,
  526. sys_nosys }, /* 231 = obsolete shmget35 */
  527. { 0, 0, 0,
  528. sys_nosys }, /* 232 = obsolete t32_clock_gettime */
  529. { 0, 0, 0,
  530. sys_nosys }, /* 233 = obsolete t32_clock_settime */
  531. { 0, 0, 0,
  532. sys_nosys }, /* 234 = obsolete t32_clock_getres */
  533. { 0, 0, 0,
  534. sys_nosys }, /* 235 = unimplemented timer_create */
  535. { 0, 0, 0,
  536. sys_nosys }, /* 236 = unimplemented timer_delete */
  537. { 0, 0, 0,
  538. sys_nosys }, /* 237 = unimplemented timer_settime */
  539. { 0, 0, 0,
  540. sys_nosys }, /* 238 = unimplemented timer_gettime */
  541. { 0, 0, 0,
  542. sys_nosys }, /* 239 = unimplemented timer_getoverrun */
  543. { 0, 0, 0,
  544. sys_nosys }, /* 240 = obsolete t32_nanosleep */
  545. { 0, 0, 0,
  546. sys_nosys }, /* 241 = unimplemented */
  547. { 0, 0, 0,
  548. sys_nosys }, /* 242 = unimplemented */
  549. { 0, 0, 0,
  550. sys_nosys }, /* 243 = unimplemented */
  551. { 0, 0, 0,
  552. sys_nosys }, /* 244 = unimplemented */
  553. { 0, 0, 0,
  554. sys_nosys }, /* 245 = unimplemented */
  555. { 0, 0, 0,
  556. sys_nosys }, /* 246 = unimplemented */
  557. { 0, 0, 0,
  558. sys_nosys }, /* 247 = unimplemented */
  559. { 0, 0, 0,
  560. sys_nosys }, /* 248 = unimplemented */
  561. { 0, 0, 0,
  562. sys_nosys }, /* 249 = unimplemented */
  563. { 3, s(struct sys_minherit_args), 0,
  564. sys_minherit }, /* 250 = minherit */
  565. { 0, 0, 0,
  566. sys_nosys }, /* 251 = obsolete rfork */
  567. { 3, s(struct sys_poll_args), 0,
  568. sys_poll }, /* 252 = poll */
  569. { 0, 0, SY_NOLOCK | 0,
  570. sys_issetugid }, /* 253 = issetugid */
  571. { 3, s(struct sys_lchown_args), 0,
  572. sys_lchown }, /* 254 = lchown */
  573. { 1, s(struct sys_getsid_args), 0,
  574. sys_getsid }, /* 255 = getsid */
  575. { 3, s(struct sys_msync_args), 0,
  576. sys_msync }, /* 256 = msync */
  577. { 0, 0, 0,
  578. sys_nosys }, /* 257 = obsolete semctl35 */
  579. { 0, 0, 0,
  580. sys_nosys }, /* 258 = obsolete shmctl35 */
  581. { 0, 0, 0,
  582. sys_nosys }, /* 259 = obsolete msgctl35 */
  583. { 0, 0, 0,
  584. sys_nosys }, /* 260 = unimplemented */
  585. { 0, 0, 0,
  586. sys_nosys }, /* 261 = unimplemented */
  587. { 0, 0, 0,
  588. sys_nosys }, /* 262 = unimplemented */
  589. { 1, s(struct sys_pipe_args), 0,
  590. sys_pipe }, /* 263 = pipe */
  591. { 2, s(struct sys_fhopen_args), 0,
  592. sys_fhopen }, /* 264 = fhopen */
  593. { 0, 0, 0,
  594. sys_nosys }, /* 265 = unimplemented */
  595. { 0, 0, 0,
  596. sys_nosys }, /* 266 = unimplemented */
  597. { 5, s(struct sys_preadv_args), 0,
  598. sys_preadv }, /* 267 = preadv */
  599. { 5, s(struct sys_pwritev_args), 0,
  600. sys_pwritev }, /* 268 = pwritev */
  601. { 0, 0, 0,
  602. sys_kqueue }, /* 269 = kqueue */
  603. { 0, 0, 0,
  604. sys_nosys }, /* 270 = obsolete t32_kevent */
  605. { 1, s(struct sys_mlockall_args), 0,
  606. sys_mlockall }, /* 271 = mlockall */
  607. { 0, 0, 0,
  608. sys_munlockall }, /* 272 = munlockall */
  609. { 0, 0, 0,
  610. sys_nosys }, /* 273 = unimplemented sys_getpeereid */
  611. { 0, 0, 0,
  612. sys_nosys }, /* 274 = unimplemented sys_extattrctl */
  613. { 0, 0, 0,
  614. sys_nosys }, /* 275 = unimplemented sys_extattr_set_file */
  615. { 0, 0, 0,
  616. sys_nosys }, /* 276 = unimplemented sys_extattr_get_file */
  617. { 0, 0, 0,
  618. sys_nosys }, /* 277 = unimplemented sys_extattr_delete_file */
  619. { 0, 0, 0,
  620. sys_nosys }, /* 278 = unimplemented sys_extattr_set_fd */
  621. { 0, 0, 0,
  622. sys_nosys }, /* 279 = unimplemented sys_extattr_get_fd */
  623. { 0, 0, 0,
  624. sys_nosys }, /* 280 = unimplemented sys_extattr_delete_fd */
  625. { 3, s(struct sys_getresuid_args), SY_NOLOCK | 0,
  626. sys_getresuid }, /* 281 = getresuid */
  627. { 3, s(struct sys_setresuid_args), 0,
  628. sys_setresuid }, /* 282 = setresuid */
  629. { 3, s(struct sys_getresgid_args), SY_NOLOCK | 0,
  630. sys_getresgid }, /* 283 = getresgid */
  631. { 3, s(struct sys_setresgid_args), 0,
  632. sys_setresgid }, /* 284 = setresgid */
  633. { 0, 0, 0,
  634. sys_nosys }, /* 285 = obsolete sys_omquery */
  635. { 7, s(struct sys_mquery_args), 0,
  636. sys_mquery }, /* 286 = mquery */
  637. { 1, s(struct sys_closefrom_args), 0,
  638. sys_closefrom }, /* 287 = closefrom */
  639. { 2, s(struct sys_sigaltstack_args), 0,
  640. sys_sigaltstack }, /* 288 = sigaltstack */
  641. #ifdef SYSVSHM
  642. { 3, s(struct sys_shmget_args), 0,
  643. sys_shmget }, /* 289 = shmget */
  644. #else
  645. { 0, 0, 0,
  646. sys_nosys }, /* 289 = unimplemented shmget */
  647. #endif
  648. #ifdef SYSVSEM
  649. { 3, s(struct sys_semop_args), 0,
  650. sys_semop }, /* 290 = semop */
  651. #else
  652. { 0, 0, 0,
  653. sys_nosys }, /* 290 = unimplemented semop */
  654. #endif
  655. { 0, 0, 0,
  656. sys_nosys }, /* 291 = obsolete t32_stat */
  657. { 0, 0, 0,
  658. sys_nosys }, /* 292 = obsolete t32_fstat */
  659. { 0, 0, 0,
  660. sys_nosys }, /* 293 = obsolete t32_lstat */
  661. { 2, s(struct sys_fhstat_args), 0,
  662. sys_fhstat }, /* 294 = fhstat */
  663. #ifdef SYSVSEM
  664. { 4, s(struct sys___semctl_args), 0,
  665. sys___semctl }, /* 295 = __semctl */
  666. #else
  667. { 0, 0, 0,
  668. sys_nosys }, /* 295 = unimplemented */
  669. #endif
  670. #ifdef SYSVSHM
  671. { 3, s(struct sys_shmctl_args), 0,
  672. sys_shmctl }, /* 296 = shmctl */
  673. #else
  674. { 0, 0, 0,
  675. sys_nosys }, /* 296 = unimplemented */
  676. #endif
  677. #ifdef SYSVMSG
  678. { 3, s(struct sys_msgctl_args), 0,
  679. sys_msgctl }, /* 297 = msgctl */
  680. #else
  681. { 0, 0, 0,
  682. sys_nosys }, /* 297 = unimplemented */
  683. #endif
  684. { 0, 0, SY_NOLOCK | 0,
  685. sys_sched_yield }, /* 298 = sched_yield */
  686. { 0, 0, SY_NOLOCK | 0,
  687. sys_getthrid }, /* 299 = getthrid */
  688. { 0, 0, 0,
  689. sys_nosys }, /* 300 = obsolete t32___thrsleep */
  690. { 2, s(struct sys___thrwakeup_args), 0,
  691. sys___thrwakeup }, /* 301 = __thrwakeup */
  692. { 1, s(struct sys___threxit_args), 0,
  693. sys___threxit }, /* 302 = __threxit */
  694. { 3, s(struct sys___thrsigdivert_args), 0,
  695. sys___thrsigdivert }, /* 303 = __thrsigdivert */
  696. { 2, s(struct sys___getcwd_args), 0,
  697. sys___getcwd }, /* 304 = __getcwd */
  698. { 2, s(struct sys_adjfreq_args), 0,
  699. sys_adjfreq }, /* 305 = adjfreq */
  700. { 0, 0, 0,
  701. sys_nosys }, /* 306 = obsolete getfsstat53 */
  702. { 0, 0, 0,
  703. sys_nosys }, /* 307 = obsolete statfs53 */
  704. { 0, 0, 0,
  705. sys_nosys }, /* 308 = obsolete fstatfs53 */
  706. { 0, 0, 0,
  707. sys_nosys }, /* 309 = obsolete fhstatfs53 */
  708. { 1, s(struct sys_setrtable_args), 0,
  709. sys_setrtable }, /* 310 = setrtable */
  710. { 0, 0, SY_NOLOCK | 0,
  711. sys_getrtable }, /* 311 = getrtable */
  712. { 0, 0, 0,
  713. sys_nosys }, /* 312 = obsolete t32_getdirentries */
  714. { 4, s(struct sys_faccessat_args), 0,
  715. sys_faccessat }, /* 313 = faccessat */
  716. { 4, s(struct sys_fchmodat_args), 0,
  717. sys_fchmodat }, /* 314 = fchmodat */
  718. { 5, s(struct sys_fchownat_args), 0,
  719. sys_fchownat }, /* 315 = fchownat */
  720. { 0, 0, 0,
  721. sys_nosys }, /* 316 = obsolete t32_fstatat */
  722. { 5, s(struct sys_linkat_args), 0,
  723. sys_linkat }, /* 317 = linkat */
  724. { 3, s(struct sys_mkdirat_args), 0,
  725. sys_mkdirat }, /* 318 = mkdirat */
  726. { 3, s(struct sys_mkfifoat_args), 0,
  727. sys_mkfifoat }, /* 319 = mkfifoat */
  728. { 4, s(struct sys_mknodat_args), 0,
  729. sys_mknodat }, /* 320 = mknodat */
  730. { 4, s(struct sys_openat_args), 0,
  731. sys_openat }, /* 321 = openat */
  732. { 4, s(struct sys_readlinkat_args), 0,
  733. sys_readlinkat }, /* 322 = readlinkat */
  734. { 4, s(struct sys_renameat_args), 0,
  735. sys_renameat }, /* 323 = renameat */
  736. { 3, s(struct sys_symlinkat_args), 0,
  737. sys_symlinkat }, /* 324 = symlinkat */
  738. { 3, s(struct sys_unlinkat_args), 0,
  739. sys_unlinkat }, /* 325 = unlinkat */
  740. { 0, 0, 0,
  741. sys_nosys }, /* 326 = obsolete t32_utimensat */
  742. { 0, 0, 0,
  743. sys_nosys }, /* 327 = obsolete t32_futimens */
  744. { 0, 0, 0,
  745. sys_nosys }, /* 328 = obsolete __tfork51 */
  746. { 1, s(struct sys___set_tcb_args), SY_NOLOCK | 0,
  747. sys___set_tcb }, /* 329 = __set_tcb */
  748. { 0, 0, SY_NOLOCK | 0,
  749. sys___get_tcb }, /* 330 = __get_tcb */
  750. };