xref: /openbsd/sys/kern/syscalls.master (revision 4cfece93)
1;	$OpenBSD: syscalls.master,v 1.207 2020/03/18 19:33:36 anton Exp $
2;	$NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
3
4;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
5
6; OpenBSD system call name/number "master" file.
7; (See syscalls.conf to see what it is processed into.)
8;
9; Fields: number type [type-dependent ...]
10;	number	system call number, must be in order
11;	type	one of the types described below, or one of the
12;		compatibility options defined in syscalls.conf
13;
14; types:
15;	INDIR	included, but don't define the syscall args structure,
16;		and allow it to be "really" varargs
17;	NOARGS	included, but don't define the syscall args structure
18;	NODEF	included, but don't define the syscall number
19;	NOLOCK	don't acquire the kernel lock when calling this syscall
20;	OBSOL	obsolete, not included in system
21;	STD	always included
22;	UNIMPL	unimplemented, not included in system
23;
24; The compat options are defined in the syscalls.conf file, and the
25; compat option name is prefixed to the syscall name.  Other than
26; that, they're like NODEF (for 'compat' options), or STD (for
27; 'libcompat' options).
28;
29; The type-dependent arguments are as follows:
30; For STD, NODEF, NOARGS, and compat syscalls:
31;	{ pseudo-proto } [alias]
32; For other syscalls:
33;	[comment]
34;
35; #ifdef's, etc. may be included, and are copied to the output files.
36; #include's are copied to the syscall switch definition file only.
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/signal.h>
41#include <sys/mount.h>
42#include <sys/syscallargs.h>
43#include <sys/poll.h>
44
45; Reserved/unimplemented system calls in the range 0-150 inclusive
46; are reserved for use in future Berkeley releases.
47; Additional system calls implemented in vendor and other
48; redistributions should be placed in the reserved range at the end
49; of the current calls.
50
510	INDIR		{ int sys_syscall(int number, ...); }
521	STD		{ void sys_exit(int rval); }
532	STD		{ int sys_fork(void); }
543	STD NOLOCK	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
554	STD NOLOCK	{ ssize_t sys_write(int fd, const void *buf, \
56			    size_t nbyte); }
575	STD		{ int sys_open(const char *path, \
58			    int flags, ... mode_t mode); }
596	STD NOLOCK	{ int sys_close(int fd); }
607	STD NOLOCK	{ int sys_getentropy(void *buf, size_t nbyte); }
618	STD		{ int sys___tfork(const struct __tfork *param, \
62			    size_t psize); }
639	STD		{ int sys_link(const char *path, const char *link); }
6410	STD		{ int sys_unlink(const char *path); }
6511	STD		{ pid_t sys_wait4(pid_t pid, int *status, \
66			    int options, struct rusage *rusage); }
6712	STD		{ int sys_chdir(const char *path); }
6813	STD		{ int sys_fchdir(int fd); }
6914	STD		{ int sys_mknod(const char *path, mode_t mode, \
70			    dev_t dev); }
7115	STD		{ int sys_chmod(const char *path, mode_t mode); }
7216	STD		{ int sys_chown(const char *path, uid_t uid, \
73			    gid_t gid); }
7417	STD		{ int sys_obreak(char *nsize); } break
7518	STD NOLOCK	{ int sys_getdtablecount(void); }
7619	STD		{ int sys_getrusage(int who, \
77			    struct rusage *rusage); }
7820	STD NOLOCK	{ pid_t sys_getpid(void); }
7921	STD		{ int sys_mount(const char *type, const char *path, \
80			    int flags, void *data); }
8122	STD		{ int sys_unmount(const char *path, int flags); }
8223	STD		{ int sys_setuid(uid_t uid); }
8324	STD NOLOCK	{ uid_t sys_getuid(void); }
8425	STD NOLOCK	{ uid_t sys_geteuid(void); }
85#ifdef PTRACE
8626	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
87			    int data); }
88#else
8926	UNIMPL		ptrace
90#endif
9127	STD NOLOCK	{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
92			    int flags); }
9328	STD NOLOCK	{ ssize_t sys_sendmsg(int s, \
94			    const struct msghdr *msg, int flags); }
9529	STD NOLOCK	{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
96			    int flags, struct sockaddr *from, \
97			    socklen_t *fromlenaddr); }
9830	STD		{ int sys_accept(int s, struct sockaddr *name, \
99			    socklen_t *anamelen); }
10031	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
101			    socklen_t *alen); }
10232	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
103			    socklen_t *alen); }
10433	STD		{ int sys_access(const char *path, int amode); }
10534	STD		{ int sys_chflags(const char *path, u_int flags); }
10635	STD		{ int sys_fchflags(int fd, u_int flags); }
10736	STD		{ void sys_sync(void); }
10837	STD		{ int sys_msyscall(void *addr, size_t len); }
10938	STD		{ int sys_stat(const char *path, struct stat *ub); }
11039	STD		{ pid_t sys_getppid(void); }
11140	STD		{ int sys_lstat(const char *path, struct stat *ub); }
11241	STD NOLOCK	{ int sys_dup(int fd); }
11342	STD		{ int sys_fstatat(int fd, const char *path, \
114			    struct stat *buf, int flag); }
11543	STD NOLOCK	{ gid_t sys_getegid(void); }
11644	STD		{ int sys_profil(caddr_t samples, size_t size, \
117			    u_long offset, u_int scale); }
118#ifdef KTRACE
11945	STD		{ int sys_ktrace(const char *fname, int ops, \
120			    int facs, pid_t pid); }
121#else
12245	UNIMPL		ktrace
123#endif
12446	STD		{ int sys_sigaction(int signum, \
125			    const struct sigaction *nsa, \
126			    struct sigaction *osa); }
12747	STD NOLOCK	{ gid_t sys_getgid(void); }
12848	STD NOLOCK	{ int sys_sigprocmask(int how, sigset_t mask); }
12949	OBSOL		ogetlogin
13050	STD		{ int sys_setlogin(const char *namebuf); }
131#ifdef ACCOUNTING
13251	STD		{ int sys_acct(const char *path); }
133#else
13451	UNIMPL		acct
135#endif
13652	STD		{ int sys_sigpending(void); }
13753	STD		{ int sys_fstat(int fd, struct stat *sb); }
13854	STD NOLOCK	{ int sys_ioctl(int fd, \
139			    u_long com, ... void *data); }
14055	STD		{ int sys_reboot(int opt); }
14156	STD		{ int sys_revoke(const char *path); }
14257	STD		{ int sys_symlink(const char *path, \
143			    const char *link); }
14458	STD		{ ssize_t sys_readlink(const char *path, \
145			    char *buf, size_t count); }
14659	STD		{ int sys_execve(const char *path, \
147			    char * const *argp, char * const *envp); }
14860	STD		{ mode_t sys_umask(mode_t newmask); }
14961	STD		{ int sys_chroot(const char *path); }
15062	STD		{ int sys_getfsstat(struct statfs *buf, size_t bufsize, \
151			    int flags); }
15263	STD		{ int sys_statfs(const char *path, \
153			    struct statfs *buf); }
15464	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
15565	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
156			    struct statfs *buf); }
15766	STD		{ int sys_vfork(void); }
15867	STD NOLOCK	{ int sys_gettimeofday(struct timeval *tp, \
159			    struct timezone *tzp); }
16068	STD NOLOCK	{ int sys_settimeofday(const struct timeval *tv, \
161			    const struct timezone *tzp); }
16269	STD		{ int sys_setitimer(int which, \
163			    const struct itimerval *itv, \
164			    struct itimerval *oitv); }
16570	STD		{ int sys_getitimer(int which, \
166			    struct itimerval *itv); }
16771	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
168			    fd_set *ex, struct timeval *tv); }
16972	STD		{ int sys_kevent(int fd, \
170			    const struct kevent *changelist, int nchanges, \
171			    struct kevent *eventlist, int nevents, \
172			    const struct timespec *timeout); }
17373	STD		{ int sys_munmap(void *addr, size_t len); }
17474	STD		{ int sys_mprotect(void *addr, size_t len, \
175			    int prot); }
17675	STD		{ int sys_madvise(void *addr, size_t len, \
177			    int behav); }
17876	STD		{ int sys_utimes(const char *path, \
179			    const struct timeval *tptr); }
18077	STD		{ int sys_futimes(int fd, \
181			    const struct timeval *tptr); }
18278	UNIMPL		mincore
18379	STD NOLOCK	{ int sys_getgroups(int gidsetsize, \
184			    gid_t *gidset); }
18580	STD		{ int sys_setgroups(int gidsetsize, \
186			    const gid_t *gidset); }
18781	STD		{ int sys_getpgrp(void); }
18882	STD		{ int sys_setpgid(pid_t pid, pid_t pgid); }
18983	STD NOLOCK	{ int sys_futex(uint32_t *f, int op, int val, \
190			    const struct timespec *timeout, uint32_t *g); }
19184	STD		{ int sys_utimensat(int fd, const char *path, \
192			    const struct timespec *times, int flag); }
19385	STD		{ int sys_futimens(int fd, \
194			    const struct timespec *times); }
19586	STD		{ int sys_kbind(const struct __kbind *param, \
196			    size_t psize, int64_t proc_cookie); }
19787	STD NOLOCK	{ int sys_clock_gettime(clockid_t clock_id, \
198			    struct timespec *tp); }
19988	STD NOLOCK	{ int sys_clock_settime(clockid_t clock_id, \
200			    const struct timespec *tp); }
20189	STD NOLOCK	{ int sys_clock_getres(clockid_t clock_id, \
202			    struct timespec *tp); }
20390	STD NOLOCK	{ int sys_dup2(int from, int to); }
20491	STD NOLOCK	{ int sys_nanosleep(const struct timespec *rqtp, \
205			    struct timespec *rmtp); }
20692	STD NOLOCK	{ int sys_fcntl(int fd, int cmd, ... void *arg); }
20793	STD		{ int sys_accept4(int s, struct sockaddr *name, \
208			    socklen_t *anamelen, int flags); }
20994	STD NOLOCK	{ int sys___thrsleep(const volatile void *ident, \
210			    clockid_t clock_id, const struct timespec *tp, \
211			    void *lock, const int *abort); }
21295	STD		{ int sys_fsync(int fd); }
21396	STD		{ int sys_setpriority(int which, id_t who, int prio); }
21497	STD NOLOCK	{ int sys_socket(int domain, int type, int protocol); }
21598	STD		{ int sys_connect(int s, const struct sockaddr *name, \
216			    socklen_t namelen); }
21799	STD		{ int sys_getdents(int fd, void *buf, size_t buflen); }
218100	STD		{ int sys_getpriority(int which, id_t who); }
219101	STD NOLOCK	{ int sys_pipe2(int *fdp, int flags); }
220102	STD NOLOCK	{ int sys_dup3(int from, int to, int flags); }
221103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
222104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
223			    socklen_t namelen); }
224105	STD		{ int sys_setsockopt(int s, int level, int name, \
225			    const void *val, socklen_t valsize); }
226106	STD		{ int sys_listen(int s, int backlog); }
227107	STD		{ int sys_chflagsat(int fd, const char *path, \
228			    u_int flags, int atflags); }
229108	STD 		{ int sys_pledge(const char *promises, \
230			    const char *execpromises); }
231109	STD		{ int sys_ppoll(struct pollfd *fds, \
232			    u_int nfds, const struct timespec *ts, \
233			    const sigset_t *mask); }
234110	STD		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
235			    fd_set *ex, const struct timespec *ts, \
236			    const sigset_t *mask); }
237111	STD		{ int sys_sigsuspend(int mask); }
238112	STD		{ int sys_sendsyslog(const char *buf, size_t nbyte, \
239			    int flags); }
240113	UNIMPL		fktrace
241114	STD 		{ int sys_unveil(const char *path, \
242			    const char *permissions); }
243115	STD		{ int sys___realpath(const char *pathname, \
244			    char *resolved); }
245116	OBSOL		t32_gettimeofday
246117	OBSOL		t32_getrusage
247118	STD		{ int sys_getsockopt(int s, int level, int name, \
248			    void *val, socklen_t *avalsize); }
249119	STD		{ int sys_thrkill(pid_t tid, int signum, void *tcb); }
250120	STD NOLOCK	{ ssize_t sys_readv(int fd, \
251			    const struct iovec *iovp, int iovcnt); }
252121	STD NOLOCK	{ ssize_t sys_writev(int fd, \
253			    const struct iovec *iovp, int iovcnt); }
254122	STD		{ int sys_kill(int pid, int signum); }
255123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
256124	STD		{ int sys_fchmod(int fd, mode_t mode); }
257125	OBSOL		orecvfrom
258126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
259127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
260128	STD		{ int sys_rename(const char *from, const char *to); }
261129	OBSOL		otruncate
262130	OBSOL		oftruncate
263131	STD NOLOCK	{ int sys_flock(int fd, int how); }
264132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
265133	STD NOLOCK	{ ssize_t sys_sendto(int s, const void *buf, \
266			    size_t len, int flags, const struct sockaddr *to, \
267			    socklen_t tolen); }
268134	STD		{ int sys_shutdown(int s, int how); }
269135	STD NOLOCK	{ int sys_socketpair(int domain, int type, \
270			    int protocol, int *rsv); }
271136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
272137	STD		{ int sys_rmdir(const char *path); }
273138	OBSOL		t32_utimes
274139	OBSOL		4.2 sigreturn
275140	STD NOLOCK	{ int sys_adjtime(const struct timeval *delta, \
276			    struct timeval *olddelta); }
277141	STD		{ int sys_getlogin_r(char *namebuf, u_int namelen); }
278142	OBSOL		ogethostid
279143	OBSOL		osethostid
280144	OBSOL		ogetrlimit
281145	OBSOL		osetrlimit
282146	OBSOL		okillpg
283147	STD		{ int sys_setsid(void); }
284148	STD		{ int sys_quotactl(const char *path, int cmd, \
285			    int uid, char *arg); }
286149	OBSOL		oquota
287150	OBSOL		ogetsockname
288
289; Syscalls 151-180 inclusive are reserved for vendor-specific
290; system calls.  (This includes various calls added for compatibility
291; with other Unix variants.)
292; Some of these calls are now supported by BSD...
293151	UNIMPL
294152	UNIMPL
295153	UNIMPL
296154	UNIMPL
297#if defined(NFSCLIENT) || defined(NFSSERVER)
298155	STD		{ int sys_nfssvc(int flag, void *argp); }
299#else
300155	UNIMPL
301#endif
302156	OBSOL		ogetdirentries
303157	OBSOL		statfs25
304158	OBSOL		fstatfs25
305159	UNIMPL
306160	UNIMPL
307161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
308162	OBSOL		ogetdomainname
309163	OBSOL		osetdomainname
310164	STD		{ int sys___tmpfd(int flags); }
311165	STD		{ int sys_sysarch(int op, void *parms); }
312166	UNIMPL
313167	UNIMPL
314168	UNIMPL
315169	OBSOL		semsys10
316170	OBSOL		msgsys10
317171	OBSOL		shmsys10
318172	UNIMPL
319173	STD NOLOCK	{ ssize_t sys_pread(int fd, void *buf, \
320			  size_t nbyte, int pad, off_t offset); }
321174	STD NOLOCK	{ ssize_t sys_pwrite(int fd, const void *buf, \
322			  size_t nbyte, int pad, off_t offset); }
323175	UNIMPL		ntp_gettime
324176	UNIMPL		ntp_adjtime
325177	UNIMPL
326178	UNIMPL
327179	UNIMPL
328180	UNIMPL
329
330; Syscalls 181-199 are used by/reserved for BSD
331181	STD		{ int sys_setgid(gid_t gid); }
332182	STD		{ int sys_setegid(gid_t egid); }
333183	STD		{ int sys_seteuid(uid_t euid); }
334184	OBSOL		lfs_bmapv
335185	OBSOL		lfs_markv
336186	OBSOL		lfs_segclean
337187	OBSOL		lfs_segwait
338188	OBSOL		stat35
339189	OBSOL		fstat35
340190	OBSOL		lstat35
341191	STD		{ long sys_pathconf(const char *path, int name); }
342192	STD		{ long sys_fpathconf(int fd, int name); }
343193	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
344194	STD NOLOCK	{ int sys_getrlimit(int which, \
345			    struct rlimit *rlp); }
346195	STD NOLOCK	{ int sys_setrlimit(int which, \
347			    const struct rlimit *rlp); }
348196	OBSOL		ogetdirentries48
349197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
350			    int flags, int fd, long pad, off_t pos); }
351198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
352199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
353			    int whence); }
354200	STD		{ int sys_truncate(const char *path, int pad, \
355			    off_t length); }
356201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
357202	STD		{ int sys_sysctl(const int *name, u_int namelen, \
358			    void *old, size_t *oldlenp, void *new, \
359			    size_t newlen); }
360203	STD		{ int sys_mlock(const void *addr, size_t len); }
361204	STD		{ int sys_munlock(const void *addr, size_t len); }
362205	UNIMPL		sys_undelete
363206	OBSOL		t32_futimes
364207	STD		{ pid_t sys_getpgid(pid_t pid); }
365208	OBSOL		nnpfspioctl
366209	STD		{ int sys_utrace(const char *label, const void *addr, \
367			    size_t len); }
368;
369; Syscalls 210-219 were reserved for dynamically loaded syscalls
370;
371210	UNIMPL
372211	UNIMPL
373212	UNIMPL
374213	UNIMPL
375214	UNIMPL
376215	UNIMPL
377216	UNIMPL
378217	UNIMPL
379218	UNIMPL
380219	UNIMPL
381; System calls 220-240 are reserved for use by OpenBSD
382#ifdef SYSVSEM
383220	UNIMPL
384221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
385#else
386220	UNIMPL		semctl
387221	UNIMPL		semget
388#endif
389222	OBSOL		semop35
390223	OBSOL		semconfig35
391#ifdef SYSVMSG
392224	UNIMPL
393225	STD		{ int sys_msgget(key_t key, int msgflg); }
394226	STD		{ int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \
395			    int msgflg); }
396227	STD		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
397			    long msgtyp, int msgflg); }
398#else
399224	UNIMPL		msgctl
400225	UNIMPL		msgget
401226	UNIMPL		msgsnd
402227	UNIMPL		msgrcv
403#endif
404#ifdef SYSVSHM
405228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
406			    int shmflg); }
407229	UNIMPL
408230	STD		{ int sys_shmdt(const void *shmaddr); }
409#else
410228	UNIMPL		shmat
411229	UNIMPL		shmctl
412230	UNIMPL		shmdt
413#endif
414231	OBSOL		shmget35
415232	OBSOL		t32_clock_gettime
416233	OBSOL		t32_clock_settime
417234	OBSOL		t32_clock_getres
418235	UNIMPL		timer_create
419236	UNIMPL		timer_delete
420237	UNIMPL		timer_settime
421238	UNIMPL		timer_gettime
422239	UNIMPL		timer_getoverrun
423;
424; System calls 240-249 are reserved for other IEEE Std1003.1b syscalls
425;
426240	OBSOL		t32_nanosleep
427241	UNIMPL
428242	UNIMPL
429243	UNIMPL
430244	UNIMPL
431245	UNIMPL
432246	UNIMPL
433247	UNIMPL
434248	UNIMPL
435249	UNIMPL
436250	STD		{ int sys_minherit(void *addr, size_t len, \
437			    int inherit); }
438251	OBSOL		rfork
439252	STD		{ int sys_poll(struct pollfd *fds, \
440			    u_int nfds, int timeout); }
441253	STD NOLOCK	{ int sys_issetugid(void); }
442254	STD		{ int sys_lchown(const char *path, uid_t uid, gid_t gid); }
443255	STD		{ pid_t sys_getsid(pid_t pid); }
444256	STD		{ int sys_msync(void *addr, size_t len, int flags); }
445257	OBSOL		semctl35
446258	OBSOL		shmctl35
447259	OBSOL		msgctl35
448260	UNIMPL
449261	UNIMPL
450262	UNIMPL
451263	STD NOLOCK	{ int sys_pipe(int *fdp); }
452264	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
453265	UNIMPL
454266	UNIMPL
455267	STD NOLOCK	{ ssize_t sys_preadv(int fd, \
456			  const struct iovec *iovp, int iovcnt, \
457			  int pad, off_t offset); }
458268	STD NOLOCK	{ ssize_t sys_pwritev(int fd, \
459			  const struct iovec *iovp, int iovcnt, \
460			  int pad, off_t offset); }
461269	STD NOLOCK	{ int sys_kqueue(void); }
462270	OBSOL		t32_kevent
463271	STD		{ int sys_mlockall(int flags); }
464272	STD		{ int sys_munlockall(void); }
465273	UNIMPL		sys_getpeereid
466274	UNIMPL		sys_extattrctl
467275	UNIMPL		sys_extattr_set_file
468276	UNIMPL		sys_extattr_get_file
469277	UNIMPL		sys_extattr_delete_file
470278	UNIMPL		sys_extattr_set_fd
471279	UNIMPL		sys_extattr_get_fd
472280	UNIMPL		sys_extattr_delete_fd
473281	STD NOLOCK	{ int sys_getresuid(uid_t *ruid, uid_t *euid, \
474			    uid_t *suid); }
475282	STD		{ int sys_setresuid(uid_t ruid, uid_t euid, \
476			    uid_t suid); }
477283	STD NOLOCK	{ int sys_getresgid(gid_t *rgid, gid_t *egid, \
478			    gid_t *sgid); }
479284	STD		{ int sys_setresgid(gid_t rgid, gid_t egid, \
480			    gid_t sgid); }
481285	OBSOL		sys_omquery
482286	STD		{ void *sys_mquery(void *addr, size_t len, int prot, \
483			    int flags, int fd, long pad, off_t pos); }
484287	STD NOLOCK	{ int sys_closefrom(int fd); }
485288	STD		{ int sys_sigaltstack(const struct sigaltstack *nss, \
486			    struct sigaltstack *oss); }
487#ifdef SYSVSHM
488289	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
489#else
490289	UNIMPL		shmget
491#endif
492#ifdef SYSVSEM
493290	STD		{ int sys_semop(int semid, struct sembuf *sops, \
494			    size_t nsops); }
495#else
496290    UNIMPL		semop
497#endif
498291	OBSOL		t32_stat
499292	OBSOL		t32_fstat
500293	OBSOL		t32_lstat
501294	STD		{ int sys_fhstat(const fhandle_t *fhp, \
502			    struct stat *sb); }
503#ifdef SYSVSEM
504295	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
505			    union semun *arg); }
506#else
507295	UNIMPL
508#endif
509#ifdef SYSVSHM
510296	STD		{ int sys_shmctl(int shmid, int cmd, \
511			    struct shmid_ds *buf); }
512#else
513296	UNIMPL
514#endif
515#ifdef SYSVMSG
516297	STD		{ int sys_msgctl(int msqid, int cmd, \
517			    struct msqid_ds *buf); }
518#else
519297	UNIMPL
520#endif
521298	STD		{ int sys_sched_yield(void); }
522299	STD NOLOCK	{ pid_t sys_getthrid(void); }
523300	OBSOL		t32___thrsleep
524301	STD NOLOCK	{ int sys___thrwakeup(const volatile void *ident, \
525			    int n); }
526302	STD		{ void sys___threxit(pid_t *notdead); }
527303	STD		{ int sys___thrsigdivert(sigset_t sigmask, \
528			    siginfo_t *info, const struct timespec *timeout); }
529304	STD		{ int sys___getcwd(char *buf, size_t len); }
530305	STD NOLOCK	{ int sys_adjfreq(const int64_t *freq, \
531			    int64_t *oldfreq); }
532306	OBSOL		getfsstat53
533307	OBSOL		statfs53
534308	OBSOL		fstatfs53
535309	OBSOL		fhstatfs53
536310	STD		{ int sys_setrtable(int rtableid); }
537311	STD NOLOCK	{ int sys_getrtable(void); }
538312	OBSOL		t32_getdirentries
539313	STD		{ int sys_faccessat(int fd, const char *path, \
540			    int amode, int flag); }
541314	STD		{ int sys_fchmodat(int fd, const char *path, \
542			    mode_t mode, int flag); }
543315	STD		{ int sys_fchownat(int fd, const char *path, \
544			    uid_t uid, gid_t gid, int flag); }
545316	OBSOL		t32_fstatat
546317	STD		{ int sys_linkat(int fd1, const char *path1, int fd2, \
547			    const char *path2, int flag); }
548318	STD		{ int sys_mkdirat(int fd, const char *path, \
549			    mode_t mode); }
550319	STD		{ int sys_mkfifoat(int fd, const char *path, \
551			    mode_t mode); }
552320	STD		{ int sys_mknodat(int fd, const char *path, \
553			    mode_t mode, dev_t dev); }
554321	STD		{ int sys_openat(int fd, const char *path, int flags, \
555			    ... mode_t mode); }
556322	STD		{ ssize_t sys_readlinkat(int fd, const char *path, \
557			    char *buf, size_t count); }
558323	STD		{ int sys_renameat(int fromfd, const char *from, \
559			    int tofd, const char *to); }
560324	STD		{ int sys_symlinkat(const char *path, int fd, \
561			    const char *link); }
562325	STD		{ int sys_unlinkat(int fd, const char *path, \
563			    int flag); }
564326	OBSOL		t32_utimensat
565327	OBSOL		t32_futimens
566328	OBSOL		__tfork51
567329	STD NOLOCK	{ void sys___set_tcb(void *tcb); }
568330	STD NOLOCK	{ void *sys___get_tcb(void); }
569