syscalls.master revision 1.33
11.33Smycroft	$NetBSD: syscalls.master,v 1.33 1996/06/23 11:06:54 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.29Smycroft8	COMPAT_43	{ int sys_creat(char *path, int mode); } ocreat
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.29Smycroft19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
681.29Smycroft			    olseek
691.28Smycroft20	STD		{ pid_t sys_getpid(void); }
701.28Smycroft21	STD		{ int sys_mount(char *type, char *path, int flags, \
711.23Scgd			    caddr_t data); }
721.28Smycroft22	STD		{ int sys_unmount(char *path, int flags); }
731.28Smycroft23	STD		{ int sys_setuid(uid_t uid); }
741.28Smycroft24	STD		{ uid_t sys_getuid(void); }
751.28Smycroft25	STD		{ uid_t sys_geteuid(void); }
761.28Smycroft26	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
771.23Scgd			    int data); }
781.28Smycroft27	STD		{ int sys_recvmsg(int s, struct msghdr *msg, \
791.28Smycroft			    int flags); }
801.28Smycroft28	STD		{ int sys_sendmsg(int s, caddr_t msg, int flags); }
811.28Smycroft29	STD		{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
821.23Scgd			    int flags, caddr_t from, int *fromlenaddr); }
831.28Smycroft30	STD		{ int sys_accept(int s, caddr_t name, int *anamelen); }
841.28Smycroft31	STD		{ int sys_getpeername(int fdes, caddr_t asa, \
851.28Smycroft			    int *alen); }
861.28Smycroft32	STD		{ int sys_getsockname(int fdes, caddr_t asa, \
871.28Smycroft			    int *alen); }
881.28Smycroft33	STD		{ int sys_access(char *path, int flags); }
891.28Smycroft34	STD		{ int sys_chflags(char *path, int flags); }
901.28Smycroft35	STD		{ int sys_fchflags(int fd, int flags); }
911.28Smycroft36	STD		{ int sys_sync(void); }
921.28Smycroft37	STD		{ int sys_kill(int pid, int signum); }
931.29Smycroft38	COMPAT_43	{ int sys_stat(char *path, struct ostat *ub); } ostat
941.28Smycroft39	STD		{ pid_t sys_getppid(void); }
951.29Smycroft40	COMPAT_43	{ int sys_lstat(char *path, struct ostat *ub); } olstat
961.28Smycroft41	STD		{ int sys_dup(u_int fd); }
971.28Smycroft42	STD		{ int sys_pipe(void); }
981.28Smycroft43	STD		{ gid_t sys_getegid(void); }
991.30Scgd44	STD		{ int sys_profil(caddr_t samples, size_t size, \
1001.30Scgd			    u_long offset, u_int scale); }
1011.1Sglass#ifdef KTRACE
1021.28Smycroft45	STD		{ int sys_ktrace(char *fname, int ops, int facs, \
1031.23Scgd			    int pid); }
1041.1Sglass#else
1051.23Scgd45	UNIMPL		ktrace
1061.1Sglass#endif
1071.28Smycroft46	STD		{ int sys_sigaction(int signum, struct sigaction *nsa, \
1081.23Scgd			    struct sigaction *osa); }
1091.28Smycroft47	STD		{ gid_t sys_getgid(void); }
1101.28Smycroft48	STD		{ int sys_sigprocmask(int how, sigset_t mask); }
1111.28Smycroft49	STD		{ int sys_getlogin(char *namebuf, u_int namelen); }
1121.28Smycroft50	STD		{ int sys_setlogin(char *namebuf); }
1131.28Smycroft51	STD		{ int sys_acct(char *path); }
1141.28Smycroft52	STD		{ int sys_sigpending(void); }
1151.28Smycroft53	STD		{ int sys_sigaltstack(struct sigaltstack *nss, \
1161.23Scgd			    struct sigaltstack *oss); }
1171.28Smycroft54	STD		{ int sys_ioctl(int fd, u_long com, caddr_t data); }
1181.28Smycroft55	STD		{ int sys_reboot(int opt); }
1191.28Smycroft56	STD		{ int sys_revoke(char *path); }
1201.28Smycroft57	STD		{ int sys_symlink(char *path, char *link); }
1211.28Smycroft58	STD		{ int sys_readlink(char *path, char *buf, int count); }
1221.28Smycroft59	STD		{ int sys_execve(char *path, char **argp, \
1231.28Smycroft			    char **envp); }
1241.28Smycroft60	STD		{ int sys_umask(int newmask); }
1251.28Smycroft61	STD		{ int sys_chroot(char *path); }
1261.29Smycroft62	COMPAT_43	{ int sys_fstat(int fd, struct ostat *sb); } ofstat
1271.28Smycroft63	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
1281.29Smycroft			    int arg); } ogetkerninfo
1291.29Smycroft64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
1301.28Smycroft65	STD		{ int sys_msync(caddr_t addr, size_t len); }
1311.28Smycroft66	STD		{ int sys_vfork(void); }
1321.23Scgd67	OBSOL		vread
1331.23Scgd68	OBSOL		vwrite
1341.28Smycroft69	STD		{ int sys_sbrk(int incr); }
1351.28Smycroft70	STD		{ int sys_sstk(int incr); }
1361.28Smycroft71	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
1371.29Smycroft			    int flags, int fd, long pos); } ommap
1381.28Smycroft72	STD		{ int sys_ovadvise(int anom); } vadvise
1391.28Smycroft73	STD		{ int sys_munmap(caddr_t addr, size_t len); }
1401.28Smycroft74	STD		{ int sys_mprotect(caddr_t addr, size_t len, \
1411.28Smycroft			    int prot); }
1421.28Smycroft75	STD		{ int sys_madvise(caddr_t addr, size_t len, \
1431.28Smycroft			    int behav); }
1441.23Scgd76	OBSOL		vhangup
1451.23Scgd77	OBSOL		vlimit
1461.28Smycroft78	STD		{ int sys_mincore(caddr_t addr, size_t len, \
1471.28Smycroft			    char *vec); }
1481.28Smycroft79	STD		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
1491.28Smycroft80	STD		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
1501.28Smycroft81	STD		{ int sys_getpgrp(void); }
1511.28Smycroft82	STD		{ int sys_setpgid(int pid, int pgid); }
1521.28Smycroft83	STD		{ int sys_setitimer(u_int which, \
1531.28Smycroft			    struct itimerval *itv, struct itimerval *oitv); }
1541.29Smycroft84	COMPAT_43	{ int sys_wait(void); } owait
1551.28Smycroft85	STD		{ int sys_swapon(char *name); }
1561.28Smycroft86	STD		{ int sys_getitimer(u_int which, \
1571.28Smycroft			    struct itimerval *itv); }
1581.29Smycroft87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
1591.29Smycroft			    ogethostname
1601.29Smycroft88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
1611.29Smycroft			    osethostname
1621.29Smycroft89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
1631.28Smycroft90	STD		{ int sys_dup2(u_int from, u_int to); }
1641.23Scgd91	UNIMPL		getdopt
1651.28Smycroft92	STD		{ int sys_fcntl(int fd, int cmd, void *arg); }
1661.28Smycroft93	STD		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
1671.23Scgd			    fd_set *ex, struct timeval *tv); }
1681.23Scgd94	UNIMPL		setdopt
1691.28Smycroft95	STD		{ int sys_fsync(int fd); }
1701.28Smycroft96	STD		{ int sys_setpriority(int which, int who, int prio); }
1711.28Smycroft97	STD		{ int sys_socket(int domain, int type, int protocol); }
1721.28Smycroft98	STD		{ int sys_connect(int s, caddr_t name, int namelen); }
1731.29Smycroft99	COMPAT_43	{ int sys_accept(int s, caddr_t name, int *anamelen); } \
1741.29Smycroft			    oaccept
1751.28Smycroft100	STD		{ int sys_getpriority(int which, int who); }
1761.28Smycroft101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
1771.29Smycroft			    int flags); } osend
1781.28Smycroft102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
1791.29Smycroft			    int flags); } orecv
1801.28Smycroft103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
1811.28Smycroft104	STD		{ int sys_bind(int s, caddr_t name, int namelen); }
1821.28Smycroft105	STD		{ int sys_setsockopt(int s, int level, int name, \
1831.23Scgd			    caddr_t val, int valsize); }
1841.28Smycroft106	STD		{ int sys_listen(int s, int backlog); }
1851.23Scgd107	OBSOL		vtimes
1861.28Smycroft108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
1871.29Smycroft			    struct sigvec *osv); } osigvec
1881.29Smycroft109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
1891.29Smycroft110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
1901.28Smycroft111	STD		{ int sys_sigsuspend(int mask); }
1911.28Smycroft112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
1921.29Smycroft			    struct sigstack *oss); } osigstack
1931.28Smycroft113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
1941.29Smycroft			    int flags); } orecvmsg
1951.29Smycroft114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
1961.29Smycroft			    osendmsg
1971.1Sglass#ifdef TRACE
1981.28Smycroft115	STD		{ int sys_vtrace(int request, int value); }
1991.1Sglass#else
2001.23Scgd115	OBSOL		vtrace
2011.1Sglass#endif
2021.28Smycroft116	STD		{ int sys_gettimeofday(struct timeval *tp, \
2031.23Scgd			    struct timezone *tzp); }
2041.28Smycroft117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
2051.28Smycroft118	STD		{ int sys_getsockopt(int s, int level, int name, \
2061.23Scgd			    caddr_t val, int *avalsize); }
2071.26Scgd119	OBSOL		resuba
2081.28Smycroft120	STD		{ int sys_readv(int fd, struct iovec *iovp, \
2091.28Smycroft			    u_int iovcnt); }
2101.28Smycroft121	STD		{ int sys_writev(int fd, struct iovec *iovp, \
2111.23Scgd			    u_int iovcnt); }
2121.28Smycroft122	STD		{ int sys_settimeofday(struct timeval *tv, \
2131.23Scgd			    struct timezone *tzp); }
2141.28Smycroft123	STD		{ int sys_fchown(int fd, int uid, int gid); }
2151.28Smycroft124	STD		{ int sys_fchmod(int fd, int mode); }
2161.28Smycroft125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
2171.29Smycroft			    int flags, caddr_t from, int *fromlenaddr); } \
2181.29Smycroft			    orecvfrom
2191.33Smycroft126	STD		{ int sys_setreuid(int ruid, int euid); }
2201.33Smycroft127	STD		{ int sys_setregid(int rgid, int egid); }
2211.28Smycroft128	STD		{ int sys_rename(char *from, char *to); }
2221.29Smycroft129	COMPAT_43	{ int sys_truncate(char *path, long length); } \
2231.29Smycroft			    otruncate
2241.29Smycroft130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
2251.28Smycroft131	STD		{ int sys_flock(int fd, int how); }
2261.28Smycroft132	STD		{ int sys_mkfifo(char *path, int mode); }
2271.28Smycroft133	STD		{ int sys_sendto(int s, caddr_t buf, size_t len, \
2281.23Scgd			    int flags, caddr_t to, int tolen); }
2291.28Smycroft134	STD		{ int sys_shutdown(int s, int how); }
2301.28Smycroft135	STD		{ int sys_socketpair(int domain, int type, \
2311.28Smycroft			    int protocol, int *rsv); }
2321.28Smycroft136	STD		{ int sys_mkdir(char *path, int mode); }
2331.28Smycroft137	STD		{ int sys_rmdir(char *path); }
2341.28Smycroft138	STD		{ int sys_utimes(char *path, struct timeval *tptr); }
2351.23Scgd139	OBSOL		4.2 sigreturn
2361.28Smycroft140	STD		{ int sys_adjtime(struct timeval *delta, \
2371.23Scgd			    struct timeval *olddelta); }
2381.28Smycroft141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
2391.29Smycroft			    int *alen); } ogetpeername
2401.29Smycroft142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
2411.29Smycroft143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
2421.28Smycroft144	COMPAT_43	{ int sys_getrlimit(u_int which, \
2431.29Smycroft			    struct ogetrlimit *rlp); } ogetrlimit
2441.28Smycroft145	COMPAT_43	{ int sys_setrlimit(u_int which, \
2451.29Smycroft			    struct ogetrlimit *rlp); } osetrlimit
2461.29Smycroft146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
2471.28Smycroft147	STD		{ int sys_setsid(void); }
2481.28Smycroft148	STD		{ int sys_quotactl(char *path, int cmd, int uid, \
2491.23Scgd			    caddr_t arg); }
2501.29Smycroft149	COMPAT_43	{ int sys_quota(void); } oquota
2511.28Smycroft150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
2521.29Smycroft			    int *alen); } ogetsockname
2531.1Sglass
2541.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific
2551.1Sglass; system calls.  (This includes various calls added for compatibity
2561.1Sglass; with other Unix variants.)
2571.1Sglass; Some of these calls are now supported by BSD...
2581.23Scgd151	UNIMPL
2591.23Scgd152	UNIMPL
2601.23Scgd153	UNIMPL
2611.23Scgd154	UNIMPL
2621.20Smycroft#if defined(NFSCLIENT) || defined(NFSSERVER)
2631.28Smycroft155	STD		{ int sys_nfssvc(int flag, caddr_t argp); }
2641.1Sglass#else
2651.23Scgd155	UNIMPL
2661.1Sglass#endif
2671.28Smycroft156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
2681.29Smycroft			    u_int count, long *basep); } ogetdirentries
2691.28Smycroft157	STD		{ int sys_statfs(char *path, struct statfs *buf); }
2701.28Smycroft158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
2711.23Scgd159	UNIMPL
2721.23Scgd160	UNIMPL
2731.2Sglass#ifdef NFSCLIENT
2741.28Smycroft161	STD		{ int sys_getfh(char *fname, fhandle_t *fhp); }
2751.1Sglass#else
2761.23Scgd161	UNIMPL		getfh
2771.1Sglass#endif
2781.29Smycroft162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
2791.29Smycroft			    ogetdomainname
2801.29Smycroft163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
2811.29Smycroft			    osetdomainname
2821.29Smycroft164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
2831.28Smycroft165	STD		{ int sys_sysarch(int op, char *parms); }
2841.23Scgd166	UNIMPL
2851.23Scgd167	UNIMPL
2861.23Scgd168	UNIMPL
2871.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
2881.23Scgd#if defined(SYSVSEM) && !defined(alpha)
2891.28Smycroft169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
2901.29Smycroft			    int a5); } osemsys
2911.9Scgd#else
2921.23Scgd169	UNIMPL		1.0 semsys
2931.9Scgd#endif
2941.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
2951.23Scgd#if defined(SYSVMSG) && !defined(alpha)
2961.28Smycroft170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
2971.29Smycroft			    int a5, int a6); } omsgsys
2981.9Scgd#else
2991.23Scgd170	UNIMPL		1.0 msgsys
3001.9Scgd#endif
3011.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3021.23Scgd#if defined(SYSVSHM) && !defined(alpha)
3031.29Smycroft171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
3041.29Smycroft			    oshmsys
3051.1Sglass#else
3061.23Scgd171	UNIMPL		1.0 shmsys
3071.1Sglass#endif
3081.23Scgd172	UNIMPL
3091.23Scgd173	UNIMPL
3101.23Scgd174	UNIMPL
3111.31Sjonathan175	STD		{ int ntp_gettime(struct timex *tp); }
3121.31Sjonathan176	STD		{ int ntp_adjtime(struct timex *tp); }
3131.23Scgd177	UNIMPL
3141.23Scgd178	UNIMPL
3151.23Scgd179	UNIMPL
3161.23Scgd180	UNIMPL
3171.1Sglass
3181.1Sglass; Syscalls 180-199 are used by/reserved for BSD
3191.28Smycroft181	STD		{ int sys_setgid(gid_t gid); }
3201.28Smycroft182	STD		{ int sys_setegid(gid_t egid); }
3211.28Smycroft183	STD		{ int sys_seteuid(uid_t euid); }
3221.17Scgd#ifdef LFS
3231.23Scgd184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
3241.23Scgd			    struct block_info *blkiov, int blkcnt); }
3251.23Scgd185	STD		{ int lfs_markv(fsid_t *fsidp, \
3261.23Scgd			    struct block_info *blkiov, int blkcnt); }
3271.23Scgd186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
3281.23Scgd187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
3291.23Scgd#else
3301.23Scgd184	UNIMPL
3311.23Scgd185	UNIMPL
3321.23Scgd186	UNIMPL
3331.23Scgd187	UNIMPL
3341.23Scgd#endif
3351.28Smycroft188	STD		{ int sys_stat(char *path, struct stat *ub); }
3361.28Smycroft189	STD		{ int sys_fstat(int fd, struct stat *sb); }
3371.28Smycroft190	STD		{ int sys_lstat(char *path, struct stat *ub); }
3381.28Smycroft191	STD		{ int sys_pathconf(char *path, int name); }
3391.28Smycroft192	STD		{ int sys_fpathconf(int fd, int name); }
3401.23Scgd193	UNIMPL
3411.28Smycroft194	STD		{ int sys_getrlimit(u_int which, struct rlimit *rlp); }
3421.28Smycroft195	STD		{ int sys_setrlimit(u_int which, struct rlimit *rlp); }
3431.28Smycroft196	STD		{ int sys_getdirentries(int fd, char *buf, \
3441.28Smycroft			    u_int count, long *basep); }
3451.28Smycroft197	STD		{ caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
3461.23Scgd			    int flags, int fd, long pad, off_t pos); }
3471.28Smycroft198	STD		{ int sys_nosys(void); } __syscall
3481.28Smycroft199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
3491.23Scgd			    int whence); }
3501.28Smycroft200	STD		{ int sys_truncate(char *path, int pad, off_t length); }
3511.28Smycroft201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
3521.28Smycroft202	STD		{ int sys___sysctl(int *name, u_int namelen, \
3531.28Smycroft			    void *old, size_t *oldlenp, void *new, \
3541.28Smycroft			    size_t newlen); }
3551.28Smycroft203	STD		{ int sys_mlock(caddr_t addr, size_t len); }
3561.28Smycroft204	STD		{ int sys_munlock(caddr_t addr, size_t len); }
3571.28Smycroft205	STD		{ int sys_undelete(char *path); }
3581.32Smycroft206	STD		{ int sys_futimes(int fd, struct timeval *tptr); }
3591.23Scgd207	UNIMPL
3601.23Scgd208	UNIMPL
3611.23Scgd209	UNIMPL
3621.11Scgd;
3631.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls
3641.11Scgd;
3651.11Scgd#ifdef LKM
3661.28Smycroft210	NODEF		{ int sys_lkmnosys(void); }
3671.28Smycroft211	NODEF		{ int sys_lkmnosys(void); }
3681.28Smycroft212	NODEF		{ int sys_lkmnosys(void); }
3691.28Smycroft213	NODEF		{ int sys_lkmnosys(void); }
3701.28Smycroft214	NODEF		{ int sys_lkmnosys(void); }
3711.28Smycroft215	NODEF		{ int sys_lkmnosys(void); }
3721.28Smycroft216	NODEF		{ int sys_lkmnosys(void); }
3731.28Smycroft217	NODEF		{ int sys_lkmnosys(void); }
3741.28Smycroft218	NODEF		{ int sys_lkmnosys(void); }
3751.28Smycroft219	NODEF		{ int sys_lkmnosys(void); }
3761.11Scgd#else	/* !LKM */
3771.23Scgd210	UNIMPL
3781.23Scgd211	UNIMPL
3791.23Scgd212	UNIMPL
3801.23Scgd213	UNIMPL
3811.23Scgd214	UNIMPL
3821.23Scgd215	UNIMPL
3831.23Scgd216	UNIMPL
3841.23Scgd217	UNIMPL
3851.23Scgd218	UNIMPL
3861.23Scgd219	UNIMPL
3871.6Scgd#endif	/* !LKM */
3881.23Scgd; System calls 220-240 are reserved for use by NetBSD
3891.23Scgd#ifdef SYSVSEM
3901.28Smycroft220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
3911.23Scgd			    union semun *arg); }
3921.28Smycroft221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
3931.28Smycroft222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
3941.23Scgd			    u_int nsops); }
3951.28Smycroft223	STD		{ int sys_semconfig(int flag); }
3961.23Scgd#else
3971.23Scgd220	UNIMPL		semctl
3981.23Scgd221	UNIMPL		semget
3991.23Scgd222	UNIMPL		semop
4001.23Scgd223	UNIMPL		semconfig
4011.23Scgd#endif
4021.23Scgd#ifdef SYSVMSG
4031.28Smycroft224	STD		{ int sys_msgctl(int msqid, int cmd, \
4041.23Scgd			    struct msqid_ds *buf); }
4051.28Smycroft225	STD		{ int sys_msgget(key_t key, int msgflg); }
4061.28Smycroft226	STD		{ int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
4071.23Scgd			    int msgflg); }
4081.28Smycroft227	STD		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
4091.23Scgd			    long msgtyp, int msgflg); }
4101.23Scgd#else
4111.23Scgd224	UNIMPL		msgctl
4121.23Scgd225	UNIMPL		msgget
4131.23Scgd226	UNIMPL		msgsnd
4141.23Scgd227	UNIMPL		msgrcv
4151.23Scgd#endif
4161.23Scgd#ifdef SYSVSHM
4171.28Smycroft228	STD		{ int sys_shmat(int shmid, void *shmaddr, int shmflg); }
4181.28Smycroft229	STD		{ int sys_shmctl(int shmid, int cmd, \
4191.23Scgd			    struct shmid_ds *buf); }
4201.28Smycroft230	STD		{ int sys_shmdt(void *shmaddr); }
4211.28Smycroft231	STD		{ int sys_shmget(key_t key, int size, int shmflg); }
4221.23Scgd#else
4231.23Scgd228	UNIMPL		shmat
4241.23Scgd229	UNIMPL		shmctl
4251.23Scgd230	UNIMPL		shmdt
4261.23Scgd231	UNIMPL		shmget
4271.23Scgd#endif
428