syscall.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. /* $OpenBSD: syscall.h,v 1.166 2015/07/20 00:57:06 guenther Exp $ */
  2. /*
  3. * System call numbers.
  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. /* syscall: "syscall" ret: "int" args: "int" "..." */
  9. #define SYS_syscall 0
  10. /* syscall: "exit" ret: "void" args: "int" */
  11. #define SYS_exit 1
  12. /* syscall: "fork" ret: "int" args: */
  13. #define SYS_fork 2
  14. /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
  15. #define SYS_read 3
  16. /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
  17. #define SYS_write 4
  18. /* syscall: "open" ret: "int" args: "const char *" "int" "..." */
  19. #define SYS_open 5
  20. /* syscall: "close" ret: "int" args: "int" */
  21. #define SYS_close 6
  22. /* syscall: "getentropy" ret: "int" args: "void *" "size_t" */
  23. #define SYS_getentropy 7
  24. /* syscall: "__tfork" ret: "int" args: "const struct __tfork *" "size_t" */
  25. #define SYS___tfork 8
  26. /* syscall: "link" ret: "int" args: "const char *" "const char *" */
  27. #define SYS_link 9
  28. /* syscall: "unlink" ret: "int" args: "const char *" */
  29. #define SYS_unlink 10
  30. /* syscall: "wait4" ret: "pid_t" args: "pid_t" "int *" "int" "struct rusage *" */
  31. #define SYS_wait4 11
  32. /* syscall: "chdir" ret: "int" args: "const char *" */
  33. #define SYS_chdir 12
  34. /* syscall: "fchdir" ret: "int" args: "int" */
  35. #define SYS_fchdir 13
  36. /* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */
  37. #define SYS_mknod 14
  38. /* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
  39. #define SYS_chmod 15
  40. /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
  41. #define SYS_chown 16
  42. /* syscall: "break" ret: "int" args: "char *" */
  43. #define SYS_break 17
  44. /* syscall: "getdtablecount" ret: "int" args: */
  45. #define SYS_getdtablecount 18
  46. /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
  47. #define SYS_getrusage 19
  48. /* syscall: "getpid" ret: "pid_t" args: */
  49. #define SYS_getpid 20
  50. /* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */
  51. #define SYS_mount 21
  52. /* syscall: "unmount" ret: "int" args: "const char *" "int" */
  53. #define SYS_unmount 22
  54. /* syscall: "setuid" ret: "int" args: "uid_t" */
  55. #define SYS_setuid 23
  56. /* syscall: "getuid" ret: "uid_t" args: */
  57. #define SYS_getuid 24
  58. /* syscall: "geteuid" ret: "uid_t" args: */
  59. #define SYS_geteuid 25
  60. /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */
  61. #define SYS_ptrace 26
  62. /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
  63. #define SYS_recvmsg 27
  64. /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
  65. #define SYS_sendmsg 28
  66. /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "socklen_t *" */
  67. #define SYS_recvfrom 29
  68. /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
  69. #define SYS_accept 30
  70. /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
  71. #define SYS_getpeername 31
  72. /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
  73. #define SYS_getsockname 32
  74. /* syscall: "access" ret: "int" args: "const char *" "int" */
  75. #define SYS_access 33
  76. /* syscall: "chflags" ret: "int" args: "const char *" "u_int" */
  77. #define SYS_chflags 34
  78. /* syscall: "fchflags" ret: "int" args: "int" "u_int" */
  79. #define SYS_fchflags 35
  80. /* syscall: "sync" ret: "void" args: */
  81. #define SYS_sync 36
  82. /* syscall: "kill" ret: "int" args: "int" "int" */
  83. #define SYS_kill 37
  84. /* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */
  85. #define SYS_stat 38
  86. /* syscall: "getppid" ret: "pid_t" args: */
  87. #define SYS_getppid 39
  88. /* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */
  89. #define SYS_lstat 40
  90. /* syscall: "dup" ret: "int" args: "int" */
  91. #define SYS_dup 41
  92. /* syscall: "fstatat" ret: "int" args: "int" "const char *" "struct stat *" "int" */
  93. #define SYS_fstatat 42
  94. /* syscall: "getegid" ret: "gid_t" args: */
  95. #define SYS_getegid 43
  96. /* syscall: "profil" ret: "int" args: "caddr_t" "size_t" "u_long" "u_int" */
  97. #define SYS_profil 44
  98. /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "pid_t" */
  99. #define SYS_ktrace 45
  100. /* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */
  101. #define SYS_sigaction 46
  102. /* syscall: "getgid" ret: "gid_t" args: */
  103. #define SYS_getgid 47
  104. /* syscall: "sigprocmask" ret: "int" args: "int" "sigset_t" */
  105. #define SYS_sigprocmask 48
  106. /* syscall: "getlogin" ret: "int" args: "char *" "u_int" */
  107. #define SYS_getlogin 49
  108. /* syscall: "setlogin" ret: "int" args: "const char *" */
  109. #define SYS_setlogin 50
  110. /* syscall: "acct" ret: "int" args: "const char *" */
  111. #define SYS_acct 51
  112. /* syscall: "sigpending" ret: "int" args: */
  113. #define SYS_sigpending 52
  114. /* syscall: "fstat" ret: "int" args: "int" "struct stat *" */
  115. #define SYS_fstat 53
  116. /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */
  117. #define SYS_ioctl 54
  118. /* syscall: "reboot" ret: "int" args: "int" */
  119. #define SYS_reboot 55
  120. /* syscall: "revoke" ret: "int" args: "const char *" */
  121. #define SYS_revoke 56
  122. /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
  123. #define SYS_symlink 57
  124. /* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "size_t" */
  125. #define SYS_readlink 58
  126. /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
  127. #define SYS_execve 59
  128. /* syscall: "umask" ret: "mode_t" args: "mode_t" */
  129. #define SYS_umask 60
  130. /* syscall: "chroot" ret: "int" args: "const char *" */
  131. #define SYS_chroot 61
  132. /* syscall: "getfsstat" ret: "int" args: "struct statfs *" "size_t" "int" */
  133. #define SYS_getfsstat 62
  134. /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */
  135. #define SYS_statfs 63
  136. /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */
  137. #define SYS_fstatfs 64
  138. /* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */
  139. #define SYS_fhstatfs 65
  140. /* syscall: "vfork" ret: "int" args: */
  141. #define SYS_vfork 66
  142. /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
  143. #define SYS_gettimeofday 67
  144. /* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */
  145. #define SYS_settimeofday 68
  146. /* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */
  147. #define SYS_setitimer 69
  148. /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */
  149. #define SYS_getitimer 70
  150. /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
  151. #define SYS_select 71
  152. /* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "int" "struct kevent *" "int" "const struct timespec *" */
  153. #define SYS_kevent 72
  154. /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
  155. #define SYS_munmap 73
  156. /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
  157. #define SYS_mprotect 74
  158. /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
  159. #define SYS_madvise 75
  160. /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */
  161. #define SYS_utimes 76
  162. /* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */
  163. #define SYS_futimes 77
  164. /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
  165. #define SYS_mincore 78
  166. /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
  167. #define SYS_getgroups 79
  168. /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
  169. #define SYS_setgroups 80
  170. /* syscall: "getpgrp" ret: "int" args: */
  171. #define SYS_getpgrp 81
  172. /* syscall: "setpgid" ret: "int" args: "pid_t" "pid_t" */
  173. #define SYS_setpgid 82
  174. /* syscall: "sendsyslog" ret: "int" args: "const void *" "size_t" */
  175. #define SYS_sendsyslog 83
  176. /* syscall: "utimensat" ret: "int" args: "int" "const char *" "const struct timespec *" "int" */
  177. #define SYS_utimensat 84
  178. /* syscall: "futimens" ret: "int" args: "int" "const struct timespec *" */
  179. #define SYS_futimens 85
  180. /* syscall: "kbind" ret: "int" args: "const struct __kbind *" "size_t" "int64_t" */
  181. #define SYS_kbind 86
  182. /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */
  183. #define SYS_clock_gettime 87
  184. /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */
  185. #define SYS_clock_settime 88
  186. /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */
  187. #define SYS_clock_getres 89
  188. /* syscall: "dup2" ret: "int" args: "int" "int" */
  189. #define SYS_dup2 90
  190. /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
  191. #define SYS_nanosleep 91
  192. /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */
  193. #define SYS_fcntl 92
  194. /* syscall: "accept4" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" "int" */
  195. #define SYS_accept4 93
  196. /* syscall: "__thrsleep" ret: "int" args: "const volatile void *" "clockid_t" "const struct timespec *" "void *" "const int *" */
  197. #define SYS___thrsleep 94
  198. /* syscall: "fsync" ret: "int" args: "int" */
  199. #define SYS_fsync 95
  200. /* syscall: "setpriority" ret: "int" args: "int" "id_t" "int" */
  201. #define SYS_setpriority 96
  202. /* syscall: "socket" ret: "int" args: "int" "int" "int" */
  203. #define SYS_socket 97
  204. /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */
  205. #define SYS_connect 98
  206. /* syscall: "getdents" ret: "int" args: "int" "void *" "size_t" */
  207. #define SYS_getdents 99
  208. /* syscall: "getpriority" ret: "int" args: "int" "id_t" */
  209. #define SYS_getpriority 100
  210. /* syscall: "pipe2" ret: "int" args: "int *" "int" */
  211. #define SYS_pipe2 101
  212. /* syscall: "dup3" ret: "int" args: "int" "int" "int" */
  213. #define SYS_dup3 102
  214. /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
  215. #define SYS_sigreturn 103
  216. /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */
  217. #define SYS_bind 104
  218. /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "socklen_t" */
  219. #define SYS_setsockopt 105
  220. /* syscall: "listen" ret: "int" args: "int" "int" */
  221. #define SYS_listen 106
  222. /* syscall: "chflagsat" ret: "int" args: "int" "const char *" "u_int" "int" */
  223. #define SYS_chflagsat 107
  224. /* syscall: "tame" ret: "int" args: "int" */
  225. #define SYS_tame 108
  226. /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "const struct timespec *" "const sigset_t *" */
  227. #define SYS_ppoll 109
  228. /* syscall: "pselect" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "const struct timespec *" "const sigset_t *" */
  229. #define SYS_pselect 110
  230. /* syscall: "sigsuspend" ret: "int" args: "int" */
  231. #define SYS_sigsuspend 111
  232. /* 112 is obsolete osigstack */
  233. /* 113 is obsolete orecvmsg */
  234. /* 114 is obsolete osendmsg */
  235. /* 115 is obsolete vtrace */
  236. /* 116 is obsolete t32_gettimeofday */
  237. /* 117 is obsolete t32_getrusage */
  238. /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "socklen_t *" */
  239. #define SYS_getsockopt 118
  240. /* 119 is obsolete resuba */
  241. /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
  242. #define SYS_readv 120
  243. /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
  244. #define SYS_writev 121
  245. /* 122 is obsolete t32_settimeofday */
  246. /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
  247. #define SYS_fchown 123
  248. /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
  249. #define SYS_fchmod 124
  250. /* 125 is obsolete orecvfrom */
  251. /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
  252. #define SYS_setreuid 126
  253. /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
  254. #define SYS_setregid 127
  255. /* syscall: "rename" ret: "int" args: "const char *" "const char *" */
  256. #define SYS_rename 128
  257. /* 129 is obsolete otruncate */
  258. /* 130 is obsolete oftruncate */
  259. /* syscall: "flock" ret: "int" args: "int" "int" */
  260. #define SYS_flock 131
  261. /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
  262. #define SYS_mkfifo 132
  263. /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "socklen_t" */
  264. #define SYS_sendto 133
  265. /* syscall: "shutdown" ret: "int" args: "int" "int" */
  266. #define SYS_shutdown 134
  267. /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
  268. #define SYS_socketpair 135
  269. /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
  270. #define SYS_mkdir 136
  271. /* syscall: "rmdir" ret: "int" args: "const char *" */
  272. #define SYS_rmdir 137
  273. /* 138 is obsolete t32_utimes */
  274. /* 139 is obsolete 4.2 sigreturn */
  275. /* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */
  276. #define SYS_adjtime 140
  277. /* 141 is obsolete ogetpeername */
  278. /* 142 is obsolete ogethostid */
  279. /* 143 is obsolete osethostid */
  280. /* 144 is obsolete ogetrlimit */
  281. /* 145 is obsolete osetrlimit */
  282. /* 146 is obsolete okillpg */
  283. /* syscall: "setsid" ret: "int" args: */
  284. #define SYS_setsid 147
  285. /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "char *" */
  286. #define SYS_quotactl 148
  287. /* 149 is obsolete oquota */
  288. /* 150 is obsolete ogetsockname */
  289. /* syscall: "nfssvc" ret: "int" args: "int" "void *" */
  290. #define SYS_nfssvc 155
  291. /* 156 is obsolete ogetdirentries */
  292. /* 157 is obsolete statfs25 */
  293. /* 158 is obsolete fstatfs25 */
  294. /* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */
  295. #define SYS_getfh 161
  296. /* 162 is obsolete ogetdomainname */
  297. /* 163 is obsolete osetdomainname */
  298. /* syscall: "sysarch" ret: "int" args: "int" "void *" */
  299. #define SYS_sysarch 165
  300. /* 169 is obsolete semsys10 */
  301. /* 170 is obsolete msgsys10 */
  302. /* 171 is obsolete shmsys10 */
  303. /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
  304. #define SYS_pread 173
  305. /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
  306. #define SYS_pwrite 174
  307. /* syscall: "setgid" ret: "int" args: "gid_t" */
  308. #define SYS_setgid 181
  309. /* syscall: "setegid" ret: "int" args: "gid_t" */
  310. #define SYS_setegid 182
  311. /* syscall: "seteuid" ret: "int" args: "uid_t" */
  312. #define SYS_seteuid 183
  313. /* 184 is obsolete lfs_bmapv */
  314. /* 185 is obsolete lfs_markv */
  315. /* 186 is obsolete lfs_segclean */
  316. /* 187 is obsolete lfs_segwait */
  317. /* 188 is obsolete stat35 */
  318. /* 189 is obsolete fstat35 */
  319. /* 190 is obsolete lstat35 */
  320. /* syscall: "pathconf" ret: "long" args: "const char *" "int" */
  321. #define SYS_pathconf 191
  322. /* syscall: "fpathconf" ret: "long" args: "int" "int" */
  323. #define SYS_fpathconf 192
  324. /* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */
  325. #define SYS_swapctl 193
  326. /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
  327. #define SYS_getrlimit 194
  328. /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
  329. #define SYS_setrlimit 195
  330. /* 196 is obsolete ogetdirentries48 */
  331. /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
  332. #define SYS_mmap 197
  333. /* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */
  334. #define SYS___syscall 198
  335. /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */
  336. #define SYS_lseek 199
  337. /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
  338. #define SYS_truncate 200
  339. /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
  340. #define SYS_ftruncate 201
  341. /* syscall: "__sysctl" ret: "int" args: "const int *" "u_int" "void *" "size_t *" "void *" "size_t" */
  342. #define SYS___sysctl 202
  343. /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
  344. #define SYS_mlock 203
  345. /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
  346. #define SYS_munlock 204
  347. /* 206 is obsolete t32_futimes */
  348. /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
  349. #define SYS_getpgid 207
  350. /* 208 is obsolete nnpfspioctl */
  351. /* syscall: "utrace" ret: "int" args: "const char *" "const void *" "size_t" */
  352. #define SYS_utrace 209
  353. /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
  354. #define SYS_semget 221
  355. /* 222 is obsolete semop35 */
  356. /* 223 is obsolete semconfig35 */
  357. /* syscall: "msgget" ret: "int" args: "key_t" "int" */
  358. #define SYS_msgget 225
  359. /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */
  360. #define SYS_msgsnd 226
  361. /* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */
  362. #define SYS_msgrcv 227
  363. /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
  364. #define SYS_shmat 228
  365. /* syscall: "shmdt" ret: "int" args: "const void *" */
  366. #define SYS_shmdt 230
  367. /* 231 is obsolete shmget35 */
  368. /* 232 is obsolete t32_clock_gettime */
  369. /* 233 is obsolete t32_clock_settime */
  370. /* 234 is obsolete t32_clock_getres */
  371. /* 240 is obsolete t32_nanosleep */
  372. /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
  373. #define SYS_minherit 250
  374. /* 251 is obsolete rfork */
  375. /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
  376. #define SYS_poll 252
  377. /* syscall: "issetugid" ret: "int" args: */
  378. #define SYS_issetugid 253
  379. /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
  380. #define SYS_lchown 254
  381. /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
  382. #define SYS_getsid 255
  383. /* syscall: "msync" ret: "int" args: "void *" "size_t" "int" */
  384. #define SYS_msync 256
  385. /* 257 is obsolete semctl35 */
  386. /* 258 is obsolete shmctl35 */
  387. /* 259 is obsolete msgctl35 */
  388. /* syscall: "pipe" ret: "int" args: "int *" */
  389. #define SYS_pipe 263
  390. /* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */
  391. #define SYS_fhopen 264
  392. /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
  393. #define SYS_preadv 267
  394. /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
  395. #define SYS_pwritev 268
  396. /* syscall: "kqueue" ret: "int" args: */
  397. #define SYS_kqueue 269
  398. /* 270 is obsolete t32_kevent */
  399. /* syscall: "mlockall" ret: "int" args: "int" */
  400. #define SYS_mlockall 271
  401. /* syscall: "munlockall" ret: "int" args: */
  402. #define SYS_munlockall 272
  403. /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
  404. #define SYS_getresuid 281
  405. /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
  406. #define SYS_setresuid 282
  407. /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
  408. #define SYS_getresgid 283
  409. /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
  410. #define SYS_setresgid 284
  411. /* 285 is obsolete sys_omquery */
  412. /* syscall: "mquery" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
  413. #define SYS_mquery 286
  414. /* syscall: "closefrom" ret: "int" args: "int" */
  415. #define SYS_closefrom 287
  416. /* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
  417. #define SYS_sigaltstack 288
  418. /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
  419. #define SYS_shmget 289
  420. /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
  421. #define SYS_semop 290
  422. /* 291 is obsolete t32_stat */
  423. /* 292 is obsolete t32_fstat */
  424. /* 293 is obsolete t32_lstat */
  425. /* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */
  426. #define SYS_fhstat 294
  427. /* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union semun *" */
  428. #define SYS___semctl 295
  429. /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds *" */
  430. #define SYS_shmctl 296
  431. /* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds *" */
  432. #define SYS_msgctl 297
  433. /* syscall: "sched_yield" ret: "int" args: */
  434. #define SYS_sched_yield 298
  435. /* syscall: "getthrid" ret: "pid_t" args: */
  436. #define SYS_getthrid 299
  437. /* 300 is obsolete t32___thrsleep */
  438. /* syscall: "__thrwakeup" ret: "int" args: "const volatile void *" "int" */
  439. #define SYS___thrwakeup 301
  440. /* syscall: "__threxit" ret: "void" args: "pid_t *" */
  441. #define SYS___threxit 302
  442. /* syscall: "__thrsigdivert" ret: "int" args: "sigset_t" "siginfo_t *" "const struct timespec *" */
  443. #define SYS___thrsigdivert 303
  444. /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
  445. #define SYS___getcwd 304
  446. /* syscall: "adjfreq" ret: "int" args: "const int64_t *" "int64_t *" */
  447. #define SYS_adjfreq 305
  448. /* 306 is obsolete getfsstat53 */
  449. /* 307 is obsolete statfs53 */
  450. /* 308 is obsolete fstatfs53 */
  451. /* 309 is obsolete fhstatfs53 */
  452. /* syscall: "setrtable" ret: "int" args: "int" */
  453. #define SYS_setrtable 310
  454. /* syscall: "getrtable" ret: "int" args: */
  455. #define SYS_getrtable 311
  456. /* 312 is obsolete t32_getdirentries */
  457. /* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" "int" */
  458. #define SYS_faccessat 313
  459. /* syscall: "fchmodat" ret: "int" args: "int" "const char *" "mode_t" "int" */
  460. #define SYS_fchmodat 314
  461. /* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
  462. #define SYS_fchownat 315
  463. /* 316 is obsolete t32_fstatat */
  464. /* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
  465. #define SYS_linkat 317
  466. /* syscall: "mkdirat" ret: "int" args: "int" "const char *" "mode_t" */
  467. #define SYS_mkdirat 318
  468. /* syscall: "mkfifoat" ret: "int" args: "int" "const char *" "mode_t" */
  469. #define SYS_mkfifoat 319
  470. /* syscall: "mknodat" ret: "int" args: "int" "const char *" "mode_t" "dev_t" */
  471. #define SYS_mknodat 320
  472. /* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
  473. #define SYS_openat 321
  474. /* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */
  475. #define SYS_readlinkat 322
  476. /* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
  477. #define SYS_renameat 323
  478. /* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
  479. #define SYS_symlinkat 324
  480. /* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
  481. #define SYS_unlinkat 325
  482. /* 326 is obsolete t32_utimensat */
  483. /* 327 is obsolete t32_futimens */
  484. /* 328 is obsolete __tfork51 */
  485. /* syscall: "__set_tcb" ret: "void" args: "void *" */
  486. #define SYS___set_tcb 329
  487. /* syscall: "__get_tcb" ret: "void *" args: */
  488. #define SYS___get_tcb 330
  489. #define SYS_MAXSYSCALL 331