2000-08-08 06:12:30 +04:00
|
|
|
$NetBSD: syscalls.master,v 1.30 2000/08/08 02:14:48 itojun Exp $
|
1995-10-10 04:19:24 +03:00
|
|
|
|
|
|
|
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
|
|
|
|
|
|
|
; NetBSD COMPAT_FREEBSD system call name/number "master" file.
|
|
|
|
; (See syscalls.conf to see what it is processed into.)
|
|
|
|
;
|
|
|
|
; Fields: number type [type-dependent ...]
|
|
|
|
; number system call number, must be in order
|
|
|
|
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
|
|
|
|
; the compatibility options defined in syscalls.conf.
|
|
|
|
;
|
|
|
|
; types:
|
|
|
|
; STD always included
|
|
|
|
; OBSOL obsolete, not included in system
|
|
|
|
; UNIMPL unimplemented, not included in system
|
|
|
|
; NODEF included, but don't define the syscall number
|
|
|
|
; NOARGS included, but don't define the syscall args structure
|
|
|
|
;
|
|
|
|
; The compat options are defined in the syscalls.conf file, and the
|
|
|
|
; compat option name is prefixed to the syscall name. Other than
|
|
|
|
; that, they're like NODEF (for 'compat' options), or STD (for
|
|
|
|
; 'libcompat' options).
|
|
|
|
;
|
|
|
|
; The type-dependent arguments are as follows:
|
|
|
|
; For STD, NODEF, NOARGS, and compat syscalls:
|
|
|
|
; { pseudo-proto } [alias]
|
|
|
|
; For other syscalls:
|
|
|
|
; [comment]
|
|
|
|
;
|
|
|
|
; #ifdef's, etc. may be included, and are copied to the output files.
|
1998-02-19 03:36:03 +03:00
|
|
|
; #include's are copied to the syscall names and switch definition files only.
|
|
|
|
|
1998-06-26 01:17:15 +04:00
|
|
|
#include "opt_ktrace.h"
|
1998-06-26 02:17:36 +04:00
|
|
|
#include "opt_nfsserver.h"
|
2000-08-07 21:59:33 +04:00
|
|
|
#include "opt_ntp.h"
|
1998-10-20 02:26:39 +04:00
|
|
|
#include "opt_sysv.h"
|
1998-12-10 20:03:19 +03:00
|
|
|
#include "opt_compat_43.h"
|
1998-06-26 01:17:15 +04:00
|
|
|
|
1998-02-19 03:36:03 +03:00
|
|
|
#include "fs_lfs.h"
|
|
|
|
#include "fs_nfs.h"
|
1995-10-10 04:19:24 +03:00
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/signal.h>
|
|
|
|
#include <sys/mount.h>
|
|
|
|
#include <sys/syscallargs.h>
|
|
|
|
|
|
|
|
#include <compat/freebsd/freebsd_syscallargs.h>
|
|
|
|
|
|
|
|
#include <machine/freebsd_machdep.h>
|
|
|
|
|
|
|
|
; Reserved/unimplemented system calls in the range 0-150 inclusive
|
|
|
|
; are reserved for use in future Berkeley releases.
|
|
|
|
; Additional system calls implemented in vendor and other
|
|
|
|
; redistributions should be placed in the reserved range at the end
|
|
|
|
; of the current calls.
|
|
|
|
|
|
|
|
0 NOARGS { int sys_nosys(void); } syscall
|
|
|
|
1 NOARGS { int sys_exit(int rval); }
|
|
|
|
2 NOARGS { int sys_fork(void); }
|
|
|
|
3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
|
|
|
|
4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
|
1999-02-09 23:19:13 +03:00
|
|
|
5 STD { int freebsd_sys_open(const char *path, int flags, \
|
1995-10-10 04:19:24 +03:00
|
|
|
int mode); }
|
|
|
|
6 NOARGS { int sys_close(int fd); }
|
|
|
|
7 NOARGS { int sys_wait4(int pid, int *status, int options, \
|
|
|
|
struct rusage *rusage); }
|
1999-02-09 23:19:13 +03:00
|
|
|
8 STD { int compat_43_freebsd_sys_creat(const char *path, \
|
1995-10-10 04:19:24 +03:00
|
|
|
int mode); } ocreat
|
1999-02-09 23:19:13 +03:00
|
|
|
9 STD { int freebsd_sys_link(const char *path, \
|
|
|
|
const char *link); }
|
|
|
|
10 STD { int freebsd_sys_unlink(const char *path); }
|
1995-10-10 04:19:24 +03:00
|
|
|
11 OBSOL execv
|
1999-02-09 23:19:13 +03:00
|
|
|
12 STD { int freebsd_sys_chdir(const char *path); }
|
1995-10-10 04:19:24 +03:00
|
|
|
13 NOARGS { int sys_fchdir(int fd); }
|
1999-02-09 23:19:13 +03:00
|
|
|
14 STD { int freebsd_sys_mknod(const char *path, int mode, \
|
1995-10-10 04:19:24 +03:00
|
|
|
int dev); }
|
1999-02-09 23:19:13 +03:00
|
|
|
15 STD { int freebsd_sys_chmod(const char *path, int mode); }
|
|
|
|
16 STD { int freebsd_sys_chown(const char *path, int uid, \
|
|
|
|
int gid); }
|
1995-10-10 04:19:24 +03:00
|
|
|
17 NOARGS { int sys_obreak(char *nsize); } break
|
|
|
|
18 NOARGS { int sys_getfsstat(struct statfs *buf, long bufsize, \
|
|
|
|
int flags); }
|
|
|
|
19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
|
|
|
|
int whence); } olseek
|
|
|
|
20 NOARGS { pid_t sys_getpid(void); }
|
1999-02-09 23:19:13 +03:00
|
|
|
21 STD { int freebsd_sys_mount(int type, const char *path, \
|
1995-10-10 04:19:24 +03:00
|
|
|
int flags, caddr_t data); }
|
1999-02-09 23:19:13 +03:00
|
|
|
22 STD { int freebsd_sys_unmount(const char *path, \
|
|
|
|
int flags); }
|
1995-10-10 04:19:24 +03:00
|
|
|
23 NOARGS { int sys_setuid(uid_t uid); }
|
|
|
|
24 NOARGS { uid_t sys_getuid(void); }
|
|
|
|
25 NOARGS { uid_t sys_geteuid(void); }
|
|
|
|
26 STD { int freebsd_sys_ptrace(int req, pid_t pid, \
|
|
|
|
caddr_t addr, int data); }
|
|
|
|
27 NOARGS { int sys_recvmsg(int s, struct msghdr *msg, \
|
|
|
|
int flags); }
|
|
|
|
28 NOARGS { int sys_sendmsg(int s, caddr_t msg, int flags); }
|
|
|
|
29 NOARGS { int sys_recvfrom(int s, caddr_t buf, size_t len, \
|
|
|
|
int flags, caddr_t from, int *fromlenaddr); }
|
|
|
|
30 NOARGS { int sys_accept(int s, caddr_t name, int *anamelen); }
|
|
|
|
31 NOARGS { int sys_getpeername(int fdes, caddr_t asa, \
|
|
|
|
int *alen); }
|
|
|
|
32 NOARGS { int sys_getsockname(int fdes, caddr_t asa, \
|
|
|
|
int *alen); }
|
1999-02-09 23:19:13 +03:00
|
|
|
33 STD { int freebsd_sys_access(const char *path, int flags); }
|
|
|
|
34 STD { int freebsd_sys_chflags(const char *path, \
|
|
|
|
int flags); }
|
1995-10-10 04:19:24 +03:00
|
|
|
35 NOARGS { int sys_fchflags(int fd, int flags); }
|
|
|
|
36 NOARGS { int sys_sync(void); }
|
|
|
|
37 NOARGS { int sys_kill(int pid, int signum); }
|
1999-02-09 23:19:13 +03:00
|
|
|
38 STD { int compat_43_freebsd_sys_stat(const char *path, \
|
1997-10-17 03:48:18 +04:00
|
|
|
struct stat43 *ub); } stat43
|
1995-10-10 21:27:25 +03:00
|
|
|
39 NOARGS { pid_t sys_getppid(void); }
|
1999-02-09 23:19:13 +03:00
|
|
|
40 STD { int compat_43_freebsd_sys_lstat(const char *path, \
|
1997-10-17 03:48:18 +04:00
|
|
|
struct stat43 *ub); } lstat43
|
1995-10-10 04:19:24 +03:00
|
|
|
41 NOARGS { int sys_dup(u_int fd); }
|
|
|
|
42 NOARGS { int sys_pipe(void); }
|
|
|
|
43 NOARGS { gid_t sys_getegid(void); }
|
|
|
|
44 NOARGS { int sys_profil(caddr_t samples, u_int size, \
|
|
|
|
u_int offset, u_int scale); }
|
|
|
|
#ifdef KTRACE
|
|
|
|
45 NOARGS { int sys_ktrace(char *fname, int ops, int facs, \
|
|
|
|
int pid); }
|
|
|
|
#else
|
|
|
|
45 UNIMPL ktrace
|
|
|
|
#endif
|
1998-09-11 16:50:05 +04:00
|
|
|
46 NOARGS { int compat_13_sys_sigaction(int signum, \
|
|
|
|
const struct sigaction13 *nsa, \
|
|
|
|
struct sigaction13 *osa); }
|
1995-10-10 04:19:24 +03:00
|
|
|
47 NOARGS { gid_t sys_getgid(void); }
|
1998-09-11 16:50:05 +04:00
|
|
|
48 NOARGS { int compat_13_sys_sigprocmask(int how, \
|
|
|
|
int mask); }
|
1996-09-20 20:19:27 +04:00
|
|
|
49 NOARGS { int sys___getlogin(char *namebuf, u_int namelen); }
|
1995-10-10 04:19:24 +03:00
|
|
|
50 NOARGS { int sys_setlogin(char *namebuf); }
|
|
|
|
51 NOARGS { int sys_acct(char *path); }
|
1998-09-11 16:50:05 +04:00
|
|
|
52 NOARGS { int compat_13_sys_sigpending(void); }
|
1997-11-30 21:06:39 +03:00
|
|
|
53 NOARGS { int compat_13_sys_sigaltstack( \
|
|
|
|
const struct sigaltstack13 *nss, \
|
|
|
|
struct sigaltstack13 *oss); }
|
1995-10-10 04:19:24 +03:00
|
|
|
54 STD { int freebsd_sys_ioctl(int fd, u_long com, \
|
|
|
|
caddr_t data); }
|
1999-02-09 23:19:13 +03:00
|
|
|
55 NOARGS { int sys_reboot(int opt); } oreboot
|
|
|
|
56 STD { int freebsd_sys_revoke(const char *path); }
|
|
|
|
57 STD { int freebsd_sys_symlink(const char *path, \
|
|
|
|
const char *link); }
|
|
|
|
58 STD { int freebsd_sys_readlink(const char *path, \
|
|
|
|
char *buf, int count); }
|
|
|
|
59 STD { int freebsd_sys_execve(const char *path, \
|
|
|
|
char **argp, char **envp); }
|
1995-10-10 04:19:24 +03:00
|
|
|
60 NOARGS { int sys_umask(int newmask); }
|
1999-02-09 23:19:13 +03:00
|
|
|
61 STD { int freebsd_sys_chroot(const char *path); }
|
1997-10-17 03:48:18 +04:00
|
|
|
62 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } \
|
|
|
|
fstat43
|
1995-10-10 04:19:24 +03:00
|
|
|
63 NOARGS { int compat_43_sys_getkerninfo(int op, char *where, \
|
|
|
|
int *size, int arg); } ogetkerninfo
|
|
|
|
64 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize
|
|
|
|
65 STD { int freebsd_sys_msync(caddr_t addr, size_t len, \
|
|
|
|
int flags); }
|
|
|
|
66 NOARGS { int sys_vfork(void); }
|
|
|
|
67 OBSOL vread
|
|
|
|
68 OBSOL vwrite
|
1999-07-13 01:55:19 +04:00
|
|
|
69 NOARGS { int sys_sbrk(intptr_t incr); }
|
1995-10-10 04:19:24 +03:00
|
|
|
70 NOARGS { int sys_sstk(int incr); }
|
|
|
|
71 NOARGS { int compat_43_sys_mmap(caddr_t addr, size_t len, \
|
|
|
|
int prot, int flags, int fd, long pos); } ommap
|
|
|
|
72 NOARGS { int sys_ovadvise(int anom); } vadvise
|
|
|
|
73 NOARGS { int sys_munmap(caddr_t addr, size_t len); }
|
|
|
|
74 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \
|
|
|
|
int prot); }
|
|
|
|
75 NOARGS { int sys_madvise(caddr_t addr, size_t len, \
|
|
|
|
int behav); }
|
|
|
|
76 OBSOL vhangup
|
|
|
|
77 OBSOL vlimit
|
|
|
|
78 NOARGS { int sys_mincore(caddr_t addr, size_t len, char *vec); }
|
|
|
|
79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
|
|
|
|
80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
|
|
|
|
81 NOARGS { int sys_getpgrp(void); }
|
|
|
|
82 NOARGS { int sys_setpgid(int pid, int pgid); }
|
|
|
|
83 NOARGS { int sys_setitimer(u_int which, \
|
|
|
|
struct itimerval *itv, struct itimerval *oitv); }
|
|
|
|
84 NOARGS { int compat_43_sys_wait(void); } owait
|
1997-06-13 23:11:42 +04:00
|
|
|
85 NOARGS { int compat_12_sys_swapon(char *name); }
|
1995-10-10 04:19:24 +03:00
|
|
|
86 NOARGS { int sys_getitimer(u_int which, \
|
|
|
|
struct itimerval *itv); }
|
|
|
|
87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
|
|
|
|
u_int len); } ogethostname
|
|
|
|
88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
|
|
|
|
u_int len); } osethostname
|
|
|
|
89 NOARGS { int compat_43_sys_getdtablesize(void); } \
|
|
|
|
ogetdtablesize
|
|
|
|
90 NOARGS { int sys_dup2(u_int from, u_int to); }
|
|
|
|
91 UNIMPL getdopt
|
|
|
|
92 NOARGS { int sys_fcntl(int fd, int cmd, void *arg); }
|
|
|
|
93 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \
|
|
|
|
fd_set *ex, struct timeval *tv); }
|
|
|
|
94 UNIMPL setdopt
|
|
|
|
95 NOARGS { int sys_fsync(int fd); }
|
|
|
|
96 NOARGS { int sys_setpriority(int which, int who, int prio); }
|
|
|
|
97 NOARGS { int sys_socket(int domain, int type, int protocol); }
|
|
|
|
98 NOARGS { int sys_connect(int s, caddr_t name, int namelen); }
|
|
|
|
99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \
|
|
|
|
int *anamelen); } oaccept
|
|
|
|
100 NOARGS { int sys_getpriority(int which, int who); }
|
|
|
|
101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
|
|
|
|
int flags); } osend
|
|
|
|
102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
|
|
|
|
int flags); } orecv
|
|
|
|
103 STD { int freebsd_sys_sigreturn( \
|
|
|
|
struct freebsd_sigcontext *scp); }
|
|
|
|
104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); }
|
|
|
|
105 NOARGS { int sys_setsockopt(int s, int level, int name, \
|
|
|
|
caddr_t val, int valsize); }
|
|
|
|
106 NOARGS { int sys_listen(int s, int backlog); }
|
|
|
|
107 OBSOL vtimes
|
|
|
|
108 NOARGS { int compat_43_sys_sigvec(int signum, \
|
|
|
|
struct sigvec *nsv, struct sigvec *osv); } osigvec
|
|
|
|
109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock
|
|
|
|
110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask
|
1998-09-11 16:50:05 +04:00
|
|
|
111 NOARGS { int compat_13_sys_sigsuspend(int mask); }
|
1995-10-10 04:19:24 +03:00
|
|
|
112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
|
|
|
|
struct sigstack *oss); } osigstack
|
|
|
|
113 NOARGS { int compat_43_sys_recvmsg(int s, \
|
|
|
|
struct omsghdr *msg, int flags); } orecvmsg
|
|
|
|
114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \
|
|
|
|
int flags); } osendmsg
|
|
|
|
#ifdef TRACE
|
|
|
|
115 NOARGS { int sys_vtrace(int request, int value); }
|
|
|
|
#else
|
|
|
|
115 OBSOL vtrace
|
|
|
|
#endif
|
|
|
|
116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
|
|
|
|
struct timezone *tzp); }
|
|
|
|
117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
|
|
|
|
118 NOARGS { int sys_getsockopt(int s, int level, int name, \
|
|
|
|
caddr_t val, int *avalsize); }
|
|
|
|
119 OBSOL resuba
|
|
|
|
120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \
|
|
|
|
u_int iovcnt); }
|
|
|
|
121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \
|
|
|
|
u_int iovcnt); }
|
|
|
|
122 NOARGS { int sys_settimeofday(struct timeval *tv, \
|
|
|
|
struct timezone *tzp); }
|
|
|
|
123 NOARGS { int sys_fchown(int fd, int uid, int gid); }
|
|
|
|
124 NOARGS { int sys_fchmod(int fd, int mode); }
|
|
|
|
125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
|
|
|
|
size_t len, int flags, caddr_t from, \
|
|
|
|
int *fromlenaddr); } orecvfrom
|
1996-06-23 15:17:50 +04:00
|
|
|
126 NOARGS { int sys_setreuid(int ruid, int euid); }
|
|
|
|
127 NOARGS { int sys_setregid(int rgid, int egid); }
|
1999-02-09 23:19:13 +03:00
|
|
|
128 STD { int freebsd_sys_rename(const char *from, \
|
|
|
|
const char *to); }
|
|
|
|
129 STD { int compat_43_freebsd_sys_truncate(const char *path, \
|
1995-10-10 04:19:24 +03:00
|
|
|
long length); } otruncate
|
1995-10-10 04:34:37 +03:00
|
|
|
130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } \
|
|
|
|
oftruncate
|
|
|
|
131 NOARGS { int sys_flock(int fd, int how); }
|
1999-02-09 23:19:13 +03:00
|
|
|
132 STD { int freebsd_sys_mkfifo(const char *path, int mode); }
|
1995-10-10 04:19:24 +03:00
|
|
|
133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \
|
|
|
|
int flags, caddr_t to, int tolen); }
|
|
|
|
134 NOARGS { int sys_shutdown(int s, int how); }
|
|
|
|
135 NOARGS { int sys_socketpair(int domain, int type, \
|
|
|
|
int protocol, int *rsv); }
|
1999-02-09 23:19:13 +03:00
|
|
|
136 STD { int freebsd_sys_mkdir(const char *path, int mode); }
|
|
|
|
137 STD { int freebsd_sys_rmdir(const char *path); }
|
1995-10-10 04:19:24 +03:00
|
|
|
138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); }
|
|
|
|
139 OBSOL 4.2 sigreturn
|
|
|
|
140 NOARGS { int sys_adjtime(struct timeval *delta, \
|
|
|
|
struct timeval *olddelta); }
|
|
|
|
141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \
|
|
|
|
int *alen); } ogetpeername
|
|
|
|
142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid
|
|
|
|
143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } \
|
|
|
|
osethostid
|
|
|
|
144 NOARGS { int compat_43_sys_getrlimit(u_int which, \
|
1997-10-15 21:18:17 +04:00
|
|
|
struct orlimit *rlp); } ogetrlimit
|
1995-10-10 04:19:24 +03:00
|
|
|
145 NOARGS { int compat_43_sys_setrlimit(u_int which, \
|
1997-10-15 21:18:17 +04:00
|
|
|
struct orlimit *rlp); } osetrlimit
|
1995-10-10 04:19:24 +03:00
|
|
|
146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \
|
|
|
|
okillpg
|
|
|
|
147 NOARGS { int sys_setsid(void); }
|
|
|
|
148 NOARGS { int sys_quotactl(char *path, int cmd, int uid, \
|
|
|
|
caddr_t arg); }
|
|
|
|
149 NOARGS { int compat_43_sys_quota(void); } oquota
|
|
|
|
150 NOARGS { int compat_43_sys_getsockname(int fdec, caddr_t asa, \
|
|
|
|
int *alen); } ogetsockname
|
|
|
|
|
|
|
|
; Syscalls 151-180 inclusive are reserved for vendor-specific
|
|
|
|
; system calls. (This includes various calls added for compatibity
|
|
|
|
; with other Unix variants.)
|
|
|
|
; Some of these calls are now supported by BSD...
|
2000-05-23 20:05:51 +04:00
|
|
|
151 UNIMPL sem_lock
|
|
|
|
152 UNIMPL sem_wakeup
|
|
|
|
153 UNIMPL asyncdaemon
|
1995-10-10 04:19:24 +03:00
|
|
|
154 UNIMPL
|
1997-01-31 05:17:46 +03:00
|
|
|
#if defined(NFS) || defined(NFSSERVER)
|
1995-10-10 04:19:24 +03:00
|
|
|
155 NOARGS { int sys_nfssvc(int flag, caddr_t argp); }
|
|
|
|
#else
|
2000-05-23 20:05:51 +04:00
|
|
|
155 UNIMPL nfssvc
|
1995-10-10 04:19:24 +03:00
|
|
|
#endif
|
|
|
|
156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \
|
|
|
|
u_int count, long *basep); } ogetdirentries
|
1999-02-09 23:19:13 +03:00
|
|
|
157 STD { int freebsd_sys_statfs(const char *path, \
|
1995-10-10 04:19:24 +03:00
|
|
|
struct statfs *buf); }
|
|
|
|
158 NOARGS { int sys_fstatfs(int fd, struct statfs *buf); }
|
|
|
|
159 UNIMPL
|
|
|
|
160 UNIMPL
|
1997-01-31 05:17:46 +03:00
|
|
|
#ifdef NFS
|
1999-02-09 23:19:13 +03:00
|
|
|
161 STD { int freebsd_sys_getfh(const char *fname, \
|
|
|
|
fhandle_t *fhp); }
|
1995-10-10 04:19:24 +03:00
|
|
|
#else
|
|
|
|
161 UNIMPL getfh
|
|
|
|
#endif
|
|
|
|
162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
|
|
|
|
int len); }
|
|
|
|
163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
|
|
|
|
int len); }
|
|
|
|
164 NOARGS { int compat_09_sys_uname(struct outsname *name); }
|
|
|
|
165 NOARGS { int sys_sysarch(int op, char *parms); }
|
|
|
|
166 STD { int freebsd_sys_rtprio(int function, pid_t pid, \
|
|
|
|
struct freebsd_rtprio *rtp); }
|
|
|
|
167 UNIMPL
|
|
|
|
168 UNIMPL
|
|
|
|
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
|
|
|
|
#if defined(SYSVSEM) && !defined(alpha)
|
1998-01-22 19:31:33 +03:00
|
|
|
169 STD { int freebsd_sys_semsys(int which, int a2, int a3, \
|
1995-10-10 04:19:24 +03:00
|
|
|
int a4, int a5); }
|
|
|
|
#else
|
|
|
|
169 UNIMPL 1.0 semsys
|
|
|
|
#endif
|
|
|
|
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
|
|
|
|
#if defined(SYSVMSG) && !defined(alpha)
|
1998-01-22 19:31:33 +03:00
|
|
|
170 STD { int freebsd_sys_msgsys(int which, int a2, int a3, \
|
1995-10-10 04:19:24 +03:00
|
|
|
int a4, int a5, int a6); }
|
|
|
|
#else
|
|
|
|
170 UNIMPL 1.0 msgsys
|
|
|
|
#endif
|
|
|
|
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
|
|
|
|
#if defined(SYSVSHM) && !defined(alpha)
|
1998-01-22 19:31:33 +03:00
|
|
|
171 STD { int freebsd_sys_shmsys(int which, int a2, int a3, \
|
1995-10-10 04:19:24 +03:00
|
|
|
int a4); }
|
|
|
|
#else
|
|
|
|
171 UNIMPL 1.0 shmsys
|
|
|
|
#endif
|
|
|
|
172 UNIMPL
|
2000-05-23 20:05:51 +04:00
|
|
|
173 NOARGS { ssize_t sys_pread(int fd, void *buf, \
|
|
|
|
size_t nbyte, int pad, off_t offset); }
|
|
|
|
174 NOARGS { ssize_t sys_pwrite(int fd, const void *buf, \
|
|
|
|
size_t nbyte, int pad, off_t offset); }
|
1995-10-10 04:19:24 +03:00
|
|
|
175 UNIMPL
|
2000-08-08 06:12:30 +04:00
|
|
|
#ifdef NTP
|
1995-10-10 04:19:24 +03:00
|
|
|
176 STD { int freebsd_ntp_adjtime(struct freebsd_timex *tp); }
|
2000-08-07 21:59:33 +04:00
|
|
|
#else
|
|
|
|
176 EXCL ntp_adjtime
|
|
|
|
#endif
|
2000-05-23 20:05:51 +04:00
|
|
|
177 UNIMPL sfork
|
|
|
|
178 UNIMPL getdescriptor
|
|
|
|
179 UNIMPL setdescriptor
|
1995-10-10 04:19:24 +03:00
|
|
|
180 UNIMPL
|
|
|
|
|
|
|
|
; Syscalls 180-199 are used by/reserved for BSD
|
|
|
|
181 NOARGS { int sys_setgid(gid_t gid); }
|
|
|
|
182 NOARGS { int sys_setegid(gid_t egid); }
|
|
|
|
183 NOARGS { int sys_seteuid(uid_t euid); }
|
|
|
|
#ifdef LFS
|
1999-06-09 16:33:18 +04:00
|
|
|
184 NOARGS { int sys_lfs_bmapv(fsid_t *fsidp, \
|
1995-10-10 04:19:24 +03:00
|
|
|
struct block_info *blkiov, int blkcnt); }
|
1999-06-09 16:33:18 +04:00
|
|
|
185 NOARGS { int sys_lfs_markv(fsid_t *fsidp, \
|
1995-10-10 04:19:24 +03:00
|
|
|
struct block_info *blkiov, int blkcnt); }
|
1999-06-09 16:33:18 +04:00
|
|
|
186 NOARGS { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
|
|
|
|
187 NOARGS { int sys_lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
|
1995-10-10 04:19:24 +03:00
|
|
|
#else
|
|
|
|
184 UNIMPL
|
|
|
|
185 UNIMPL
|
|
|
|
186 UNIMPL
|
|
|
|
187 UNIMPL
|
|
|
|
#endif
|
1999-02-09 23:19:13 +03:00
|
|
|
188 STD { int freebsd_sys_stat(const char *path, \
|
1997-10-18 20:30:25 +04:00
|
|
|
struct stat12 *ub); }
|
|
|
|
189 NOARGS { int compat_12_sys_fstat(int fd, \
|
|
|
|
struct stat12 *sb); }
|
1999-02-09 23:19:13 +03:00
|
|
|
190 STD { int freebsd_sys_lstat(const char *path, \
|
1997-10-18 20:30:25 +04:00
|
|
|
struct stat12 *ub); }
|
1999-02-09 23:19:13 +03:00
|
|
|
191 STD { int freebsd_sys_pathconf(const char *path, \
|
|
|
|
int name); }
|
1995-10-10 04:19:24 +03:00
|
|
|
192 NOARGS { int sys_fpathconf(int fd, int name); }
|
|
|
|
193 UNIMPL
|
|
|
|
194 NOARGS { int sys_getrlimit(u_int which, struct rlimit *rlp); }
|
|
|
|
195 NOARGS { int sys_setrlimit(u_int which, struct rlimit *rlp); }
|
1997-10-10 05:44:59 +04:00
|
|
|
196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \
|
1995-10-10 04:19:24 +03:00
|
|
|
u_int count, long *basep); }
|
|
|
|
197 NOARGS { caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
|
|
|
|
int flags, int fd, long pad, off_t pos); }
|
|
|
|
198 NOARGS { int sys_nosys(void); } __syscall
|
|
|
|
199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \
|
|
|
|
int whence); }
|
1999-02-09 23:19:13 +03:00
|
|
|
200 STD { int freebsd_sys_truncate(const char *path, int pad, \
|
1995-10-10 04:19:24 +03:00
|
|
|
off_t length); }
|
|
|
|
201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); }
|
|
|
|
202 NOARGS { int sys___sysctl(int *name, u_int namelen, \
|
|
|
|
void *old, size_t *oldlenp, void *new, \
|
|
|
|
size_t newlen); }
|
|
|
|
203 NOARGS { int sys_mlock(caddr_t addr, size_t len); }
|
|
|
|
204 NOARGS { int sys_munlock(caddr_t addr, size_t len); }
|
|
|
|
#ifdef FREEBSD_BASED_ON_44LITE_R2
|
|
|
|
205 STD { int freebsd_sys_undelete(char *path); }
|
|
|
|
#else
|
2000-05-23 20:05:51 +04:00
|
|
|
205 UNIMPL undelete
|
1995-10-10 04:19:24 +03:00
|
|
|
#endif
|
1999-02-09 23:19:13 +03:00
|
|
|
206 NOARGS { int sys_futimes(int fd, const struct timeval *tptr); }
|
|
|
|
207 NOARGS { pid_t sys_getpgid(pid_t pid); }
|
|
|
|
#if 0
|
|
|
|
208 NOARGS { int sys_reboot(int opt, char *bootstr); }
|
|
|
|
#else
|
|
|
|
208 UNIMPL newreboot
|
|
|
|
#endif
|
|
|
|
209 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
|
|
|
|
int timeout); }
|
1995-10-10 04:19:24 +03:00
|
|
|
;
|
|
|
|
; Syscalls 210-219 are reserved for dynamically loaded syscalls
|
|
|
|
;
|
|
|
|
210 UNIMPL
|
|
|
|
211 UNIMPL
|
|
|
|
212 UNIMPL
|
|
|
|
213 UNIMPL
|
|
|
|
214 UNIMPL
|
|
|
|
215 UNIMPL
|
|
|
|
216 UNIMPL
|
|
|
|
217 UNIMPL
|
|
|
|
218 UNIMPL
|
|
|
|
219 UNIMPL
|
1997-10-10 05:55:33 +04:00
|
|
|
;
|
|
|
|
; Syscalls 220-239 are reserved for syscalls imported from NetBSD
|
|
|
|
;
|
1999-02-09 23:19:13 +03:00
|
|
|
#ifdef SYSVSEM
|
1999-08-25 08:48:21 +04:00
|
|
|
220 NOARGS { int compat_14_sys___semctl(int semid, int semnum, \
|
|
|
|
int cmd, union __semun *arg); }
|
1999-02-09 23:19:13 +03:00
|
|
|
221 NOARGS { int sys_semget(key_t key, int nsems, int semflg); }
|
|
|
|
222 NOARGS { int sys_semop(int semid, struct sembuf *sops, \
|
|
|
|
u_int nsops); }
|
|
|
|
223 NOARGS { int sys_semconfig(int flag); }
|
|
|
|
#else
|
|
|
|
220 UNIMPL semctl
|
|
|
|
221 UNIMPL semget
|
|
|
|
222 UNIMPL semop
|
|
|
|
223 UNIMPL semconfig
|
|
|
|
#endif
|
|
|
|
#ifdef SYSVMSG
|
1999-08-25 08:48:21 +04:00
|
|
|
224 NOARGS { int compat_14_sys_msgctl(int msqid, int cmd, \
|
|
|
|
struct msqid14_ds *buf); }
|
1999-02-09 23:19:13 +03:00
|
|
|
225 NOARGS { int sys_msgget(key_t key, int msgflg); }
|
|
|
|
226 NOARGS { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
|
|
|
|
int msgflg); }
|
|
|
|
227 NOARGS { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
|
|
|
|
long msgtyp, int msgflg); }
|
|
|
|
#else
|
|
|
|
224 UNIMPL msgctl
|
|
|
|
225 UNIMPL msgget
|
|
|
|
226 UNIMPL msgsnd
|
|
|
|
227 UNIMPL msgrcv
|
|
|
|
#endif
|
|
|
|
#ifdef SYSVSHM
|
|
|
|
228 NOARGS { int sys_shmat(int shmid, void *shmaddr, int shmflg); }
|
1999-08-25 08:48:21 +04:00
|
|
|
229 NOARGS { int compat_14_sys_shmctl(int shmid, int cmd, \
|
|
|
|
struct shmid_ds14 *buf); }
|
1999-02-09 23:19:13 +03:00
|
|
|
230 NOARGS { int sys_shmdt(void *shmaddr); }
|
|
|
|
231 NOARGS { int sys_shmget(key_t key, int size, int shmflg); }
|
|
|
|
#else
|
|
|
|
228 UNIMPL shmat
|
|
|
|
229 UNIMPL shmctl
|
|
|
|
230 UNIMPL shmdt
|
|
|
|
231 UNIMPL shmget
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
; XXXX
|
|
|
|
232 NOARGS { int sys_clock_gettime(clockid_t clock_id, \
|
|
|
|
struct timespec *tp); }
|
|
|
|
233 NOARGS { int sys_clock_settime(clockid_t clock_id, \
|
|
|
|
const struct timespec *tp); }
|
|
|
|
234 NOARGS { int sys_clock_getres(clockid_t clock_id, \
|
|
|
|
struct timespec *tp); }
|
|
|
|
235 UNIMPL timer_create
|
|
|
|
236 UNIMPL timer_delete
|
|
|
|
237 UNIMPL timer_settime
|
|
|
|
238 UNIMPL timer_gettime
|
|
|
|
239 UNIMPL timer_getoverrun
|
|
|
|
240 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \
|
|
|
|
struct timespec *rmtp); }
|
1997-10-10 05:55:33 +04:00
|
|
|
241 UNIMPL
|
|
|
|
242 UNIMPL
|
|
|
|
243 UNIMPL
|
|
|
|
244 UNIMPL
|
|
|
|
245 UNIMPL
|
|
|
|
246 UNIMPL
|
|
|
|
247 UNIMPL
|
|
|
|
248 UNIMPL
|
|
|
|
249 UNIMPL
|
1999-02-09 23:19:13 +03:00
|
|
|
; syscall numbers initially used in OpenBSD
|
|
|
|
250 UNIMPL minherit
|
|
|
|
251 UNIMPL rfork
|
|
|
|
252 UNIMPL openbsd_poll
|
2000-04-21 20:18:16 +04:00
|
|
|
253 NOARGS { int sys_issetugid(void); }
|
1999-02-09 23:19:13 +03:00
|
|
|
254 STD { int freebsd_sys_lchown(const char *path, int uid, \
|
1997-10-10 05:55:33 +04:00
|
|
|
int gid); }
|
1999-02-09 23:19:13 +03:00
|
|
|
255 UNIMPL
|
|
|
|
256 UNIMPL
|
|
|
|
257 UNIMPL
|
|
|
|
258 UNIMPL
|
|
|
|
259 UNIMPL
|
|
|
|
260 UNIMPL
|
|
|
|
261 UNIMPL
|
|
|
|
262 UNIMPL
|
|
|
|
263 UNIMPL
|
|
|
|
264 UNIMPL
|
|
|
|
265 UNIMPL
|
|
|
|
266 UNIMPL
|
|
|
|
267 UNIMPL
|
|
|
|
268 UNIMPL
|
|
|
|
269 UNIMPL
|
|
|
|
270 UNIMPL
|
|
|
|
271 UNIMPL
|
|
|
|
272 NOARGS { int sys_getdents(int fd, char *buf, size_t count); }
|
|
|
|
273 UNIMPL
|
|
|
|
274 NOARGS { int sys_lchmod(const char *path, mode_t mode); }
|
|
|
|
275 NOARGS { int sys_lchown(const char *path, uid_t uid, \
|
|
|
|
gid_t gid); } netbsd_lchown
|
|
|
|
276 NOARGS { int sys_lutimes(const char *path, \
|
|
|
|
const struct timeval *tptr); }
|
|
|
|
277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); }
|
|
|
|
278 NOARGS { int sys___stat13(const char *path, struct stat *ub); }
|
|
|
|
279 NOARGS { int sys___fstat13(int fd, struct stat *sb); }
|
|
|
|
280 NOARGS { int sys___lstat13(const char *path, struct stat *ub);}
|
|
|
|
281 UNIMPL
|
|
|
|
282 UNIMPL
|
|
|
|
283 UNIMPL
|
|
|
|
284 UNIMPL
|
|
|
|
285 UNIMPL
|
|
|
|
286 UNIMPL
|
|
|
|
287 UNIMPL
|
|
|
|
288 UNIMPL
|
|
|
|
289 UNIMPL
|
|
|
|
290 UNIMPL
|
|
|
|
291 UNIMPL
|
|
|
|
292 UNIMPL
|
|
|
|
293 UNIMPL
|
|
|
|
294 UNIMPL
|
|
|
|
295 UNIMPL
|
|
|
|
296 UNIMPL
|
2000-05-23 20:05:51 +04:00
|
|
|
297 UNIMPL fhstatfs
|
|
|
|
298 UNIMPL fhopen
|
|
|
|
299 UNIMPL fhstat
|
1999-02-09 23:19:13 +03:00
|
|
|
; syscall numbers for FreeBSD
|
|
|
|
300 UNIMPL modnext
|
|
|
|
301 UNIMPL modstat
|
|
|
|
302 UNIMPL modfnext
|
|
|
|
303 UNIMPL modfind
|
|
|
|
304 UNIMPL kldload
|
|
|
|
305 UNIMPL kldunload
|
|
|
|
306 UNIMPL kldfind
|
|
|
|
307 UNIMPL kldnext
|
|
|
|
308 UNIMPL kldstat
|
|
|
|
309 UNIMPL kldfirstmod
|
2000-05-23 20:05:51 +04:00
|
|
|
310 NOARGS { pid_t sys_getsid(pid_t pid); }
|
1999-02-09 23:19:13 +03:00
|
|
|
311 UNIMPL setresuid
|
|
|
|
312 UNIMPL setresgid
|
|
|
|
313 UNIMPL signanosleep
|
|
|
|
314 UNIMPL aio_return
|
|
|
|
315 UNIMPL aio_suspend
|
|
|
|
316 UNIMPL aio_cancel
|
|
|
|
317 UNIMPL aio_error
|
|
|
|
318 UNIMPL aio_read
|
|
|
|
319 UNIMPL aio_write
|
|
|
|
320 UNIMPL lio_listio
|
|
|
|
321 UNIMPL yield
|
|
|
|
322 UNIMPL thr_sleep
|
|
|
|
323 UNIMPL thr_wakeup
|
2000-05-23 20:05:51 +04:00
|
|
|
324 NOARGS { int sys_mlockall(int flags); }
|
|
|
|
325 NOARGS { int sys_munlockall(void); }
|
|
|
|
326 NOARGS { int sys___getcwd(char *bufp, size_t length); }
|
1999-02-09 23:19:13 +03:00
|
|
|
327 UNIMPL sched_setparam
|
|
|
|
328 UNIMPL sched_getparam
|
|
|
|
329 UNIMPL sched_setscheduler
|
|
|
|
330 UNIMPL sched_getscheduler
|
|
|
|
331 UNIMPL sched_yield
|
|
|
|
332 UNIMPL sched_get_priority_max
|
|
|
|
333 UNIMPL sched_get_priority_min
|
|
|
|
334 UNIMPL sched_rr_get_interval
|
|
|
|
335 UNIMPL utrace
|
|
|
|
336 UNIMPL sendfile
|
|
|
|
337 UNIMPL kldsym
|
2000-05-23 20:05:51 +04:00
|
|
|
338 UNIMPL jail
|
|
|
|
339 UNIMPL pioctl
|
2000-07-18 18:15:05 +04:00
|
|
|
340 NOARGS { int sys___sigprocmask14(int how, \
|
|
|
|
const sigset_t *set, \
|
|
|
|
sigset_t *oset); }
|
|
|
|
341 NOARGS { int sys___sigsuspend14(const sigset_t *set); }
|
|
|
|
342 STD { int freebsd_sys_sigaction4(int signum, \
|
|
|
|
const struct freebsd_sigaction4 *nsa, \
|
|
|
|
struct freebsd_sigaction4 *osa); }
|
|
|
|
343 NOARGS { int sys___sigpending14(const sigset_t *set); }
|
2000-05-23 20:05:51 +04:00
|
|
|
344 UNIMPL 4.0 sigreturn
|
|
|
|
345 UNIMPL sigtimedwait
|
|
|
|
346 UNIMPL sigwaitinfo
|
|
|
|
347 UNIMPL __acl_get_file
|
|
|
|
348 UNIMPL __acl_set_file
|
|
|
|
349 UNIMPL __acl_get_fd
|
|
|
|
350 UNIMPL __acl_set_fd
|
|
|
|
351 UNIMPL __acl_delete_file
|
|
|
|
352 UNIMPL __acl_delete_fd
|
|
|
|
353 UNIMPL __acl_aclcheck_file
|
|
|
|
354 UNIMPL __acl_aclcheck_fd
|
|
|
|
355 UNIMPL extattrctl
|
|
|
|
356 UNIMPL extattr_set_file
|
|
|
|
357 UNIMPL extattr_get_file
|
|
|
|
358 UNIMPL extattr_delete_file
|
|
|
|
359 UNIMPL aio_waitcomplete
|
|
|
|
360 UNIMPL getresuid
|
|
|
|
361 UNIMPL getresgid
|
|
|
|
362 UNIMPL kqueue
|
|
|
|
363 UNIMPL kevent
|