1 $NetBSD: syscalls.master,v 1.70.4.1 2008/11/25 17:31:26 snj Exp $
2
3 ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
4 ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
5
6 ; NetBSD system call name/number "master" file.
7 ; (See syscalls.conf to see what it is processed into.)
8 ;
9 ; Fields: number type [type-dependent ...]
10 ; number system call number, must be in order
11 ; type one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
12 ; the compatibility options defined in syscalls.conf.
13 ;
14 ; types:
15 ; STD always included
16 ; OBSOL obsolete, not included in system
17 ; IGNORED syscall is a null op, but always succeeds
18 ; UNIMPL unimplemented, not included in system
19 ; EXCL implemented, but not included in system
20 ; NODEF included, but don't define the syscall number
21 ; NOARGS included, but don't define the syscall args structure
22 ; INDIR included, but don't define the syscall args structure,
23 ; and allow it to be "really" varargs.
24 ;
25 ; The compat options are defined in the syscalls.conf file, and the
26 ; compat option name is prefixed to the syscall name. Other than
27 ; that, they're like NODEF (for 'compat' options), or STD (for
28 ; 'libcompat' options).
29 ;
30 ; The type-dependent arguments are as follows:
31 ; For STD, NODEF, NOARGS, and compat syscalls:
32 ; { pseudo-proto } [alias]
33 ; For other syscalls:
34 ; [comment]
35 ;
36 ; #ifdef's, etc. may be included, and are copied to the output files.
37 ; #include's are copied to the syscall names and switch definition files only.
38
39 #if defined(_KERNEL_OPT)
40 #include "opt_nfsserver.h"
41 #include "opt_compat_netbsd.h"
42 #include "opt_ntp.h"
43 #include "opt_sysv.h"
44 #include "opt_compat_43.h"
45 #include "opt_posix.h"
46
47 #include "fs_lfs.h"
48 #include "fs_nfs.h"
49 #endif
50
51 #include <sys/param.h>
52 #include <sys/systm.h>
53 #include <sys/signal.h>
54 #include <sys/mount.h>
55 #include <sys/syscallargs.h>
56
57 #include <compat/netbsd32/netbsd32.h>
58 #include <compat/netbsd32/netbsd32_syscallargs.h>
59
60 %%
61
62 ; Reserved/unimplemented system calls in the range 0-150 inclusive
63 ; are reserved for use in future Berkeley releases.
64 ; Additional system calls implemented in vendor and other
65 ; redistributions should be placed in the reserved range at the end
66 ; of the current calls.
67
68 0 INDIR { int netbsd32_sys_syscall(int code, \
69 ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
70 1 STD { void netbsd32_exit(int rval); }
71 2 NOARGS { int sys_fork(void); }
72 3 STD { netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
73 4 STD { netbsd32_ssize_t netbsd32_write(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
74 5 STD { int netbsd32_open(netbsd32_charp path, int flags, ... mode_t mode); }
75 6 STD { int netbsd32_close(int fd); }
76 7 STD { int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
77 8 COMPAT_43 { int netbsd32_ocreat(netbsd32_charp path, mode_t mode); }
78 9 STD { int netbsd32_link(netbsd32_charp path, netbsd32_charp link); }
79 10 STD { int netbsd32_unlink(netbsd32_charp path); }
80 11 OBSOL execv
81 12 STD { int netbsd32_chdir(netbsd32_charp path); }
82 13 STD { int netbsd32_fchdir(int fd); }
83 14 STD { int netbsd32_mknod(netbsd32_charp path, mode_t mode, dev_t dev); }
84 15 STD { int netbsd32_chmod(netbsd32_charp path, mode_t mode); }
85 16 STD { int netbsd32_chown(netbsd32_charp path, uid_t uid, gid_t gid); }
86 17 STD { int netbsd32_break(netbsd32_charp nsize); }
87 18 COMPAT_20 { int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
88 19 COMPAT_43 { netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
89 20 NOARGS { pid_t sys_getpid(void); }
90 21 STD { int netbsd32_mount(netbsd32_charp type, netbsd32_charp path, int flags, netbsd32_voidp data); }
91 22 STD { int netbsd32_unmount(netbsd32_charp path, int flags); }
92 23 STD { int netbsd32_setuid(uid_t uid); }
93 24 NOARGS { uid_t sys_getuid(void); }
94 25 NOARGS { uid_t sys_geteuid(void); }
95 26 STD { int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
96 27 STD { netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
97 28 STD { netbsd32_ssize_t netbsd32_sendmsg(int s, netbsd32_msghdrp_t msg, int flags); }
98 29 STD { netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); }
99 30 STD { int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
100 31 STD { int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
101 32 STD { int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
102 33 STD { int netbsd32_access(netbsd32_charp path, int flags); }
103 34 STD { int netbsd32_chflags(netbsd32_charp path, netbsd32_u_long flags); }
104 35 STD { int netbsd32_fchflags(int fd, netbsd32_u_long flags); }
105 36 NOARGS { void sys_sync(void); }
106 37 STD { int netbsd32_kill(int pid, int signum); }
107 38 COMPAT_43 { int netbsd32_stat43(netbsd32_charp path, netbsd32_stat43p_t ub); }
108 39 NOARGS { pid_t sys_getppid(void); }
109 40 COMPAT_43 { int netbsd32_lstat43(netbsd32_charp path, netbsd32_stat43p_t ub); }
110 41 STD { int netbsd32_dup(int fd); }
111 42 NOARGS { int sys_pipe(void); }
112 43 NOARGS { gid_t sys_getegid(void); }
113 44 STD { int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
114 45 STD { int netbsd32_ktrace(netbsd32_charp fname, int ops, int facs, int pid); }
115 46 STD { int netbsd32_sigaction(int signum, netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
116 47 NOARGS { gid_t sys_getgid(void); }
117 48 COMPAT_13 { int netbsd32_sigprocmask(int how, \
118 int mask); } sigprocmask13
119 49 STD { int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
120 50 STD { int netbsd32_setlogin(netbsd32_charp namebuf); }
121 51 STD { int netbsd32_acct(netbsd32_charp path); }
122 52 COMPAT_13 { int sys_sigpending(void); } sigpending13
123 53 COMPAT_13 { int netbsd32_sigaltstack13(netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
124 54 STD { int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
125 55 COMPAT_12 { int netbsd32_reboot(int opt); }
126 56 STD { int netbsd32_revoke(netbsd32_charp path); }
127 57 STD { int netbsd32_symlink(netbsd32_charp path, netbsd32_charp link); }
128 58 STD { int netbsd32_readlink(netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
129 59 STD { int netbsd32_execve(netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
130 60 STD { mode_t netbsd32_umask(mode_t newmask); }
131 61 STD { int netbsd32_chroot(netbsd32_charp path); }
132 62 COMPAT_43 { int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
133 63 COMPAT_43 { int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
134 64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize
135 65 COMPAT_12 { int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
136 ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
137 66 NOARGS { int sys_vfork(void); }
138 67 OBSOL vread
139 68 OBSOL vwrite
140 69 STD { int netbsd32_sbrk(netbsd32_intptr_t incr); }
141 70 STD { int netbsd32_sstk(int incr); }
142 71 COMPAT_43 { int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
143 72 STD { int netbsd32_ovadvise(int anom); } vadvise
144 73 STD { int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
145 74 STD { int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
146 75 STD { int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
147 76 OBSOL vhangup
148 77 OBSOL vlimit
149 78 STD { int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
150 79 STD { int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
151 80 STD { int netbsd32_setgroups(int gidsetsize, netbsd32_gid_tp gidset); }
152 81 NOARGS { int sys_getpgrp(void); }
153 82 STD { int netbsd32_setpgid(int pid, int pgid); }
154 83 STD { int netbsd32_setitimer(int which, netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
155 84 COMPAT_43 { int sys_wait(void); } owait
156 85 COMPAT_12 { int netbsd32_oswapon(netbsd32_charp name); }
157 86 STD { int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
158 87 COMPAT_43 { int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
159 88 COMPAT_43 { int netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
160 89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize
161 90 STD { int netbsd32_dup2(int from, int to); }
162 91 UNIMPL getdopt
163 92 STD { int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
164 93 STD { int netbsd32_select(int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
165 94 UNIMPL setdopt
166 95 STD { int netbsd32_fsync(int fd); }
167 96 STD { int netbsd32_setpriority(int which, int who, int prio); }
168 97 COMPAT_30 { int netbsd32_socket(int domain, int type, int protocol); }
169 98 STD { int netbsd32_connect(int s, netbsd32_sockaddrp_t name, int namelen); }
170 99 COMPAT_43 { int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
171 100 STD { int netbsd32_getpriority(int which, int who); }
172 101 COMPAT_43 { int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
173 102 COMPAT_43 { int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
174 103 COMPAT_13 { int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13
175 104 STD { int netbsd32_bind(int s, netbsd32_sockaddrp_t name, int namelen); }
176 105 STD { int netbsd32_setsockopt(int s, int level, int name, netbsd32_voidp val, int valsize); }
177 106 STD { int netbsd32_listen(int s, int backlog); }
178 107 OBSOL vtimes
179 108 COMPAT_43 { int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
180 109 COMPAT_43 { int netbsd32_sigblock(int mask); }
181 110 COMPAT_43 { int netbsd32_sigsetmask(int mask); }
182 111 COMPAT_13 { int netbsd32_sigsuspend(int mask); } sigsuspend13
183 112 COMPAT_43 { int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
184 113 COMPAT_43 { int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
185 114 COMPAT_43 { int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
186 115 OBSOL vtrace
187 116 STD { int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
188 117 STD { int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
189 118 STD { int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
190 119 OBSOL resuba
191 120 STD { netbsd32_ssize_t netbsd32_readv(int fd, netbsd32_iovecp_t iovp, int iovcnt); }
192 121 STD { netbsd32_ssize_t netbsd32_writev(int fd, netbsd32_iovecp_t iovp, int iovcnt); }
193 122 STD { int netbsd32_settimeofday(netbsd32_timevalp_t tv, netbsd32_timezonep_t tzp); }
194 123 STD { int netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
195 124 STD { int netbsd32_fchmod(int fd, mode_t mode); }
196 125 COMPAT_43 { int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
197 126 STD { int netbsd32_setreuid(uid_t ruid, uid_t euid); }
198 127 STD { int netbsd32_setregid(gid_t rgid, gid_t egid); }
199 128 STD { int netbsd32_rename(netbsd32_charp from, netbsd32_charp to); }
200 129 COMPAT_43 { int netbsd32_otruncate(netbsd32_charp path, netbsd32_long length); }
201 130 COMPAT_43 { int netbsd32_oftruncate(int fd, netbsd32_long length); }
202 131 STD { int netbsd32_flock(int fd, int how); }
203 132 STD { int netbsd32_mkfifo(netbsd32_charp path, mode_t mode); }
204 133 STD { netbsd32_ssize_t netbsd32_sendto(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t to, int tolen); }
205 134 STD { int netbsd32_shutdown(int s, int how); }
206 135 STD { int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
207 136 STD { int netbsd32_mkdir(netbsd32_charp path, mode_t mode); }
208 137 STD { int netbsd32_rmdir(netbsd32_charp path); }
209 138 STD { int netbsd32_utimes(netbsd32_charp path, netbsd32_timevalp_t tptr); }
210 139 OBSOL 4.2 sigreturn
211 140 STD { int netbsd32_adjtime(netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
212 141 COMPAT_43 { int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
213 142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid
214 143 COMPAT_43 { int netbsd32_sethostid(int32_t hostid); }
215 144 COMPAT_43 { int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
216 145 COMPAT_43 { int netbsd32_osetrlimit(int which, netbsd32_orlimitp_t rlp); }
217 146 COMPAT_43 { int netbsd32_killpg(int pgid, int signum); }
218 147 NOARGS { int sys_setsid(void); }
219 148 STD { int netbsd32_quotactl(netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
220 149 COMPAT_43 { int sys_quota(void); } oquota
221 150 COMPAT_43 { int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
222
223 ; Syscalls 151-180 inclusive are reserved for vendor-specific
224 ; system calls. (This includes various calls added for compatibity
225 ; with other Unix variants.)
226 ; Some of these calls are now supported by BSD...
227 151 UNIMPL
228 152 UNIMPL
229 153 UNIMPL
230 154 UNIMPL
231 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
232 155 STD { int netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
233 #else
234 155 EXCL netbsd32_nfssvc
235 #endif
236 156 COMPAT_43 { int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
237 157 COMPAT_20 { int netbsd32_statfs(netbsd32_charp path, netbsd32_statfsp_t buf); }
238 158 COMPAT_20 { int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
239 159 UNIMPL
240 160 UNIMPL
241 161 COMPAT_30 { int netbsd32_getfh(netbsd32_charp fname, netbsd32_compat_30_fhandlep_t fhp); }
242 162 COMPAT_09 { int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
243 163 COMPAT_09 { int netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
244 164 COMPAT_09 { int netbsd32_uname(netbsd32_outsnamep_t name); }
245 165 STD { int netbsd32_sysarch(int op, netbsd32_voidp parms); }
246 166 UNIMPL
247 167 UNIMPL
248 168 UNIMPL
249 #if defined(SYSVSEM) || !defined(_KERNEL)
250 169 COMPAT_10 { int netbsd32_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
251 #else
252 169 EXCL netbsd32_sys_semsys
253 #endif
254 #if defined(SYSVMSG) || !defined(_KERNEL)
255 170 COMPAT_10 { int netbsd32_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
256 #else
257 170 EXCL netbsd32_sys_msgsys
258 #endif
259 #if defined(SYSVSHM) || !defined(_KERNEL)
260 171 COMPAT_10 { int netbsd32_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
261 #else
262 171 EXCL netbsd32_sys_shmsys
263 #endif
264 172 UNIMPL
265 173 STD { netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
266 174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
267 175 COMPAT_30 { int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
268 176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
269 177 UNIMPL
270 178 UNIMPL
271 179 UNIMPL
272 180 UNIMPL
273
274 ; Syscalls 180-199 are used by/reserved for BSD
275 181 STD { int netbsd32_setgid(gid_t gid); }
276 182 STD { int netbsd32_setegid(gid_t egid); }
277 183 STD { int netbsd32_seteuid(uid_t euid); }
278 #if defined(LFS) || !defined(_KERNEL)
279 184 STD { int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
280 185 STD { int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
281 186 STD { int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
282 187 STD { int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
283 #else
284 184 EXCL netbsd32_sys_lfs_bmapv
285 185 EXCL netbsd32_sys_lfs_markv
286 186 EXCL netbsd32_sys_lfs_segclean
287 187 EXCL netbsd32_sys_lfs_segwait
288 #endif
289 188 COMPAT_12 { int netbsd32_stat12(netbsd32_charp path, netbsd32_stat12p_t ub); }
290 189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
291 190 COMPAT_12 { int netbsd32_lstat12(netbsd32_charp path, netbsd32_stat12p_t ub); }
292 191 STD { netbsd32_long netbsd32_pathconf(netbsd32_charp path, int name); }
293 192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); }
294 193 UNIMPL
295 194 STD { int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
296 195 STD { int netbsd32_setrlimit(int which, netbsd32_rlimitp_t rlp); }
297 196 COMPAT_12 { int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
298 197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); }
299 198 INDIR { quad_t netbsd32_sys___syscall(quad_t code, \
300 ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
301 199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
302 200 STD { int netbsd32_truncate(netbsd32_charp path, int pad, off_t length); }
303 201 STD { int netbsd32_ftruncate(int fd, int pad, off_t length); }
304 202 STD { int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); }
305 203 STD { int netbsd32_mlock(netbsd32_voidp addr, netbsd32_size_t len); }
306 204 STD { int netbsd32_munlock(netbsd32_voidp addr, netbsd32_size_t len); }
307 205 STD { int netbsd32_undelete(netbsd32_charp path); }
308 206 STD { int netbsd32_futimes(int fd, netbsd32_timevalp_t tptr); }
309 207 STD { int netbsd32_getpgid(pid_t pid); }
310 208 STD { int netbsd32_reboot(int opt, netbsd32_charp bootstr); }
311 209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
312 ;
313 ; Syscalls 210-219 are reserved for dynamically loaded syscalls
314 ;
315 #if defined(LKM) || !defined(_KERNEL)
316 210 NODEF { int sys_lkmnosys(void); }
317 211 NODEF { int sys_lkmnosys(void); }
318 212 NODEF { int sys_lkmnosys(void); }
319 213 NODEF { int sys_lkmnosys(void); }
320 214 NODEF { int sys_lkmnosys(void); }
321 215 NODEF { int sys_lkmnosys(void); }
322 216 NODEF { int sys_lkmnosys(void); }
323 217 NODEF { int sys_lkmnosys(void); }
324 218 NODEF { int sys_lkmnosys(void); }
325 219 NODEF { int sys_lkmnosys(void); }
326 #else /* !LKM || !_KERNEL */
327 210 EXCL lkmnosys
328 211 EXCL lkmnosys
329 212 EXCL lkmnosys
330 213 EXCL lkmnosys
331 214 EXCL lkmnosys
332 215 EXCL lkmnosys
333 216 EXCL lkmnosys
334 217 EXCL lkmnosys
335 218 EXCL lkmnosys
336 219 EXCL lkmnosys
337 #endif /* !LKM || !_KERNEL */
338 ; System calls 220-300 are reserved for use by NetBSD
339 #if defined(SYSVSEM) || !defined(_KERNEL)
340 220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
341 221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
342 222 STD { int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
343 223 STD { int netbsd32_semconfig(int flag); }
344 #else
345 220 EXCL compat_14_netbsd32_semctl
346 221 EXCL netbsd32_semget
347 222 EXCL netbsd32_semop
348 223 EXCL netbsd32_semconfig
349 #endif
350 #if defined(SYSVMSG) || !defined(_KERNEL)
351 224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
352 225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); }
353 226 STD { int netbsd32_msgsnd(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
354 227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
355 #else
356 224 EXCL compat_14_netbsd32_msgctl
357 225 EXCL netbsd32_msgget
358 226 EXCL netbsd32_msgsnd
359 227 EXCL netbsd32_msgrcv
360 #endif
361 #if defined(SYSVSHM) || !defined(_KERNEL)
362 228 STD { netbsd32_voidp netbsd32_shmat(int shmid, netbsd32_voidp shmaddr, int shmflg); }
363 229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
364 230 STD { int netbsd32_shmdt(netbsd32_voidp shmaddr); }
365 231 STD { int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
366 #else
367 228 EXCL netbsd32_shmat
368 229 EXCL compat_14_netbsd32_shmctl
369 230 EXCL netbsd32_shmdt
370 231 EXCL netbsd32_shmget
371 #endif
372 232 STD { int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
373 233 STD { int netbsd32_clock_settime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
374 234 STD { int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
375 235 STD { int netbsd32_timer_create(netbsd32_clockid_t clock_id, netbsd32_sigeventp_t evp, \
376 netbsd32_timerp_t timerid); }
377 236 STD { int netbsd32_timer_delete(netbsd32_timer_t timerid); }
378 237 STD { int netbsd32_timer_settime(netbsd32_timer_t timerid, int flags, \
379 netbsd32_itimerspecp_t value, \
380 netbsd32_itimerspecp_t ovalue); }
381 238 STD { int netbsd32_timer_gettime(netbsd32_timer_t timerid, netbsd32_itimerspecp_t value); }
382 239 STD { int netbsd32_timer_getoverrun(netbsd32_timer_t timerid); }
383 ;
384 ; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
385 ;
386 240 STD { int netbsd32_nanosleep(netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
387 241 STD { int netbsd32_fdatasync(int fd); }
388 242 STD { int netbsd32_mlockall(int flags); }
389 243 NOARGS { int sys_munlockall(void); }
390 244 STD { int netbsd32___sigtimedwait(netbsd32_sigsetp_t set, \
391 netbsd32_siginfop_t info, \
392 netbsd32_timespecp_t timeout); }
393 245 UNIMPL
394 246 UNIMPL
395 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
396 247 STD { int netbsd32__ksem_init(unsigned int value, netbsd32_semidp_t idp); }
397 248 STD { int netbsd32__ksem_open(netbsd32_charp name, int oflag, \
398 mode_t mode, unsigned int value, netbsd32_semidp_t idp); }
399 249 STD { int netbsd32__ksem_unlink(netbsd32_charp name); }
400 250 STD { int netbsd32__ksem_close(netbsd32_semid_t id); }
401 251 STD { int netbsd32__ksem_post(netbsd32_semid_t id); }
402 252 STD { int netbsd32__ksem_wait(netbsd32_semid_t id); }
403 253 STD { int netbsd32__ksem_trywait(netbsd32_semid_t id); }
404 254 STD { int netbsd32__ksem_getvalue(netbsd32_semid_t id, \
405 netbsd32_intp value); }
406 255 STD { int netbsd32__ksem_destroy(netbsd32_semid_t id); }
407 256 UNIMPL sys__ksem_timedwait
408 #else
409 247 EXCL sys__ksem_init
410 248 EXCL sys__ksem_open
411 249 EXCL sys__ksem_unlink
412 250 EXCL sys__ksem_close
413 251 EXCL sys__ksem_post
414 252 EXCL sys__ksem_wait
415 253 EXCL sys__ksem_trywait
416 254 EXCL sys__ksem_getvalue
417 255 EXCL sys__ksem_destroy
418 256 UNIMPL sys__ksem_timedwait
419 #endif
420 257 UNIMPL
421 258 UNIMPL
422 259 UNIMPL
423 260 UNIMPL
424 261 UNIMPL
425 262 UNIMPL
426 263 UNIMPL
427 264 UNIMPL
428 265 UNIMPL
429 266 UNIMPL
430 267 UNIMPL
431 268 UNIMPL
432 269 UNIMPL
433 270 STD { int netbsd32___posix_rename(netbsd32_charp from, netbsd32_charp to); }
434 271 STD { int netbsd32_swapctl(int cmd, netbsd32_voidp arg, int misc); }
435 272 COMPAT_30 { int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
436 273 STD { int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
437 274 STD { int netbsd32_lchmod(netbsd32_charp path, mode_t mode); }
438 275 STD { int netbsd32_lchown(netbsd32_charp path, uid_t uid, gid_t gid); }
439 276 STD { int netbsd32_lutimes(netbsd32_charp path, netbsd32_timevalp_t tptr); }
440 277 STD { int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
441 278 COMPAT_30 { int netbsd32___stat13(netbsd32_charp path, netbsd32_stat13p_t ub); }
442 279 COMPAT_30 { int netbsd32___fstat13(int fd, netbsd32_stat13p_t sb); }
443 280 COMPAT_30 { int netbsd32___lstat13(netbsd32_charp path, netbsd32_stat13p_t ub); }
444 281 STD { int netbsd32___sigaltstack14(netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
445 282 NOARGS { int sys___vfork14(void); }
446 283 STD { int netbsd32___posix_chown(netbsd32_charp path, uid_t uid, gid_t gid); }
447 284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
448 285 STD { int netbsd32___posix_lchown(netbsd32_charp path, uid_t uid, gid_t gid); }
449 286 STD { pid_t netbsd32_getsid(pid_t pid); }
450 287 STD { int netbsd32___clone(int flags, netbsd32_voidp stack); }
451 288 STD { int netbsd32_fktrace(int fd, int ops, int facs, int pid); }
452 289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
453 290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
454 291 STD { int netbsd32___sigaction14(int signum, \
455 netbsd32_sigactionp_t nsa, \
456 netbsd32_sigactionp_t osa); }
457 292 STD { int netbsd32___sigpending14(netbsd32_sigsetp_t set); }
458 293 STD { int netbsd32___sigprocmask14(int how, \
459 netbsd32_sigsetp_t set, \
460 netbsd32_sigsetp_t oset); }
461 294 STD { int netbsd32___sigsuspend14(netbsd32_sigsetp_t set); }
462 295 COMPAT_16 { int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); }
463 296 STD { int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); }
464 297 STD { int netbsd32_fchroot(int fd); }
465 298 COMPAT_30 { int netbsd32_fhopen(netbsd32_fhandlep_t fhp, \
466 int flags); }
467 299 COMPAT_30 { int netbsd32_fhstat(netbsd32_fhandlep_t fhp, \
468 netbsd32_stat13p_t sb); }
469 300 COMPAT_20 { int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \
470 netbsd32_statp_t buf); }
471 #if defined(SYSVSEM) || !defined(_KERNEL)
472 301 STD { int netbsd32___semctl14(int semid, int semnum, int cmd, \
473 ... netbsd32_semunp_t arg); }
474 #else
475 301 EXCL __semctl14
476 #endif
477 #if defined(SYSVMSG) || !defined(_KERNEL)
478 302 STD { int netbsd32___msgctl13(int msqid, int cmd, \
479 netbsd32_msqid_dsp_t buf); }
480 #else
481 302 EXCL __msgctl13
482 #endif
483 #if defined(SYSVSHM) || !defined(_KERNEL)
484 303 STD { int netbsd32___shmctl13(int shmid, int cmd, \
485 netbsd32_shmid_dsp_t buf); }
486 #else
487 303 EXCL __shmctl13
488 #endif
489 304 STD { int netbsd32_lchflags(netbsd32_charp path, netbsd32_u_long flags); }
490 305 NOARGS { int sys_issetugid(void); }
491 306 STD { int netbsd32_utrace(netbsd32_charp label, netbsd32_voidp addr, \
492 netbsd32_size_t len); }
493 307 STD { int netbsd32_getcontext(netbsd32_ucontextp ucp); }
494 308 STD { int netbsd32_setcontext(netbsd32_ucontextp ucp, \
495 uint32_t flags, netbsd32_lwpidp new_lwp); }
496 309 STD { int netbsd32__lwp_create(netbsd32_ucontextp ucp, \
497 netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
498 310 NOARGS { int sys__lwp_exit(void); }
499 311 NOARGS { lwpid_t sys__lwp_self(void); }
500 312 STD { int netbsd32__lwp_wait(lwpid_t wait_for, \
501 netbsd32_lwpidp departed); }
502 313 STD { int netbsd32__lwp_suspend(lwpid_t target); }
503 314 STD { int netbsd32__lwp_continue(lwpid_t target); }
504 315 STD { int netbsd32__lwp_wakeup(lwpid_t target); }
505 316 NOARGS { void *sys__lwp_getprivate(void); }
506 317 STD { void netbsd32__lwp_setprivate(netbsd32_voidp ptr); }
507 318 STD { int netbsd32__lwp_kill(lwpid_t target, int signo); }
508 319 STD { int netbsd32__lwp_detach(lwpid_t target); }
509 320 STD { int netbsd32__lwp_park(netbsd32_timespecp_t ts, \
510 lwpid_t unpark, netbsd32_voidp hint, \
511 netbsd32_voidp unparkhint); }
512 321 STD { int netbsd32__lwp_unpark(lwpid_t target, netbsd32_voidp hint); }
513 322 STD { netbsd32_size_t netbsd32__lwp_unpark_all(netbsd32_lwpidp targets, \
514 netbsd32_size_t ntargets, netbsd32_voidp hint); }
515 323 STD { int netbsd32__lwp_setname(lwpid_t target, \
516 netbsd32_charp name); }
517 324 STD { int netbsd32__lwp_getname(lwpid_t target, \
518 netbsd32_charp name, netbsd32_size_t len); }
519 325 STD { int netbsd32__lwp_ctl(int features, \
520 netbsd32_pointer_t address); }
521 326 UNIMPL
522 327 UNIMPL
523 328 UNIMPL
524 329 UNIMPL
525 330 STD { int netbsd32_sa_register(netbsd32_sa_upcall_t new, \
526 netbsd32_sa_upcallp_t old, int flags, \
527 netbsd32_ssize_t stackinfo_offset); }
528 331 STD { int netbsd32_sa_stacks(int num, netbsd32_stackp_t stacks); }
529 332 NOARGS { int sys_sa_enable(void); }
530 333 STD { int netbsd32_sa_setconcurrency(int concurrency); }
531 334 NOARGS { int sys_sa_yield(void); }
532 335 STD { int netbsd32_sa_preempt(int sa_id); }
533 336 OBSOL sys_sa_unblockyield
534 337 UNIMPL
535 338 UNIMPL
536 339 UNIMPL
537 340 STD { int netbsd32___sigaction_sigtramp(int signum, \
538 netbsd32_sigactionp_t nsa, \
539 netbsd32_sigactionp_t osa, \
540 netbsd32_voidp tramp, int vers); }
541 341 UNIMPL
542 342 UNIMPL
543 343 STD { int netbsd32_rasctl(netbsd32_caddr_t addr, netbsd32_size_t len, \
544 int op); }
545 344 NOARGS { int sys_kqueue(void); }
546 345 STD { int netbsd32_kevent(int fd, \
547 netbsd32_keventp_t changelist, netbsd32_size_t nchanges, \
548 netbsd32_keventp_t eventlist, netbsd32_size_t nevents, \
549 netbsd32_timespecp_t timeout); }
550 ; Scheduling system calls.
551 346 STD { int netbsd32__sched_setparam(pid_t pid, lwpid_t lid, \
552 int policy, const netbsd32_sched_paramp_t params); }
553 347 STD { int netbsd32__sched_getparam(pid_t pid, lwpid_t lid, \
554 netbsd32_intp policy, netbsd32_sched_paramp_t params); }
555 348 STD { int netbsd32__sched_setaffinity(pid_t pid, lwpid_t lid, \
556 netbsd32_size_t size, const netbsd32_cpusetp_t cpuset); }
557 349 STD { int netbsd32__sched_getaffinity(pid_t pid, lwpid_t lid, \
558 netbsd32_size_t size, netbsd32_cpusetp_t cpuset); }
559 350 NOARGS { int sys_sched_yield(void); }
560 351 UNIMPL
561 352 UNIMPL
562 353 UNIMPL
563 354 STD { int netbsd32_fsync_range(int fd, int flags, off_t start, \
564 off_t length); }
565 355 STD { int netbsd32_uuidgen(netbsd32_uuidp_t store, int count); }
566 356 STD { int netbsd32_getvfsstat(netbsd32_statvfsp_t buf, \
567 netbsd32_size_t bufsize, int flags); }
568 357 STD { int netbsd32_statvfs1(netbsd32_charp path, \
569 netbsd32_statvfsp_t buf, int flags); }
570 358 STD { int netbsd32_fstatvfs1(int fd, netbsd32_statvfsp_t buf, \
571 int flags); }
572 359 COMPAT_30 { int netbsd32_fhstatvfs1(netbsd32_fhandlep_t fhp, \
573 netbsd32_statvfsp_t buf, int flags); }
574 360 STD { int netbsd32_extattrctl(netbsd32_charp path, \
575 int cmd, netbsd32_charp filename, int attrnamespace, \
576 netbsd32_charp attrname); }
577 361 STD { int netbsd32_extattr_set_file(netbsd32_charp path, \
578 int attrnamespace, netbsd32_charp attrname, \
579 netbsd32_voidp data, netbsd32_size_t nbytes); }
580 362 STD { int netbsd32_extattr_get_file(netbsd32_charp path, \
581 int attrnamespace, netbsd32_charp attrname, \
582 netbsd32_voidp data, netbsd32_size_t nbytes); }
583 363 STD { int netbsd32_extattr_delete_file(netbsd32_charp path, \
584 int attrnamespace, netbsd32_charp attrname); }
585 364 STD { int netbsd32_extattr_set_fd(int fd, \
586 int attrnamespace, netbsd32_charp attrname, \
587 netbsd32_voidp data, netbsd32_size_t nbytes); }
588 365 STD { int netbsd32_extattr_get_fd(int fd, \
589 int attrnamespace, netbsd32_charp attrname, \
590 netbsd32_voidp data, netbsd32_size_t nbytes); }
591 366 STD { int netbsd32_extattr_delete_fd(int fd, \
592 int attrnamespace, netbsd32_charp attrname); }
593 367 STD { int netbsd32_extattr_set_link(netbsd32_charp path, \
594 int attrnamespace, netbsd32_charp attrname, \
595 netbsd32_voidp data, netbsd32_size_t nbytes); }
596 368 STD { int netbsd32_extattr_get_link(netbsd32_charp path, \
597 int attrnamespace, netbsd32_charp attrname, \
598 netbsd32_voidp data, netbsd32_size_t nbytes); }
599 369 STD { int netbsd32_extattr_delete_link(netbsd32_charp path, \
600 int attrnamespace, netbsd32_charp attrname); }
601 370 STD { int netbsd32_extattr_list_fd(int fd, \
602 int attrnamespace, netbsd32_voidp data, \
603 netbsd32_size_t nbytes); }
604 371 STD { int netbsd32_extattr_list_file(netbsd32_charp path, \
605 int attrnamespace, netbsd32_voidp data, \
606 netbsd32_size_t nbytes); }
607 372 STD { int netbsd32_extattr_list_link(netbsd32_charp path, \
608 int attrnamespace, netbsd32_voidp data, \
609 netbsd32_size_t nbytes); }
610 373 STD { int netbsd32_pselect(int nd, netbsd32_fd_setp_t in, \
611 netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
612 netbsd32_timespecp_t ts, netbsd32_sigsetp_t mask); }
613 374 STD { int netbsd32_pollts(netbsd32_pollfdp_t fds, u_int nfds, \
614 netbsd32_timespecp_t ts, netbsd32_sigsetp_t mask); }
615 375 STD { int netbsd32_setxattr(netbsd32_charp path, \
616 netbsd32_charp name, netbsd32_voidp value, \
617 netbsd32_size_t size, int flags); }
618 376 STD { int netbsd32_lsetxattr(netbsd32_charp path, \
619 netbsd32_charp name, netbsd32_voidp value, \
620 netbsd32_size_t size, int flags); }
621 377 STD { int netbsd32_fsetxattr(int fd, \
622 netbsd32_charp name, netbsd32_voidp value, \
623 netbsd32_size_t size, int flags); }
624 378 STD { int netbsd32_getxattr(netbsd32_charp path, \
625 netbsd32_charp name, netbsd32_voidp value, \
626 netbsd32_size_t size); }
627 379 STD { int netbsd32_lgetxattr(netbsd32_charp path, \
628 netbsd32_charp name, netbsd32_voidp value, \
629 netbsd32_size_t size); }
630 380 STD { int netbsd32_fgetxattr(int fd, \
631 netbsd32_charp name, netbsd32_voidp value, \
632 netbsd32_size_t size); }
633 381 STD { int netbsd32_listxattr(netbsd32_charp path, \
634 netbsd32_charp list, netbsd32_size_t size); }
635 382 STD { int netbsd32_llistxattr(netbsd32_charp path, \
636 netbsd32_charp list, netbsd32_size_t size); }
637 383 STD { int netbsd32_flistxattr(int fd, \
638 netbsd32_charp list, netbsd32_size_t size); }
639 384 STD { int netbsd32_removexattr(netbsd32_charp path, \
640 netbsd32_charp name); }
641 385 STD { int netbsd32_lremovexattr(netbsd32_charp path, \
642 netbsd32_charp name); }
643 386 STD { int netbsd32_fremovexattr(int fd, \
644 netbsd32_charp name); }
645 387 STD { int netbsd32_sys___stat30(netbsd32_charp path, \
646 netbsd32_statp_t ub); }
647 388 STD { int netbsd32_sys___fstat30(int fd, \
648 netbsd32_statp_t sb); }
649 389 STD { int netbsd32_sys___lstat30( \
650 netbsd32_charp path, netbsd32_statp_t ub); }
651 390 STD { int netbsd32_sys___getdents30(int fd, \
652 netbsd32_charp buf, netbsd32_size_t count); }
653 391 IGNORED old posix fadvise
654 392 COMPAT_30 { int netbsd32_sys___fhstat30( \
655 netbsd32_fhandlep_t fhp, \
656 netbsd32_statp_t sb); }
657 393 STD { int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
658 394 STD { int netbsd32_sys___socket30(int domain, int type, int protocol); }
659 395 STD { int netbsd32___getfh30(netbsd32_charp fname, netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
660 396 STD { int netbsd32___fhopen40(netbsd32_pointer_t fhp, \
661 netbsd32_size_t fh_size, int flags); }
662 397 STD { int netbsd32___fhstatvfs140( \
663 netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
664 netbsd32_statvfsp_t buf, int flags); }
665 398 STD { int netbsd32___fhstat40( \
666 netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
667 netbsd32_statp_t sb); }
668
669 ; Asynchronous I/O system calls
670 399 UNIMPL { int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
671 400 UNIMPL { int sys_aio_error(const struct aiocb *aiocbp); }
672 401 UNIMPL { int sys_aio_fsync(int op, struct aiocb *aiocbp); }
673 402 UNIMPL { int sys_aio_read(struct aiocb *aiocbp); }
674 403 UNIMPL { int sys_aio_return(struct aiocb *aiocbp); }
675 404 UNIMPL { int sys_aio_suspend(const struct aiocb *const *list, \
676 int nent, const struct timespec *timeout); }
677 405 UNIMPL { int sys_aio_write(struct aiocb *aiocbp); }
678 406 UNIMPL { int sys_lio_listio(int mode, struct aiocb *const *list, \
679 int nent, struct sigevent *sig); }
680
681 407 UNIMPL
682 408 UNIMPL
683 409 UNIMPL
684
685 410 UNIMPL { int sys___mount50(const char *type, \
686 const char *path, int flags, void *data, \
687 size_t data_len); }
688 411 STD { netbsd32_voidp netbsd32_mremap( \
689 netbsd32_voidp old_address, \
690 netbsd32_size_t old_size, \
691 netbsd32_voidp new_address, \
692 netbsd32_size_t new_size, int flags); }
693
694 412 UNIMPL
695 413 UNIMPL
696 414 UNIMPL
697 415 UNIMPL
698
699 416 STD { int netbsd32___posix_fadvise50(int fd, int pad, \
700 off_t offset, off_t len, int advice); }
Cache object: e8019feeff46d020ecdded6db3f0fe5f
|