1999-07-13 03:01:27 +04:00
|
|
|
$NetBSD: syscalls.master,v 1.96 1999/07/12 23:01:27 thorpej 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
|
1999-06-09 08:25:30 +04:00
|
|
|
; EXCL implemented, but 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
|
1996-12-22 09:46:50 +03:00
|
|
|
; INDIR included, but don't define the syscall args structure,
|
|
|
|
; and allow it to be "really" varargs.
|
1994-10-20 07:22:35 +03:00
|
|
|
;
|
|
|
|
; 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.
|
1998-02-19 03:52:14 +03:00
|
|
|
; #include's are copied to the syscall names and switch definition files only.
|
|
|
|
|
1998-06-26 01:15:35 +04:00
|
|
|
#include "opt_ktrace.h"
|
1998-06-26 02:16:01 +04:00
|
|
|
#include "opt_nfsserver.h"
|
1998-07-05 12:49:30 +04:00
|
|
|
#include "opt_compat_netbsd.h"
|
1998-10-20 02:14:54 +04:00
|
|
|
#include "opt_sysv.h"
|
1998-12-10 18:07:01 +03:00
|
|
|
#include "opt_compat_43.h"
|
1998-06-26 01:15:35 +04:00
|
|
|
|
1998-02-19 03:52:14 +03:00
|
|
|
#include "fs_lfs.h"
|
|
|
|
#include "fs_nfs.h"
|
1994-10-20 07:22:35 +03:00
|
|
|
|
|
|
|
#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.
|
|
|
|
|
1996-12-22 09:46:50 +03:00
|
|
|
0 INDIR { int sys_syscall(int number, ...); }
|
* fix return types. previously, most things returned 'int.' which was
wrong for a bunch of functions:
void: sys_exit, sys_sync
ssize_t: sys_read, sys_write, sys_recvmsg, sys_sendmsg,
sys_recvfrom, sys_readv, sys_writev, sys_sendto
long: sys_pathconf, sys_fpathconf
void *: sys_shmat
* Note that sys_open, sys_ioctl, and sys_fcntl are defined such that their
last argument is optional.
These changes should not have any real effect, because right now this
information is not actually used for anything.
1996-12-22 10:00:57 +03:00
|
|
|
1 STD { void sys_exit(int rval); }
|
1995-10-07 09:25:19 +03:00
|
|
|
2 STD { int sys_fork(void); }
|
1996-12-22 11:04:06 +03:00
|
|
|
3 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
|
|
|
|
4 STD { ssize_t sys_write(int fd, const void *buf, \
|
|
|
|
size_t nbyte); }
|
|
|
|
5 STD { int sys_open(const char *path, \
|
1997-10-17 03:41:31 +04:00
|
|
|
int flags, ... mode_t mode); }
|
1995-10-07 09:25:19 +03:00
|
|
|
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); }
|
1997-10-17 03:41:31 +04:00
|
|
|
8 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat
|
1996-12-22 11:04:06 +03:00
|
|
|
9 STD { int sys_link(const char *path, const char *link); }
|
|
|
|
10 STD { int sys_unlink(const char *path); }
|
1994-10-20 07:22:35 +03:00
|
|
|
11 OBSOL execv
|
1996-12-22 11:04:06 +03:00
|
|
|
12 STD { int sys_chdir(const char *path); }
|
1995-10-07 09:25:19 +03:00
|
|
|
13 STD { int sys_fchdir(int fd); }
|
1997-10-17 03:41:31 +04:00
|
|
|
14 STD { int sys_mknod(const char *path, mode_t mode, \
|
|
|
|
dev_t dev); }
|
|
|
|
15 STD { int sys_chmod(const char *path, mode_t mode); }
|
1996-12-22 11:04:06 +03:00
|
|
|
16 STD { int sys_chown(const char *path, uid_t uid, \
|
|
|
|
gid_t gid); }
|
1995-10-07 09:25:19 +03:00
|
|
|
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); }
|
1996-12-22 11:04:06 +03:00
|
|
|
21 STD { int sys_mount(const char *type, const char *path, \
|
|
|
|
int flags, void *data); }
|
|
|
|
22 STD { int sys_unmount(const char *path, int flags); }
|
1995-10-07 09:25:19 +03:00
|
|
|
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); }
|
* fix return types. previously, most things returned 'int.' which was
wrong for a bunch of functions:
void: sys_exit, sys_sync
ssize_t: sys_read, sys_write, sys_recvmsg, sys_sendmsg,
sys_recvfrom, sys_readv, sys_writev, sys_sendto
long: sys_pathconf, sys_fpathconf
void *: sys_shmat
* Note that sys_open, sys_ioctl, and sys_fcntl are defined such that their
last argument is optional.
These changes should not have any real effect, because right now this
information is not actually used for anything.
1996-12-22 10:00:57 +03:00
|
|
|
27 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
|
1995-10-07 09:25:19 +03:00
|
|
|
int flags); }
|
1996-12-22 11:04:06 +03:00
|
|
|
28 STD { ssize_t sys_sendmsg(int s, \
|
|
|
|
const struct msghdr *msg, int flags); }
|
|
|
|
29 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
|
|
|
|
int flags, struct sockaddr *from, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
unsigned int *fromlenaddr); }
|
1996-12-22 11:04:06 +03:00
|
|
|
30 STD { int sys_accept(int s, struct sockaddr *name, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
unsigned int *anamelen); }
|
1996-12-22 11:04:06 +03:00
|
|
|
31 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
unsigned int *alen); }
|
1996-12-22 11:04:06 +03:00
|
|
|
32 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
unsigned int *alen); }
|
1996-12-22 11:04:06 +03:00
|
|
|
33 STD { int sys_access(const char *path, int flags); }
|
|
|
|
34 STD { int sys_chflags(const char *path, u_long flags); }
|
|
|
|
35 STD { int sys_fchflags(int fd, u_long flags); }
|
* fix return types. previously, most things returned 'int.' which was
wrong for a bunch of functions:
void: sys_exit, sys_sync
ssize_t: sys_read, sys_write, sys_recvmsg, sys_sendmsg,
sys_recvfrom, sys_readv, sys_writev, sys_sendto
long: sys_pathconf, sys_fpathconf
void *: sys_shmat
* Note that sys_open, sys_ioctl, and sys_fcntl are defined such that their
last argument is optional.
These changes should not have any real effect, because right now this
information is not actually used for anything.
1996-12-22 10:00:57 +03:00
|
|
|
36 STD { void sys_sync(void); }
|
1995-10-07 09:25:19 +03:00
|
|
|
37 STD { int sys_kill(int pid, int signum); }
|
1997-10-17 03:41:31 +04:00
|
|
|
38 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \
|
|
|
|
stat43
|
1995-10-07 09:25:19 +03:00
|
|
|
39 STD { pid_t sys_getppid(void); }
|
1997-10-17 03:41:31 +04:00
|
|
|
40 COMPAT_43 { int sys_lstat(const char *path, \
|
|
|
|
struct stat43 *ub); } lstat43
|
1997-10-15 21:27:46 +04:00
|
|
|
41 STD { int sys_dup(int fd); }
|
1995-10-07 09:25:19 +03:00
|
|
|
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); }
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(KTRACE) || !defined(_KERNEL)
|
1996-12-22 11:04:06 +03:00
|
|
|
45 STD { int sys_ktrace(const char *fname, int ops, \
|
|
|
|
int facs, int pid); }
|
1993-04-06 14:39:51 +04:00
|
|
|
#else
|
1999-06-09 08:25:30 +04:00
|
|
|
45 EXCL ktrace
|
1993-04-06 14:39:51 +04:00
|
|
|
#endif
|
1998-09-11 16:50:05 +04:00
|
|
|
46 COMPAT_13 { int sys_sigaction(int signum, \
|
|
|
|
const struct sigaction13 *nsa, \
|
|
|
|
struct sigaction13 *osa); } sigaction13
|
1995-10-07 09:25:19 +03:00
|
|
|
47 STD { gid_t sys_getgid(void); }
|
1998-09-11 16:50:05 +04:00
|
|
|
48 COMPAT_13 { int sys_sigprocmask(int how, \
|
|
|
|
int mask); } sigprocmask13
|
1999-03-28 21:29:52 +04:00
|
|
|
49 STD { int sys___getlogin(char *namebuf, size_t namelen); }
|
1996-12-22 11:04:06 +03:00
|
|
|
50 STD { int sys_setlogin(const char *namebuf); }
|
|
|
|
51 STD { int sys_acct(const char *path); }
|
1998-09-11 16:50:05 +04:00
|
|
|
52 COMPAT_13 { int sys_sigpending(void); } sigpending13
|
|
|
|
53 COMPAT_13 { int sys_sigaltstack( \
|
|
|
|
const struct sigaltstack13 *nss, \
|
|
|
|
struct sigaltstack13 *oss); } sigaltstack13
|
1996-12-22 11:04:06 +03:00
|
|
|
54 STD { int sys_ioctl(int fd, \
|
1997-10-18 20:35:25 +04:00
|
|
|
u_long com, ... void *data); }
|
1996-08-09 14:30:23 +04:00
|
|
|
55 COMPAT_12 { int sys_reboot(int opt); } oreboot
|
1996-12-22 11:04:06 +03:00
|
|
|
56 STD { int sys_revoke(const char *path); }
|
|
|
|
57 STD { int sys_symlink(const char *path, \
|
|
|
|
const char *link); }
|
|
|
|
58 STD { int sys_readlink(const char *path, char *buf, \
|
1998-03-27 16:02:20 +03:00
|
|
|
size_t count); }
|
1996-12-22 11:04:06 +03:00
|
|
|
59 STD { int sys_execve(const char *path, \
|
|
|
|
char * const *argp, char * const *envp); }
|
1997-10-19 07:25:55 +04:00
|
|
|
60 STD { mode_t sys_umask(mode_t newmask); }
|
1996-12-22 11:04:06 +03:00
|
|
|
61 STD { int sys_chroot(const char *path); }
|
1997-10-17 03:41:31 +04:00
|
|
|
62 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43
|
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
|
1997-10-17 03:41:31 +04:00
|
|
|
65 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); }
|
1998-01-04 06:45:21 +03:00
|
|
|
; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
|
1995-10-07 09:25:19 +03:00
|
|
|
66 STD { int sys_vfork(void); }
|
1994-10-20 07:22:35 +03:00
|
|
|
67 OBSOL vread
|
|
|
|
68 OBSOL vwrite
|
1999-07-13 01:55:19 +04:00
|
|
|
69 STD { int sys_sbrk(intptr_t incr); }
|
1995-10-07 09:25:19 +03:00
|
|
|
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
|
1997-10-18 20:35:25 +04:00
|
|
|
73 STD { int sys_munmap(void *addr, size_t len); }
|
|
|
|
74 STD { int sys_mprotect(void *addr, size_t len, \
|
1995-10-07 09:25:19 +03:00
|
|
|
int prot); }
|
1997-10-18 20:35:25 +04:00
|
|
|
75 STD { int sys_madvise(void *addr, size_t len, \
|
1995-10-07 09:25:19 +03:00
|
|
|
int behav); }
|
1994-10-20 07:22:35 +03:00
|
|
|
76 OBSOL vhangup
|
|
|
|
77 OBSOL vlimit
|
1999-06-08 07:07:39 +04:00
|
|
|
78 STD { int sys_mincore(void *addr, size_t len, \
|
1995-10-07 09:25:19 +03:00
|
|
|
char *vec); }
|
1997-11-05 00:24:14 +03:00
|
|
|
79 STD { int sys_getgroups(int gidsetsize, \
|
1997-10-15 21:27:46 +04:00
|
|
|
gid_t *gidset); }
|
1997-11-05 00:24:14 +03:00
|
|
|
80 STD { int sys_setgroups(int gidsetsize, \
|
1996-12-22 11:04:06 +03:00
|
|
|
const gid_t *gidset); }
|
1995-10-07 09:25:19 +03:00
|
|
|
81 STD { int sys_getpgrp(void); }
|
|
|
|
82 STD { int sys_setpgid(int pid, int pgid); }
|
1997-10-15 21:03:52 +04:00
|
|
|
83 STD { int sys_setitimer(int which, \
|
1996-12-22 11:04:06 +03:00
|
|
|
const struct itimerval *itv, \
|
|
|
|
struct itimerval *oitv); }
|
1995-10-10 04:32:53 +03:00
|
|
|
84 COMPAT_43 { int sys_wait(void); } owait
|
1997-06-13 02:05:37 +04:00
|
|
|
85 COMPAT_12 { int sys_swapon(const char *name); } oswapon
|
1997-10-15 21:03:52 +04:00
|
|
|
86 STD { int sys_getitimer(int which, \
|
1995-10-07 09:25:19 +03:00
|
|
|
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
|
1997-10-15 21:27:46 +04:00
|
|
|
90 STD { int sys_dup2(int from, int to); }
|
1994-10-20 07:22:35 +03:00
|
|
|
91 UNIMPL getdopt
|
* fix return types. previously, most things returned 'int.' which was
wrong for a bunch of functions:
void: sys_exit, sys_sync
ssize_t: sys_read, sys_write, sys_recvmsg, sys_sendmsg,
sys_recvfrom, sys_readv, sys_writev, sys_sendto
long: sys_pathconf, sys_fpathconf
void *: sys_shmat
* Note that sys_open, sys_ioctl, and sys_fcntl are defined such that their
last argument is optional.
These changes should not have any real effect, because right now this
information is not actually used for anything.
1996-12-22 10:00:57 +03:00
|
|
|
92 STD { int sys_fcntl(int fd, int cmd, ... void *arg); }
|
1997-11-05 00:24:14 +03:00
|
|
|
93 STD { int sys_select(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); }
|
1996-12-22 11:04:06 +03:00
|
|
|
98 STD { int sys_connect(int s, const struct sockaddr *name, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
unsigned int namelen); }
|
1996-12-22 11:04:06 +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
|
1998-09-12 14:48:27 +04:00
|
|
|
103 COMPAT_13 { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
|
1998-09-12 04:47:12 +04:00
|
|
|
sigreturn13
|
1996-12-22 11:04:06 +03:00
|
|
|
104 STD { int sys_bind(int s, const struct sockaddr *name, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
unsigned int namelen); }
|
1995-10-07 09:25:19 +03:00
|
|
|
105 STD { int sys_setsockopt(int s, int level, int name, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
const void *val, unsigned 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
|
1998-09-11 16:50:05 +04:00
|
|
|
111 COMPAT_13 { int sys_sigsuspend(int mask); } sigsuspend13
|
1995-10-07 09:25:19 +03:00
|
|
|
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
|
1994-10-20 07:22:35 +03:00
|
|
|
115 OBSOL vtrace
|
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, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
void *val, unsigned int *avalsize); }
|
1995-01-06 03:08:17 +03:00
|
|
|
119 OBSOL resuba
|
1997-10-15 21:03:52 +04:00
|
|
|
120 STD { ssize_t sys_readv(int fd, \
|
|
|
|
const struct iovec *iovp, int iovcnt); }
|
1996-12-22 11:04:06 +03:00
|
|
|
121 STD { ssize_t sys_writev(int fd, \
|
1997-10-15 21:03:52 +04:00
|
|
|
const struct iovec *iovp, int iovcnt); }
|
1996-12-22 11:04:06 +03:00
|
|
|
122 STD { int sys_settimeofday(const struct timeval *tv, \
|
|
|
|
const struct timezone *tzp); }
|
|
|
|
123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); }
|
1997-10-17 03:41:31 +04:00
|
|
|
124 STD { int sys_fchmod(int fd, mode_t mode); }
|
1995-10-07 09:25:19 +03:00
|
|
|
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-12-22 11:04:06 +03:00
|
|
|
126 STD { int sys_setreuid(uid_t ruid, uid_t euid); }
|
|
|
|
127 STD { int sys_setregid(gid_t rgid, gid_t egid); }
|
|
|
|
128 STD { int sys_rename(const char *from, const char *to); }
|
1997-10-17 03:41:31 +04:00
|
|
|
129 COMPAT_43 { int sys_truncate(const char *path, long length); } \
|
1995-10-10 04:32:53 +03:00
|
|
|
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); }
|
1997-10-17 03:41:31 +04:00
|
|
|
132 STD { int sys_mkfifo(const char *path, mode_t mode); }
|
1996-12-22 11:04:06 +03:00
|
|
|
133 STD { ssize_t sys_sendto(int s, const void *buf, \
|
|
|
|
size_t len, int flags, const struct sockaddr *to, \
|
* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
1999-02-10 21:02:28 +03:00
|
|
|
unsigned 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); }
|
1997-10-17 03:41:31 +04:00
|
|
|
136 STD { int sys_mkdir(const char *path, mode_t mode); }
|
1996-12-22 11:04:06 +03:00
|
|
|
137 STD { int sys_rmdir(const char *path); }
|
|
|
|
138 STD { int sys_utimes(const char *path, \
|
|
|
|
const struct timeval *tptr); }
|
1994-10-20 07:22:35 +03:00
|
|
|
139 OBSOL 4.2 sigreturn
|
1996-12-22 11:04:06 +03:00
|
|
|
140 STD { int sys_adjtime(const 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
|
1997-10-15 21:03:52 +04:00
|
|
|
144 COMPAT_43 { int sys_getrlimit(int which, \
|
|
|
|
struct orlimit *rlp); } ogetrlimit
|
|
|
|
145 COMPAT_43 { int sys_setrlimit(int which, \
|
|
|
|
const struct orlimit *rlp); } osetrlimit
|
1995-10-10 04:32:53 +03:00
|
|
|
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); }
|
1996-12-22 11:04:06 +03:00
|
|
|
148 STD { int sys_quotactl(const char *path, int cmd, \
|
|
|
|
int uid, 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
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
1996-12-22 11:04:06 +03:00
|
|
|
155 STD { int sys_nfssvc(int flag, void *argp); }
|
1993-04-06 14:39:51 +04:00
|
|
|
#else
|
1999-06-09 08:25:30 +04:00
|
|
|
155 EXCL nfssvc
|
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
|
1996-12-22 11:04:06 +03:00
|
|
|
157 STD { int sys_statfs(const char *path, \
|
|
|
|
struct statfs *buf); }
|
1995-10-07 09:25:19 +03:00
|
|
|
158 STD { int sys_fstatfs(int fd, struct statfs *buf); }
|
1994-10-20 07:22:35 +03:00
|
|
|
159 UNIMPL
|
|
|
|
160 UNIMPL
|
1996-12-22 11:04:06 +03:00
|
|
|
161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); }
|
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
|
1998-02-26 00:24:56 +03:00
|
|
|
165 STD { int sys_sysarch(int op, void *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)
|
1999-06-09 08:25:30 +04:00
|
|
|
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !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
|
1999-06-09 08:25:30 +04:00
|
|
|
169 EXCL 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)
|
1999-06-09 08:25:30 +04:00
|
|
|
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !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
|
1999-06-09 08:25:30 +04:00
|
|
|
170 EXCL 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)
|
1999-06-09 08:25:30 +04:00
|
|
|
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !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
|
1999-06-09 08:25:30 +04:00
|
|
|
171 EXCL 1.0 shmsys
|
1993-04-06 14:39:51 +04:00
|
|
|
#endif
|
1994-10-20 07:22:35 +03:00
|
|
|
172 UNIMPL
|
1998-06-30 23:33:11 +04:00
|
|
|
173 STD { ssize_t sys_pread(int fd, void *buf, \
|
1998-07-02 05:23:33 +04:00
|
|
|
size_t nbyte, int pad, off_t offset); }
|
1998-06-30 23:33:11 +04:00
|
|
|
174 STD { ssize_t sys_pwrite(int fd, const void *buf, \
|
1998-07-02 05:23:33 +04:00
|
|
|
size_t nbyte, int pad, off_t offset); }
|
1996-12-22 10:47:43 +03:00
|
|
|
175 STD { int sys_ntp_gettime(struct ntptimeval *ntvp); }
|
1996-11-14 07:51:09 +03:00
|
|
|
176 STD { int sys_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); }
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(LFS) || !defined(_KERNEL)
|
|
|
|
184 STD { int sys_lfs_bmapv(fsid_t *fsidp, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct block_info *blkiov, int blkcnt); }
|
1999-06-09 08:25:30 +04:00
|
|
|
185 STD { int sys_lfs_markv(fsid_t *fsidp, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct block_info *blkiov, int blkcnt); }
|
1999-06-09 08:25:30 +04:00
|
|
|
186 STD { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
|
|
|
|
187 STD { int sys_lfs_segwait(fsid_t *fsidp, \
|
|
|
|
struct timeval *tv); }
|
1994-05-01 09:02:24 +04:00
|
|
|
#else
|
1999-06-09 08:25:30 +04:00
|
|
|
184 EXCL lfs_bmapv
|
|
|
|
185 EXCL lfs_markv
|
|
|
|
186 EXCL lfs_segclean
|
|
|
|
187 EXCL lfs_segwait
|
1994-05-01 09:02:24 +04:00
|
|
|
#endif
|
1997-10-17 03:41:31 +04:00
|
|
|
188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \
|
|
|
|
stat12
|
|
|
|
189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12
|
|
|
|
190 COMPAT_12 { int sys_lstat(const char *path, \
|
|
|
|
struct stat12 *ub); } lstat12
|
1996-12-22 11:04:06 +03:00
|
|
|
191 STD { long sys_pathconf(const char *path, int name); }
|
* fix return types. previously, most things returned 'int.' which was
wrong for a bunch of functions:
void: sys_exit, sys_sync
ssize_t: sys_read, sys_write, sys_recvmsg, sys_sendmsg,
sys_recvfrom, sys_readv, sys_writev, sys_sendto
long: sys_pathconf, sys_fpathconf
void *: sys_shmat
* Note that sys_open, sys_ioctl, and sys_fcntl are defined such that their
last argument is optional.
These changes should not have any real effect, because right now this
information is not actually used for anything.
1996-12-22 10:00:57 +03:00
|
|
|
192 STD { long sys_fpathconf(int fd, int name); }
|
1994-10-20 07:22:35 +03:00
|
|
|
193 UNIMPL
|
1997-10-15 21:03:52 +04:00
|
|
|
194 STD { int sys_getrlimit(int which, \
|
|
|
|
struct rlimit *rlp); }
|
|
|
|
195 STD { int sys_setrlimit(int which, \
|
1996-12-22 11:04:06 +03:00
|
|
|
const struct rlimit *rlp); }
|
1997-10-10 06:03:47 +04:00
|
|
|
196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \
|
1995-10-07 09:25:19 +03:00
|
|
|
u_int count, long *basep); }
|
1997-10-18 20:35:25 +04:00
|
|
|
197 STD { void *sys_mmap(void *addr, size_t len, int prot, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int flags, int fd, long pad, off_t pos); }
|
1996-12-22 09:46:50 +03:00
|
|
|
198 INDIR { quad_t sys___syscall(quad_t num, ...); }
|
1995-10-07 09:25:19 +03:00
|
|
|
199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \
|
1994-10-20 07:22:35 +03:00
|
|
|
int whence); }
|
1996-12-22 11:04:06 +03:00
|
|
|
200 STD { int sys_truncate(const char *path, int pad, \
|
|
|
|
off_t length); }
|
1995-10-07 09:25:19 +03:00
|
|
|
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); }
|
1998-05-31 02:21:03 +04:00
|
|
|
203 STD { int sys_mlock(const void *addr, size_t len); }
|
|
|
|
204 STD { int sys_munlock(const void *addr, size_t len); }
|
1996-12-22 11:04:06 +03:00
|
|
|
205 STD { int sys_undelete(const char *path); }
|
|
|
|
206 STD { int sys_futimes(int fd, \
|
|
|
|
const struct timeval *tptr); }
|
1998-11-26 19:07:05 +03:00
|
|
|
207 STD { pid_t sys_getpgid(pid_t pid); }
|
1996-08-09 14:30:23 +04:00
|
|
|
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
|
|
|
|
;
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(LKM) || !defined(_KERNEL)
|
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 */
|
1999-06-09 08:25:30 +04:00
|
|
|
210 EXCL lkmnosys
|
|
|
|
211 EXCL lkmnosys
|
|
|
|
212 EXCL lkmnosys
|
|
|
|
213 EXCL lkmnosys
|
|
|
|
214 EXCL lkmnosys
|
|
|
|
215 EXCL lkmnosys
|
|
|
|
216 EXCL lkmnosys
|
|
|
|
217 EXCL lkmnosys
|
|
|
|
218 EXCL lkmnosys
|
|
|
|
219 EXCL lkmnosys
|
1993-06-07 23:51:59 +04:00
|
|
|
#endif /* !LKM */
|
1997-05-18 23:56:48 +04:00
|
|
|
; System calls 220-300 are reserved for use by NetBSD
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(SYSVSEM) || !defined(_KERNEL)
|
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, \
|
1998-05-07 21:08:42 +04:00
|
|
|
size_t 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
|
1999-06-09 08:25:30 +04:00
|
|
|
220 EXCL semctl
|
|
|
|
221 EXCL semget
|
|
|
|
222 EXCL semop
|
|
|
|
223 EXCL semconfig
|
1994-10-20 07:22:35 +03:00
|
|
|
#endif
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(SYSVMSG) || !defined(_KERNEL)
|
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); }
|
1998-05-07 21:08:42 +04:00
|
|
|
226 STD { int sys_msgsnd(int msqid, const void *msgp, \
|
|
|
|
size_t msgsz, int msgflg); }
|
|
|
|
227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \
|
|
|
|
size_t msgsz, long msgtyp, int msgflg); }
|
1994-10-20 07:22:35 +03:00
|
|
|
#else
|
1999-06-09 08:25:30 +04:00
|
|
|
224 EXCL msgctl
|
|
|
|
225 EXCL msgget
|
|
|
|
226 EXCL msgsnd
|
|
|
|
227 EXCL msgrcv
|
1994-10-20 07:22:35 +03:00
|
|
|
#endif
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(SYSVSHM) || !defined(_KERNEL)
|
1998-05-07 21:08:42 +04:00
|
|
|
228 STD { void *sys_shmat(int shmid, const void *shmaddr, \
|
* fix return types. previously, most things returned 'int.' which was
wrong for a bunch of functions:
void: sys_exit, sys_sync
ssize_t: sys_read, sys_write, sys_recvmsg, sys_sendmsg,
sys_recvfrom, sys_readv, sys_writev, sys_sendto
long: sys_pathconf, sys_fpathconf
void *: sys_shmat
* Note that sys_open, sys_ioctl, and sys_fcntl are defined such that their
last argument is optional.
These changes should not have any real effect, because right now this
information is not actually used for anything.
1996-12-22 10:00:57 +03:00
|
|
|
int shmflg); }
|
1995-10-07 09:25:19 +03:00
|
|
|
229 STD { int sys_shmctl(int shmid, int cmd, \
|
1994-10-20 07:22:35 +03:00
|
|
|
struct shmid_ds *buf); }
|
1998-05-07 21:08:42 +04:00
|
|
|
230 STD { int sys_shmdt(const void *shmaddr); }
|
|
|
|
231 STD { int sys_shmget(key_t key, size_t size, int shmflg); }
|
1994-10-20 07:22:35 +03:00
|
|
|
#else
|
1999-06-09 08:25:30 +04:00
|
|
|
228 EXCL shmat
|
|
|
|
229 EXCL shmctl
|
|
|
|
230 EXCL shmdt
|
|
|
|
231 EXCL shmget
|
1994-10-20 07:22:35 +03:00
|
|
|
#endif
|
1996-11-16 01:44:25 +03:00
|
|
|
232 STD { int sys_clock_gettime(clockid_t clock_id, \
|
1997-05-18 23:56:48 +04:00
|
|
|
struct timespec *tp); }
|
1996-11-16 01:44:25 +03:00
|
|
|
233 STD { int sys_clock_settime(clockid_t clock_id, \
|
1997-05-18 23:56:48 +04:00
|
|
|
const struct timespec *tp); }
|
1996-11-16 01:44:25 +03:00
|
|
|
234 STD { int sys_clock_getres(clockid_t clock_id, \
|
1997-05-18 23:56:48 +04:00
|
|
|
struct timespec *tp); }
|
1996-11-16 01:44:25 +03:00
|
|
|
235 UNIMPL timer_create
|
|
|
|
236 UNIMPL timer_delete
|
|
|
|
237 UNIMPL timer_settime
|
|
|
|
238 UNIMPL timer_gettime
|
|
|
|
239 UNIMPL timer_getoverrun
|
1997-09-09 12:04:11 +04:00
|
|
|
;
|
|
|
|
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
|
|
|
|
;
|
1997-04-16 18:41:28 +04:00
|
|
|
240 STD { int sys_nanosleep(const struct timespec *rqtp, \
|
1997-05-18 23:56:48 +04:00
|
|
|
struct timespec *rmtp); }
|
1998-06-06 00:31:36 +04:00
|
|
|
241 STD { int sys_fdatasync(int fd); }
|
1999-06-16 03:28:16 +04:00
|
|
|
242 STD { int sys_mlockall(int flags); }
|
|
|
|
243 STD { int sys_munlockall(void); }
|
1997-05-18 23:56:48 +04:00
|
|
|
244 UNIMPL
|
|
|
|
245 UNIMPL
|
|
|
|
246 UNIMPL
|
|
|
|
247 UNIMPL
|
|
|
|
248 UNIMPL
|
|
|
|
249 UNIMPL
|
1997-09-09 12:04:11 +04:00
|
|
|
250 UNIMPL
|
1997-09-09 12:05:35 +04:00
|
|
|
251 UNIMPL
|
1997-05-18 23:56:48 +04:00
|
|
|
252 UNIMPL
|
|
|
|
253 UNIMPL
|
|
|
|
254 UNIMPL
|
|
|
|
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
|
1998-02-14 23:01:05 +03:00
|
|
|
270 STD { int sys___posix_rename(const char *from, \
|
1997-05-18 23:56:48 +04:00
|
|
|
const char *to); }
|
1997-11-05 00:24:14 +03:00
|
|
|
271 STD { int sys_swapctl(int cmd, const void *arg, int misc); }
|
1997-10-10 06:03:47 +04:00
|
|
|
272 STD { int sys_getdents(int fd, char *buf, size_t count); }
|
1997-10-18 20:35:25 +04:00
|
|
|
273 STD { int sys_minherit(void *addr, size_t len, \
|
1997-09-09 12:04:11 +04:00
|
|
|
int inherit); }
|
1997-10-17 03:41:31 +04:00
|
|
|
274 STD { int sys_lchmod(const char *path, mode_t mode); }
|
1997-10-03 19:06:18 +04:00
|
|
|
275 STD { int sys_lchown(const char *path, uid_t uid, \
|
|
|
|
gid_t gid); }
|
|
|
|
276 STD { int sys_lutimes(const char *path, \
|
|
|
|
const struct timeval *tptr); }
|
1997-10-21 02:05:06 +04:00
|
|
|
277 STD { int sys___msync13(void *addr, size_t len, int flags); }
|
|
|
|
278 STD { int sys___stat13(const char *path, struct stat *ub); }
|
|
|
|
279 STD { int sys___fstat13(int fd, struct stat *sb); }
|
|
|
|
280 STD { int sys___lstat13(const char *path, struct stat *ub); }
|
1998-09-11 16:50:05 +04:00
|
|
|
281 STD { int sys___sigaltstack14( \
|
|
|
|
const struct sigaltstack *nss, \
|
|
|
|
struct sigaltstack *oss); }
|
1998-01-04 06:45:21 +03:00
|
|
|
282 STD { int sys___vfork14(void); }
|
1998-02-14 23:01:05 +03:00
|
|
|
283 STD { int sys___posix_chown(const char *path, uid_t uid, \
|
|
|
|
gid_t gid); }
|
|
|
|
284 STD { int sys___posix_fchown(int fd, uid_t uid, \
|
|
|
|
gid_t gid); }
|
|
|
|
285 STD { int sys___posix_lchown(const char *path, uid_t uid, \
|
|
|
|
gid_t gid); }
|
1998-02-14 03:39:33 +03:00
|
|
|
286 STD { pid_t sys_getsid(pid_t pid); }
|
1998-05-02 22:33:19 +04:00
|
|
|
287 UNIMPL
|
1999-06-09 08:25:30 +04:00
|
|
|
#if defined(KTRACE) || !defined(_KERNEL)
|
1998-05-02 22:33:19 +04:00
|
|
|
288 STD { int sys_fktrace(const int fd, int ops, \
|
|
|
|
int facs, int pid); }
|
|
|
|
#else
|
1999-06-09 08:25:30 +04:00
|
|
|
288 EXCL ktrace
|
1998-05-02 22:33:19 +04:00
|
|
|
#endif
|
1998-06-30 23:33:11 +04:00
|
|
|
289 STD { ssize_t sys_preadv(int fd, \
|
|
|
|
const struct iovec *iovp, int iovcnt, \
|
1998-07-02 05:23:33 +04:00
|
|
|
int pad, off_t offset); }
|
1998-06-30 23:33:11 +04:00
|
|
|
290 STD { ssize_t sys_pwritev(int fd, \
|
|
|
|
const struct iovec *iovp, int iovcnt, \
|
1998-07-02 05:23:33 +04:00
|
|
|
int pad, off_t offset); }
|
1998-09-11 16:50:05 +04:00
|
|
|
291 STD { int sys___sigaction14(int signum, \
|
|
|
|
const struct sigaction *nsa, \
|
|
|
|
struct sigaction *osa); }
|
|
|
|
292 STD { int sys___sigpending14(sigset_t *set); }
|
|
|
|
293 STD { int sys___sigprocmask14(int how, \
|
|
|
|
const sigset_t *set, \
|
|
|
|
sigset_t *oset); }
|
|
|
|
294 STD { int sys___sigsuspend14(const sigset_t *set); }
|
1998-09-12 04:47:12 +04:00
|
|
|
295 STD { int sys___sigreturn14(struct sigcontext *sigcntxp); }
|
1999-03-22 20:01:55 +03:00
|
|
|
296 STD { int sys___getcwd(char *bufp, size_t length); }
|
|
|
|
297 STD { int sys_fchroot(int fd); }
|
1999-06-30 02:15:31 +04:00
|
|
|
298 STD { int sys_fhopen(const fhandle_t *fhp, int flags); }
|
|
|
|
299 STD { int sys_fhstat(const fhandle_t *fhp, \
|
|
|
|
struct stat *sb); }
|
|
|
|
300 STD { int sys_fhstatfs(const fhandle_t *fhp, \
|
|
|
|
struct statfs *buf); }
|