syscalls.master 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. ; $OpenBSD: syscalls.master,v 1.155 2015/07/20 00:56:10 guenther Exp $
  2. ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
  3. ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
  4. ; OpenBSD system call name/number "master" file.
  5. ; (See syscalls.conf to see what it is processed into.)
  6. ;
  7. ; Fields: number type [type-dependent ...]
  8. ; number system call number, must be in order
  9. ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
  10. ; the compatibility options defined in syscalls.conf.
  11. ;
  12. ; types:
  13. ; STD always included
  14. ; OBSOL obsolete, not included in system
  15. ; UNIMPL unimplemented, not included in system
  16. ; NODEF included, but don't define the syscall number
  17. ; NOARGS included, but don't define the syscall args structure
  18. ; INDIR included, but don't define the syscall args structure,
  19. ; and allow it to be "really" varargs.
  20. ;
  21. ; The compat options are defined in the syscalls.conf file, and the
  22. ; compat option name is prefixed to the syscall name. Other than
  23. ; that, they're like NODEF (for 'compat' options), or STD (for
  24. ; 'libcompat' options).
  25. ;
  26. ; The type-dependent arguments are as follows:
  27. ; For STD, NODEF, NOARGS, and compat syscalls:
  28. ; { pseudo-proto } [alias]
  29. ; For other syscalls:
  30. ; [comment]
  31. ;
  32. ; #ifdef's, etc. may be included, and are copied to the output files.
  33. ; #include's are copied to the syscall switch definition file only.
  34. #include <sys/param.h>
  35. #include <sys/systm.h>
  36. #include <sys/signal.h>
  37. #include <sys/mount.h>
  38. #include <sys/syscallargs.h>
  39. #include <sys/poll.h>
  40. ; Reserved/unimplemented system calls in the range 0-150 inclusive
  41. ; are reserved for use in future Berkeley releases.
  42. ; Additional system calls implemented in vendor and other
  43. ; redistributions should be placed in the reserved range at the end
  44. ; of the current calls.
  45. 0 INDIR { int sys_syscall(int number, ...); }
  46. 1 STD { void sys_exit(int rval); }
  47. 2 STD { int sys_fork(void); }
  48. 3 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
  49. 4 STD { ssize_t sys_write(int fd, const void *buf, \
  50. size_t nbyte); }
  51. 5 STD { int sys_open(const char *path, \
  52. int flags, ... mode_t mode); }
  53. 6 STD { int sys_close(int fd); }
  54. 7 STD NOLOCK { int sys_getentropy(void *buf, size_t nbyte); }
  55. 8 STD { int sys___tfork(const struct __tfork *param, \
  56. size_t psize); }
  57. 9 STD { int sys_link(const char *path, const char *link); }
  58. 10 STD { int sys_unlink(const char *path); }
  59. 11 STD { pid_t sys_wait4(pid_t pid, int *status, \
  60. int options, struct rusage *rusage); }
  61. 12 STD { int sys_chdir(const char *path); }
  62. 13 STD { int sys_fchdir(int fd); }
  63. 14 STD { int sys_mknod(const char *path, mode_t mode, \
  64. dev_t dev); }
  65. 15 STD { int sys_chmod(const char *path, mode_t mode); }
  66. 16 STD { int sys_chown(const char *path, uid_t uid, \
  67. gid_t gid); }
  68. 17 STD { int sys_obreak(char *nsize); } break
  69. 18 STD NOLOCK { int sys_getdtablecount(void); }
  70. 19 STD { int sys_getrusage(int who, \
  71. struct rusage *rusage); }
  72. 20 STD NOLOCK { pid_t sys_getpid(void); }
  73. 21 STD { int sys_mount(const char *type, const char *path, \
  74. int flags, void *data); }
  75. 22 STD { int sys_unmount(const char *path, int flags); }
  76. 23 STD { int sys_setuid(uid_t uid); }
  77. 24 STD NOLOCK { uid_t sys_getuid(void); }
  78. 25 STD NOLOCK { uid_t sys_geteuid(void); }
  79. #ifdef PTRACE
  80. 26 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
  81. int data); }
  82. #else
  83. 26 UNIMPL ptrace
  84. #endif
  85. 27 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
  86. int flags); }
  87. 28 STD { ssize_t sys_sendmsg(int s, \
  88. const struct msghdr *msg, int flags); }
  89. 29 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
  90. int flags, struct sockaddr *from, \
  91. socklen_t *fromlenaddr); }
  92. 30 STD { int sys_accept(int s, struct sockaddr *name, \
  93. socklen_t *anamelen); }
  94. 31 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \
  95. socklen_t *alen); }
  96. 32 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \
  97. socklen_t *alen); }
  98. 33 STD { int sys_access(const char *path, int amode); }
  99. 34 STD { int sys_chflags(const char *path, u_int flags); }
  100. 35 STD { int sys_fchflags(int fd, u_int flags); }
  101. 36 STD { void sys_sync(void); }
  102. 37 STD { int sys_kill(int pid, int signum); }
  103. 38 STD { int sys_stat(const char *path, struct stat *ub); }
  104. 39 STD { pid_t sys_getppid(void); }
  105. 40 STD { int sys_lstat(const char *path, struct stat *ub); }
  106. 41 STD { int sys_dup(int fd); }
  107. 42 STD { int sys_fstatat(int fd, const char *path, \
  108. struct stat *buf, int flag); }
  109. 43 STD NOLOCK { gid_t sys_getegid(void); }
  110. 44 STD { int sys_profil(caddr_t samples, size_t size, \
  111. u_long offset, u_int scale); }
  112. #ifdef KTRACE
  113. 45 STD { int sys_ktrace(const char *fname, int ops, \
  114. int facs, pid_t pid); }
  115. #else
  116. 45 UNIMPL ktrace
  117. #endif
  118. 46 STD { int sys_sigaction(int signum, \
  119. const struct sigaction *nsa, \
  120. struct sigaction *osa); }
  121. 47 STD NOLOCK { gid_t sys_getgid(void); }
  122. 48 STD NOLOCK { int sys_sigprocmask(int how, sigset_t mask); }
  123. 49 STD { int sys_getlogin(char *namebuf, u_int namelen); }
  124. 50 STD { int sys_setlogin(const char *namebuf); }
  125. #ifdef ACCOUNTING
  126. 51 STD { int sys_acct(const char *path); }
  127. #else
  128. 51 UNIMPL acct
  129. #endif
  130. 52 STD { int sys_sigpending(void); }
  131. 53 STD { int sys_fstat(int fd, struct stat *sb); }
  132. 54 STD { int sys_ioctl(int fd, \
  133. u_long com, ... void *data); }
  134. 55 STD { int sys_reboot(int opt); }
  135. 56 STD { int sys_revoke(const char *path); }
  136. 57 STD { int sys_symlink(const char *path, \
  137. const char *link); }
  138. 58 STD { ssize_t sys_readlink(const char *path, \
  139. char *buf, size_t count); }
  140. 59 STD { int sys_execve(const char *path, \
  141. char * const *argp, char * const *envp); }
  142. 60 STD { mode_t sys_umask(mode_t newmask); }
  143. 61 STD { int sys_chroot(const char *path); }
  144. 62 STD { int sys_getfsstat(struct statfs *buf, size_t bufsize, \
  145. int flags); }
  146. 63 STD { int sys_statfs(const char *path, \
  147. struct statfs *buf); }
  148. 64 STD { int sys_fstatfs(int fd, struct statfs *buf); }
  149. 65 STD { int sys_fhstatfs(const fhandle_t *fhp, \
  150. struct statfs *buf); }
  151. 66 STD { int sys_vfork(void); }
  152. 67 STD NOLOCK { int sys_gettimeofday(struct timeval *tp, \
  153. struct timezone *tzp); }
  154. 68 STD { int sys_settimeofday(const struct timeval *tv, \
  155. const struct timezone *tzp); }
  156. 69 STD { int sys_setitimer(int which, \
  157. const struct itimerval *itv, \
  158. struct itimerval *oitv); }
  159. 70 STD { int sys_getitimer(int which, \
  160. struct itimerval *itv); }
  161. 71 STD { int sys_select(int nd, fd_set *in, fd_set *ou, \
  162. fd_set *ex, struct timeval *tv); }
  163. 72 STD { int sys_kevent(int fd, \
  164. const struct kevent *changelist, int nchanges, \
  165. struct kevent *eventlist, int nevents, \
  166. const struct timespec *timeout); }
  167. 73 STD { int sys_munmap(void *addr, size_t len); }
  168. 74 STD { int sys_mprotect(void *addr, size_t len, \
  169. int prot); }
  170. 75 STD { int sys_madvise(void *addr, size_t len, \
  171. int behav); }
  172. 76 STD { int sys_utimes(const char *path, \
  173. const struct timeval *tptr); }
  174. 77 STD { int sys_futimes(int fd, \
  175. const struct timeval *tptr); }
  176. 78 STD { int sys_mincore(void *addr, size_t len, \
  177. char *vec); }
  178. 79 STD NOLOCK { int sys_getgroups(int gidsetsize, \
  179. gid_t *gidset); }
  180. 80 STD { int sys_setgroups(int gidsetsize, \
  181. const gid_t *gidset); }
  182. 81 STD { int sys_getpgrp(void); }
  183. 82 STD { int sys_setpgid(pid_t pid, pid_t pgid); }
  184. 83 STD { int sys_sendsyslog(const void *buf, size_t nbyte); }
  185. 84 STD { int sys_utimensat(int fd, const char *path, \
  186. const struct timespec *times, int flag); }
  187. 85 STD { int sys_futimens(int fd, \
  188. const struct timespec *times); }
  189. 86 STD { int sys_kbind(const struct __kbind *param, \
  190. size_t psize, int64_t proc_cookie); }
  191. 87 STD NOLOCK { int sys_clock_gettime(clockid_t clock_id, \
  192. struct timespec *tp); }
  193. 88 STD { int sys_clock_settime(clockid_t clock_id, \
  194. const struct timespec *tp); }
  195. 89 STD NOLOCK { int sys_clock_getres(clockid_t clock_id, \
  196. struct timespec *tp); }
  197. 90 STD { int sys_dup2(int from, int to); }
  198. 91 STD { int sys_nanosleep(const struct timespec *rqtp, \
  199. struct timespec *rmtp); }
  200. 92 STD { int sys_fcntl(int fd, int cmd, ... void *arg); }
  201. 93 STD { int sys_accept4(int s, struct sockaddr *name, \
  202. socklen_t *anamelen, int flags); }
  203. 94 STD { int sys___thrsleep(const volatile void *ident, \
  204. clockid_t clock_id, const struct timespec *tp, \
  205. void *lock, const int *abort); }
  206. 95 STD { int sys_fsync(int fd); }
  207. 96 STD { int sys_setpriority(int which, id_t who, int prio); }
  208. 97 STD { int sys_socket(int domain, int type, int protocol); }
  209. 98 STD { int sys_connect(int s, const struct sockaddr *name, \
  210. socklen_t namelen); }
  211. 99 STD { int sys_getdents(int fd, void *buf, size_t buflen); }
  212. 100 STD { int sys_getpriority(int which, id_t who); }
  213. 101 STD { int sys_pipe2(int *fdp, int flags); }
  214. 102 STD { int sys_dup3(int from, int to, int flags); }
  215. 103 STD { int sys_sigreturn(struct sigcontext *sigcntxp); }
  216. 104 STD { int sys_bind(int s, const struct sockaddr *name, \
  217. socklen_t namelen); }
  218. 105 STD { int sys_setsockopt(int s, int level, int name, \
  219. const void *val, socklen_t valsize); }
  220. 106 STD { int sys_listen(int s, int backlog); }
  221. 107 STD { int sys_chflagsat(int fd, const char *path, \
  222. u_int flags, int atflags); }
  223. 108 STD { int sys_tame(int flags); }
  224. 109 STD { int sys_ppoll(struct pollfd *fds, \
  225. u_int nfds, const struct timespec *ts, \
  226. const sigset_t *mask); }
  227. 110 STD { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
  228. fd_set *ex, const struct timespec *ts, \
  229. const sigset_t *mask); }
  230. 111 STD { int sys_sigsuspend(int mask); }
  231. 112 OBSOL osigstack
  232. 113 OBSOL orecvmsg
  233. 114 OBSOL osendmsg
  234. 115 OBSOL vtrace
  235. 116 OBSOL t32_gettimeofday
  236. 117 OBSOL t32_getrusage
  237. 118 STD { int sys_getsockopt(int s, int level, int name, \
  238. void *val, socklen_t *avalsize); }
  239. 119 OBSOL resuba
  240. 120 STD { ssize_t sys_readv(int fd, \
  241. const struct iovec *iovp, int iovcnt); }
  242. 121 STD { ssize_t sys_writev(int fd, \
  243. const struct iovec *iovp, int iovcnt); }
  244. 122 OBSOL t32_settimeofday
  245. 123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); }
  246. 124 STD { int sys_fchmod(int fd, mode_t mode); }
  247. 125 OBSOL orecvfrom
  248. 126 STD { int sys_setreuid(uid_t ruid, uid_t euid); }
  249. 127 STD { int sys_setregid(gid_t rgid, gid_t egid); }
  250. 128 STD { int sys_rename(const char *from, const char *to); }
  251. 129 OBSOL otruncate
  252. 130 OBSOL oftruncate
  253. 131 STD { int sys_flock(int fd, int how); }
  254. 132 STD { int sys_mkfifo(const char *path, mode_t mode); }
  255. 133 STD { ssize_t sys_sendto(int s, const void *buf, \
  256. size_t len, int flags, const struct sockaddr *to, \
  257. socklen_t tolen); }
  258. 134 STD { int sys_shutdown(int s, int how); }
  259. 135 STD { int sys_socketpair(int domain, int type, \
  260. int protocol, int *rsv); }
  261. 136 STD { int sys_mkdir(const char *path, mode_t mode); }
  262. 137 STD { int sys_rmdir(const char *path); }
  263. 138 OBSOL t32_utimes
  264. 139 OBSOL 4.2 sigreturn
  265. 140 STD { int sys_adjtime(const struct timeval *delta, \
  266. struct timeval *olddelta); }
  267. 141 OBSOL ogetpeername
  268. 142 OBSOL ogethostid
  269. 143 OBSOL osethostid
  270. 144 OBSOL ogetrlimit
  271. 145 OBSOL osetrlimit
  272. 146 OBSOL okillpg
  273. 147 STD { int sys_setsid(void); }
  274. 148 STD { int sys_quotactl(const char *path, int cmd, \
  275. int uid, char *arg); }
  276. 149 OBSOL oquota
  277. 150 OBSOL ogetsockname
  278. ; Syscalls 151-180 inclusive are reserved for vendor-specific
  279. ; system calls. (This includes various calls added for compatibility
  280. ; with other Unix variants.)
  281. ; Some of these calls are now supported by BSD...
  282. 151 UNIMPL
  283. 152 UNIMPL
  284. 153 UNIMPL
  285. 154 UNIMPL
  286. #if defined(NFSCLIENT) || defined(NFSSERVER)
  287. 155 STD { int sys_nfssvc(int flag, void *argp); }
  288. #else
  289. 155 UNIMPL
  290. #endif
  291. 156 OBSOL ogetdirentries
  292. 157 OBSOL statfs25
  293. 158 OBSOL fstatfs25
  294. 159 UNIMPL
  295. 160 UNIMPL
  296. 161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); }
  297. 162 OBSOL ogetdomainname
  298. 163 OBSOL osetdomainname
  299. 164 UNIMPL ouname
  300. 165 STD { int sys_sysarch(int op, void *parms); }
  301. 166 UNIMPL
  302. 167 UNIMPL
  303. 168 UNIMPL
  304. 169 OBSOL semsys10
  305. 170 OBSOL msgsys10
  306. 171 OBSOL shmsys10
  307. 172 UNIMPL
  308. 173 STD { ssize_t sys_pread(int fd, void *buf, \
  309. size_t nbyte, int pad, off_t offset); }
  310. 174 STD { ssize_t sys_pwrite(int fd, const void *buf, \
  311. size_t nbyte, int pad, off_t offset); }
  312. 175 UNIMPL ntp_gettime
  313. 176 UNIMPL ntp_adjtime
  314. 177 UNIMPL
  315. 178 UNIMPL
  316. 179 UNIMPL
  317. 180 UNIMPL
  318. ; Syscalls 181-199 are used by/reserved for BSD
  319. 181 STD { int sys_setgid(gid_t gid); }
  320. 182 STD { int sys_setegid(gid_t egid); }
  321. 183 STD { int sys_seteuid(uid_t euid); }
  322. 184 OBSOL lfs_bmapv
  323. 185 OBSOL lfs_markv
  324. 186 OBSOL lfs_segclean
  325. 187 OBSOL lfs_segwait
  326. 188 OBSOL stat35
  327. 189 OBSOL fstat35
  328. 190 OBSOL lstat35
  329. 191 STD { long sys_pathconf(const char *path, int name); }
  330. 192 STD { long sys_fpathconf(int fd, int name); }
  331. 193 STD { int sys_swapctl(int cmd, const void *arg, int misc); }
  332. 194 STD { int sys_getrlimit(int which, \
  333. struct rlimit *rlp); }
  334. 195 STD { int sys_setrlimit(int which, \
  335. const struct rlimit *rlp); }
  336. 196 OBSOL ogetdirentries48
  337. 197 STD { void *sys_mmap(void *addr, size_t len, int prot, \
  338. int flags, int fd, long pad, off_t pos); }
  339. 198 INDIR { quad_t sys___syscall(quad_t num, ...); }
  340. 199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \
  341. int whence); }
  342. 200 STD { int sys_truncate(const char *path, int pad, \
  343. off_t length); }
  344. 201 STD { int sys_ftruncate(int fd, int pad, off_t length); }
  345. 202 STD { int sys___sysctl(const int *name, u_int namelen, \
  346. void *old, size_t *oldlenp, void *new, \
  347. size_t newlen); }
  348. 203 STD { int sys_mlock(const void *addr, size_t len); }
  349. 204 STD { int sys_munlock(const void *addr, size_t len); }
  350. 205 UNIMPL sys_undelete
  351. 206 OBSOL t32_futimes
  352. 207 STD { pid_t sys_getpgid(pid_t pid); }
  353. 208 OBSOL nnpfspioctl
  354. 209 STD { int sys_utrace(const char *label, const void *addr, \
  355. size_t len); }
  356. ;
  357. ; Syscalls 210-219 were reserved for dynamically loaded syscalls
  358. ;
  359. 210 UNIMPL
  360. 211 UNIMPL
  361. 212 UNIMPL
  362. 213 UNIMPL
  363. 214 UNIMPL
  364. 215 UNIMPL
  365. 216 UNIMPL
  366. 217 UNIMPL
  367. 218 UNIMPL
  368. 219 UNIMPL
  369. ; System calls 220-240 are reserved for use by OpenBSD
  370. #ifdef SYSVSEM
  371. 220 UNIMPL
  372. 221 STD { int sys_semget(key_t key, int nsems, int semflg); }
  373. #else
  374. 220 UNIMPL semctl
  375. 221 UNIMPL semget
  376. #endif
  377. 222 OBSOL semop35
  378. 223 OBSOL semconfig35
  379. #ifdef SYSVMSG
  380. 224 UNIMPL
  381. 225 STD { int sys_msgget(key_t key, int msgflg); }
  382. 226 STD { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \
  383. int msgflg); }
  384. 227 STD { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
  385. long msgtyp, int msgflg); }
  386. #else
  387. 224 UNIMPL msgctl
  388. 225 UNIMPL msgget
  389. 226 UNIMPL msgsnd
  390. 227 UNIMPL msgrcv
  391. #endif
  392. #ifdef SYSVSHM
  393. 228 STD { void *sys_shmat(int shmid, const void *shmaddr, \
  394. int shmflg); }
  395. 229 UNIMPL
  396. 230 STD { int sys_shmdt(const void *shmaddr); }
  397. #else
  398. 228 UNIMPL shmat
  399. 229 UNIMPL shmctl
  400. 230 UNIMPL shmdt
  401. #endif
  402. 231 OBSOL shmget35
  403. 232 OBSOL t32_clock_gettime
  404. 233 OBSOL t32_clock_settime
  405. 234 OBSOL t32_clock_getres
  406. 235 UNIMPL timer_create
  407. 236 UNIMPL timer_delete
  408. 237 UNIMPL timer_settime
  409. 238 UNIMPL timer_gettime
  410. 239 UNIMPL timer_getoverrun
  411. ;
  412. ; System calls 240-249 are reserved for other IEEE Std1003.1b syscalls
  413. ;
  414. 240 OBSOL t32_nanosleep
  415. 241 UNIMPL
  416. 242 UNIMPL
  417. 243 UNIMPL
  418. 244 UNIMPL
  419. 245 UNIMPL
  420. 246 UNIMPL
  421. 247 UNIMPL
  422. 248 UNIMPL
  423. 249 UNIMPL
  424. 250 STD { int sys_minherit(void *addr, size_t len, \
  425. int inherit); }
  426. 251 OBSOL rfork
  427. 252 STD { int sys_poll(struct pollfd *fds, \
  428. u_int nfds, int timeout); }
  429. 253 STD NOLOCK { int sys_issetugid(void); }
  430. 254 STD { int sys_lchown(const char *path, uid_t uid, gid_t gid); }
  431. 255 STD { pid_t sys_getsid(pid_t pid); }
  432. 256 STD { int sys_msync(void *addr, size_t len, int flags); }
  433. 257 OBSOL semctl35
  434. 258 OBSOL shmctl35
  435. 259 OBSOL msgctl35
  436. 260 UNIMPL
  437. 261 UNIMPL
  438. 262 UNIMPL
  439. 263 STD { int sys_pipe(int *fdp); }
  440. 264 STD { int sys_fhopen(const fhandle_t *fhp, int flags); }
  441. 265 UNIMPL
  442. 266 UNIMPL
  443. 267 STD { ssize_t sys_preadv(int fd, \
  444. const struct iovec *iovp, int iovcnt, \
  445. int pad, off_t offset); }
  446. 268 STD { ssize_t sys_pwritev(int fd, \
  447. const struct iovec *iovp, int iovcnt, \
  448. int pad, off_t offset); }
  449. 269 STD { int sys_kqueue(void); }
  450. 270 OBSOL t32_kevent
  451. 271 STD { int sys_mlockall(int flags); }
  452. 272 STD { int sys_munlockall(void); }
  453. 273 UNIMPL sys_getpeereid
  454. 274 UNIMPL sys_extattrctl
  455. 275 UNIMPL sys_extattr_set_file
  456. 276 UNIMPL sys_extattr_get_file
  457. 277 UNIMPL sys_extattr_delete_file
  458. 278 UNIMPL sys_extattr_set_fd
  459. 279 UNIMPL sys_extattr_get_fd
  460. 280 UNIMPL sys_extattr_delete_fd
  461. 281 STD NOLOCK { int sys_getresuid(uid_t *ruid, uid_t *euid, \
  462. uid_t *suid); }
  463. 282 STD { int sys_setresuid(uid_t ruid, uid_t euid, \
  464. uid_t suid); }
  465. 283 STD NOLOCK { int sys_getresgid(gid_t *rgid, gid_t *egid, \
  466. gid_t *sgid); }
  467. 284 STD { int sys_setresgid(gid_t rgid, gid_t egid, \
  468. gid_t sgid); }
  469. 285 OBSOL sys_omquery
  470. 286 STD { void *sys_mquery(void *addr, size_t len, int prot, \
  471. int flags, int fd, long pad, off_t pos); }
  472. 287 STD { int sys_closefrom(int fd); }
  473. 288 STD { int sys_sigaltstack(const struct sigaltstack *nss, \
  474. struct sigaltstack *oss); }
  475. #ifdef SYSVSHM
  476. 289 STD { int sys_shmget(key_t key, size_t size, int shmflg); }
  477. #else
  478. 289 UNIMPL shmget
  479. #endif
  480. #ifdef SYSVSEM
  481. 290 STD { int sys_semop(int semid, struct sembuf *sops, \
  482. size_t nsops); }
  483. #else
  484. 290 UNIMPL semop
  485. #endif
  486. 291 OBSOL t32_stat
  487. 292 OBSOL t32_fstat
  488. 293 OBSOL t32_lstat
  489. 294 STD { int sys_fhstat(const fhandle_t *fhp, \
  490. struct stat *sb); }
  491. #ifdef SYSVSEM
  492. 295 STD { int sys___semctl(int semid, int semnum, int cmd, \
  493. union semun *arg); }
  494. #else
  495. 295 UNIMPL
  496. #endif
  497. #ifdef SYSVSHM
  498. 296 STD { int sys_shmctl(int shmid, int cmd, \
  499. struct shmid_ds *buf); }
  500. #else
  501. 296 UNIMPL
  502. #endif
  503. #ifdef SYSVMSG
  504. 297 STD { int sys_msgctl(int msqid, int cmd, \
  505. struct msqid_ds *buf); }
  506. #else
  507. 297 UNIMPL
  508. #endif
  509. 298 STD NOLOCK { int sys_sched_yield(void); }
  510. 299 STD NOLOCK { pid_t sys_getthrid(void); }
  511. 300 OBSOL t32___thrsleep
  512. 301 STD { int sys___thrwakeup(const volatile void *ident, \
  513. int n); }
  514. 302 STD { void sys___threxit(pid_t *notdead); }
  515. 303 STD { int sys___thrsigdivert(sigset_t sigmask, \
  516. siginfo_t *info, const struct timespec *timeout); }
  517. 304 STD { int sys___getcwd(char *buf, size_t len); }
  518. 305 STD { int sys_adjfreq(const int64_t *freq, \
  519. int64_t *oldfreq); }
  520. 306 OBSOL getfsstat53
  521. 307 OBSOL statfs53
  522. 308 OBSOL fstatfs53
  523. 309 OBSOL fhstatfs53
  524. 310 STD { int sys_setrtable(int rtableid); }
  525. 311 STD NOLOCK { int sys_getrtable(void); }
  526. 312 OBSOL t32_getdirentries
  527. 313 STD { int sys_faccessat(int fd, const char *path, \
  528. int amode, int flag); }
  529. 314 STD { int sys_fchmodat(int fd, const char *path, \
  530. mode_t mode, int flag); }
  531. 315 STD { int sys_fchownat(int fd, const char *path, \
  532. uid_t uid, gid_t gid, int flag); }
  533. 316 OBSOL t32_fstatat
  534. 317 STD { int sys_linkat(int fd1, const char *path1, int fd2, \
  535. const char *path2, int flag); }
  536. 318 STD { int sys_mkdirat(int fd, const char *path, \
  537. mode_t mode); }
  538. 319 STD { int sys_mkfifoat(int fd, const char *path, \
  539. mode_t mode); }
  540. 320 STD { int sys_mknodat(int fd, const char *path, \
  541. mode_t mode, dev_t dev); }
  542. 321 STD { int sys_openat(int fd, const char *path, int flags, \
  543. ... mode_t mode); }
  544. 322 STD { ssize_t sys_readlinkat(int fd, const char *path, \
  545. char *buf, size_t count); }
  546. 323 STD { int sys_renameat(int fromfd, const char *from, \
  547. int tofd, const char *to); }
  548. 324 STD { int sys_symlinkat(const char *path, int fd, \
  549. const char *link); }
  550. 325 STD { int sys_unlinkat(int fd, const char *path, \
  551. int flag); }
  552. 326 OBSOL t32_utimensat
  553. 327 OBSOL t32_futimens
  554. 328 OBSOL __tfork51
  555. 329 STD NOLOCK { void sys___set_tcb(void *tcb); }
  556. 330 STD NOLOCK { void *sys___get_tcb(void); }