syscalls.master revision 1.44
11.44Scgd	$NetBSD: syscalls.master,v 1.44 1996/12/22 07:00:57 cgd 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.43Scgd;	INDIR	included, but don't define the syscall args structure,
201.43Scgd;		and allow it to be "really" varargs.
211.23Scgd;
221.23Scgd; The compat options are defined in the syscalls.conf file, and the
231.23Scgd; compat option name is prefixed to the syscall name.  Other than
241.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for
251.23Scgd; 'libcompat' options).
261.23Scgd;
271.23Scgd; The type-dependent arguments are as follows:
281.23Scgd; For STD, NODEF, NOARGS, and compat syscalls:
291.23Scgd;	{ pseudo-proto } [alias]
301.23Scgd; For other syscalls:
311.23Scgd;	[comment]
321.23Scgd;
331.23Scgd; #ifdef's, etc. may be included, and are copied to the output files.
341.23Scgd; #include's are copied to the syscall switch definition file only.
351.1Sglass
361.23Scgd#include <sys/param.h>
371.23Scgd#include <sys/systm.h>
381.23Scgd#include <sys/signal.h>
391.23Scgd#include <sys/mount.h>
401.23Scgd#include <sys/syscallargs.h>
411.1Sglass
421.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive
431.1Sglass; are reserved for use in future Berkeley releases.
441.1Sglass; Additional system calls implemented in vendor and other
451.1Sglass; redistributions should be placed in the reserved range at the end
461.1Sglass; of the current calls.
471.1Sglass
481.43Scgd0	INDIR		{ int sys_syscall(int number, ...); }
491.44Scgd1	STD		{ void sys_exit(int rval); }
501.28Smycroft2	STD		{ int sys_fork(void); }
511.44Scgd3	STD		{ ssize_t sys_read(int fd, char *buf, u_int nbyte); }
521.44Scgd4	STD		{ ssize_t sys_write(int fd, char *buf, u_int nbyte); }
531.44Scgd5	STD		{ int sys_open(char *path, int flags, ... int mode); }
541.28Smycroft6	STD		{ int sys_close(int fd); }
551.28Smycroft7	STD		{ int sys_wait4(int pid, int *status, int options, \
561.23Scgd			    struct rusage *rusage); }
571.29Smycroft8	COMPAT_43	{ int sys_creat(char *path, int mode); } ocreat
581.28Smycroft9	STD		{ int sys_link(char *path, char *link); }
591.28Smycroft10	STD		{ int sys_unlink(char *path); }
601.23Scgd11	OBSOL		execv
611.28Smycroft12	STD		{ int sys_chdir(char *path); }
621.28Smycroft13	STD		{ int sys_fchdir(int fd); }
631.28Smycroft14	STD		{ int sys_mknod(char *path, int mode, int dev); }
641.28Smycroft15	STD		{ int sys_chmod(char *path, int mode); }
651.28Smycroft16	STD		{ int sys_chown(char *path, int uid, int gid); }
661.28Smycroft17	STD		{ int sys_obreak(char *nsize); } break
671.28Smycroft18	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
681.23Scgd			    int flags); }
691.29Smycroft19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
701.29Smycroft			    olseek
711.28Smycroft20	STD		{ pid_t sys_getpid(void); }
721.28Smycroft21	STD		{ int sys_mount(char *type, char *path, int flags, \
731.23Scgd			    caddr_t data); }
741.28Smycroft22	STD		{ int sys_unmount(char *path, int flags); }
751.28Smycroft23	STD		{ int sys_setuid(uid_t uid); }
761.28Smycroft24	STD		{ uid_t sys_getuid(void); }
771.28Smycroft25	STD		{ uid_t sys_geteuid(void); }
781.28Smycroft26	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
791.23Scgd			    int data); }
801.44Scgd27	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
811.28Smycroft			    int flags); }
821.44Scgd28	STD		{ ssize_t sys_sendmsg(int s, caddr_t msg, int flags); }
831.44Scgd29	STD		{ ssize_t sys_recvfrom(int s, caddr_t buf, size_t len, \
841.23Scgd			    int flags, caddr_t from, int *fromlenaddr); }
851.28Smycroft30	STD		{ int sys_accept(int s, caddr_t name, int *anamelen); }
861.28Smycroft31	STD		{ int sys_getpeername(int fdes, caddr_t asa, \
871.28Smycroft			    int *alen); }
881.28Smycroft32	STD		{ int sys_getsockname(int fdes, caddr_t asa, \
891.28Smycroft			    int *alen); }
901.28Smycroft33	STD		{ int sys_access(char *path, int flags); }
911.28Smycroft34	STD		{ int sys_chflags(char *path, int flags); }
921.28Smycroft35	STD		{ int sys_fchflags(int fd, int flags); }
931.44Scgd36	STD		{ void sys_sync(void); }
941.28Smycroft37	STD		{ int sys_kill(int pid, int signum); }
951.29Smycroft38	COMPAT_43	{ int sys_stat(char *path, struct ostat *ub); } ostat
961.28Smycroft39	STD		{ pid_t sys_getppid(void); }
971.29Smycroft40	COMPAT_43	{ int sys_lstat(char *path, struct ostat *ub); } olstat
981.28Smycroft41	STD		{ int sys_dup(u_int fd); }
991.28Smycroft42	STD		{ int sys_pipe(void); }
1001.28Smycroft43	STD		{ gid_t sys_getegid(void); }
1011.30Scgd44	STD		{ int sys_profil(caddr_t samples, size_t size, \
1021.30Scgd			    u_long offset, u_int scale); }
1031.1Sglass#ifdef KTRACE
1041.28Smycroft45	STD		{ int sys_ktrace(char *fname, int ops, int facs, \
1051.23Scgd			    int pid); }
1061.1Sglass#else
1071.23Scgd45	UNIMPL		ktrace
1081.1Sglass#endif
1091.28Smycroft46	STD		{ int sys_sigaction(int signum, struct sigaction *nsa, \
1101.23Scgd			    struct sigaction *osa); }
1111.28Smycroft47	STD		{ gid_t sys_getgid(void); }
1121.28Smycroft48	STD		{ int sys_sigprocmask(int how, sigset_t mask); }
1131.37Sjtc49	STD		{ int sys___getlogin(char *namebuf, u_int namelen); }
1141.28Smycroft50	STD		{ int sys_setlogin(char *namebuf); }
1151.28Smycroft51	STD		{ int sys_acct(char *path); }
1161.28Smycroft52	STD		{ int sys_sigpending(void); }
1171.28Smycroft53	STD		{ int sys_sigaltstack(struct sigaltstack *nss, \
1181.23Scgd			    struct sigaltstack *oss); }
1191.44Scgd54	STD		{ int sys_ioctl(int fd, u_long com, ... caddr_t data); }
1201.34Smrg55	COMPAT_12	{ int sys_reboot(int opt); } oreboot
1211.28Smycroft56	STD		{ int sys_revoke(char *path); }
1221.28Smycroft57	STD		{ int sys_symlink(char *path, char *link); }
1231.28Smycroft58	STD		{ int sys_readlink(char *path, char *buf, int count); }
1241.28Smycroft59	STD		{ int sys_execve(char *path, char **argp, \
1251.28Smycroft			    char **envp); }
1261.28Smycroft60	STD		{ int sys_umask(int newmask); }
1271.28Smycroft61	STD		{ int sys_chroot(char *path); }
1281.29Smycroft62	COMPAT_43	{ int sys_fstat(int fd, struct ostat *sb); } ofstat
1291.28Smycroft63	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
1301.29Smycroft			    int arg); } ogetkerninfo
1311.29Smycroft64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
1321.28Smycroft65	STD		{ int sys_msync(caddr_t addr, size_t len); }
1331.28Smycroft66	STD		{ int sys_vfork(void); }
1341.23Scgd67	OBSOL		vread
1351.23Scgd68	OBSOL		vwrite
1361.28Smycroft69	STD		{ int sys_sbrk(int incr); }
1371.28Smycroft70	STD		{ int sys_sstk(int incr); }
1381.28Smycroft71	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
1391.29Smycroft			    int flags, int fd, long pos); } ommap
1401.28Smycroft72	STD		{ int sys_ovadvise(int anom); } vadvise
1411.28Smycroft73	STD		{ int sys_munmap(caddr_t addr, size_t len); }
1421.28Smycroft74	STD		{ int sys_mprotect(caddr_t addr, size_t len, \
1431.28Smycroft			    int prot); }
1441.28Smycroft75	STD		{ int sys_madvise(caddr_t addr, size_t len, \
1451.28Smycroft			    int behav); }
1461.23Scgd76	OBSOL		vhangup
1471.23Scgd77	OBSOL		vlimit
1481.28Smycroft78	STD		{ int sys_mincore(caddr_t addr, size_t len, \
1491.28Smycroft			    char *vec); }
1501.28Smycroft79	STD		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
1511.28Smycroft80	STD		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
1521.28Smycroft81	STD		{ int sys_getpgrp(void); }
1531.28Smycroft82	STD		{ int sys_setpgid(int pid, int pgid); }
1541.28Smycroft83	STD		{ int sys_setitimer(u_int which, \
1551.28Smycroft			    struct itimerval *itv, struct itimerval *oitv); }
1561.29Smycroft84	COMPAT_43	{ int sys_wait(void); } owait
1571.28Smycroft85	STD		{ int sys_swapon(char *name); }
1581.28Smycroft86	STD		{ int sys_getitimer(u_int which, \
1591.28Smycroft			    struct itimerval *itv); }
1601.29Smycroft87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
1611.29Smycroft			    ogethostname
1621.29Smycroft88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
1631.29Smycroft			    osethostname
1641.29Smycroft89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
1651.28Smycroft90	STD		{ int sys_dup2(u_int from, u_int to); }
1661.23Scgd91	UNIMPL		getdopt
1671.44Scgd92	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
1681.28Smycroft93	STD		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
1691.23Scgd			    fd_set *ex, struct timeval *tv); }
1701.23Scgd94	UNIMPL		setdopt
1711.28Smycroft95	STD		{ int sys_fsync(int fd); }
1721.28Smycroft96	STD		{ int sys_setpriority(int which, int who, int prio); }
1731.28Smycroft97	STD		{ int sys_socket(int domain, int type, int protocol); }
1741.28Smycroft98	STD		{ int sys_connect(int s, caddr_t name, int namelen); }
1751.29Smycroft99	COMPAT_43	{ int sys_accept(int s, caddr_t name, int *anamelen); } \
1761.29Smycroft			    oaccept
1771.28Smycroft100	STD		{ int sys_getpriority(int which, int who); }
1781.28Smycroft101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
1791.29Smycroft			    int flags); } osend
1801.28Smycroft102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
1811.29Smycroft			    int flags); } orecv
1821.28Smycroft103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
1831.28Smycroft104	STD		{ int sys_bind(int s, caddr_t name, int namelen); }
1841.28Smycroft105	STD		{ int sys_setsockopt(int s, int level, int name, \
1851.23Scgd			    caddr_t val, int valsize); }
1861.28Smycroft106	STD		{ int sys_listen(int s, int backlog); }
1871.23Scgd107	OBSOL		vtimes
1881.28Smycroft108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
1891.29Smycroft			    struct sigvec *osv); } osigvec
1901.29Smycroft109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
1911.29Smycroft110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
1921.28Smycroft111	STD		{ int sys_sigsuspend(int mask); }
1931.28Smycroft112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
1941.29Smycroft			    struct sigstack *oss); } osigstack
1951.28Smycroft113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
1961.29Smycroft			    int flags); } orecvmsg
1971.29Smycroft114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
1981.29Smycroft			    osendmsg
1991.1Sglass#ifdef TRACE
2001.28Smycroft115	STD		{ int sys_vtrace(int request, int value); }
2011.1Sglass#else
2021.23Scgd115	OBSOL		vtrace
2031.1Sglass#endif
2041.28Smycroft116	STD		{ int sys_gettimeofday(struct timeval *tp, \
2051.23Scgd			    struct timezone *tzp); }
2061.28Smycroft117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
2071.28Smycroft118	STD		{ int sys_getsockopt(int s, int level, int name, \
2081.23Scgd			    caddr_t val, int *avalsize); }
2091.26Scgd119	OBSOL		resuba
2101.44Scgd120	STD		{ ssize_t sys_readv(int fd, struct iovec *iovp, \
2111.28Smycroft			    u_int iovcnt); }
2121.44Scgd121	STD		{ ssize_t sys_writev(int fd, struct iovec *iovp, \
2131.23Scgd			    u_int iovcnt); }
2141.28Smycroft122	STD		{ int sys_settimeofday(struct timeval *tv, \
2151.23Scgd			    struct timezone *tzp); }
2161.28Smycroft123	STD		{ int sys_fchown(int fd, int uid, int gid); }
2171.28Smycroft124	STD		{ int sys_fchmod(int fd, int mode); }
2181.28Smycroft125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
2191.29Smycroft			    int flags, caddr_t from, int *fromlenaddr); } \
2201.29Smycroft			    orecvfrom
2211.33Smycroft126	STD		{ int sys_setreuid(int ruid, int euid); }
2221.33Smycroft127	STD		{ int sys_setregid(int rgid, int egid); }
2231.28Smycroft128	STD		{ int sys_rename(char *from, char *to); }
2241.29Smycroft129	COMPAT_43	{ int sys_truncate(char *path, long length); } \
2251.29Smycroft			    otruncate
2261.29Smycroft130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
2271.28Smycroft131	STD		{ int sys_flock(int fd, int how); }
2281.28Smycroft132	STD		{ int sys_mkfifo(char *path, int mode); }
2291.44Scgd133	STD		{ ssize_t sys_sendto(int s, caddr_t buf, size_t len, \
2301.23Scgd			    int flags, caddr_t to, int tolen); }
2311.28Smycroft134	STD		{ int sys_shutdown(int s, int how); }
2321.28Smycroft135	STD		{ int sys_socketpair(int domain, int type, \
2331.28Smycroft			    int protocol, int *rsv); }
2341.28Smycroft136	STD		{ int sys_mkdir(char *path, int mode); }
2351.28Smycroft137	STD		{ int sys_rmdir(char *path); }
2361.28Smycroft138	STD		{ int sys_utimes(char *path, struct timeval *tptr); }
2371.23Scgd139	OBSOL		4.2 sigreturn
2381.28Smycroft140	STD		{ int sys_adjtime(struct timeval *delta, \
2391.23Scgd			    struct timeval *olddelta); }
2401.28Smycroft141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
2411.29Smycroft			    int *alen); } ogetpeername
2421.29Smycroft142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
2431.29Smycroft143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
2441.28Smycroft144	COMPAT_43	{ int sys_getrlimit(u_int which, \
2451.29Smycroft			    struct ogetrlimit *rlp); } ogetrlimit
2461.28Smycroft145	COMPAT_43	{ int sys_setrlimit(u_int which, \
2471.29Smycroft			    struct ogetrlimit *rlp); } osetrlimit
2481.29Smycroft146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
2491.28Smycroft147	STD		{ int sys_setsid(void); }
2501.28Smycroft148	STD		{ int sys_quotactl(char *path, int cmd, int uid, \
2511.23Scgd			    caddr_t arg); }
2521.29Smycroft149	COMPAT_43	{ int sys_quota(void); } oquota
2531.28Smycroft150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
2541.29Smycroft			    int *alen); } ogetsockname
2551.1Sglass
2561.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific
2571.1Sglass; system calls.  (This includes various calls added for compatibity
2581.1Sglass; with other Unix variants.)
2591.1Sglass; Some of these calls are now supported by BSD...
2601.23Scgd151	UNIMPL
2611.23Scgd152	UNIMPL
2621.23Scgd153	UNIMPL
2631.23Scgd154	UNIMPL
2641.20Smycroft#if defined(NFSCLIENT) || defined(NFSSERVER)
2651.28Smycroft155	STD		{ int sys_nfssvc(int flag, caddr_t argp); }
2661.1Sglass#else
2671.23Scgd155	UNIMPL
2681.1Sglass#endif
2691.28Smycroft156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
2701.29Smycroft			    u_int count, long *basep); } ogetdirentries
2711.28Smycroft157	STD		{ int sys_statfs(char *path, struct statfs *buf); }
2721.28Smycroft158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
2731.23Scgd159	UNIMPL
2741.23Scgd160	UNIMPL
2751.40Sthorpej#if defined(NFSCLIENT) || defined(NFSSERVER)
2761.28Smycroft161	STD		{ int sys_getfh(char *fname, fhandle_t *fhp); }
2771.1Sglass#else
2781.23Scgd161	UNIMPL		getfh
2791.1Sglass#endif
2801.29Smycroft162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
2811.29Smycroft			    ogetdomainname
2821.29Smycroft163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
2831.29Smycroft			    osetdomainname
2841.29Smycroft164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
2851.28Smycroft165	STD		{ int sys_sysarch(int op, char *parms); }
2861.23Scgd166	UNIMPL
2871.23Scgd167	UNIMPL
2881.23Scgd168	UNIMPL
2891.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
2901.23Scgd#if defined(SYSVSEM) && !defined(alpha)
2911.28Smycroft169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
2921.29Smycroft			    int a5); } osemsys
2931.9Scgd#else
2941.23Scgd169	UNIMPL		1.0 semsys
2951.9Scgd#endif
2961.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
2971.23Scgd#if defined(SYSVMSG) && !defined(alpha)
2981.28Smycroft170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
2991.29Smycroft			    int a5, int a6); } omsgsys
3001.9Scgd#else
3011.23Scgd170	UNIMPL		1.0 msgsys
3021.9Scgd#endif
3031.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3041.23Scgd#if defined(SYSVSHM) && !defined(alpha)
3051.29Smycroft171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
3061.29Smycroft			    oshmsys
3071.1Sglass#else
3081.23Scgd171	UNIMPL		1.0 shmsys
3091.1Sglass#endif
3101.23Scgd172	UNIMPL
3111.23Scgd173	UNIMPL
3121.23Scgd174	UNIMPL
3131.42Scgd175	STD		{ int sys_ntp_gettime(struct ntptimeval *tp); }
3141.38Sthorpej176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
3151.23Scgd177	UNIMPL
3161.23Scgd178	UNIMPL
3171.23Scgd179	UNIMPL
3181.23Scgd180	UNIMPL
3191.1Sglass
3201.1Sglass; Syscalls 180-199 are used by/reserved for BSD
3211.28Smycroft181	STD		{ int sys_setgid(gid_t gid); }
3221.28Smycroft182	STD		{ int sys_setegid(gid_t egid); }
3231.28Smycroft183	STD		{ int sys_seteuid(uid_t euid); }
3241.17Scgd#ifdef LFS
3251.23Scgd184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
3261.23Scgd			    struct block_info *blkiov, int blkcnt); }
3271.23Scgd185	STD		{ int lfs_markv(fsid_t *fsidp, \
3281.23Scgd			    struct block_info *blkiov, int blkcnt); }
3291.23Scgd186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
3301.23Scgd187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
3311.23Scgd#else
3321.23Scgd184	UNIMPL
3331.23Scgd185	UNIMPL
3341.23Scgd186	UNIMPL
3351.23Scgd187	UNIMPL
3361.23Scgd#endif
3371.28Smycroft188	STD		{ int sys_stat(char *path, struct stat *ub); }
3381.28Smycroft189	STD		{ int sys_fstat(int fd, struct stat *sb); }
3391.28Smycroft190	STD		{ int sys_lstat(char *path, struct stat *ub); }
3401.44Scgd191	STD		{ long sys_pathconf(char *path, int name); }
3411.44Scgd192	STD		{ long sys_fpathconf(int fd, int name); }
3421.23Scgd193	UNIMPL
3431.28Smycroft194	STD		{ int sys_getrlimit(u_int which, struct rlimit *rlp); }
3441.28Smycroft195	STD		{ int sys_setrlimit(u_int which, struct rlimit *rlp); }
3451.28Smycroft196	STD		{ int sys_getdirentries(int fd, char *buf, \
3461.28Smycroft			    u_int count, long *basep); }
3471.28Smycroft197	STD		{ caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
3481.23Scgd			    int flags, int fd, long pad, off_t pos); }
3491.43Scgd198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
3501.28Smycroft199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
3511.23Scgd			    int whence); }
3521.28Smycroft200	STD		{ int sys_truncate(char *path, int pad, off_t length); }
3531.28Smycroft201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
3541.28Smycroft202	STD		{ int sys___sysctl(int *name, u_int namelen, \
3551.28Smycroft			    void *old, size_t *oldlenp, void *new, \
3561.28Smycroft			    size_t newlen); }
3571.28Smycroft203	STD		{ int sys_mlock(caddr_t addr, size_t len); }
3581.28Smycroft204	STD		{ int sys_munlock(caddr_t addr, size_t len); }
3591.28Smycroft205	STD		{ int sys_undelete(char *path); }
3601.32Smycroft206	STD		{ int sys_futimes(int fd, struct timeval *tptr); }
3611.34Smrg207	STD		{ int sys_getpgid(pid_t pid); }
3621.34Smrg208	STD		{ int sys_reboot(int opt, char *bootstr); }
3631.36Smycroft209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
3641.35Smycroft			    int timeout); }
3651.11Scgd;
3661.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls
3671.11Scgd;
3681.11Scgd#ifdef LKM
3691.28Smycroft210	NODEF		{ int sys_lkmnosys(void); }
3701.28Smycroft211	NODEF		{ int sys_lkmnosys(void); }
3711.28Smycroft212	NODEF		{ int sys_lkmnosys(void); }
3721.28Smycroft213	NODEF		{ int sys_lkmnosys(void); }
3731.28Smycroft214	NODEF		{ int sys_lkmnosys(void); }
3741.28Smycroft215	NODEF		{ int sys_lkmnosys(void); }
3751.28Smycroft216	NODEF		{ int sys_lkmnosys(void); }
3761.28Smycroft217	NODEF		{ int sys_lkmnosys(void); }
3771.28Smycroft218	NODEF		{ int sys_lkmnosys(void); }
3781.28Smycroft219	NODEF		{ int sys_lkmnosys(void); }
3791.11Scgd#else	/* !LKM */
3801.23Scgd210	UNIMPL
3811.23Scgd211	UNIMPL
3821.23Scgd212	UNIMPL
3831.23Scgd213	UNIMPL
3841.23Scgd214	UNIMPL
3851.23Scgd215	UNIMPL
3861.23Scgd216	UNIMPL
3871.23Scgd217	UNIMPL
3881.23Scgd218	UNIMPL
3891.23Scgd219	UNIMPL
3901.6Scgd#endif	/* !LKM */
3911.23Scgd; System calls 220-240 are reserved for use by NetBSD
3921.23Scgd#ifdef SYSVSEM
3931.28Smycroft220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
3941.23Scgd			    union semun *arg); }
3951.28Smycroft221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
3961.28Smycroft222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
3971.23Scgd			    u_int nsops); }
3981.28Smycroft223	STD		{ int sys_semconfig(int flag); }
3991.23Scgd#else
4001.23Scgd220	UNIMPL		semctl
4011.23Scgd221	UNIMPL		semget
4021.23Scgd222	UNIMPL		semop
4031.23Scgd223	UNIMPL		semconfig
4041.23Scgd#endif
4051.23Scgd#ifdef SYSVMSG
4061.28Smycroft224	STD		{ int sys_msgctl(int msqid, int cmd, \
4071.23Scgd			    struct msqid_ds *buf); }
4081.28Smycroft225	STD		{ int sys_msgget(key_t key, int msgflg); }
4091.28Smycroft226	STD		{ int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
4101.23Scgd			    int msgflg); }
4111.28Smycroft227	STD		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
4121.23Scgd			    long msgtyp, int msgflg); }
4131.23Scgd#else
4141.23Scgd224	UNIMPL		msgctl
4151.23Scgd225	UNIMPL		msgget
4161.23Scgd226	UNIMPL		msgsnd
4171.23Scgd227	UNIMPL		msgrcv
4181.23Scgd#endif
4191.23Scgd#ifdef SYSVSHM
4201.44Scgd228	STD		{ void *sys_shmat(int shmid, void *shmaddr, \
4211.44Scgd			    int shmflg); }
4221.28Smycroft229	STD		{ int sys_shmctl(int shmid, int cmd, \
4231.23Scgd			    struct shmid_ds *buf); }
4241.28Smycroft230	STD		{ int sys_shmdt(void *shmaddr); }
4251.28Smycroft231	STD		{ int sys_shmget(key_t key, int size, int shmflg); }
4261.23Scgd#else
4271.23Scgd228	UNIMPL		shmat
4281.23Scgd229	UNIMPL		shmctl
4291.23Scgd230	UNIMPL		shmdt
4301.23Scgd231	UNIMPL		shmget
4311.23Scgd#endif
4321.39Sjtc232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
4331.39Sjtc				struct timespec *tp); }
4341.39Sjtc233	STD		{ int sys_clock_settime(clockid_t clock_id, \
4351.39Sjtc				const struct timespec *tp); }
4361.39Sjtc234	STD		{ int sys_clock_getres(clockid_t clock_id, \
4371.39Sjtc				struct timespec *tp); }
4381.39Sjtc235	UNIMPL		timer_create
4391.39Sjtc236	UNIMPL		timer_delete
4401.39Sjtc237	UNIMPL		timer_settime
4411.39Sjtc238	UNIMPL		timer_gettime
4421.39Sjtc239	UNIMPL		timer_getoverrun
4431.39Sjtc240	UNIMPL		nanosleep
444