1996-09-07 18:16:42 +04:00
|
|
|
$NetBSD: syscalls.master,v 1.36 1996/09/07 14:16:42 mycroft Exp $
|
1995-10-07 09:25:19 +03:00
|
|
|
|
1994-06-29 10:29:24 +04:00
|
|
|
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
1993-04-06 14:39:51 +04:00
|
|
|
|
1994-10-20 07:22:35 +03:00
|
|
|
; NetBSD system call name/number "master" file.
|
|
|
|
; (See syscalls.conf to see what it is processed into.)
|
|
|
|
;
|
|
|
|
; Fields: number type [type-dependent ...]
|
1993-04-06 14:39:51 +04:00
|
|
|
; number system call number, must be in order
|
1994-10-20 07:22:35 +03:00
|
|
|
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
|
1994-10-21 03:14:36 +03:00
|
|
|
; the compatibility options defined in syscalls.conf.
|
1994-10-20 07:22:35 +03:00
|
|
|
;
|
1993-04-06 14:39:51 +04:00
|
|
|
; types:
|
|
|
|
; STD always included
|
1994-10-20 07:22:35 +03:00
|
|
|
; OBSOL obsolete, not included in system
|
1994-10-21 03:14:36 +03:00
|
|
|
; UNIMPL unimplemented, not included in system
|
1994-10-20 07:22:35 +03:00
|
|
|
; 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]
|
|
|
|
;
|
1993-04-06 14:39:51 +04:00
|
|
|
; #ifdef's, etc. may be included, and are copied to the output files.
|
1994-10-20 07:22:35 +03:00
|
|
|
; #include's are copied to the syscall switch definition file only.
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/signal.h>
|
|
|
|
#include <sys/mount.h>
|
|
|
|
#include <sys/syscallargs.h>
|
1993-04-06 14:39:51 +04:00
|
|
|
|
|
|
|
; 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.
|
|
|
|
|
1995-10-07 09:25:19 +03:00
|
|
|
0 STD { int sys_nosys(void); } syscall
|
|
|
|
1 STD { int sys_exit(int rval); }
|
|
|
|
2 STD { int sys_fork(void); }
|
|
|
|
3 STD { int sys_read(int fd, char *buf, u_int nbyte); }
|
|
|
|
4 STD { int sys_write(int fd, char *buf, u_int nbyte); }
|
|
|
|
5 STD { int sys_open(char *path, int flags, int mode); }
|
|
|
|
6 STD { int sys_close(int fd); }
|
|
|
|
7 STD { int sys_wait4(int pid, int *status, int options, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct rusage *rusage); }
|
1995-10-10 04:32:53 +03:00
|
|
|
8 COMPAT_43 { int sys_creat(char *path, int mode); } ocreat
|
1995-10-07 09:25:19 +03:00
|
|
|
9 STD { int sys_link(char *path, char *link); }
|
|
|
|
10 STD { int sys_unlink(char *path); }
|
1994-10-20 07:22:35 +03:00
|
|
|
11 OBSOL execv
|
1995-10-07 09:25:19 +03:00
|
|
|
12 STD { int sys_chdir(char *path); }
|
|
|
|
13 STD { int sys_fchdir(int fd); }
|
|
|
|
14 STD { int sys_mknod(char *path, int mode, int dev); }
|
|
|
|
15 STD { int sys_chmod(char *path, int mode); }
|
|
|
|
16 STD { int sys_chown(char *path, int uid, int gid); }
|
|
|
|
17 STD { int sys_obreak(char *nsize); } break
|
|
|
|
18 STD { int sys_getfsstat(struct statfs *buf, long bufsize, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int flags); }
|
1995-10-10 04:32:53 +03:00
|
|
|
19 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \
|
|
|
|
olseek
|
1995-10-07 09:25:19 +03:00
|
|
|
20 STD { pid_t sys_getpid(void); }
|
|
|
|
21 STD { int sys_mount(char *type, char *path, int flags, \
|
1994-10-20 07:22:35 +03:00
|
|
|
caddr_t data); }
|
1995-10-07 09:25:19 +03:00
|
|
|
22 STD { int sys_unmount(char *path, int flags); }
|
|
|
|
23 STD { int sys_setuid(uid_t uid); }
|
|
|
|
24 STD { uid_t sys_getuid(void); }
|
|
|
|
25 STD { uid_t sys_geteuid(void); }
|
|
|
|
26 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int data); }
|
1995-10-07 09:25:19 +03:00
|
|
|
27 STD { int sys_recvmsg(int s, struct msghdr *msg, \
|
|
|
|
int flags); }
|
|
|
|
28 STD { int sys_sendmsg(int s, caddr_t msg, int flags); }
|
|
|
|
29 STD { int sys_recvfrom(int s, caddr_t buf, size_t len, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int flags, caddr_t from, int *fromlenaddr); }
|
1995-10-07 09:25:19 +03:00
|
|
|
30 STD { int sys_accept(int s, caddr_t name, int *anamelen); }
|
|
|
|
31 STD { int sys_getpeername(int fdes, caddr_t asa, \
|
|
|
|
int *alen); }
|
|
|
|
32 STD { int sys_getsockname(int fdes, caddr_t asa, \
|
|
|
|
int *alen); }
|
|
|
|
33 STD { int sys_access(char *path, int flags); }
|
|
|
|
34 STD { int sys_chflags(char *path, int flags); }
|
|
|
|
35 STD { int sys_fchflags(int fd, int flags); }
|
|
|
|
36 STD { int sys_sync(void); }
|
|
|
|
37 STD { int sys_kill(int pid, int signum); }
|
1995-10-10 04:32:53 +03:00
|
|
|
38 COMPAT_43 { int sys_stat(char *path, struct ostat *ub); } ostat
|
1995-10-07 09:25:19 +03:00
|
|
|
39 STD { pid_t sys_getppid(void); }
|
1995-10-10 04:32:53 +03:00
|
|
|
40 COMPAT_43 { int sys_lstat(char *path, struct ostat *ub); } olstat
|
1995-10-07 09:25:19 +03:00
|
|
|
41 STD { int sys_dup(u_int fd); }
|
|
|
|
42 STD { int sys_pipe(void); }
|
|
|
|
43 STD { gid_t sys_getegid(void); }
|
change definition of profil() to make it 64-bit friendly. This has
no practical consequence on 32-bit systems. old prototype was
int profil(char *, int, int, int), and new one is int profile(char *,
size_t, u_long, u_int). the size_t is the size of the buffer,
and the u_long is the 'starting offset'. (I changed the last int
to u_int, because it's treated as a u_int everywhere, and isn't
logically a signed value.)
1995-11-23 02:07:19 +03:00
|
|
|
44 STD { int sys_profil(caddr_t samples, size_t size, \
|
|
|
|
u_long offset, u_int scale); }
|
1993-04-06 14:39:51 +04:00
|
|
|
#ifdef KTRACE
|
1995-10-07 09:25:19 +03:00
|
|
|
45 STD { int sys_ktrace(char *fname, int ops, int facs, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int pid); }
|
1993-04-06 14:39:51 +04:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
45 UNIMPL ktrace
|
1993-04-06 14:39:51 +04:00
|
|
|
#endif
|
1995-10-07 09:25:19 +03:00
|
|
|
46 STD { int sys_sigaction(int signum, struct sigaction *nsa, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct sigaction *osa); }
|
1995-10-07 09:25:19 +03:00
|
|
|
47 STD { gid_t sys_getgid(void); }
|
|
|
|
48 STD { int sys_sigprocmask(int how, sigset_t mask); }
|
|
|
|
49 STD { int sys_getlogin(char *namebuf, u_int namelen); }
|
|
|
|
50 STD { int sys_setlogin(char *namebuf); }
|
|
|
|
51 STD { int sys_acct(char *path); }
|
|
|
|
52 STD { int sys_sigpending(void); }
|
|
|
|
53 STD { int sys_sigaltstack(struct sigaltstack *nss, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct sigaltstack *oss); }
|
1995-10-07 09:25:19 +03:00
|
|
|
54 STD { int sys_ioctl(int fd, u_long com, caddr_t data); }
|
1996-08-09 14:30:23 +04:00
|
|
|
55 COMPAT_12 { int sys_reboot(int opt); } oreboot
|
1995-10-07 09:25:19 +03:00
|
|
|
56 STD { int sys_revoke(char *path); }
|
|
|
|
57 STD { int sys_symlink(char *path, char *link); }
|
|
|
|
58 STD { int sys_readlink(char *path, char *buf, int count); }
|
|
|
|
59 STD { int sys_execve(char *path, char **argp, \
|
|
|
|
char **envp); }
|
|
|
|
60 STD { int sys_umask(int newmask); }
|
|
|
|
61 STD { int sys_chroot(char *path); }
|
1995-10-10 04:32:53 +03:00
|
|
|
62 COMPAT_43 { int sys_fstat(int fd, struct ostat *sb); } ofstat
|
1995-10-07 09:25:19 +03:00
|
|
|
63 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int arg); } ogetkerninfo
|
|
|
|
64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize
|
1995-10-07 09:25:19 +03:00
|
|
|
65 STD { int sys_msync(caddr_t addr, size_t len); }
|
|
|
|
66 STD { int sys_vfork(void); }
|
1994-10-20 07:22:35 +03:00
|
|
|
67 OBSOL vread
|
|
|
|
68 OBSOL vwrite
|
1995-10-07 09:25:19 +03:00
|
|
|
69 STD { int sys_sbrk(int incr); }
|
|
|
|
70 STD { int sys_sstk(int incr); }
|
|
|
|
71 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int flags, int fd, long pos); } ommap
|
1995-10-07 09:25:19 +03:00
|
|
|
72 STD { int sys_ovadvise(int anom); } vadvise
|
|
|
|
73 STD { int sys_munmap(caddr_t addr, size_t len); }
|
|
|
|
74 STD { int sys_mprotect(caddr_t addr, size_t len, \
|
|
|
|
int prot); }
|
|
|
|
75 STD { int sys_madvise(caddr_t addr, size_t len, \
|
|
|
|
int behav); }
|
1994-10-20 07:22:35 +03:00
|
|
|
76 OBSOL vhangup
|
|
|
|
77 OBSOL vlimit
|
1995-10-07 09:25:19 +03:00
|
|
|
78 STD { int sys_mincore(caddr_t addr, size_t len, \
|
|
|
|
char *vec); }
|
|
|
|
79 STD { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
|
|
|
|
80 STD { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
|
|
|
|
81 STD { int sys_getpgrp(void); }
|
|
|
|
82 STD { int sys_setpgid(int pid, int pgid); }
|
|
|
|
83 STD { int sys_setitimer(u_int which, \
|
|
|
|
struct itimerval *itv, struct itimerval *oitv); }
|
1995-10-10 04:32:53 +03:00
|
|
|
84 COMPAT_43 { int sys_wait(void); } owait
|
1995-10-07 09:25:19 +03:00
|
|
|
85 STD { int sys_swapon(char *name); }
|
|
|
|
86 STD { int sys_getitimer(u_int which, \
|
|
|
|
struct itimerval *itv); }
|
1995-10-10 04:32:53 +03:00
|
|
|
87 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \
|
|
|
|
ogethostname
|
|
|
|
88 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \
|
|
|
|
osethostname
|
|
|
|
89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize
|
1995-10-07 09:25:19 +03:00
|
|
|
90 STD { int sys_dup2(u_int from, u_int to); }
|
1994-10-20 07:22:35 +03:00
|
|
|
91 UNIMPL getdopt
|
1995-10-07 09:25:19 +03:00
|
|
|
92 STD { int sys_fcntl(int fd, int cmd, void *arg); }
|
|
|
|
93 STD { int sys_select(u_int nd, fd_set *in, fd_set *ou, \
|
1994-10-20 07:22:35 +03:00
|
|
|
fd_set *ex, struct timeval *tv); }
|
|
|
|
94 UNIMPL setdopt
|
1995-10-07 09:25:19 +03:00
|
|
|
95 STD { int sys_fsync(int fd); }
|
|
|
|
96 STD { int sys_setpriority(int which, int who, int prio); }
|
|
|
|
97 STD { int sys_socket(int domain, int type, int protocol); }
|
|
|
|
98 STD { int sys_connect(int s, caddr_t name, int namelen); }
|
1995-10-10 04:32:53 +03:00
|
|
|
99 COMPAT_43 { int sys_accept(int s, caddr_t name, int *anamelen); } \
|
|
|
|
oaccept
|
1995-10-07 09:25:19 +03:00
|
|
|
100 STD { int sys_getpriority(int which, int who); }
|
|
|
|
101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int flags); } osend
|
1995-10-07 09:25:19 +03:00
|
|
|
102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int flags); } orecv
|
1995-10-07 09:25:19 +03:00
|
|
|
103 STD { int sys_sigreturn(struct sigcontext *sigcntxp); }
|
|
|
|
104 STD { int sys_bind(int s, caddr_t name, int namelen); }
|
|
|
|
105 STD { int sys_setsockopt(int s, int level, int name, \
|
1994-10-20 07:22:35 +03:00
|
|
|
caddr_t val, int valsize); }
|
1995-10-07 09:25:19 +03:00
|
|
|
106 STD { int sys_listen(int s, int backlog); }
|
1994-10-20 07:22:35 +03:00
|
|
|
107 OBSOL vtimes
|
1995-10-07 09:25:19 +03:00
|
|
|
108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \
|
1995-10-10 04:32:53 +03:00
|
|
|
struct sigvec *osv); } osigvec
|
|
|
|
109 COMPAT_43 { int sys_sigblock(int mask); } osigblock
|
|
|
|
110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask
|
1995-10-07 09:25:19 +03:00
|
|
|
111 STD { int sys_sigsuspend(int mask); }
|
|
|
|
112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \
|
1995-10-10 04:32:53 +03:00
|
|
|
struct sigstack *oss); } osigstack
|
1995-10-07 09:25:19 +03:00
|
|
|
113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int flags); } orecvmsg
|
|
|
|
114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \
|
|
|
|
osendmsg
|
1993-04-06 14:39:51 +04:00
|
|
|
#ifdef TRACE
|
1995-10-07 09:25:19 +03:00
|
|
|
115 STD { int sys_vtrace(int request, int value); }
|
1993-04-06 14:39:51 +04:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
115 OBSOL vtrace
|
1993-04-06 14:39:51 +04:00
|
|
|
#endif
|
1995-10-07 09:25:19 +03:00
|
|
|
116 STD { int sys_gettimeofday(struct timeval *tp, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct timezone *tzp); }
|
1995-10-07 09:25:19 +03:00
|
|
|
117 STD { int sys_getrusage(int who, struct rusage *rusage); }
|
|
|
|
118 STD { int sys_getsockopt(int s, int level, int name, \
|
1994-10-20 07:22:35 +03:00
|
|
|
caddr_t val, int *avalsize); }
|
1995-01-06 03:08:17 +03:00
|
|
|
119 OBSOL resuba
|
1995-10-07 09:25:19 +03:00
|
|
|
120 STD { int sys_readv(int fd, struct iovec *iovp, \
|
|
|
|
u_int iovcnt); }
|
|
|
|
121 STD { int sys_writev(int fd, struct iovec *iovp, \
|
1994-10-20 07:22:35 +03:00
|
|
|
u_int iovcnt); }
|
1995-10-07 09:25:19 +03:00
|
|
|
122 STD { int sys_settimeofday(struct timeval *tv, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct timezone *tzp); }
|
1995-10-07 09:25:19 +03:00
|
|
|
123 STD { int sys_fchown(int fd, int uid, int gid); }
|
|
|
|
124 STD { int sys_fchmod(int fd, int mode); }
|
|
|
|
125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int flags, caddr_t from, int *fromlenaddr); } \
|
|
|
|
orecvfrom
|
1996-06-23 15:04:11 +04:00
|
|
|
126 STD { int sys_setreuid(int ruid, int euid); }
|
|
|
|
127 STD { int sys_setregid(int rgid, int egid); }
|
1995-10-07 09:25:19 +03:00
|
|
|
128 STD { int sys_rename(char *from, char *to); }
|
1995-10-10 04:32:53 +03:00
|
|
|
129 COMPAT_43 { int sys_truncate(char *path, long length); } \
|
|
|
|
otruncate
|
|
|
|
130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate
|
1995-10-07 09:25:19 +03:00
|
|
|
131 STD { int sys_flock(int fd, int how); }
|
|
|
|
132 STD { int sys_mkfifo(char *path, int mode); }
|
|
|
|
133 STD { int sys_sendto(int s, caddr_t buf, size_t len, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int flags, caddr_t to, int tolen); }
|
1995-10-07 09:25:19 +03:00
|
|
|
134 STD { int sys_shutdown(int s, int how); }
|
|
|
|
135 STD { int sys_socketpair(int domain, int type, \
|
|
|
|
int protocol, int *rsv); }
|
|
|
|
136 STD { int sys_mkdir(char *path, int mode); }
|
|
|
|
137 STD { int sys_rmdir(char *path); }
|
|
|
|
138 STD { int sys_utimes(char *path, struct timeval *tptr); }
|
1994-10-20 07:22:35 +03:00
|
|
|
139 OBSOL 4.2 sigreturn
|
1995-10-07 09:25:19 +03:00
|
|
|
140 STD { int sys_adjtime(struct timeval *delta, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct timeval *olddelta); }
|
1995-10-07 09:25:19 +03:00
|
|
|
141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int *alen); } ogetpeername
|
|
|
|
142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid
|
|
|
|
143 COMPAT_43 { int sys_sethostid(int32_t hostid); } osethostid
|
1995-10-07 09:25:19 +03:00
|
|
|
144 COMPAT_43 { int sys_getrlimit(u_int which, \
|
1995-10-10 04:32:53 +03:00
|
|
|
struct ogetrlimit *rlp); } ogetrlimit
|
1995-10-07 09:25:19 +03:00
|
|
|
145 COMPAT_43 { int sys_setrlimit(u_int which, \
|
1995-10-10 04:32:53 +03:00
|
|
|
struct ogetrlimit *rlp); } osetrlimit
|
|
|
|
146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg
|
1995-10-07 09:25:19 +03:00
|
|
|
147 STD { int sys_setsid(void); }
|
|
|
|
148 STD { int sys_quotactl(char *path, int cmd, int uid, \
|
1994-10-20 07:22:35 +03:00
|
|
|
caddr_t arg); }
|
1995-10-10 04:32:53 +03:00
|
|
|
149 COMPAT_43 { int sys_quota(void); } oquota
|
1995-10-07 09:25:19 +03:00
|
|
|
150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int *alen); } ogetsockname
|
1993-04-06 14:39:51 +04:00
|
|
|
|
|
|
|
; 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...
|
1994-10-20 07:22:35 +03:00
|
|
|
151 UNIMPL
|
|
|
|
152 UNIMPL
|
|
|
|
153 UNIMPL
|
|
|
|
154 UNIMPL
|
1994-06-08 15:28:29 +04:00
|
|
|
#if defined(NFSCLIENT) || defined(NFSSERVER)
|
1995-10-07 09:25:19 +03:00
|
|
|
155 STD { int sys_nfssvc(int flag, caddr_t argp); }
|
1993-04-06 14:39:51 +04:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
155 UNIMPL
|
1993-04-06 14:39:51 +04:00
|
|
|
#endif
|
1995-10-07 09:25:19 +03:00
|
|
|
156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \
|
1995-10-10 04:32:53 +03:00
|
|
|
u_int count, long *basep); } ogetdirentries
|
1995-10-07 09:25:19 +03:00
|
|
|
157 STD { int sys_statfs(char *path, struct statfs *buf); }
|
|
|
|
158 STD { int sys_fstatfs(int fd, struct statfs *buf); }
|
1994-10-20 07:22:35 +03:00
|
|
|
159 UNIMPL
|
|
|
|
160 UNIMPL
|
1993-04-11 00:27:10 +04:00
|
|
|
#ifdef NFSCLIENT
|
1995-10-07 09:25:19 +03:00
|
|
|
161 STD { int sys_getfh(char *fname, fhandle_t *fhp); }
|
1993-04-06 14:39:51 +04:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
161 UNIMPL getfh
|
1993-04-06 14:39:51 +04:00
|
|
|
#endif
|
1995-10-10 04:32:53 +03:00
|
|
|
162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \
|
|
|
|
ogetdomainname
|
|
|
|
163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \
|
|
|
|
osetdomainname
|
|
|
|
164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname
|
1995-10-07 09:25:19 +03:00
|
|
|
165 STD { int sys_sysarch(int op, char *parms); }
|
1994-10-20 07:22:35 +03:00
|
|
|
166 UNIMPL
|
|
|
|
167 UNIMPL
|
|
|
|
168 UNIMPL
|
|
|
|
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
|
|
|
|
#if defined(SYSVSEM) && !defined(alpha)
|
1995-10-07 09:25:19 +03:00
|
|
|
169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int a5); } osemsys
|
1993-11-14 16:08:09 +03:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
169 UNIMPL 1.0 semsys
|
1993-11-14 16:08:09 +03:00
|
|
|
#endif
|
1994-10-20 07:22:35 +03:00
|
|
|
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
|
|
|
|
#if defined(SYSVMSG) && !defined(alpha)
|
1995-10-07 09:25:19 +03:00
|
|
|
170 COMPAT_10 { int sys_msgsys(int which, int a2, int a3, int a4, \
|
1995-10-10 04:32:53 +03:00
|
|
|
int a5, int a6); } omsgsys
|
1993-11-14 16:08:09 +03:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
170 UNIMPL 1.0 msgsys
|
1993-11-14 16:08:09 +03:00
|
|
|
#endif
|
1994-10-20 07:22:35 +03:00
|
|
|
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
|
|
|
|
#if defined(SYSVSHM) && !defined(alpha)
|
1995-10-10 04:32:53 +03:00
|
|
|
171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \
|
|
|
|
oshmsys
|
1993-04-06 14:39:51 +04:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
171 UNIMPL 1.0 shmsys
|
1993-04-06 14:39:51 +04:00
|
|
|
#endif
|
1994-10-20 07:22:35 +03:00
|
|
|
172 UNIMPL
|
|
|
|
173 UNIMPL
|
|
|
|
174 UNIMPL
|
Add NTP kernel precision timekeeping from Dave Mill's xntp distribution
and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than
xntp 3.4y or 3.5a, but contains newer kernel source fragments.
This commit adds support for a new kernel configuration option, NTP.
If NTP is selected, then the system clock should be run at "HZ", which
must be defined at compile time to be one value from:
60, 64, 100, 128, 256, 512, 1024.
Powers of 2 are ideal; 60 and 100 are supported but are marginally less
accurate.
If NTP is not configured, there should be no change in behavior relative
to pre-NTP kernels.
These changes have been tested extensively with xntpd 3.4y on a decstation;
almost identical kernel mods work on an i386. No pulse-per-second (PPS)
line discipline support is included, due to unavailability of hardware
to test it.
With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp
3.5a user-level code need minor changes. xntp's prototype for
syscall() is correct for FreeBSD, but not for NetBSD.
1996-02-27 07:20:30 +03:00
|
|
|
175 STD { int ntp_gettime(struct timex *tp); }
|
|
|
|
176 STD { int ntp_adjtime(struct timex *tp); }
|
1994-10-20 07:22:35 +03:00
|
|
|
177 UNIMPL
|
|
|
|
178 UNIMPL
|
|
|
|
179 UNIMPL
|
|
|
|
180 UNIMPL
|
1993-04-06 14:39:51 +04:00
|
|
|
|
|
|
|
; Syscalls 180-199 are used by/reserved for BSD
|
1995-10-07 09:25:19 +03:00
|
|
|
181 STD { int sys_setgid(gid_t gid); }
|
|
|
|
182 STD { int sys_setegid(gid_t egid); }
|
|
|
|
183 STD { int sys_seteuid(uid_t euid); }
|
1994-05-01 09:02:24 +04:00
|
|
|
#ifdef LFS
|
1994-10-20 07:22:35 +03:00
|
|
|
184 STD { int lfs_bmapv(fsid_t *fsidp, \
|
|
|
|
struct block_info *blkiov, int blkcnt); }
|
|
|
|
185 STD { int lfs_markv(fsid_t *fsidp, \
|
|
|
|
struct block_info *blkiov, int blkcnt); }
|
|
|
|
186 STD { int lfs_segclean(fsid_t *fsidp, u_long segment); }
|
|
|
|
187 STD { int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
|
1994-05-01 09:02:24 +04:00
|
|
|
#else
|
1994-10-20 07:22:35 +03:00
|
|
|
184 UNIMPL
|
|
|
|
185 UNIMPL
|
|
|
|
186 UNIMPL
|
|
|
|
187 UNIMPL
|
1994-05-01 09:02:24 +04:00
|
|
|
#endif
|
1995-10-07 09:25:19 +03:00
|
|
|
188 STD { int sys_stat(char *path, struct stat *ub); }
|
|
|
|
189 STD { int sys_fstat(int fd, struct stat *sb); }
|
|
|
|
190 STD { int sys_lstat(char *path, struct stat *ub); }
|
|
|
|
191 STD { int sys_pathconf(char *path, int name); }
|
|
|
|
192 STD { int sys_fpathconf(int fd, int name); }
|
1994-10-20 07:22:35 +03:00
|
|
|
193 UNIMPL
|
1995-10-07 09:25:19 +03:00
|
|
|
194 STD { int sys_getrlimit(u_int which, struct rlimit *rlp); }
|
|
|
|
195 STD { int sys_setrlimit(u_int which, struct rlimit *rlp); }
|
|
|
|
196 STD { int sys_getdirentries(int fd, char *buf, \
|
|
|
|
u_int count, long *basep); }
|
|
|
|
197 STD { caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int flags, int fd, long pad, off_t pos); }
|
1995-10-07 09:25:19 +03:00
|
|
|
198 STD { int sys_nosys(void); } __syscall
|
|
|
|
199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int whence); }
|
1995-10-07 09:25:19 +03:00
|
|
|
200 STD { int sys_truncate(char *path, int pad, off_t length); }
|
|
|
|
201 STD { int sys_ftruncate(int fd, int pad, off_t length); }
|
|
|
|
202 STD { int sys___sysctl(int *name, u_int namelen, \
|
|
|
|
void *old, size_t *oldlenp, void *new, \
|
|
|
|
size_t newlen); }
|
|
|
|
203 STD { int sys_mlock(caddr_t addr, size_t len); }
|
|
|
|
204 STD { int sys_munlock(caddr_t addr, size_t len); }
|
|
|
|
205 STD { int sys_undelete(char *path); }
|
1996-04-23 14:24:21 +04:00
|
|
|
206 STD { int sys_futimes(int fd, struct timeval *tptr); }
|
1996-08-09 14:30:23 +04:00
|
|
|
207 STD { int sys_getpgid(pid_t pid); }
|
|
|
|
208 STD { int sys_reboot(int opt, char *bootstr); }
|
1996-09-07 18:16:42 +04:00
|
|
|
209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \
|
1996-09-07 16:40:22 +04:00
|
|
|
int timeout); }
|
1994-03-09 02:57:00 +03:00
|
|
|
;
|
|
|
|
; Syscalls 210-219 are reserved for dynamically loaded syscalls
|
|
|
|
;
|
|
|
|
#ifdef LKM
|
1995-10-07 09:25:19 +03:00
|
|
|
210 NODEF { int sys_lkmnosys(void); }
|
|
|
|
211 NODEF { int sys_lkmnosys(void); }
|
|
|
|
212 NODEF { int sys_lkmnosys(void); }
|
|
|
|
213 NODEF { int sys_lkmnosys(void); }
|
|
|
|
214 NODEF { int sys_lkmnosys(void); }
|
|
|
|
215 NODEF { int sys_lkmnosys(void); }
|
|
|
|
216 NODEF { int sys_lkmnosys(void); }
|
|
|
|
217 NODEF { int sys_lkmnosys(void); }
|
|
|
|
218 NODEF { int sys_lkmnosys(void); }
|
|
|
|
219 NODEF { int sys_lkmnosys(void); }
|
1994-03-09 02:57:00 +03:00
|
|
|
#else /* !LKM */
|
1994-10-20 07:22:35 +03:00
|
|
|
210 UNIMPL
|
|
|
|
211 UNIMPL
|
|
|
|
212 UNIMPL
|
|
|
|
213 UNIMPL
|
|
|
|
214 UNIMPL
|
|
|
|
215 UNIMPL
|
|
|
|
216 UNIMPL
|
|
|
|
217 UNIMPL
|
|
|
|
218 UNIMPL
|
|
|
|
219 UNIMPL
|
1993-06-07 23:51:59 +04:00
|
|
|
#endif /* !LKM */
|
1994-10-20 07:22:35 +03:00
|
|
|
; System calls 220-240 are reserved for use by NetBSD
|
|
|
|
#ifdef SYSVSEM
|
1995-10-07 09:25:19 +03:00
|
|
|
220 STD { int sys___semctl(int semid, int semnum, int cmd, \
|
1994-10-20 07:22:35 +03:00
|
|
|
union semun *arg); }
|
1995-10-07 09:25:19 +03:00
|
|
|
221 STD { int sys_semget(key_t key, int nsems, int semflg); }
|
|
|
|
222 STD { int sys_semop(int semid, struct sembuf *sops, \
|
1994-10-20 07:22:35 +03:00
|
|
|
u_int nsops); }
|
1995-10-07 09:25:19 +03:00
|
|
|
223 STD { int sys_semconfig(int flag); }
|
1994-10-20 07:22:35 +03:00
|
|
|
#else
|
|
|
|
220 UNIMPL semctl
|
|
|
|
221 UNIMPL semget
|
|
|
|
222 UNIMPL semop
|
|
|
|
223 UNIMPL semconfig
|
|
|
|
#endif
|
|
|
|
#ifdef SYSVMSG
|
1995-10-07 09:25:19 +03:00
|
|
|
224 STD { int sys_msgctl(int msqid, int cmd, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct msqid_ds *buf); }
|
1995-10-07 09:25:19 +03:00
|
|
|
225 STD { int sys_msgget(key_t key, int msgflg); }
|
|
|
|
226 STD { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int msgflg); }
|
1995-10-07 09:25:19 +03:00
|
|
|
227 STD { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
|
1994-10-20 07:22:35 +03:00
|
|
|
long msgtyp, int msgflg); }
|
|
|
|
#else
|
|
|
|
224 UNIMPL msgctl
|
|
|
|
225 UNIMPL msgget
|
|
|
|
226 UNIMPL msgsnd
|
|
|
|
227 UNIMPL msgrcv
|
|
|
|
#endif
|
|
|
|
#ifdef SYSVSHM
|
1995-10-07 09:25:19 +03:00
|
|
|
228 STD { int sys_shmat(int shmid, void *shmaddr, int shmflg); }
|
|
|
|
229 STD { int sys_shmctl(int shmid, int cmd, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct shmid_ds *buf); }
|
1995-10-07 09:25:19 +03:00
|
|
|
230 STD { int sys_shmdt(void *shmaddr); }
|
|
|
|
231 STD { int sys_shmget(key_t key, int size, int shmflg); }
|
1994-10-20 07:22:35 +03:00
|
|
|
#else
|
|
|
|
228 UNIMPL shmat
|
|
|
|
229 UNIMPL shmctl
|
|
|
|
230 UNIMPL shmdt
|
|
|
|
231 UNIMPL shmget
|
|
|
|
#endif
|