syscalls.master revision 1.19
11.19Smycroft	$NetBSD: syscalls.master,v 1.19 1998/09/11 12:50:08 mycroft Exp $
21.1Smycroft
31.1Smycroft;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
41.1Smycroft
51.1Smycroft; NetBSD COMPAT_FREEBSD system call name/number "master" file.
61.1Smycroft; (See syscalls.conf to see what it is processed into.)
71.1Smycroft;
81.1Smycroft; Fields: number type [type-dependent ...]
91.1Smycroft;	number	system call number, must be in order
101.1Smycroft;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
111.1Smycroft;		the compatibility options defined in syscalls.conf.
121.1Smycroft;
131.1Smycroft; types:
141.1Smycroft;	STD	always included
151.1Smycroft;	OBSOL	obsolete, not included in system
161.1Smycroft;	UNIMPL	unimplemented, not included in system
171.1Smycroft;	NODEF	included, but don't define the syscall number
181.1Smycroft;	NOARGS	included, but don't define the syscall args structure
191.1Smycroft;
201.1Smycroft; The compat options are defined in the syscalls.conf file, and the
211.1Smycroft; compat option name is prefixed to the syscall name.  Other than
221.1Smycroft; that, they're like NODEF (for 'compat' options), or STD (for
231.1Smycroft; 'libcompat' options).
241.1Smycroft;
251.1Smycroft; The type-dependent arguments are as follows:
261.1Smycroft; For STD, NODEF, NOARGS, and compat syscalls:
271.1Smycroft;	{ pseudo-proto } [alias]
281.1Smycroft; For other syscalls:
291.1Smycroft;	[comment]
301.1Smycroft;
311.1Smycroft; #ifdef's, etc. may be included, and are copied to the output files.
321.15Sthorpej; #include's are copied to the syscall names and switch definition files only.
331.17Sthorpej
341.17Sthorpej#include "opt_ktrace.h"
351.18Sthorpej#include "opt_nfsserver.h"
361.15Sthorpej
371.15Sthorpej#include "fs_lfs.h"
381.15Sthorpej#include "fs_nfs.h"
391.1Smycroft
401.1Smycroft#include <sys/param.h>
411.1Smycroft#include <sys/systm.h>
421.1Smycroft#include <sys/signal.h>
431.1Smycroft#include <sys/mount.h>
441.1Smycroft#include <sys/syscallargs.h>
451.1Smycroft
461.1Smycroft#include <compat/freebsd/freebsd_syscallargs.h>
471.1Smycroft
481.1Smycroft#include <machine/freebsd_machdep.h>
491.1Smycroft
501.1Smycroft; Reserved/unimplemented system calls in the range 0-150 inclusive
511.1Smycroft; are reserved for use in future Berkeley releases.
521.1Smycroft; Additional system calls implemented in vendor and other
531.1Smycroft; redistributions should be placed in the reserved range at the end
541.1Smycroft; of the current calls.
551.1Smycroft
561.1Smycroft0	NOARGS		{ int sys_nosys(void); } syscall
571.1Smycroft1	NOARGS		{ int sys_exit(int rval); }
581.1Smycroft2	NOARGS		{ int sys_fork(void); }
591.1Smycroft3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
601.1Smycroft4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
611.1Smycroft5	STD		{ int freebsd_sys_open(char *path, int flags, \
621.1Smycroft			    int mode); }
631.1Smycroft6	NOARGS		{ int sys_close(int fd); }
641.1Smycroft7	NOARGS		{ int sys_wait4(int pid, int *status, int options, \
651.1Smycroft			    struct rusage *rusage); }
661.1Smycroft8	STD		{ int compat_43_freebsd_sys_creat(char *path, \
671.1Smycroft			    int mode); } ocreat
681.1Smycroft9	STD		{ int freebsd_sys_link(char *path, char *link); }
691.1Smycroft10	STD		{ int freebsd_sys_unlink(char *path); }
701.1Smycroft11	OBSOL		execv
711.1Smycroft12	STD		{ int freebsd_sys_chdir(char *path); }
721.1Smycroft13	NOARGS		{ int sys_fchdir(int fd); }
731.1Smycroft14	STD		{ int freebsd_sys_mknod(char *path, int mode, \
741.1Smycroft			    int dev); }
751.1Smycroft15	STD		{ int freebsd_sys_chmod(char *path, int mode); }
761.1Smycroft16	STD		{ int freebsd_sys_chown(char *path, int uid, int gid); }
771.1Smycroft17	NOARGS		{ int sys_obreak(char *nsize); } break
781.1Smycroft18	NOARGS		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
791.1Smycroft			    int flags); }
801.1Smycroft19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
811.1Smycroft			    int whence); } olseek
821.1Smycroft20	NOARGS		{ pid_t sys_getpid(void); }
831.1Smycroft21	STD		{ int freebsd_sys_mount(int type, char *path, \
841.1Smycroft			    int flags, caddr_t data); }
851.1Smycroft22	STD		{ int freebsd_sys_unmount(char *path, int flags); }
861.1Smycroft23	NOARGS		{ int sys_setuid(uid_t uid); }
871.1Smycroft24	NOARGS		{ uid_t sys_getuid(void); }
881.1Smycroft25	NOARGS		{ uid_t sys_geteuid(void); }
891.1Smycroft26	STD		{ int freebsd_sys_ptrace(int req, pid_t pid, \
901.1Smycroft			    caddr_t addr, int data); }
911.1Smycroft27	NOARGS		{ int sys_recvmsg(int s, struct msghdr *msg, \
921.1Smycroft			    int flags); }
931.1Smycroft28	NOARGS		{ int sys_sendmsg(int s, caddr_t msg, int flags); }
941.1Smycroft29	NOARGS		{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
951.1Smycroft			    int flags, caddr_t from, int *fromlenaddr); }
961.1Smycroft30	NOARGS		{ int sys_accept(int s, caddr_t name, int *anamelen); }
971.1Smycroft31	NOARGS		{ int sys_getpeername(int fdes, caddr_t asa, \
981.1Smycroft			    int *alen); }
991.1Smycroft32	NOARGS		{ int sys_getsockname(int fdes, caddr_t asa, \
1001.1Smycroft			    int *alen); }
1011.1Smycroft33	STD		{ int freebsd_sys_access(char *path, int flags); }
1021.1Smycroft34	STD		{ int freebsd_sys_chflags(char *path, int flags); }
1031.1Smycroft35	NOARGS		{ int sys_fchflags(int fd, int flags); }
1041.1Smycroft36	NOARGS		{ int sys_sync(void); }
1051.1Smycroft37	NOARGS		{ int sys_kill(int pid, int signum); }
1061.1Smycroft38	STD		{ int compat_43_freebsd_sys_stat(char *path, \
1071.11Schristos			    struct stat43 *ub); } stat43
1081.3Smycroft39	NOARGS		{ pid_t sys_getppid(void); }
1091.1Smycroft40	STD		{ int compat_43_freebsd_sys_lstat(char *path, \
1101.11Schristos			    struct stat43 *ub); } lstat43
1111.1Smycroft41	NOARGS		{ int sys_dup(u_int fd); }
1121.1Smycroft42	NOARGS		{ int sys_pipe(void); }
1131.1Smycroft43	NOARGS		{ gid_t sys_getegid(void); }
1141.1Smycroft44	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
1151.1Smycroft			    u_int offset, u_int scale); }
1161.1Smycroft#ifdef KTRACE
1171.1Smycroft45	NOARGS		{ int sys_ktrace(char *fname, int ops, int facs, \
1181.1Smycroft			    int pid); }
1191.1Smycroft#else
1201.1Smycroft45	UNIMPL		ktrace
1211.1Smycroft#endif
1221.19Smycroft46	NOARGS		{ int compat_13_sys_sigaction(int signum, \
1231.19Smycroft			    const struct sigaction13 *nsa, \
1241.19Smycroft			    struct sigaction13 *osa); }
1251.1Smycroft47	NOARGS		{ gid_t sys_getgid(void); }
1261.19Smycroft48	NOARGS		{ int compat_13_sys_sigprocmask(int how, \
1271.19Smycroft			    int mask); }
1281.5Schristos49	NOARGS		{ int sys___getlogin(char *namebuf, u_int namelen); }
1291.1Smycroft50	NOARGS		{ int sys_setlogin(char *namebuf); }
1301.1Smycroft51	NOARGS		{ int sys_acct(char *path); }
1311.19Smycroft52	NOARGS		{ int compat_13_sys_sigpending(void); }
1321.13Sveego53	NOARGS		{ int compat_13_sys_sigaltstack( \
1331.13Sveego			    const struct sigaltstack13 *nss, \
1341.13Sveego			    struct sigaltstack13 *oss); }
1351.1Smycroft54	STD		{ int freebsd_sys_ioctl(int fd, u_long com, \
1361.1Smycroft			    caddr_t data); }
1371.1Smycroft55	NOARGS		{ int sys_reboot(int opt); }
1381.1Smycroft56	STD		{ int freebsd_sys_revoke(char *path); }
1391.1Smycroft57	STD		{ int freebsd_sys_symlink(char *path, char *link); }
1401.1Smycroft58	STD		{ int freebsd_sys_readlink(char *path, char *buf, \
1411.1Smycroft			    int count); }
1421.1Smycroft59	STD		{ int freebsd_sys_execve(char *path, char **argp, \
1431.1Smycroft			    char **envp); }
1441.1Smycroft60	NOARGS		{ int sys_umask(int newmask); }
1451.1Smycroft61	STD		{ int freebsd_sys_chroot(char *path); }
1461.11Schristos62	NOARGS		{ int compat_43_sys_fstat(int fd, struct stat43 *sb); } \
1471.11Schristos			    fstat43
1481.1Smycroft63	NOARGS		{ int compat_43_sys_getkerninfo(int op, char *where, \
1491.1Smycroft			    int *size, int arg); } ogetkerninfo
1501.1Smycroft64	NOARGS		{ int compat_43_sys_getpagesize(void); } ogetpagesize
1511.1Smycroft65	STD		{ int freebsd_sys_msync(caddr_t addr, size_t len, \
1521.1Smycroft			    int flags); }
1531.1Smycroft66	NOARGS		{ int sys_vfork(void); }
1541.1Smycroft67	OBSOL		vread
1551.1Smycroft68	OBSOL		vwrite
1561.1Smycroft69	NOARGS		{ int sys_sbrk(int incr); }
1571.1Smycroft70	NOARGS		{ int sys_sstk(int incr); }
1581.1Smycroft71	NOARGS		{ int compat_43_sys_mmap(caddr_t addr, size_t len, \
1591.1Smycroft			    int prot, int flags, int fd, long pos); } ommap
1601.1Smycroft72	NOARGS		{ int sys_ovadvise(int anom); } vadvise
1611.1Smycroft73	NOARGS		{ int sys_munmap(caddr_t addr, size_t len); }
1621.1Smycroft74	NOARGS		{ int sys_mprotect(caddr_t addr, size_t len, \
1631.1Smycroft			    int prot); }
1641.1Smycroft75	NOARGS		{ int sys_madvise(caddr_t addr, size_t len, \
1651.1Smycroft			    int behav); }
1661.1Smycroft76	OBSOL		vhangup
1671.1Smycroft77	OBSOL		vlimit
1681.1Smycroft78	NOARGS		{ int sys_mincore(caddr_t addr, size_t len, char *vec); }
1691.1Smycroft79	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
1701.1Smycroft80	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
1711.1Smycroft81	NOARGS		{ int sys_getpgrp(void); }
1721.1Smycroft82	NOARGS		{ int sys_setpgid(int pid, int pgid); }
1731.1Smycroft83	NOARGS		{ int sys_setitimer(u_int which, \
1741.1Smycroft			    struct itimerval *itv, struct itimerval *oitv); }
1751.1Smycroft84	NOARGS		{ int compat_43_sys_wait(void); } owait
1761.7Sthorpej85	NOARGS		{ int compat_12_sys_swapon(char *name); }
1771.1Smycroft86	NOARGS		{ int sys_getitimer(u_int which, \
1781.1Smycroft			    struct itimerval *itv); }
1791.1Smycroft87	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
1801.1Smycroft			    u_int len); } ogethostname
1811.1Smycroft88	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
1821.1Smycroft			    u_int len); } osethostname
1831.1Smycroft89	NOARGS		{ int compat_43_sys_getdtablesize(void); } \
1841.1Smycroft			    ogetdtablesize
1851.1Smycroft90	NOARGS		{ int sys_dup2(u_int from, u_int to); }
1861.1Smycroft91	UNIMPL		getdopt
1871.1Smycroft92	NOARGS		{ int sys_fcntl(int fd, int cmd, void *arg); }
1881.1Smycroft93	NOARGS		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
1891.1Smycroft			    fd_set *ex, struct timeval *tv); }
1901.1Smycroft94	UNIMPL		setdopt
1911.1Smycroft95	NOARGS		{ int sys_fsync(int fd); }
1921.1Smycroft96	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
1931.1Smycroft97	NOARGS		{ int sys_socket(int domain, int type, int protocol); }
1941.1Smycroft98	NOARGS		{ int sys_connect(int s, caddr_t name, int namelen); }
1951.1Smycroft99	NOARGS		{ int compat_43_sys_accept(int s, caddr_t name, \
1961.1Smycroft			    int *anamelen); } oaccept
1971.1Smycroft100	NOARGS		{ int sys_getpriority(int which, int who); }
1981.1Smycroft101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
1991.1Smycroft			    int flags); } osend
2001.1Smycroft102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
2011.1Smycroft			    int flags); } orecv
2021.1Smycroft103	STD		{ int freebsd_sys_sigreturn( \
2031.1Smycroft			    struct freebsd_sigcontext *scp); }
2041.1Smycroft104	NOARGS		{ int sys_bind(int s, caddr_t name, int namelen); }
2051.1Smycroft105	NOARGS		{ int sys_setsockopt(int s, int level, int name, \
2061.1Smycroft			    caddr_t val, int valsize); }
2071.1Smycroft106	NOARGS		{ int sys_listen(int s, int backlog); }
2081.1Smycroft107	OBSOL		vtimes
2091.1Smycroft108	NOARGS		{ int compat_43_sys_sigvec(int signum, \
2101.1Smycroft			    struct sigvec *nsv, struct sigvec *osv); } osigvec
2111.1Smycroft109	NOARGS		{ int compat_43_sys_sigblock(int mask); } osigblock
2121.1Smycroft110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); } osigsetmask
2131.19Smycroft111	NOARGS		{ int compat_13_sys_sigsuspend(int mask); }
2141.1Smycroft112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
2151.1Smycroft			    struct sigstack *oss); } osigstack
2161.1Smycroft113	NOARGS		{ int compat_43_sys_recvmsg(int s, \
2171.1Smycroft			    struct omsghdr *msg, int flags); } orecvmsg
2181.1Smycroft114	NOARGS		{ int compat_43_sys_sendmsg(int s, caddr_t msg, \
2191.1Smycroft			    int flags); } osendmsg
2201.1Smycroft#ifdef TRACE
2211.1Smycroft115	NOARGS		{ int sys_vtrace(int request, int value); }
2221.1Smycroft#else
2231.1Smycroft115	OBSOL		vtrace
2241.1Smycroft#endif
2251.1Smycroft116	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
2261.1Smycroft			    struct timezone *tzp); }
2271.1Smycroft117	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
2281.1Smycroft118	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
2291.1Smycroft			    caddr_t val, int *avalsize); }
2301.1Smycroft119	OBSOL		resuba
2311.1Smycroft120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
2321.1Smycroft			    u_int iovcnt); }
2331.1Smycroft121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
2341.1Smycroft			    u_int iovcnt); }
2351.1Smycroft122	NOARGS		{ int sys_settimeofday(struct timeval *tv, \
2361.1Smycroft			    struct timezone *tzp); }
2371.1Smycroft123	NOARGS		{ int sys_fchown(int fd, int uid, int gid); }
2381.1Smycroft124	NOARGS		{ int sys_fchmod(int fd, int mode); }
2391.1Smycroft125	NOARGS		{ int compat_43_sys_recvfrom(int s, caddr_t buf, \
2401.1Smycroft			    size_t len, int flags, caddr_t from, \
2411.1Smycroft			    int *fromlenaddr); } orecvfrom
2421.4Smycroft126	NOARGS		{ int sys_setreuid(int ruid, int euid); }
2431.4Smycroft127	NOARGS		{ int sys_setregid(int rgid, int egid); }
2441.1Smycroft128	STD		{ int freebsd_sys_rename(char *from, char *to); }
2451.1Smycroft129	STD		{ int compat_43_freebsd_sys_truncate(char *path, \
2461.1Smycroft			    long length); } otruncate
2471.2Smycroft130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); } \
2481.2Smycroft			    oftruncate
2491.2Smycroft131	NOARGS		{ int sys_flock(int fd, int how); }
2501.1Smycroft132	STD		{ int freebsd_sys_mkfifo(char *path, int mode); }
2511.1Smycroft133	NOARGS		{ int sys_sendto(int s, caddr_t buf, size_t len, \
2521.1Smycroft			    int flags, caddr_t to, int tolen); }
2531.1Smycroft134	NOARGS		{ int sys_shutdown(int s, int how); }
2541.1Smycroft135	NOARGS		{ int sys_socketpair(int domain, int type, \
2551.1Smycroft			    int protocol, int *rsv); }
2561.1Smycroft136	STD		{ int freebsd_sys_mkdir(char *path, int mode); }
2571.1Smycroft137	STD		{ int freebsd_sys_rmdir(char *path); }
2581.1Smycroft138	NOARGS		{ int sys_utimes(char *path, struct timeval *tptr); }
2591.1Smycroft139	OBSOL		4.2 sigreturn
2601.1Smycroft140	NOARGS		{ int sys_adjtime(struct timeval *delta, \
2611.1Smycroft			    struct timeval *olddelta); }
2621.1Smycroft141	NOARGS		{ int compat_43_sys_getpeername(int fdes, caddr_t asa, \
2631.1Smycroft			    int *alen); } ogetpeername
2641.1Smycroft142	NOARGS		{ int32_t compat_43_sys_gethostid(void); } ogethostid
2651.1Smycroft143	NOARGS		{ int compat_43_sys_sethostid(int32_t hostid); } \
2661.1Smycroft			    osethostid
2671.1Smycroft144	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
2681.10Smycroft			    struct orlimit *rlp); } ogetrlimit
2691.1Smycroft145	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
2701.10Smycroft			    struct orlimit *rlp); } osetrlimit
2711.1Smycroft146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); } \
2721.1Smycroft			    okillpg
2731.1Smycroft147	NOARGS		{ int sys_setsid(void); }
2741.1Smycroft148	NOARGS		{ int sys_quotactl(char *path, int cmd, int uid, \
2751.1Smycroft			    caddr_t arg); }
2761.1Smycroft149	NOARGS		{ int compat_43_sys_quota(void); } oquota
2771.1Smycroft150	NOARGS		{ int compat_43_sys_getsockname(int fdec, caddr_t asa, \
2781.1Smycroft			    int *alen); } ogetsockname
2791.1Smycroft
2801.1Smycroft; Syscalls 151-180 inclusive are reserved for vendor-specific
2811.1Smycroft; system calls.  (This includes various calls added for compatibity
2821.1Smycroft; with other Unix variants.)
2831.1Smycroft; Some of these calls are now supported by BSD...
2841.1Smycroft151	UNIMPL
2851.1Smycroft152	UNIMPL
2861.1Smycroft153	UNIMPL
2871.1Smycroft154	UNIMPL
2881.6Sthorpej#if defined(NFS) || defined(NFSSERVER)
2891.1Smycroft155	NOARGS		{ int sys_nfssvc(int flag, caddr_t argp); }
2901.1Smycroft#else
2911.1Smycroft155	UNIMPL
2921.1Smycroft#endif
2931.1Smycroft156	NOARGS		{ int compat_43_sys_getdirentries(int fd, char *buf, \
2941.1Smycroft			    u_int count, long *basep); } ogetdirentries
2951.1Smycroft157	STD		{ int freebsd_sys_statfs(char *path, \
2961.1Smycroft			    struct statfs *buf); }
2971.1Smycroft158	NOARGS		{ int sys_fstatfs(int fd, struct statfs *buf); }
2981.1Smycroft159	UNIMPL
2991.1Smycroft160	UNIMPL
3001.6Sthorpej#ifdef NFS
3011.1Smycroft161	STD		{ int freebsd_sys_getfh(char *fname, fhandle_t *fhp); }
3021.1Smycroft#else
3031.1Smycroft161	UNIMPL		getfh
3041.1Smycroft#endif
3051.1Smycroft162	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
3061.1Smycroft			    int len); }
3071.1Smycroft163	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
3081.1Smycroft			    int len); }
3091.1Smycroft164	NOARGS		{ int compat_09_sys_uname(struct outsname *name); }
3101.1Smycroft165	NOARGS		{ int sys_sysarch(int op, char *parms); }
3111.1Smycroft166	STD		{ int freebsd_sys_rtprio(int function, pid_t pid, \
3121.1Smycroft			    struct freebsd_rtprio *rtp); }
3131.1Smycroft167	UNIMPL
3141.1Smycroft168	UNIMPL
3151.1Smycroft; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3161.1Smycroft#if defined(SYSVSEM) && !defined(alpha)
3171.14Smycroft169	STD		{ int freebsd_sys_semsys(int which, int a2, int a3, \
3181.1Smycroft			    int a4, int a5); }
3191.1Smycroft#else
3201.1Smycroft169	UNIMPL		1.0 semsys
3211.1Smycroft#endif
3221.1Smycroft; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3231.1Smycroft#if defined(SYSVMSG) && !defined(alpha)
3241.14Smycroft170	STD		{ int freebsd_sys_msgsys(int which, int a2, int a3, \
3251.1Smycroft			    int a4, int a5, int a6); }
3261.1Smycroft#else
3271.1Smycroft170	UNIMPL		1.0 msgsys
3281.1Smycroft#endif
3291.1Smycroft; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3301.1Smycroft#if defined(SYSVSHM) && !defined(alpha)
3311.14Smycroft171	STD		{ int freebsd_sys_shmsys(int which, int a2, int a3, \
3321.1Smycroft			    int a4); }
3331.1Smycroft#else
3341.1Smycroft171	UNIMPL		1.0 shmsys
3351.1Smycroft#endif
3361.1Smycroft172	UNIMPL
3371.1Smycroft173	UNIMPL
3381.1Smycroft174	UNIMPL
3391.1Smycroft175	UNIMPL
3401.1Smycroft176	STD		{ int freebsd_ntp_adjtime(struct freebsd_timex *tp); }
3411.1Smycroft177	UNIMPL
3421.1Smycroft178	UNIMPL
3431.1Smycroft179	UNIMPL
3441.1Smycroft180	UNIMPL
3451.1Smycroft
3461.1Smycroft; Syscalls 180-199 are used by/reserved for BSD
3471.1Smycroft181	NOARGS		{ int sys_setgid(gid_t gid); }
3481.1Smycroft182	NOARGS		{ int sys_setegid(gid_t egid); }
3491.1Smycroft183	NOARGS		{ int sys_seteuid(uid_t euid); }
3501.1Smycroft#ifdef LFS
3511.1Smycroft184	NOARGS		{ int lfs_bmapv(fsid_t *fsidp, \
3521.1Smycroft			    struct block_info *blkiov, int blkcnt); }
3531.1Smycroft185	NOARGS		{ int lfs_markv(fsid_t *fsidp, \
3541.1Smycroft			    struct block_info *blkiov, int blkcnt); }
3551.1Smycroft186	NOARGS		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
3561.1Smycroft187	NOARGS		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
3571.1Smycroft#else
3581.1Smycroft184	UNIMPL
3591.1Smycroft185	UNIMPL
3601.1Smycroft186	UNIMPL
3611.1Smycroft187	UNIMPL
3621.1Smycroft#endif
3631.12Schristos188	STD		{ int freebsd_sys_stat(char *path, \
3641.12Schristos			    struct stat12 *ub); }
3651.12Schristos189	NOARGS		{ int compat_12_sys_fstat(int fd, \
3661.12Schristos			    struct stat12 *sb); }
3671.12Schristos190	STD		{ int freebsd_sys_lstat(char *path, \
3681.12Schristos			    struct stat12 *ub); }
3691.1Smycroft191	STD		{ int freebsd_sys_pathconf(char *path, int name); }
3701.1Smycroft192	NOARGS		{ int sys_fpathconf(int fd, int name); }
3711.1Smycroft193	UNIMPL
3721.1Smycroft194	NOARGS		{ int sys_getrlimit(u_int which, struct rlimit *rlp); }
3731.1Smycroft195	NOARGS		{ int sys_setrlimit(u_int which, struct rlimit *rlp); }
3741.8Sfvdl196	NOARGS		{ int compat_12_sys_getdirentries(int fd, char *buf, \
3751.1Smycroft			    u_int count, long *basep); }
3761.1Smycroft197	NOARGS		{ caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
3771.1Smycroft			    int flags, int fd, long pad, off_t pos); }
3781.1Smycroft198	NOARGS		{ int sys_nosys(void); } __syscall
3791.1Smycroft199	NOARGS		{ off_t sys_lseek(int fd, int pad, off_t offset, \
3801.1Smycroft			    int whence); }
3811.1Smycroft200	STD		{ int freebsd_sys_truncate(char *path, int pad, \
3821.1Smycroft			    off_t length); }
3831.1Smycroft201	NOARGS		{ int sys_ftruncate(int fd, int pad, off_t length); }
3841.1Smycroft202	NOARGS		{ int sys___sysctl(int *name, u_int namelen, \
3851.1Smycroft			    void *old, size_t *oldlenp, void *new, \
3861.1Smycroft			    size_t newlen); }
3871.1Smycroft203	NOARGS		{ int sys_mlock(caddr_t addr, size_t len); }
3881.1Smycroft204	NOARGS		{ int sys_munlock(caddr_t addr, size_t len); }
3891.1Smycroft#ifdef FREEBSD_BASED_ON_44LITE_R2
3901.1Smycroft205	STD		{ int freebsd_sys_undelete(char *path); }
3911.1Smycroft#else
3921.1Smycroft205	UNIMPL
3931.1Smycroft#endif
3941.1Smycroft206	UNIMPL
3951.1Smycroft207	UNIMPL
3961.1Smycroft208	UNIMPL
3971.1Smycroft209	UNIMPL
3981.1Smycroft;
3991.1Smycroft; Syscalls 210-219 are reserved for dynamically loaded syscalls
4001.1Smycroft;
4011.1Smycroft210	UNIMPL
4021.1Smycroft211	UNIMPL
4031.1Smycroft212	UNIMPL
4041.1Smycroft213	UNIMPL
4051.1Smycroft214	UNIMPL
4061.1Smycroft215	UNIMPL
4071.1Smycroft216	UNIMPL
4081.1Smycroft217	UNIMPL
4091.1Smycroft218	UNIMPL
4101.1Smycroft219	UNIMPL
4111.9Senami;
4121.9Senami; Syscalls 220-239 are reserved for syscalls imported from NetBSD
4131.9Senami;
4141.9Senami220	UNIMPL
4151.9Senami221	UNIMPL
4161.9Senami222	UNIMPL
4171.9Senami223	UNIMPL
4181.9Senami224	UNIMPL
4191.9Senami225	UNIMPL
4201.9Senami226	UNIMPL
4211.9Senami227	UNIMPL
4221.9Senami228	UNIMPL
4231.9Senami229	UNIMPL
4241.9Senami230	UNIMPL
4251.9Senami231	UNIMPL
4261.9Senami232	UNIMPL
4271.9Senami233	UNIMPL
4281.9Senami234	UNIMPL
4291.9Senami235	UNIMPL
4301.9Senami236	UNIMPL
4311.9Senami237	UNIMPL
4321.9Senami238	UNIMPL
4331.9Senami239	UNIMPL
4341.9Senami240	UNIMPL
4351.9Senami241	UNIMPL
4361.9Senami242	UNIMPL
4371.9Senami243	UNIMPL
4381.9Senami244	UNIMPL
4391.9Senami245	UNIMPL
4401.9Senami246	UNIMPL
4411.9Senami247	UNIMPL
4421.9Senami248	UNIMPL
4431.9Senami249	UNIMPL
4441.9Senami250	UNIMPL
4451.9Senami251	UNIMPL
4461.9Senami252	UNIMPL
4471.16Schristos253	STD		{ int freebsd_sys_issetugid(void); }
4481.9Senami254	STD		{ int freebsd_sys_lchown(char *path, int uid, \
4491.9Senami			    int gid); }
450