syscalls.master revision 1.28
11.28Smycroft	$NetBSD: syscalls.master,v 1.28 1995/10/07 06:28:38 mycroft Exp $
21.28Smycroft
31.22Scgd;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
41.1Sglass
51.23Scgd; NetBSD system call name/number "master" file.
61.23Scgd; (See syscalls.conf to see what it is processed into.)
71.23Scgd;
81.23Scgd; Fields: number type [type-dependent ...]
91.1Sglass;	number	system call number, must be in order
101.23Scgd;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
111.24Smycroft;		the compatibility options defined in syscalls.conf.
121.23Scgd;
131.1Sglass; types:
141.1Sglass;	STD	always included
151.23Scgd;	OBSOL	obsolete, not included in system
161.24Smycroft;	UNIMPL	unimplemented, not included in system
171.23Scgd;	NODEF	included, but don't define the syscall number
181.23Scgd;	NOARGS	included, but don't define the syscall args structure
191.23Scgd;
201.23Scgd; The compat options are defined in the syscalls.conf file, and the
211.23Scgd; compat option name is prefixed to the syscall name.  Other than
221.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for
231.23Scgd; 'libcompat' options).
241.23Scgd;
251.23Scgd; The type-dependent arguments are as follows:
261.23Scgd; For STD, NODEF, NOARGS, and compat syscalls:
271.23Scgd;	{ pseudo-proto } [alias]
281.23Scgd; For other syscalls:
291.23Scgd;	[comment]
301.23Scgd;
311.23Scgd; #ifdef's, etc. may be included, and are copied to the output files.
321.23Scgd; #include's are copied to the syscall switch definition file only.
331.1Sglass
341.23Scgd#include <sys/param.h>
351.23Scgd#include <sys/systm.h>
361.23Scgd#include <sys/signal.h>
371.23Scgd#include <sys/mount.h>
381.23Scgd#include <sys/syscallargs.h>
391.1Sglass
401.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive
411.1Sglass; are reserved for use in future Berkeley releases.
421.1Sglass; Additional system calls implemented in vendor and other
431.1Sglass; redistributions should be placed in the reserved range at the end
441.1Sglass; of the current calls.
451.1Sglass
461.28Smycroft0	STD		{ int sys_nosys(void); } syscall
471.28Smycroft1	STD		{ int sys_exit(int rval); }
481.28Smycroft2	STD		{ int sys_fork(void); }
491.28Smycroft3	STD		{ int sys_read(int fd, char *buf, u_int nbyte); }
501.28Smycroft4	STD		{ int sys_write(int fd, char *buf, u_int nbyte); }
511.28Smycroft5	STD		{ int sys_open(char *path, int flags, int mode); }
521.28Smycroft6	STD		{ int sys_close(int fd); }
531.28Smycroft7	STD		{ int sys_wait4(int pid, int *status, int options, \
541.23Scgd			    struct rusage *rusage); }
551.28Smycroft8	COMPAT_43	{ int sys_creat(char *path, int mode); }
561.28Smycroft9	STD		{ int sys_link(char *path, char *link); }
571.28Smycroft10	STD		{ int sys_unlink(char *path); }
581.23Scgd11	OBSOL		execv
591.28Smycroft12	STD		{ int sys_chdir(char *path); }
601.28Smycroft13	STD		{ int sys_fchdir(int fd); }
611.28Smycroft14	STD		{ int sys_mknod(char *path, int mode, int dev); }
621.28Smycroft15	STD		{ int sys_chmod(char *path, int mode); }
631.28Smycroft16	STD		{ int sys_chown(char *path, int uid, int gid); }
641.28Smycroft17	STD		{ int sys_obreak(char *nsize); } break
651.28Smycroft18	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
661.23Scgd			    int flags); }
671.28Smycroft19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); }
681.28Smycroft20	STD		{ pid_t sys_getpid(void); }
691.28Smycroft21	STD		{ int sys_mount(char *type, char *path, int flags, \
701.23Scgd			    caddr_t data); }
711.28Smycroft22	STD		{ int sys_unmount(char *path, int flags); }
721.28Smycroft23	STD		{ int sys_setuid(uid_t uid); }
731.28Smycroft24	STD		{ uid_t sys_getuid(void); }
741.28Smycroft25	STD		{ uid_t sys_geteuid(void); }
751.28Smycroft26	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
761.23Scgd			    int data); }
771.28Smycroft27	STD		{ int sys_recvmsg(int s, struct msghdr *msg, \
781.28Smycroft			    int flags); }
791.28Smycroft28	STD		{ int sys_sendmsg(int s, caddr_t msg, int flags); }
801.28Smycroft29	STD		{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
811.23Scgd			    int flags, caddr_t from, int *fromlenaddr); }
821.28Smycroft30	STD		{ int sys_accept(int s, caddr_t name, int *anamelen); }
831.28Smycroft31	STD		{ int sys_getpeername(int fdes, caddr_t asa, \
841.28Smycroft			    int *alen); }
851.28Smycroft32	STD		{ int sys_getsockname(int fdes, caddr_t asa, \
861.28Smycroft			    int *alen); }
871.28Smycroft33	STD		{ int sys_access(char *path, int flags); }
881.28Smycroft34	STD		{ int sys_chflags(char *path, int flags); }
891.28Smycroft35	STD		{ int sys_fchflags(int fd, int flags); }
901.28Smycroft36	STD		{ int sys_sync(void); }
911.28Smycroft37	STD		{ int sys_kill(int pid, int signum); }
921.28Smycroft38	COMPAT_43	{ int sys_stat(char *path, struct ostat *ub); }
931.28Smycroft39	STD		{ pid_t sys_getppid(void); }
941.28Smycroft40	COMPAT_43	{ int sys_lstat(char *path, struct ostat *ub); }
951.28Smycroft41	STD		{ int sys_dup(u_int fd); }
961.28Smycroft42	STD		{ int sys_pipe(void); }
971.28Smycroft43	STD		{ gid_t sys_getegid(void); }
981.28Smycroft44	STD		{ int sys_profil(caddr_t samples, u_int size, \
991.23Scgd			    u_int offset, u_int scale); }
1001.1Sglass#ifdef KTRACE
1011.28Smycroft45	STD		{ int sys_ktrace(char *fname, int ops, int facs, \
1021.23Scgd			    int pid); }
1031.1Sglass#else
1041.23Scgd45	UNIMPL		ktrace
1051.1Sglass#endif
1061.28Smycroft46	STD		{ int sys_sigaction(int signum, struct sigaction *nsa, \
1071.23Scgd			    struct sigaction *osa); }
1081.28Smycroft47	STD		{ gid_t sys_getgid(void); }
1091.28Smycroft48	STD		{ int sys_sigprocmask(int how, sigset_t mask); }
1101.28Smycroft49	STD		{ int sys_getlogin(char *namebuf, u_int namelen); }
1111.28Smycroft50	STD		{ int sys_setlogin(char *namebuf); }
1121.28Smycroft51	STD		{ int sys_acct(char *path); }
1131.28Smycroft52	STD		{ int sys_sigpending(void); }
1141.28Smycroft53	STD		{ int sys_sigaltstack(struct sigaltstack *nss, \
1151.23Scgd			    struct sigaltstack *oss); }
1161.28Smycroft54	STD		{ int sys_ioctl(int fd, u_long com, caddr_t data); }
1171.28Smycroft55	STD		{ int sys_reboot(int opt); }
1181.28Smycroft56	STD		{ int sys_revoke(char *path); }
1191.28Smycroft57	STD		{ int sys_symlink(char *path, char *link); }
1201.28Smycroft58	STD		{ int sys_readlink(char *path, char *buf, int count); }
1211.28Smycroft59	STD		{ int sys_execve(char *path, char **argp, \
1221.28Smycroft			    char **envp); }
1231.28Smycroft60	STD		{ int sys_umask(int newmask); }
1241.28Smycroft61	STD		{ int sys_chroot(char *path); }
1251.28Smycroft62	COMPAT_43	{ int sys_fstat(int fd, struct ostat *sb); }
1261.28Smycroft63	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
1271.23Scgd			    int arg); }
1281.28Smycroft64	COMPAT_43	{ int sys_getpagesize(void); }
1291.28Smycroft65	STD		{ int sys_msync(caddr_t addr, size_t len); }
1301.28Smycroft66	STD		{ int sys_vfork(void); }
1311.23Scgd67	OBSOL		vread
1321.23Scgd68	OBSOL		vwrite
1331.28Smycroft69	STD		{ int sys_sbrk(int incr); }
1341.28Smycroft70	STD		{ int sys_sstk(int incr); }
1351.28Smycroft71	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
1361.23Scgd			    int flags, int fd, long pos); }
1371.28Smycroft72	STD		{ int sys_ovadvise(int anom); } vadvise
1381.28Smycroft73	STD		{ int sys_munmap(caddr_t addr, size_t len); }
1391.28Smycroft74	STD		{ int sys_mprotect(caddr_t addr, size_t len, \
1401.28Smycroft			    int prot); }
1411.28Smycroft75	STD		{ int sys_madvise(caddr_t addr, size_t len, \
1421.28Smycroft			    int behav); }
1431.23Scgd76	OBSOL		vhangup
1441.23Scgd77	OBSOL		vlimit
1451.28Smycroft78	STD		{ int sys_mincore(caddr_t addr, size_t len, \
1461.28Smycroft			    char *vec); }
1471.28Smycroft79	STD		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
1481.28Smycroft80	STD		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
1491.28Smycroft81	STD		{ int sys_getpgrp(void); }
1501.28Smycroft82	STD		{ int sys_setpgid(int pid, int pgid); }
1511.28Smycroft83	STD		{ int sys_setitimer(u_int which, \
1521.28Smycroft			    struct itimerval *itv, struct itimerval *oitv); }
1531.28Smycroft84	COMPAT_43	{ int sys_wait(void); }
1541.28Smycroft85	STD		{ int sys_swapon(char *name); }
1551.28Smycroft86	STD		{ int sys_getitimer(u_int which, \
1561.28Smycroft			    struct itimerval *itv); }
1571.28Smycroft87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); }
1581.28Smycroft88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); }
1591.28Smycroft89	COMPAT_43	{ int sys_getdtablesize(void); }
1601.28Smycroft90	STD		{ int sys_dup2(u_int from, u_int to); }
1611.23Scgd91	UNIMPL		getdopt
1621.28Smycroft92	STD		{ int sys_fcntl(int fd, int cmd, void *arg); }
1631.28Smycroft93	STD		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
1641.23Scgd			    fd_set *ex, struct timeval *tv); }
1651.23Scgd94	UNIMPL		setdopt
1661.28Smycroft95	STD		{ int sys_fsync(int fd); }
1671.28Smycroft96	STD		{ int sys_setpriority(int which, int who, int prio); }
1681.28Smycroft97	STD		{ int sys_socket(int domain, int type, int protocol); }
1691.28Smycroft98	STD		{ int sys_connect(int s, caddr_t name, int namelen); }
1701.28Smycroft99	COMPAT_43	{ int sys_accept(int s, caddr_t name, int *anamelen); }
1711.28Smycroft100	STD		{ int sys_getpriority(int which, int who); }
1721.28Smycroft101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
1731.28Smycroft			    int flags); }
1741.28Smycroft102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
1751.28Smycroft			    int flags); }
1761.28Smycroft103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
1771.28Smycroft104	STD		{ int sys_bind(int s, caddr_t name, int namelen); }
1781.28Smycroft105	STD		{ int sys_setsockopt(int s, int level, int name, \
1791.23Scgd			    caddr_t val, int valsize); }
1801.28Smycroft106	STD		{ int sys_listen(int s, int backlog); }
1811.23Scgd107	OBSOL		vtimes
1821.28Smycroft108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
1831.23Scgd			    struct sigvec *osv); }
1841.28Smycroft109	COMPAT_43	{ int sys_sigblock(int mask); }
1851.28Smycroft110	COMPAT_43	{ int sys_sigsetmask(int mask); }
1861.28Smycroft111	STD		{ int sys_sigsuspend(int mask); }
1871.28Smycroft112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
1881.23Scgd			    struct sigstack *oss); }
1891.28Smycroft113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
1901.28Smycroft			    int flags); }
1911.28Smycroft114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); }
1921.1Sglass#ifdef TRACE
1931.28Smycroft115	STD		{ int sys_vtrace(int request, int value); }
1941.1Sglass#else
1951.23Scgd115	OBSOL		vtrace
1961.1Sglass#endif
1971.28Smycroft116	STD		{ int sys_gettimeofday(struct timeval *tp, \
1981.23Scgd			    struct timezone *tzp); }
1991.28Smycroft117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
2001.28Smycroft118	STD		{ int sys_getsockopt(int s, int level, int name, \
2011.23Scgd			    caddr_t val, int *avalsize); }
2021.26Scgd119	OBSOL		resuba
2031.28Smycroft120	STD		{ int sys_readv(int fd, struct iovec *iovp, \
2041.28Smycroft			    u_int iovcnt); }
2051.28Smycroft121	STD		{ int sys_writev(int fd, struct iovec *iovp, \
2061.23Scgd			    u_int iovcnt); }
2071.28Smycroft122	STD		{ int sys_settimeofday(struct timeval *tv, \
2081.23Scgd			    struct timezone *tzp); }
2091.28Smycroft123	STD		{ int sys_fchown(int fd, int uid, int gid); }
2101.28Smycroft124	STD		{ int sys_fchmod(int fd, int mode); }
2111.28Smycroft125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
2121.23Scgd			    int flags, caddr_t from, int *fromlenaddr); }
2131.28Smycroft126	COMPAT_43	{ int sys_setreuid(int ruid, int euid); }
2141.28Smycroft127	COMPAT_43	{ int sys_setregid(int rgid, int egid); }
2151.28Smycroft128	STD		{ int sys_rename(char *from, char *to); }
2161.28Smycroft129	COMPAT_43	{ int sys_truncate(char *path, long length); }
2171.28Smycroft130	COMPAT_43	{ int sys_ftruncate(int fd, long length); }
2181.28Smycroft131	STD		{ int sys_flock(int fd, int how); }
2191.28Smycroft132	STD		{ int sys_mkfifo(char *path, int mode); }
2201.28Smycroft133	STD		{ int sys_sendto(int s, caddr_t buf, size_t len, \
2211.23Scgd			    int flags, caddr_t to, int tolen); }
2221.28Smycroft134	STD		{ int sys_shutdown(int s, int how); }
2231.28Smycroft135	STD		{ int sys_socketpair(int domain, int type, \
2241.28Smycroft			    int protocol, int *rsv); }
2251.28Smycroft136	STD		{ int sys_mkdir(char *path, int mode); }
2261.28Smycroft137	STD		{ int sys_rmdir(char *path); }
2271.28Smycroft138	STD		{ int sys_utimes(char *path, struct timeval *tptr); }
2281.23Scgd139	OBSOL		4.2 sigreturn
2291.28Smycroft140	STD		{ int sys_adjtime(struct timeval *delta, \
2301.23Scgd			    struct timeval *olddelta); }
2311.28Smycroft141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
2321.28Smycroft			    int *alen); }
2331.28Smycroft142	COMPAT_43	{ int32_t sys_gethostid(void); }
2341.28Smycroft143	COMPAT_43	{ int sys_sethostid(int32_t hostid); }
2351.28Smycroft144	COMPAT_43	{ int sys_getrlimit(u_int which, \
2361.28Smycroft			    struct ogetrlimit *rlp); }
2371.28Smycroft145	COMPAT_43	{ int sys_setrlimit(u_int which, \
2381.28Smycroft			    struct ogetrlimit *rlp); }
2391.28Smycroft146	COMPAT_43	{ int sys_killpg(int pgid, int signum); }
2401.28Smycroft147	STD		{ int sys_setsid(void); }
2411.28Smycroft148	STD		{ int sys_quotactl(char *path, int cmd, int uid, \
2421.23Scgd			    caddr_t arg); }
2431.28Smycroft149	COMPAT_43	{ int sys_quota(void); }
2441.28Smycroft150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
2451.28Smycroft			    int *alen); }
2461.1Sglass
2471.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific
2481.1Sglass; system calls.  (This includes various calls added for compatibity
2491.1Sglass; with other Unix variants.)
2501.1Sglass; Some of these calls are now supported by BSD...
2511.23Scgd151	UNIMPL
2521.23Scgd152	UNIMPL
2531.23Scgd153	UNIMPL
2541.23Scgd154	UNIMPL
2551.20Smycroft#if defined(NFSCLIENT) || defined(NFSSERVER)
2561.28Smycroft155	STD		{ int sys_nfssvc(int flag, caddr_t argp); }
2571.1Sglass#else
2581.23Scgd155	UNIMPL
2591.1Sglass#endif
2601.28Smycroft156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
2611.28Smycroft			    u_int count, long *basep); }
2621.28Smycroft157	STD		{ int sys_statfs(char *path, struct statfs *buf); }
2631.28Smycroft158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
2641.23Scgd159	UNIMPL
2651.23Scgd160	UNIMPL
2661.2Sglass#ifdef NFSCLIENT
2671.28Smycroft161	STD		{ int sys_getfh(char *fname, fhandle_t *fhp); }
2681.1Sglass#else
2691.23Scgd161	UNIMPL		getfh
2701.1Sglass#endif
2711.28Smycroft162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); }
2721.28Smycroft163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); }
2731.28Smycroft164	COMPAT_09	{ int sys_uname(struct outsname *name); }
2741.28Smycroft165	STD		{ int sys_sysarch(int op, char *parms); }
2751.23Scgd166	UNIMPL
2761.23Scgd167	UNIMPL
2771.23Scgd168	UNIMPL
2781.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
2791.23Scgd#if defined(SYSVSEM) && !defined(alpha)
2801.28Smycroft169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
2811.23Scgd			    int a5); }
2821.9Scgd#else
2831.23Scgd169	UNIMPL		1.0 semsys
2841.9Scgd#endif
2851.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
2861.23Scgd#if defined(SYSVMSG) && !defined(alpha)
2871.28Smycroft170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
2881.23Scgd			    int a5, int a6); }
2891.9Scgd#else
2901.23Scgd170	UNIMPL		1.0 msgsys
2911.9Scgd#endif
2921.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
2931.23Scgd#if defined(SYSVSHM) && !defined(alpha)
2941.28Smycroft171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); }
2951.1Sglass#else
2961.23Scgd171	UNIMPL		1.0 shmsys
2971.1Sglass#endif
2981.23Scgd172	UNIMPL
2991.23Scgd173	UNIMPL
3001.23Scgd174	UNIMPL
3011.23Scgd175	UNIMPL
3021.23Scgd176	UNIMPL
3031.23Scgd177	UNIMPL
3041.23Scgd178	UNIMPL
3051.23Scgd179	UNIMPL
3061.23Scgd180	UNIMPL
3071.1Sglass
3081.1Sglass; Syscalls 180-199 are used by/reserved for BSD
3091.28Smycroft181	STD		{ int sys_setgid(gid_t gid); }
3101.28Smycroft182	STD		{ int sys_setegid(gid_t egid); }
3111.28Smycroft183	STD		{ int sys_seteuid(uid_t euid); }
3121.17Scgd#ifdef LFS
3131.23Scgd184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
3141.23Scgd			    struct block_info *blkiov, int blkcnt); }
3151.23Scgd185	STD		{ int lfs_markv(fsid_t *fsidp, \
3161.23Scgd			    struct block_info *blkiov, int blkcnt); }
3171.23Scgd186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
3181.23Scgd187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
3191.23Scgd#else
3201.23Scgd184	UNIMPL
3211.23Scgd185	UNIMPL
3221.23Scgd186	UNIMPL
3231.23Scgd187	UNIMPL
3241.23Scgd#endif
3251.28Smycroft188	STD		{ int sys_stat(char *path, struct stat *ub); }
3261.28Smycroft189	STD		{ int sys_fstat(int fd, struct stat *sb); }
3271.28Smycroft190	STD		{ int sys_lstat(char *path, struct stat *ub); }
3281.28Smycroft191	STD		{ int sys_pathconf(char *path, int name); }
3291.28Smycroft192	STD		{ int sys_fpathconf(int fd, int name); }
3301.23Scgd193	UNIMPL
3311.28Smycroft194	STD		{ int sys_getrlimit(u_int which, struct rlimit *rlp); }
3321.28Smycroft195	STD		{ int sys_setrlimit(u_int which, struct rlimit *rlp); }
3331.28Smycroft196	STD		{ int sys_getdirentries(int fd, char *buf, \
3341.28Smycroft			    u_int count, long *basep); }
3351.28Smycroft197	STD		{ caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
3361.23Scgd			    int flags, int fd, long pad, off_t pos); }
3371.28Smycroft198	STD		{ int sys_nosys(void); } __syscall
3381.28Smycroft199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
3391.23Scgd			    int whence); }
3401.28Smycroft200	STD		{ int sys_truncate(char *path, int pad, off_t length); }
3411.28Smycroft201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
3421.28Smycroft202	STD		{ int sys___sysctl(int *name, u_int namelen, \
3431.28Smycroft			    void *old, size_t *oldlenp, void *new, \
3441.28Smycroft			    size_t newlen); }
3451.28Smycroft203	STD		{ int sys_mlock(caddr_t addr, size_t len); }
3461.28Smycroft204	STD		{ int sys_munlock(caddr_t addr, size_t len); }
3471.28Smycroft205	STD		{ int sys_undelete(char *path); }
3481.23Scgd206	UNIMPL
3491.23Scgd207	UNIMPL
3501.23Scgd208	UNIMPL
3511.23Scgd209	UNIMPL
3521.11Scgd;
3531.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls
3541.11Scgd;
3551.11Scgd#ifdef LKM
3561.28Smycroft210	NODEF		{ int sys_lkmnosys(void); }
3571.28Smycroft211	NODEF		{ int sys_lkmnosys(void); }
3581.28Smycroft212	NODEF		{ int sys_lkmnosys(void); }
3591.28Smycroft213	NODEF		{ int sys_lkmnosys(void); }
3601.28Smycroft214	NODEF		{ int sys_lkmnosys(void); }
3611.28Smycroft215	NODEF		{ int sys_lkmnosys(void); }
3621.28Smycroft216	NODEF		{ int sys_lkmnosys(void); }
3631.28Smycroft217	NODEF		{ int sys_lkmnosys(void); }
3641.28Smycroft218	NODEF		{ int sys_lkmnosys(void); }
3651.28Smycroft219	NODEF		{ int sys_lkmnosys(void); }
3661.11Scgd#else	/* !LKM */
3671.23Scgd210	UNIMPL
3681.23Scgd211	UNIMPL
3691.23Scgd212	UNIMPL
3701.23Scgd213	UNIMPL
3711.23Scgd214	UNIMPL
3721.23Scgd215	UNIMPL
3731.23Scgd216	UNIMPL
3741.23Scgd217	UNIMPL
3751.23Scgd218	UNIMPL
3761.23Scgd219	UNIMPL
3771.6Scgd#endif	/* !LKM */
3781.23Scgd; System calls 220-240 are reserved for use by NetBSD
3791.23Scgd#ifdef SYSVSEM
3801.28Smycroft220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
3811.23Scgd			    union semun *arg); }
3821.28Smycroft221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
3831.28Smycroft222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
3841.23Scgd			    u_int nsops); }
3851.28Smycroft223	STD		{ int sys_semconfig(int flag); }
3861.23Scgd#else
3871.23Scgd220	UNIMPL		semctl
3881.23Scgd221	UNIMPL		semget
3891.23Scgd222	UNIMPL		semop
3901.23Scgd223	UNIMPL		semconfig
3911.23Scgd#endif
3921.23Scgd#ifdef SYSVMSG
3931.28Smycroft224	STD		{ int sys_msgctl(int msqid, int cmd, \
3941.23Scgd			    struct msqid_ds *buf); }
3951.28Smycroft225	STD		{ int sys_msgget(key_t key, int msgflg); }
3961.28Smycroft226	STD		{ int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
3971.23Scgd			    int msgflg); }
3981.28Smycroft227	STD		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
3991.23Scgd			    long msgtyp, int msgflg); }
4001.23Scgd#else
4011.23Scgd224	UNIMPL		msgctl
4021.23Scgd225	UNIMPL		msgget
4031.23Scgd226	UNIMPL		msgsnd
4041.23Scgd227	UNIMPL		msgrcv
4051.23Scgd#endif
4061.23Scgd#ifdef SYSVSHM
4071.28Smycroft228	STD		{ int sys_shmat(int shmid, void *shmaddr, int shmflg); }
4081.28Smycroft229	STD		{ int sys_shmctl(int shmid, int cmd, \
4091.23Scgd			    struct shmid_ds *buf); }
4101.28Smycroft230	STD		{ int sys_shmdt(void *shmaddr); }
4111.28Smycroft231	STD		{ int sys_shmget(key_t key, int size, int shmflg); }
4121.23Scgd#else
4131.23Scgd228	UNIMPL		shmat
4141.23Scgd229	UNIMPL		shmctl
4151.23Scgd230	UNIMPL		shmdt
4161.23Scgd231	UNIMPL		shmget
4171.23Scgd#endif
418