| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: syscalls.master,v 1.101.2.2 2015/11/04 17:46:21 riz Exp $ | | 1 | $NetBSD: syscalls.master,v 1.101.2.3 2015/11/06 09:16:48 martin Exp $ |
2 | | | 2 | |
3 | ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp | | 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 | | 4 | ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 |
5 | | | 5 | |
6 | ; NetBSD system call name/number "master" file. | | 6 | ; NetBSD system call name/number "master" file. |
7 | ; (See syscalls.conf to see what it is processed into.) | | 7 | ; (See syscalls.conf to see what it is processed into.) |
8 | ; | | 8 | ; |
9 | ; Fields: number type [type-dependent ...] | | 9 | ; Fields: number type [type-dependent ...] |
10 | ; number system call number, must be in order | | 10 | ; number system call number, must be in order |
11 | ; type one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of | | 11 | ; type one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of |
12 | ; the compatibility options defined in syscalls.conf. | | 12 | ; the compatibility options defined in syscalls.conf. |
13 | ; | | 13 | ; |
14 | ; types: | | 14 | ; types: |
| @@ -28,26 +28,27 @@ | | | @@ -28,26 +28,27 @@ |
28 | ; 'libcompat' options). | | 28 | ; 'libcompat' options). |
29 | ; | | 29 | ; |
30 | ; The type-dependent arguments are as follows: | | 30 | ; The type-dependent arguments are as follows: |
31 | ; For STD, NODEF, NOARGS, and compat syscalls: | | 31 | ; For STD, NODEF, NOARGS, and compat syscalls: |
32 | ; { pseudo-proto } [alias] | | 32 | ; { pseudo-proto } [alias] |
33 | ; For other syscalls: | | 33 | ; For other syscalls: |
34 | ; [comment] | | 34 | ; [comment] |
35 | ; | | 35 | ; |
36 | ; #ifdef's, etc. may be included, and are copied to the output files. | | 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. | | 37 | ; #include's are copied to the syscall names and switch definition files only. |
38 | | | 38 | |
39 | #if defined(_KERNEL_OPT) | | 39 | #if defined(_KERNEL_OPT) |
40 | #include "opt_compat_netbsd.h" | | 40 | #include "opt_compat_netbsd.h" |
| | | 41 | #include "opt_nfsserver.h" |
41 | #include "opt_ntp.h" | | 42 | #include "opt_ntp.h" |
42 | #include "opt_sysv.h" | | 43 | #include "opt_sysv.h" |
43 | #include "opt_compat_43.h" | | 44 | #include "opt_compat_43.h" |
44 | #endif | | 45 | #endif |
45 | | | 46 | |
46 | #include <sys/param.h> | | 47 | #include <sys/param.h> |
47 | #include <sys/systm.h> | | 48 | #include <sys/systm.h> |
48 | #include <sys/signal.h> | | 49 | #include <sys/signal.h> |
49 | #include <sys/mount.h> | | 50 | #include <sys/mount.h> |
50 | #include <sys/syscallargs.h> | | 51 | #include <sys/syscallargs.h> |
51 | | | 52 | |
52 | #include <compat/netbsd32/netbsd32.h> | | 53 | #include <compat/netbsd32/netbsd32.h> |
53 | #include <compat/netbsd32/netbsd32_syscallargs.h> | | 54 | #include <compat/netbsd32/netbsd32_syscallargs.h> |
| @@ -307,27 +308,31 @@ | | | @@ -307,27 +308,31 @@ |
307 | int uid, netbsd32_voidp arg); } | | 308 | int uid, netbsd32_voidp arg); } |
308 | 149 COMPAT_43 { int|sys||quota(void); } oquota | | 309 | 149 COMPAT_43 { int|sys||quota(void); } oquota |
309 | 150 COMPAT_43 { int|netbsd32||ogetsockname(int fdec, \ | | 310 | 150 COMPAT_43 { int|netbsd32||ogetsockname(int fdec, \ |
310 | netbsd32_voidp asa, netbsd32_intp alen); } | | 311 | netbsd32_voidp asa, netbsd32_intp alen); } |
311 | | | 312 | |
312 | ; Syscalls 151-180 inclusive are reserved for vendor-specific | | 313 | ; Syscalls 151-180 inclusive are reserved for vendor-specific |
313 | ; system calls. (This includes various calls added for compatibity | | 314 | ; system calls. (This includes various calls added for compatibity |
314 | ; with other Unix variants.) | | 315 | ; with other Unix variants.) |
315 | ; Some of these calls are now supported by BSD... | | 316 | ; Some of these calls are now supported by BSD... |
316 | 151 UNIMPL | | 317 | 151 UNIMPL |
317 | 152 UNIMPL | | 318 | 152 UNIMPL |
318 | 153 UNIMPL | | 319 | 153 UNIMPL |
319 | 154 UNIMPL | | 320 | 154 UNIMPL |
| | | 321 | #if defined(NFSSERVER) || !defined(_KERNEL_OPT) |
320 | 155 STD { int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); } | | 322 | 155 STD { int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); } |
| | | 323 | #else |
| | | 324 | 155 EXCL netbsd32_nfssvc |
| | | 325 | #endif |
321 | 156 COMPAT_43 { int|netbsd32||ogetdirentries(int fd, \ | | 326 | 156 COMPAT_43 { int|netbsd32||ogetdirentries(int fd, \ |
322 | netbsd32_charp buf, u_int count, \ | | 327 | netbsd32_charp buf, u_int count, \ |
323 | netbsd32_longp basep); } | | 328 | netbsd32_longp basep); } |
324 | 157 COMPAT_20 { int|netbsd32||statfs(netbsd32_charp path, \ | | 329 | 157 COMPAT_20 { int|netbsd32||statfs(netbsd32_charp path, \ |
325 | netbsd32_statfsp_t buf); } | | 330 | netbsd32_statfsp_t buf); } |
326 | 158 COMPAT_20 { int|netbsd32||fstatfs(int fd, \ | | 331 | 158 COMPAT_20 { int|netbsd32||fstatfs(int fd, \ |
327 | netbsd32_statfsp_t buf); } | | 332 | netbsd32_statfsp_t buf); } |
328 | 159 UNIMPL | | 333 | 159 UNIMPL |
329 | 160 UNIMPL | | 334 | 160 UNIMPL |
330 | 161 COMPAT_30 { int|netbsd32||getfh(netbsd32_charp fname, \ | | 335 | 161 COMPAT_30 { int|netbsd32||getfh(netbsd32_charp fname, \ |
331 | netbsd32_compat_30_fhandlep_t fhp); } | | 336 | netbsd32_compat_30_fhandlep_t fhp); } |
332 | 162 COMPAT_09 { int|netbsd32||ogetdomainname( \ | | 337 | 162 COMPAT_09 { int|netbsd32||ogetdomainname( \ |
333 | netbsd32_charp domainname, int len); } | | 338 | netbsd32_charp domainname, int len); } |