COMPAT_NETBSD32: Add support for memfd_create(2).diff -r1.234 -r1.235 src/sys/compat/netbsd32/netbsd32_netbsd.c
(rin)
--- src/sys/compat/netbsd32/netbsd32_netbsd.c 2023/07/30 05:10:47 1.234
+++ src/sys/compat/netbsd32/netbsd32_netbsd.c 2023/07/30 05:30:45 1.235
@@ -1,1029 +1,1029 @@ | @@ -1,1029 +1,1029 @@ | |||
1 | /* $NetBSD: netbsd32_netbsd.c,v 1.234 2023/07/30 05:10:47 rin Exp $ */ | 1 | /* $NetBSD: netbsd32_netbsd.c,v 1.235 2023/07/30 05:30:45 rin Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1998, 2001, 2008, 2018 Matthew R. Green | 4 | * Copyright (c) 1998, 2001, 2008, 2018 Matthew R. Green | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
15 | * | 15 | * | |
16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
17 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 17 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
18 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 18 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
19 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 19 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
20 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | 20 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | |
21 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 21 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | 22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | |
23 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | 23 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
24 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 24 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
25 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
26 | * SUCH DAMAGE. | 26 | * SUCH DAMAGE. | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #include <sys/cdefs.h> | 29 | #include <sys/cdefs.h> | |
30 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.234 2023/07/30 05:10:47 rin Exp $"); | 30 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.235 2023/07/30 05:30:45 rin Exp $"); | |
31 | 31 | |||
32 | /* | 32 | /* | |
33 | * below are all the standard NetBSD system calls, in the 32bit | 33 | * below are all the standard NetBSD system calls, in the 32bit | |
34 | * environment, with the necessary conversions to 64bit before calling | 34 | * environment, with the necessary conversions to 64bit before calling | |
35 | * the real syscall. anything that needs special attention is handled | 35 | * the real syscall. anything that needs special attention is handled | |
36 | * elsewhere - this file should only contain structure assignment and | 36 | * elsewhere - this file should only contain structure assignment and | |
37 | * calls to the original function. | 37 | * calls to the original function. | |
38 | */ | 38 | */ | |
39 | 39 | |||
40 | /* | 40 | /* | |
41 | * below are all the standard NetBSD system calls, in the 32bit | 41 | * below are all the standard NetBSD system calls, in the 32bit | |
42 | * environment, with the necessary conversions to 64bit before calling | 42 | * environment, with the necessary conversions to 64bit before calling | |
43 | * the real syscall. anything that needs special attention is handled | 43 | * the real syscall. anything that needs special attention is handled | |
44 | * elsewhere - this file should only contain structure assignment and | 44 | * elsewhere - this file should only contain structure assignment and | |
45 | * calls to the original function. | 45 | * calls to the original function. | |
46 | */ | 46 | */ | |
47 | 47 | |||
48 | #if defined(_KERNEL_OPT) | 48 | #if defined(_KERNEL_OPT) | |
49 | #include "opt_compat_43.h" | 49 | #include "opt_compat_43.h" | |
50 | #include "opt_compat_netbsd.h" | 50 | #include "opt_compat_netbsd.h" | |
51 | #include "opt_ddb.h" | 51 | #include "opt_ddb.h" | |
52 | #include "opt_ktrace.h" | 52 | #include "opt_ktrace.h" | |
53 | #include "opt_ntp.h" | 53 | #include "opt_ntp.h" | |
54 | #include "opt_quota.h" | 54 | #include "opt_quota.h" | |
55 | #include "opt_syscall_debug.h" | 55 | #include "opt_syscall_debug.h" | |
56 | #include "opt_sysv.h" | 56 | #include "opt_sysv.h" | |
57 | #endif | 57 | #endif | |
58 | 58 | |||
59 | #include <sys/param.h> | 59 | #include <sys/param.h> | |
60 | #include <sys/acct.h> | 60 | #include <sys/acct.h> | |
61 | #include <sys/dirent.h> | 61 | #include <sys/dirent.h> | |
62 | #include <sys/exec.h> | 62 | #include <sys/exec.h> | |
63 | #include <sys/file.h> | 63 | #include <sys/file.h> | |
64 | #include <sys/filedesc.h> | 64 | #include <sys/filedesc.h> | |
65 | #include <sys/kernel.h> | 65 | #include <sys/kernel.h> | |
66 | #include <sys/ktrace.h> | 66 | #include <sys/ktrace.h> | |
67 | #include <sys/mbuf.h> | 67 | #include <sys/mbuf.h> | |
68 | #include <sys/mman.h> | 68 | #include <sys/mman.h> | |
69 | #include <sys/mount.h> | 69 | #include <sys/mount.h> | |
70 | #include <sys/namei.h> | 70 | #include <sys/namei.h> | |
71 | #include <sys/pool.h> | 71 | #include <sys/pool.h> | |
72 | #include <sys/proc.h> | 72 | #include <sys/proc.h> | |
73 | #include <sys/ptrace.h> | 73 | #include <sys/ptrace.h> | |
74 | #include <sys/quotactl.h> | 74 | #include <sys/quotactl.h> | |
75 | #include <sys/resourcevar.h> | 75 | #include <sys/resourcevar.h> | |
76 | #include <sys/signalvar.h> | 76 | #include <sys/signalvar.h> | |
77 | #include <sys/socket.h> | 77 | #include <sys/socket.h> | |
78 | #include <sys/socketvar.h> | 78 | #include <sys/socketvar.h> | |
79 | #include <sys/sockio.h> | 79 | #include <sys/sockio.h> | |
80 | #include <sys/stat.h> | 80 | #include <sys/stat.h> | |
81 | #include <sys/swap.h> | 81 | #include <sys/swap.h> | |
82 | #include <sys/syscallargs.h> | 82 | #include <sys/syscallargs.h> | |
83 | #include <sys/systm.h> | 83 | #include <sys/systm.h> | |
84 | #include <sys/time.h> | 84 | #include <sys/time.h> | |
85 | #include <sys/trace.h> | 85 | #include <sys/trace.h> | |
86 | #include <sys/vfs_syscalls.h> | 86 | #include <sys/vfs_syscalls.h> | |
87 | 87 | |||
88 | #include <uvm/uvm_extern.h> | 88 | #include <uvm/uvm_extern.h> | |
89 | #include <uvm/uvm_swap.h> | 89 | #include <uvm/uvm_swap.h> | |
90 | 90 | |||
91 | #include <net/if.h> | 91 | #include <net/if.h> | |
92 | 92 | |||
93 | #include <compat/netbsd32/netbsd32.h> | 93 | #include <compat/netbsd32/netbsd32.h> | |
94 | #include <compat/netbsd32/netbsd32_conv.h> | 94 | #include <compat/netbsd32/netbsd32_conv.h> | |
95 | #include <compat/netbsd32/netbsd32_exec.h> | 95 | #include <compat/netbsd32/netbsd32_exec.h> | |
96 | #include <compat/netbsd32/netbsd32_syscall.h> | 96 | #include <compat/netbsd32/netbsd32_syscall.h> | |
97 | #include <compat/netbsd32/netbsd32_syscallargs.h> | 97 | #include <compat/netbsd32/netbsd32_syscallargs.h> | |
98 | 98 | |||
99 | #include <compat/sys/mman.h> | 99 | #include <compat/sys/mman.h> | |
100 | 100 | |||
101 | #if defined(DDB) | 101 | #if defined(DDB) | |
102 | #include <ddb/ddbvar.h> | 102 | #include <ddb/ddbvar.h> | |
103 | #endif | 103 | #endif | |
104 | 104 | |||
105 | #ifdef __HAVE_SYSCALL_INTERN | 105 | #ifdef __HAVE_SYSCALL_INTERN | |
106 | void netbsd32_syscall_intern(struct proc *); | 106 | void netbsd32_syscall_intern(struct proc *); | |
107 | #else | 107 | #else | |
108 | void syscall(void); | 108 | void syscall(void); | |
109 | #endif | 109 | #endif | |
110 | 110 | |||
111 | #ifdef MODULAR | 111 | #ifdef MODULAR | |
112 | #include <compat/netbsd32/netbsd32_syscalls_autoload.c> | 112 | #include <compat/netbsd32/netbsd32_syscalls_autoload.c> | |
113 | #endif | 113 | #endif | |
114 | 114 | |||
115 | struct emul emul_netbsd32 = { | 115 | struct emul emul_netbsd32 = { | |
116 | .e_name = "netbsd32", | 116 | .e_name = "netbsd32", | |
117 | .e_path = "/emul/netbsd32", | 117 | .e_path = "/emul/netbsd32", | |
118 | #ifndef __HAVE_MINIMAL_EMUL | 118 | #ifndef __HAVE_MINIMAL_EMUL | |
119 | .e_flags = 0, | 119 | .e_flags = 0, | |
120 | .e_errno = NULL, | 120 | .e_errno = NULL, | |
121 | .e_nosys = NETBSD32_SYS_netbsd32_syscall, | 121 | .e_nosys = NETBSD32_SYS_netbsd32_syscall, | |
122 | .e_nsysent = NETBSD32_SYS_NSYSENT, | 122 | .e_nsysent = NETBSD32_SYS_NSYSENT, | |
123 | #endif | 123 | #endif | |
124 | .e_sysent = netbsd32_sysent, | 124 | .e_sysent = netbsd32_sysent, | |
125 | .e_nomodbits = netbsd32_sysent_nomodbits, | 125 | .e_nomodbits = netbsd32_sysent_nomodbits, | |
126 | #ifdef SYSCALL_DEBUG | 126 | #ifdef SYSCALL_DEBUG | |
127 | .e_syscallnames = netbsd32_syscallnames, | 127 | .e_syscallnames = netbsd32_syscallnames, | |
128 | #else | 128 | #else | |
129 | .e_syscallnames = NULL, | 129 | .e_syscallnames = NULL, | |
130 | #endif | 130 | #endif | |
131 | #ifdef MODULAR | 131 | #ifdef MODULAR | |
132 | .e_sc_autoload = netbsd32_syscalls_autoload, | 132 | .e_sc_autoload = netbsd32_syscalls_autoload, | |
133 | #endif | 133 | #endif | |
134 | .e_sendsig = netbsd32_sendsig, | 134 | .e_sendsig = netbsd32_sendsig, | |
135 | .e_trapsignal = trapsignal, | 135 | .e_trapsignal = trapsignal, | |
136 | .e_sigcode = NULL, | 136 | .e_sigcode = NULL, | |
137 | .e_esigcode = NULL, | 137 | .e_esigcode = NULL, | |
138 | .e_sigobject = NULL, | 138 | .e_sigobject = NULL, | |
139 | .e_setregs = netbsd32_setregs, | 139 | .e_setregs = netbsd32_setregs, | |
140 | .e_proc_exec = NULL, | 140 | .e_proc_exec = NULL, | |
141 | .e_proc_fork = NULL, | 141 | .e_proc_fork = NULL, | |
142 | .e_proc_exit = NULL, | 142 | .e_proc_exit = NULL, | |
143 | .e_lwp_fork = NULL, | 143 | .e_lwp_fork = NULL, | |
144 | .e_lwp_exit = NULL, | 144 | .e_lwp_exit = NULL, | |
145 | #ifdef __HAVE_SYSCALL_INTERN | 145 | #ifdef __HAVE_SYSCALL_INTERN | |
146 | .e_syscall_intern = netbsd32_syscall_intern, | 146 | .e_syscall_intern = netbsd32_syscall_intern, | |
147 | #else | 147 | #else | |
148 | .e_syscall = syscall, | 148 | .e_syscall = syscall, | |
149 | #endif | 149 | #endif | |
150 | .e_sysctlovly = &netbsd32_sysctl_root, | 150 | .e_sysctlovly = &netbsd32_sysctl_root, | |
151 | .e_vm_default_addr = netbsd32_vm_default_addr, | 151 | .e_vm_default_addr = netbsd32_vm_default_addr, | |
152 | .e_usertrap = NULL, | 152 | .e_usertrap = NULL, | |
153 | .e_ucsize = sizeof(ucontext32_t), | 153 | .e_ucsize = sizeof(ucontext32_t), | |
154 | .e_startlwp = startlwp32, | 154 | .e_startlwp = startlwp32, | |
155 | #ifdef notyet | 155 | #ifdef notyet | |
156 | .e_ktrpsig = netbsd32_ktrpsig, | 156 | .e_ktrpsig = netbsd32_ktrpsig, | |
157 | #else | 157 | #else | |
158 | .e_ktrpsig = NULL, | 158 | .e_ktrpsig = NULL, | |
159 | #endif | 159 | #endif | |
160 | }; | 160 | }; | |
161 | 161 | |||
162 | int | 162 | int | |
163 | netbsd32_exit(struct lwp *l, const struct netbsd32_exit_args *uap, register_t *retval) | 163 | netbsd32_exit(struct lwp *l, const struct netbsd32_exit_args *uap, register_t *retval) | |
164 | { | 164 | { | |
165 | /* { | 165 | /* { | |
166 | syscallarg(int) rval; | 166 | syscallarg(int) rval; | |
167 | } */ | 167 | } */ | |
168 | struct sys_exit_args ua; | 168 | struct sys_exit_args ua; | |
169 | 169 | |||
170 | NETBSD32TO64_UAP(rval); | 170 | NETBSD32TO64_UAP(rval); | |
171 | return sys_exit(l, &ua, retval); | 171 | return sys_exit(l, &ua, retval); | |
172 | } | 172 | } | |
173 | 173 | |||
174 | int | 174 | int | |
175 | netbsd32_read(struct lwp *l, const struct netbsd32_read_args *uap, register_t *retval) | 175 | netbsd32_read(struct lwp *l, const struct netbsd32_read_args *uap, register_t *retval) | |
176 | { | 176 | { | |
177 | /* { | 177 | /* { | |
178 | syscallarg(int) fd; | 178 | syscallarg(int) fd; | |
179 | syscallarg(netbsd32_voidp) buf; | 179 | syscallarg(netbsd32_voidp) buf; | |
180 | syscallarg(netbsd32_size_t) nbyte; | 180 | syscallarg(netbsd32_size_t) nbyte; | |
181 | } */ | 181 | } */ | |
182 | struct sys_read_args ua; | 182 | struct sys_read_args ua; | |
183 | 183 | |||
184 | if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) | 184 | if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) | |
185 | return EINVAL; | 185 | return EINVAL; | |
186 | 186 | |||
187 | NETBSD32TO64_UAP(fd); | 187 | NETBSD32TO64_UAP(fd); | |
188 | NETBSD32TOP_UAP(buf, void *); | 188 | NETBSD32TOP_UAP(buf, void *); | |
189 | NETBSD32TOX_UAP(nbyte, size_t); | 189 | NETBSD32TOX_UAP(nbyte, size_t); | |
190 | return sys_read(l, &ua, retval); | 190 | return sys_read(l, &ua, retval); | |
191 | } | 191 | } | |
192 | 192 | |||
193 | int | 193 | int | |
194 | netbsd32_write(struct lwp *l, const struct netbsd32_write_args *uap, register_t *retval) | 194 | netbsd32_write(struct lwp *l, const struct netbsd32_write_args *uap, register_t *retval) | |
195 | { | 195 | { | |
196 | /* { | 196 | /* { | |
197 | syscallarg(int) fd; | 197 | syscallarg(int) fd; | |
198 | syscallarg(const netbsd32_voidp) buf; | 198 | syscallarg(const netbsd32_voidp) buf; | |
199 | syscallarg(netbsd32_size_t) nbyte; | 199 | syscallarg(netbsd32_size_t) nbyte; | |
200 | } */ | 200 | } */ | |
201 | struct sys_write_args ua; | 201 | struct sys_write_args ua; | |
202 | 202 | |||
203 | if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) | 203 | if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) | |
204 | return EINVAL; | 204 | return EINVAL; | |
205 | 205 | |||
206 | NETBSD32TO64_UAP(fd); | 206 | NETBSD32TO64_UAP(fd); | |
207 | NETBSD32TOP_UAP(buf, void *); | 207 | NETBSD32TOP_UAP(buf, void *); | |
208 | NETBSD32TOX_UAP(nbyte, size_t); | 208 | NETBSD32TOX_UAP(nbyte, size_t); | |
209 | return sys_write(l, &ua, retval); | 209 | return sys_write(l, &ua, retval); | |
210 | } | 210 | } | |
211 | 211 | |||
212 | int | 212 | int | |
213 | netbsd32_close(struct lwp *l, const struct netbsd32_close_args *uap, register_t *retval) | 213 | netbsd32_close(struct lwp *l, const struct netbsd32_close_args *uap, register_t *retval) | |
214 | { | 214 | { | |
215 | /* { | 215 | /* { | |
216 | syscallarg(int) fd; | 216 | syscallarg(int) fd; | |
217 | } */ | 217 | } */ | |
218 | struct sys_close_args ua; | 218 | struct sys_close_args ua; | |
219 | 219 | |||
220 | NETBSD32TO64_UAP(fd); | 220 | NETBSD32TO64_UAP(fd); | |
221 | return sys_close(l, &ua, retval); | 221 | return sys_close(l, &ua, retval); | |
222 | } | 222 | } | |
223 | 223 | |||
224 | int | 224 | int | |
225 | netbsd32_open(struct lwp *l, const struct netbsd32_open_args *uap, register_t *retval) | 225 | netbsd32_open(struct lwp *l, const struct netbsd32_open_args *uap, register_t *retval) | |
226 | { | 226 | { | |
227 | /* { | 227 | /* { | |
228 | syscallarg(const netbsd32_charp) path; | 228 | syscallarg(const netbsd32_charp) path; | |
229 | syscallarg(int) flags; | 229 | syscallarg(int) flags; | |
230 | syscallarg(mode_t) mode; | 230 | syscallarg(mode_t) mode; | |
231 | } */ | 231 | } */ | |
232 | struct sys_open_args ua; | 232 | struct sys_open_args ua; | |
233 | 233 | |||
234 | NETBSD32TOP_UAP(path, const char); | 234 | NETBSD32TOP_UAP(path, const char); | |
235 | NETBSD32TO64_UAP(flags); | 235 | NETBSD32TO64_UAP(flags); | |
236 | NETBSD32TO64_UAP(mode); | 236 | NETBSD32TO64_UAP(mode); | |
237 | 237 | |||
238 | return sys_open(l, &ua, retval); | 238 | return sys_open(l, &ua, retval); | |
239 | } | 239 | } | |
240 | 240 | |||
241 | int | 241 | int | |
242 | netbsd32_link(struct lwp *l, const struct netbsd32_link_args *uap, register_t *retval) | 242 | netbsd32_link(struct lwp *l, const struct netbsd32_link_args *uap, register_t *retval) | |
243 | { | 243 | { | |
244 | /* { | 244 | /* { | |
245 | syscallarg(const netbsd32_charp) path; | 245 | syscallarg(const netbsd32_charp) path; | |
246 | syscallarg(const netbsd32_charp) link; | 246 | syscallarg(const netbsd32_charp) link; | |
247 | } */ | 247 | } */ | |
248 | struct sys_link_args ua; | 248 | struct sys_link_args ua; | |
249 | 249 | |||
250 | NETBSD32TOP_UAP(path, const char); | 250 | NETBSD32TOP_UAP(path, const char); | |
251 | NETBSD32TOP_UAP(link, const char); | 251 | NETBSD32TOP_UAP(link, const char); | |
252 | return sys_link(l, &ua, retval); | 252 | return sys_link(l, &ua, retval); | |
253 | } | 253 | } | |
254 | 254 | |||
255 | int | 255 | int | |
256 | netbsd32_unlink(struct lwp *l, const struct netbsd32_unlink_args *uap, register_t *retval) | 256 | netbsd32_unlink(struct lwp *l, const struct netbsd32_unlink_args *uap, register_t *retval) | |
257 | { | 257 | { | |
258 | /* { | 258 | /* { | |
259 | syscallarg(const netbsd32_charp) path; | 259 | syscallarg(const netbsd32_charp) path; | |
260 | } */ | 260 | } */ | |
261 | struct sys_unlink_args ua; | 261 | struct sys_unlink_args ua; | |
262 | 262 | |||
263 | NETBSD32TOP_UAP(path, const char); | 263 | NETBSD32TOP_UAP(path, const char); | |
264 | 264 | |||
265 | return sys_unlink(l, &ua, retval); | 265 | return sys_unlink(l, &ua, retval); | |
266 | } | 266 | } | |
267 | 267 | |||
268 | int | 268 | int | |
269 | netbsd32_chdir(struct lwp *l, const struct netbsd32_chdir_args *uap, register_t *retval) | 269 | netbsd32_chdir(struct lwp *l, const struct netbsd32_chdir_args *uap, register_t *retval) | |
270 | { | 270 | { | |
271 | /* { | 271 | /* { | |
272 | syscallarg(const netbsd32_charp) path; | 272 | syscallarg(const netbsd32_charp) path; | |
273 | } */ | 273 | } */ | |
274 | struct sys_chdir_args ua; | 274 | struct sys_chdir_args ua; | |
275 | 275 | |||
276 | NETBSD32TOP_UAP(path, const char); | 276 | NETBSD32TOP_UAP(path, const char); | |
277 | 277 | |||
278 | return sys_chdir(l, &ua, retval); | 278 | return sys_chdir(l, &ua, retval); | |
279 | } | 279 | } | |
280 | 280 | |||
281 | int | 281 | int | |
282 | netbsd32_fchdir(struct lwp *l, const struct netbsd32_fchdir_args *uap, register_t *retval) | 282 | netbsd32_fchdir(struct lwp *l, const struct netbsd32_fchdir_args *uap, register_t *retval) | |
283 | { | 283 | { | |
284 | /* { | 284 | /* { | |
285 | syscallarg(int) fd; | 285 | syscallarg(int) fd; | |
286 | } */ | 286 | } */ | |
287 | struct sys_fchdir_args ua; | 287 | struct sys_fchdir_args ua; | |
288 | 288 | |||
289 | NETBSD32TO64_UAP(fd); | 289 | NETBSD32TO64_UAP(fd); | |
290 | 290 | |||
291 | return sys_fchdir(l, &ua, retval); | 291 | return sys_fchdir(l, &ua, retval); | |
292 | } | 292 | } | |
293 | 293 | |||
294 | int | 294 | int | |
295 | netbsd32___mknod50(struct lwp *l, const struct netbsd32___mknod50_args *uap, register_t *retval) | 295 | netbsd32___mknod50(struct lwp *l, const struct netbsd32___mknod50_args *uap, register_t *retval) | |
296 | { | 296 | { | |
297 | /* { | 297 | /* { | |
298 | syscallarg(const netbsd32_charp) path; | 298 | syscallarg(const netbsd32_charp) path; | |
299 | syscallarg(mode_t) mode; | 299 | syscallarg(mode_t) mode; | |
300 | syscallarg(netbsd32_dev_t) dev; | 300 | syscallarg(netbsd32_dev_t) dev; | |
301 | } */ | 301 | } */ | |
302 | 302 | |||
303 | return do_posix_mknodat(l, AT_FDCWD, SCARG_P32(uap, path), | 303 | return do_posix_mknodat(l, AT_FDCWD, SCARG_P32(uap, path), | |
304 | SCARG(uap, mode), SCARG(uap, dev)); | 304 | SCARG(uap, mode), SCARG(uap, dev)); | |
305 | } | 305 | } | |
306 | 306 | |||
307 | int | 307 | int | |
308 | netbsd32_chmod(struct lwp *l, const struct netbsd32_chmod_args *uap, register_t *retval) | 308 | netbsd32_chmod(struct lwp *l, const struct netbsd32_chmod_args *uap, register_t *retval) | |
309 | { | 309 | { | |
310 | /* { | 310 | /* { | |
311 | syscallarg(const netbsd32_charp) path; | 311 | syscallarg(const netbsd32_charp) path; | |
312 | syscallarg(mode_t) mode; | 312 | syscallarg(mode_t) mode; | |
313 | } */ | 313 | } */ | |
314 | struct sys_chmod_args ua; | 314 | struct sys_chmod_args ua; | |
315 | 315 | |||
316 | NETBSD32TOP_UAP(path, const char); | 316 | NETBSD32TOP_UAP(path, const char); | |
317 | NETBSD32TO64_UAP(mode); | 317 | NETBSD32TO64_UAP(mode); | |
318 | 318 | |||
319 | return sys_chmod(l, &ua, retval); | 319 | return sys_chmod(l, &ua, retval); | |
320 | } | 320 | } | |
321 | 321 | |||
322 | int | 322 | int | |
323 | netbsd32_chown(struct lwp *l, const struct netbsd32_chown_args *uap, register_t *retval) | 323 | netbsd32_chown(struct lwp *l, const struct netbsd32_chown_args *uap, register_t *retval) | |
324 | { | 324 | { | |
325 | /* { | 325 | /* { | |
326 | syscallarg(const netbsd32_charp) path; | 326 | syscallarg(const netbsd32_charp) path; | |
327 | syscallarg(uid_t) uid; | 327 | syscallarg(uid_t) uid; | |
328 | syscallarg(gid_t) gid; | 328 | syscallarg(gid_t) gid; | |
329 | } */ | 329 | } */ | |
330 | struct sys_chown_args ua; | 330 | struct sys_chown_args ua; | |
331 | 331 | |||
332 | NETBSD32TOP_UAP(path, const char); | 332 | NETBSD32TOP_UAP(path, const char); | |
333 | NETBSD32TO64_UAP(uid); | 333 | NETBSD32TO64_UAP(uid); | |
334 | NETBSD32TO64_UAP(gid); | 334 | NETBSD32TO64_UAP(gid); | |
335 | 335 | |||
336 | return sys_chown(l, &ua, retval); | 336 | return sys_chown(l, &ua, retval); | |
337 | } | 337 | } | |
338 | 338 | |||
339 | int | 339 | int | |
340 | netbsd32_break(struct lwp *l, const struct netbsd32_break_args *uap, register_t *retval) | 340 | netbsd32_break(struct lwp *l, const struct netbsd32_break_args *uap, register_t *retval) | |
341 | { | 341 | { | |
342 | /* { | 342 | /* { | |
343 | syscallarg(netbsd32_charp) nsize; | 343 | syscallarg(netbsd32_charp) nsize; | |
344 | } */ | 344 | } */ | |
345 | struct sys_obreak_args ua; | 345 | struct sys_obreak_args ua; | |
346 | 346 | |||
347 | NETBSD32TOP_UAP(nsize, char); | 347 | NETBSD32TOP_UAP(nsize, char); | |
348 | 348 | |||
349 | return sys_obreak(l, &ua, retval); | 349 | return sys_obreak(l, &ua, retval); | |
350 | } | 350 | } | |
351 | 351 | |||
352 | int | 352 | int | |
353 | netbsd32_unmount(struct lwp *l, const struct netbsd32_unmount_args *uap, register_t *retval) | 353 | netbsd32_unmount(struct lwp *l, const struct netbsd32_unmount_args *uap, register_t *retval) | |
354 | { | 354 | { | |
355 | /* { | 355 | /* { | |
356 | syscallarg(const netbsd32_charp) path; | 356 | syscallarg(const netbsd32_charp) path; | |
357 | syscallarg(int) flags; | 357 | syscallarg(int) flags; | |
358 | } */ | 358 | } */ | |
359 | struct sys_unmount_args ua; | 359 | struct sys_unmount_args ua; | |
360 | 360 | |||
361 | NETBSD32TOP_UAP(path, const char); | 361 | NETBSD32TOP_UAP(path, const char); | |
362 | NETBSD32TO64_UAP(flags); | 362 | NETBSD32TO64_UAP(flags); | |
363 | 363 | |||
364 | return sys_unmount(l, &ua, retval); | 364 | return sys_unmount(l, &ua, retval); | |
365 | } | 365 | } | |
366 | 366 | |||
367 | int | 367 | int | |
368 | netbsd32_setuid(struct lwp *l, const struct netbsd32_setuid_args *uap, register_t *retval) | 368 | netbsd32_setuid(struct lwp *l, const struct netbsd32_setuid_args *uap, register_t *retval) | |
369 | { | 369 | { | |
370 | /* { | 370 | /* { | |
371 | syscallarg(uid_t) uid; | 371 | syscallarg(uid_t) uid; | |
372 | } */ | 372 | } */ | |
373 | struct sys_setuid_args ua; | 373 | struct sys_setuid_args ua; | |
374 | 374 | |||
375 | NETBSD32TO64_UAP(uid); | 375 | NETBSD32TO64_UAP(uid); | |
376 | 376 | |||
377 | return sys_setuid(l, &ua, retval); | 377 | return sys_setuid(l, &ua, retval); | |
378 | } | 378 | } | |
379 | 379 | |||
380 | int | 380 | int | |
381 | netbsd32_accept(struct lwp *l, const struct netbsd32_accept_args *uap, register_t *retval) | 381 | netbsd32_accept(struct lwp *l, const struct netbsd32_accept_args *uap, register_t *retval) | |
382 | { | 382 | { | |
383 | /* { | 383 | /* { | |
384 | syscallarg(int) s; | 384 | syscallarg(int) s; | |
385 | syscallarg(netbsd32_sockaddrp_t) name; | 385 | syscallarg(netbsd32_sockaddrp_t) name; | |
386 | syscallarg(netbsd32_intp) anamelen; | 386 | syscallarg(netbsd32_intp) anamelen; | |
387 | } */ | 387 | } */ | |
388 | struct sys_accept_args ua; | 388 | struct sys_accept_args ua; | |
389 | 389 | |||
390 | NETBSD32TO64_UAP(s); | 390 | NETBSD32TO64_UAP(s); | |
391 | NETBSD32TOP_UAP(name, struct sockaddr); | 391 | NETBSD32TOP_UAP(name, struct sockaddr); | |
392 | NETBSD32TOP_UAP(anamelen, socklen_t); | 392 | NETBSD32TOP_UAP(anamelen, socklen_t); | |
393 | 393 | |||
394 | return sys_accept(l, &ua, retval); | 394 | return sys_accept(l, &ua, retval); | |
395 | } | 395 | } | |
396 | 396 | |||
397 | int | 397 | int | |
398 | netbsd32_getpeername(struct lwp *l, const struct netbsd32_getpeername_args *uap, register_t *retval) | 398 | netbsd32_getpeername(struct lwp *l, const struct netbsd32_getpeername_args *uap, register_t *retval) | |
399 | { | 399 | { | |
400 | /* { | 400 | /* { | |
401 | syscallarg(int) fdes; | 401 | syscallarg(int) fdes; | |
402 | syscallarg(netbsd32_sockaddrp_t) asa; | 402 | syscallarg(netbsd32_sockaddrp_t) asa; | |
403 | syscallarg(netbsd32_intp) alen; | 403 | syscallarg(netbsd32_intp) alen; | |
404 | } */ | 404 | } */ | |
405 | struct sys_getpeername_args ua; | 405 | struct sys_getpeername_args ua; | |
406 | 406 | |||
407 | NETBSD32TO64_UAP(fdes); | 407 | NETBSD32TO64_UAP(fdes); | |
408 | NETBSD32TOP_UAP(asa, struct sockaddr); | 408 | NETBSD32TOP_UAP(asa, struct sockaddr); | |
409 | NETBSD32TOP_UAP(alen, socklen_t); | 409 | NETBSD32TOP_UAP(alen, socklen_t); | |
410 | /* NB: do the protocol specific sockaddrs need to be converted? */ | 410 | /* NB: do the protocol specific sockaddrs need to be converted? */ | |
411 | 411 | |||
412 | return sys_getpeername(l, &ua, retval); | 412 | return sys_getpeername(l, &ua, retval); | |
413 | } | 413 | } | |
414 | 414 | |||
415 | int | 415 | int | |
416 | netbsd32_getsockname(struct lwp *l, const struct netbsd32_getsockname_args *uap, register_t *retval) | 416 | netbsd32_getsockname(struct lwp *l, const struct netbsd32_getsockname_args *uap, register_t *retval) | |
417 | { | 417 | { | |
418 | /* { | 418 | /* { | |
419 | syscallarg(int) fdes; | 419 | syscallarg(int) fdes; | |
420 | syscallarg(netbsd32_sockaddrp_t) asa; | 420 | syscallarg(netbsd32_sockaddrp_t) asa; | |
421 | syscallarg(netbsd32_intp) alen; | 421 | syscallarg(netbsd32_intp) alen; | |
422 | } */ | 422 | } */ | |
423 | struct sys_getsockname_args ua; | 423 | struct sys_getsockname_args ua; | |
424 | 424 | |||
425 | NETBSD32TO64_UAP(fdes); | 425 | NETBSD32TO64_UAP(fdes); | |
426 | NETBSD32TOP_UAP(asa, struct sockaddr); | 426 | NETBSD32TOP_UAP(asa, struct sockaddr); | |
427 | NETBSD32TOP_UAP(alen, socklen_t); | 427 | NETBSD32TOP_UAP(alen, socklen_t); | |
428 | 428 | |||
429 | return sys_getsockname(l, &ua, retval); | 429 | return sys_getsockname(l, &ua, retval); | |
430 | } | 430 | } | |
431 | 431 | |||
432 | int | 432 | int | |
433 | netbsd32_access(struct lwp *l, const struct netbsd32_access_args *uap, register_t *retval) | 433 | netbsd32_access(struct lwp *l, const struct netbsd32_access_args *uap, register_t *retval) | |
434 | { | 434 | { | |
435 | /* { | 435 | /* { | |
436 | syscallarg(const netbsd32_charp) path; | 436 | syscallarg(const netbsd32_charp) path; | |
437 | syscallarg(int) flags; | 437 | syscallarg(int) flags; | |
438 | } */ | 438 | } */ | |
439 | struct sys_access_args ua; | 439 | struct sys_access_args ua; | |
440 | 440 | |||
441 | NETBSD32TOP_UAP(path, const char); | 441 | NETBSD32TOP_UAP(path, const char); | |
442 | NETBSD32TO64_UAP(flags); | 442 | NETBSD32TO64_UAP(flags); | |
443 | 443 | |||
444 | return sys_access(l, &ua, retval); | 444 | return sys_access(l, &ua, retval); | |
445 | } | 445 | } | |
446 | 446 | |||
447 | int | 447 | int | |
448 | netbsd32_chflags(struct lwp *l, const struct netbsd32_chflags_args *uap, register_t *retval) | 448 | netbsd32_chflags(struct lwp *l, const struct netbsd32_chflags_args *uap, register_t *retval) | |
449 | { | 449 | { | |
450 | /* { | 450 | /* { | |
451 | syscallarg(const netbsd32_charp) path; | 451 | syscallarg(const netbsd32_charp) path; | |
452 | syscallarg(netbsd32_u_long) flags; | 452 | syscallarg(netbsd32_u_long) flags; | |
453 | } */ | 453 | } */ | |
454 | struct sys_chflags_args ua; | 454 | struct sys_chflags_args ua; | |
455 | 455 | |||
456 | NETBSD32TOP_UAP(path, const char); | 456 | NETBSD32TOP_UAP(path, const char); | |
457 | NETBSD32TO64_UAP(flags); | 457 | NETBSD32TO64_UAP(flags); | |
458 | 458 | |||
459 | return sys_chflags(l, &ua, retval); | 459 | return sys_chflags(l, &ua, retval); | |
460 | } | 460 | } | |
461 | 461 | |||
462 | int | 462 | int | |
463 | netbsd32_fchflags(struct lwp *l, const struct netbsd32_fchflags_args *uap, register_t *retval) | 463 | netbsd32_fchflags(struct lwp *l, const struct netbsd32_fchflags_args *uap, register_t *retval) | |
464 | { | 464 | { | |
465 | /* { | 465 | /* { | |
466 | syscallarg(int) fd; | 466 | syscallarg(int) fd; | |
467 | syscallarg(netbsd32_u_long) flags; | 467 | syscallarg(netbsd32_u_long) flags; | |
468 | } */ | 468 | } */ | |
469 | struct sys_fchflags_args ua; | 469 | struct sys_fchflags_args ua; | |
470 | 470 | |||
471 | NETBSD32TO64_UAP(fd); | 471 | NETBSD32TO64_UAP(fd); | |
472 | NETBSD32TO64_UAP(flags); | 472 | NETBSD32TO64_UAP(flags); | |
473 | 473 | |||
474 | return sys_fchflags(l, &ua, retval); | 474 | return sys_fchflags(l, &ua, retval); | |
475 | } | 475 | } | |
476 | 476 | |||
477 | int | 477 | int | |
478 | netbsd32_lchflags(struct lwp *l, const struct netbsd32_lchflags_args *uap, register_t *retval) | 478 | netbsd32_lchflags(struct lwp *l, const struct netbsd32_lchflags_args *uap, register_t *retval) | |
479 | { | 479 | { | |
480 | /* { | 480 | /* { | |
481 | syscallarg(const char *) path; | 481 | syscallarg(const char *) path; | |
482 | syscallarg(netbsd32_u_long) flags; | 482 | syscallarg(netbsd32_u_long) flags; | |
483 | } */ | 483 | } */ | |
484 | struct sys_lchflags_args ua; | 484 | struct sys_lchflags_args ua; | |
485 | 485 | |||
486 | NETBSD32TOP_UAP(path, const char); | 486 | NETBSD32TOP_UAP(path, const char); | |
487 | NETBSD32TO64_UAP(flags); | 487 | NETBSD32TO64_UAP(flags); | |
488 | 488 | |||
489 | return sys_lchflags(l, &ua, retval); | 489 | return sys_lchflags(l, &ua, retval); | |
490 | } | 490 | } | |
491 | 491 | |||
492 | int | 492 | int | |
493 | netbsd32_kill(struct lwp *l, const struct netbsd32_kill_args *uap, register_t *retval) | 493 | netbsd32_kill(struct lwp *l, const struct netbsd32_kill_args *uap, register_t *retval) | |
494 | { | 494 | { | |
495 | /* { | 495 | /* { | |
496 | syscallarg(int) pid; | 496 | syscallarg(int) pid; | |
497 | syscallarg(int) signum; | 497 | syscallarg(int) signum; | |
498 | } */ | 498 | } */ | |
499 | struct sys_kill_args ua; | 499 | struct sys_kill_args ua; | |
500 | 500 | |||
501 | NETBSD32TO64_UAP(pid); | 501 | NETBSD32TO64_UAP(pid); | |
502 | NETBSD32TO64_UAP(signum); | 502 | NETBSD32TO64_UAP(signum); | |
503 | 503 | |||
504 | return sys_kill(l, &ua, retval); | 504 | return sys_kill(l, &ua, retval); | |
505 | } | 505 | } | |
506 | 506 | |||
507 | int | 507 | int | |
508 | netbsd32_dup(struct lwp *l, const struct netbsd32_dup_args *uap, register_t *retval) | 508 | netbsd32_dup(struct lwp *l, const struct netbsd32_dup_args *uap, register_t *retval) | |
509 | { | 509 | { | |
510 | /* { | 510 | /* { | |
511 | syscallarg(int) fd; | 511 | syscallarg(int) fd; | |
512 | } */ | 512 | } */ | |
513 | struct sys_dup_args ua; | 513 | struct sys_dup_args ua; | |
514 | 514 | |||
515 | NETBSD32TO64_UAP(fd); | 515 | NETBSD32TO64_UAP(fd); | |
516 | 516 | |||
517 | return sys_dup(l, &ua, retval); | 517 | return sys_dup(l, &ua, retval); | |
518 | } | 518 | } | |
519 | 519 | |||
520 | int | 520 | int | |
521 | netbsd32_profil(struct lwp *l, const struct netbsd32_profil_args *uap, register_t *retval) | 521 | netbsd32_profil(struct lwp *l, const struct netbsd32_profil_args *uap, register_t *retval) | |
522 | { | 522 | { | |
523 | /* { | 523 | /* { | |
524 | syscallarg(netbsd32_voidp) samples; | 524 | syscallarg(netbsd32_voidp) samples; | |
525 | syscallarg(netbsd32_size_t) size; | 525 | syscallarg(netbsd32_size_t) size; | |
526 | syscallarg(netbsd32_u_long) offset; | 526 | syscallarg(netbsd32_u_long) offset; | |
527 | syscallarg(u_int) scale; | 527 | syscallarg(u_int) scale; | |
528 | } */ | 528 | } */ | |
529 | struct sys_profil_args ua; | 529 | struct sys_profil_args ua; | |
530 | 530 | |||
531 | NETBSD32TOP_UAP(samples, void *); | 531 | NETBSD32TOP_UAP(samples, void *); | |
532 | NETBSD32TOX_UAP(size, size_t); | 532 | NETBSD32TOX_UAP(size, size_t); | |
533 | NETBSD32TOX_UAP(offset, u_long); | 533 | NETBSD32TOX_UAP(offset, u_long); | |
534 | NETBSD32TO64_UAP(scale); | 534 | NETBSD32TO64_UAP(scale); | |
535 | 535 | |||
536 | return sys_profil(l, &ua, retval); | 536 | return sys_profil(l, &ua, retval); | |
537 | } | 537 | } | |
538 | 538 | |||
539 | int | 539 | int | |
540 | netbsd32_ktrace(struct lwp *l, const struct netbsd32_ktrace_args *uap, register_t *retval) | 540 | netbsd32_ktrace(struct lwp *l, const struct netbsd32_ktrace_args *uap, register_t *retval) | |
541 | { | 541 | { | |
542 | /* { | 542 | /* { | |
543 | syscallarg(const netbsd32_charp) fname; | 543 | syscallarg(const netbsd32_charp) fname; | |
544 | syscallarg(int) ops; | 544 | syscallarg(int) ops; | |
545 | syscallarg(int) facs; | 545 | syscallarg(int) facs; | |
546 | syscallarg(int) pid; | 546 | syscallarg(int) pid; | |
547 | } */ | 547 | } */ | |
548 | struct sys_ktrace_args ua; | 548 | struct sys_ktrace_args ua; | |
549 | 549 | |||
550 | NETBSD32TOP_UAP(fname, const char); | 550 | NETBSD32TOP_UAP(fname, const char); | |
551 | NETBSD32TO64_UAP(ops); | 551 | NETBSD32TO64_UAP(ops); | |
552 | NETBSD32TO64_UAP(facs); | 552 | NETBSD32TO64_UAP(facs); | |
553 | NETBSD32TO64_UAP(pid); | 553 | NETBSD32TO64_UAP(pid); | |
554 | 554 | |||
555 | return sys_ktrace(l, &ua, retval); | 555 | return sys_ktrace(l, &ua, retval); | |
556 | } | 556 | } | |
557 | 557 | |||
558 | int | 558 | int | |
559 | netbsd32_utrace(struct lwp *l, const struct netbsd32_utrace_args *uap, register_t *retval) | 559 | netbsd32_utrace(struct lwp *l, const struct netbsd32_utrace_args *uap, register_t *retval) | |
560 | { | 560 | { | |
561 | /* { | 561 | /* { | |
562 | syscallarg(const netbsd32_charp) label; | 562 | syscallarg(const netbsd32_charp) label; | |
563 | syscallarg(netbsd32_voidp) addr; | 563 | syscallarg(netbsd32_voidp) addr; | |
564 | syscallarg(netbsd32_size_t) len; | 564 | syscallarg(netbsd32_size_t) len; | |
565 | } */ | 565 | } */ | |
566 | struct sys_utrace_args ua; | 566 | struct sys_utrace_args ua; | |
567 | 567 | |||
568 | NETBSD32TOP_UAP(label, const char); | 568 | NETBSD32TOP_UAP(label, const char); | |
569 | NETBSD32TOP_UAP(addr, void); | 569 | NETBSD32TOP_UAP(addr, void); | |
570 | NETBSD32TO64_UAP(len); | 570 | NETBSD32TO64_UAP(len); | |
571 | 571 | |||
572 | return sys_utrace(l, &ua, retval); | 572 | return sys_utrace(l, &ua, retval); | |
573 | } | 573 | } | |
574 | 574 | |||
575 | int | 575 | int | |
576 | netbsd32___getlogin(struct lwp *l, const struct netbsd32___getlogin_args *uap, register_t *retval) | 576 | netbsd32___getlogin(struct lwp *l, const struct netbsd32___getlogin_args *uap, register_t *retval) | |
577 | { | 577 | { | |
578 | /* { | 578 | /* { | |
579 | syscallarg(netbsd32_charp) namebuf; | 579 | syscallarg(netbsd32_charp) namebuf; | |
580 | syscallarg(u_int) namelen; | 580 | syscallarg(u_int) namelen; | |
581 | } */ | 581 | } */ | |
582 | struct sys___getlogin_args ua; | 582 | struct sys___getlogin_args ua; | |
583 | 583 | |||
584 | NETBSD32TOP_UAP(namebuf, char); | 584 | NETBSD32TOP_UAP(namebuf, char); | |
585 | NETBSD32TO64_UAP(namelen); | 585 | NETBSD32TO64_UAP(namelen); | |
586 | 586 | |||
587 | return sys___getlogin(l, &ua, retval); | 587 | return sys___getlogin(l, &ua, retval); | |
588 | } | 588 | } | |
589 | 589 | |||
590 | int | 590 | int | |
591 | netbsd32_setlogin(struct lwp *l, const struct netbsd32_setlogin_args *uap, register_t *retval) | 591 | netbsd32_setlogin(struct lwp *l, const struct netbsd32_setlogin_args *uap, register_t *retval) | |
592 | { | 592 | { | |
593 | /* { | 593 | /* { | |
594 | syscallarg(const netbsd32_charp) namebuf; | 594 | syscallarg(const netbsd32_charp) namebuf; | |
595 | } */ | 595 | } */ | |
596 | struct sys___setlogin_args ua; | 596 | struct sys___setlogin_args ua; | |
597 | 597 | |||
598 | NETBSD32TOP_UAP(namebuf, char); | 598 | NETBSD32TOP_UAP(namebuf, char); | |
599 | 599 | |||
600 | return sys___setlogin(l, &ua, retval); | 600 | return sys___setlogin(l, &ua, retval); | |
601 | } | 601 | } | |
602 | 602 | |||
603 | int | 603 | int | |
604 | netbsd32_acct(struct lwp *l, const struct netbsd32_acct_args *uap, register_t *retval) | 604 | netbsd32_acct(struct lwp *l, const struct netbsd32_acct_args *uap, register_t *retval) | |
605 | { | 605 | { | |
606 | /* { | 606 | /* { | |
607 | syscallarg(const netbsd32_charp) path; | 607 | syscallarg(const netbsd32_charp) path; | |
608 | } */ | 608 | } */ | |
609 | struct sys_acct_args ua; | 609 | struct sys_acct_args ua; | |
610 | 610 | |||
611 | NETBSD32TOP_UAP(path, const char); | 611 | NETBSD32TOP_UAP(path, const char); | |
612 | 612 | |||
613 | return sys_acct(l, &ua, retval); | 613 | return sys_acct(l, &ua, retval); | |
614 | } | 614 | } | |
615 | 615 | |||
616 | int | 616 | int | |
617 | netbsd32_revoke(struct lwp *l, const struct netbsd32_revoke_args *uap, register_t *retval) | 617 | netbsd32_revoke(struct lwp *l, const struct netbsd32_revoke_args *uap, register_t *retval) | |
618 | { | 618 | { | |
619 | /* { | 619 | /* { | |
620 | syscallarg(const netbsd32_charp) path; | 620 | syscallarg(const netbsd32_charp) path; | |
621 | } */ | 621 | } */ | |
622 | struct sys_revoke_args ua; | 622 | struct sys_revoke_args ua; | |
623 | 623 | |||
624 | NETBSD32TOP_UAP(path, const char); | 624 | NETBSD32TOP_UAP(path, const char); | |
625 | 625 | |||
626 | return sys_revoke(l, &ua, retval); | 626 | return sys_revoke(l, &ua, retval); | |
627 | } | 627 | } | |
628 | 628 | |||
629 | int | 629 | int | |
630 | netbsd32_symlink(struct lwp *l, const struct netbsd32_symlink_args *uap, register_t *retval) | 630 | netbsd32_symlink(struct lwp *l, const struct netbsd32_symlink_args *uap, register_t *retval) | |
631 | { | 631 | { | |
632 | /* { | 632 | /* { | |
633 | syscallarg(const netbsd32_charp) path; | 633 | syscallarg(const netbsd32_charp) path; | |
634 | syscallarg(const netbsd32_charp) link; | 634 | syscallarg(const netbsd32_charp) link; | |
635 | } */ | 635 | } */ | |
636 | struct sys_symlink_args ua; | 636 | struct sys_symlink_args ua; | |
637 | 637 | |||
638 | NETBSD32TOP_UAP(path, const char); | 638 | NETBSD32TOP_UAP(path, const char); | |
639 | NETBSD32TOP_UAP(link, const char); | 639 | NETBSD32TOP_UAP(link, const char); | |
640 | 640 | |||
641 | return sys_symlink(l, &ua, retval); | 641 | return sys_symlink(l, &ua, retval); | |
642 | } | 642 | } | |
643 | 643 | |||
644 | int | 644 | int | |
645 | netbsd32_readlink(struct lwp *l, const struct netbsd32_readlink_args *uap, register_t *retval) | 645 | netbsd32_readlink(struct lwp *l, const struct netbsd32_readlink_args *uap, register_t *retval) | |
646 | { | 646 | { | |
647 | /* { | 647 | /* { | |
648 | syscallarg(const netbsd32_charp) path; | 648 | syscallarg(const netbsd32_charp) path; | |
649 | syscallarg(netbsd32_charp) buf; | 649 | syscallarg(netbsd32_charp) buf; | |
650 | syscallarg(netbsd32_size_t) count; | 650 | syscallarg(netbsd32_size_t) count; | |
651 | } */ | 651 | } */ | |
652 | struct sys_readlink_args ua; | 652 | struct sys_readlink_args ua; | |
653 | 653 | |||
654 | NETBSD32TOP_UAP(path, const char); | 654 | NETBSD32TOP_UAP(path, const char); | |
655 | NETBSD32TOP_UAP(buf, char); | 655 | NETBSD32TOP_UAP(buf, char); | |
656 | NETBSD32TOX_UAP(count, size_t); | 656 | NETBSD32TOX_UAP(count, size_t); | |
657 | 657 | |||
658 | return sys_readlink(l, &ua, retval); | 658 | return sys_readlink(l, &ua, retval); | |
659 | } | 659 | } | |
660 | 660 | |||
661 | int | 661 | int | |
662 | netbsd32_umask(struct lwp *l, const struct netbsd32_umask_args *uap, register_t *retval) | 662 | netbsd32_umask(struct lwp *l, const struct netbsd32_umask_args *uap, register_t *retval) | |
663 | { | 663 | { | |
664 | /* { | 664 | /* { | |
665 | syscallarg(mode_t) newmask; | 665 | syscallarg(mode_t) newmask; | |
666 | } */ | 666 | } */ | |
667 | struct sys_umask_args ua; | 667 | struct sys_umask_args ua; | |
668 | 668 | |||
669 | NETBSD32TO64_UAP(newmask); | 669 | NETBSD32TO64_UAP(newmask); | |
670 | 670 | |||
671 | return sys_umask(l, &ua, retval); | 671 | return sys_umask(l, &ua, retval); | |
672 | } | 672 | } | |
673 | 673 | |||
674 | int | 674 | int | |
675 | netbsd32_chroot(struct lwp *l, const struct netbsd32_chroot_args *uap, register_t *retval) | 675 | netbsd32_chroot(struct lwp *l, const struct netbsd32_chroot_args *uap, register_t *retval) | |
676 | { | 676 | { | |
677 | /* { | 677 | /* { | |
678 | syscallarg(const netbsd32_charp) path; | 678 | syscallarg(const netbsd32_charp) path; | |
679 | } */ | 679 | } */ | |
680 | struct sys_chroot_args ua; | 680 | struct sys_chroot_args ua; | |
681 | 681 | |||
682 | NETBSD32TOP_UAP(path, const char); | 682 | NETBSD32TOP_UAP(path, const char); | |
683 | 683 | |||
684 | return sys_chroot(l, &ua, retval); | 684 | return sys_chroot(l, &ua, retval); | |
685 | } | 685 | } | |
686 | 686 | |||
687 | int | 687 | int | |
688 | netbsd32_munmap(struct lwp *l, const struct netbsd32_munmap_args *uap, register_t *retval) | 688 | netbsd32_munmap(struct lwp *l, const struct netbsd32_munmap_args *uap, register_t *retval) | |
689 | { | 689 | { | |
690 | /* { | 690 | /* { | |
691 | syscallarg(netbsd32_voidp) addr; | 691 | syscallarg(netbsd32_voidp) addr; | |
692 | syscallarg(netbsd32_size_t) len; | 692 | syscallarg(netbsd32_size_t) len; | |
693 | } */ | 693 | } */ | |
694 | struct sys_munmap_args ua; | 694 | struct sys_munmap_args ua; | |
695 | 695 | |||
696 | NETBSD32TOP_UAP(addr, void); | 696 | NETBSD32TOP_UAP(addr, void); | |
697 | NETBSD32TOX_UAP(len, size_t); | 697 | NETBSD32TOX_UAP(len, size_t); | |
698 | 698 | |||
699 | return sys_munmap(l, &ua, retval); | 699 | return sys_munmap(l, &ua, retval); | |
700 | } | 700 | } | |
701 | 701 | |||
702 | int | 702 | int | |
703 | netbsd32_mprotect(struct lwp *l, const struct netbsd32_mprotect_args *uap, register_t *retval) | 703 | netbsd32_mprotect(struct lwp *l, const struct netbsd32_mprotect_args *uap, register_t *retval) | |
704 | { | 704 | { | |
705 | /* { | 705 | /* { | |
706 | syscallarg(netbsd32_voidp) addr; | 706 | syscallarg(netbsd32_voidp) addr; | |
707 | syscallarg(netbsd32_size_t) len; | 707 | syscallarg(netbsd32_size_t) len; | |
708 | syscallarg(int) prot; | 708 | syscallarg(int) prot; | |
709 | } */ | 709 | } */ | |
710 | struct sys_mprotect_args ua; | 710 | struct sys_mprotect_args ua; | |
711 | 711 | |||
712 | NETBSD32TOP_UAP(addr, void); | 712 | NETBSD32TOP_UAP(addr, void); | |
713 | NETBSD32TOX_UAP(len, size_t); | 713 | NETBSD32TOX_UAP(len, size_t); | |
714 | NETBSD32TO64_UAP(prot); | 714 | NETBSD32TO64_UAP(prot); | |
715 | 715 | |||
716 | return sys_mprotect(l, &ua, retval); | 716 | return sys_mprotect(l, &ua, retval); | |
717 | } | 717 | } | |
718 | 718 | |||
719 | int | 719 | int | |
720 | netbsd32_madvise(struct lwp *l, const struct netbsd32_madvise_args *uap, register_t *retval) | 720 | netbsd32_madvise(struct lwp *l, const struct netbsd32_madvise_args *uap, register_t *retval) | |
721 | { | 721 | { | |
722 | /* { | 722 | /* { | |
723 | syscallarg(netbsd32_voidp) addr; | 723 | syscallarg(netbsd32_voidp) addr; | |
724 | syscallarg(netbsd32_size_t) len; | 724 | syscallarg(netbsd32_size_t) len; | |
725 | syscallarg(int) behav; | 725 | syscallarg(int) behav; | |
726 | } */ | 726 | } */ | |
727 | struct sys_madvise_args ua; | 727 | struct sys_madvise_args ua; | |
728 | 728 | |||
729 | NETBSD32TOP_UAP(addr, void); | 729 | NETBSD32TOP_UAP(addr, void); | |
730 | NETBSD32TOX_UAP(len, size_t); | 730 | NETBSD32TOX_UAP(len, size_t); | |
731 | NETBSD32TO64_UAP(behav); | 731 | NETBSD32TO64_UAP(behav); | |
732 | 732 | |||
733 | return sys_madvise(l, &ua, retval); | 733 | return sys_madvise(l, &ua, retval); | |
734 | } | 734 | } | |
735 | 735 | |||
736 | int | 736 | int | |
737 | netbsd32_mincore(struct lwp *l, const struct netbsd32_mincore_args *uap, register_t *retval) | 737 | netbsd32_mincore(struct lwp *l, const struct netbsd32_mincore_args *uap, register_t *retval) | |
738 | { | 738 | { | |
739 | /* { | 739 | /* { | |
740 | syscallarg(netbsd32_voidp) addr; | 740 | syscallarg(netbsd32_voidp) addr; | |
741 | syscallarg(netbsd32_size_t) len; | 741 | syscallarg(netbsd32_size_t) len; | |
742 | syscallarg(netbsd32_charp) vec; | 742 | syscallarg(netbsd32_charp) vec; | |
743 | } */ | 743 | } */ | |
744 | struct sys_mincore_args ua; | 744 | struct sys_mincore_args ua; | |
745 | 745 | |||
746 | NETBSD32TOP_UAP(addr, void *); | 746 | NETBSD32TOP_UAP(addr, void *); | |
747 | NETBSD32TOX_UAP(len, size_t); | 747 | NETBSD32TOX_UAP(len, size_t); | |
748 | NETBSD32TOP_UAP(vec, char); | 748 | NETBSD32TOP_UAP(vec, char); | |
749 | 749 | |||
750 | return sys_mincore(l, &ua, retval); | 750 | return sys_mincore(l, &ua, retval); | |
751 | } | 751 | } | |
752 | 752 | |||
753 | int | 753 | int | |
754 | netbsd32_getgroups(struct lwp *l, const struct netbsd32_getgroups_args *uap, register_t *retval) | 754 | netbsd32_getgroups(struct lwp *l, const struct netbsd32_getgroups_args *uap, register_t *retval) | |
755 | { | 755 | { | |
756 | /* { | 756 | /* { | |
757 | syscallarg(int) gidsetsize; | 757 | syscallarg(int) gidsetsize; | |
758 | syscallarg(netbsd32_gid_tp) gidset; | 758 | syscallarg(netbsd32_gid_tp) gidset; | |
759 | } */ | 759 | } */ | |
760 | struct sys_getgroups_args ua; | 760 | struct sys_getgroups_args ua; | |
761 | 761 | |||
762 | /* Since sizeof (gid_t) == sizeof (netbsd32_gid_t) ... */ | 762 | /* Since sizeof (gid_t) == sizeof (netbsd32_gid_t) ... */ | |
763 | 763 | |||
764 | NETBSD32TO64_UAP(gidsetsize); | 764 | NETBSD32TO64_UAP(gidsetsize); | |
765 | NETBSD32TOP_UAP(gidset, gid_t); | 765 | NETBSD32TOP_UAP(gidset, gid_t); | |
766 | 766 | |||
767 | return sys_getgroups(l, &ua, retval); | 767 | return sys_getgroups(l, &ua, retval); | |
768 | } | 768 | } | |
769 | 769 | |||
770 | int | 770 | int | |
771 | netbsd32_setgroups(struct lwp *l, const struct netbsd32_setgroups_args *uap, register_t *retval) | 771 | netbsd32_setgroups(struct lwp *l, const struct netbsd32_setgroups_args *uap, register_t *retval) | |
772 | { | 772 | { | |
773 | /* { | 773 | /* { | |
774 | syscallarg(int) gidsetsize; | 774 | syscallarg(int) gidsetsize; | |
775 | syscallarg(const netbsd32_gid_tp) gidset; | 775 | syscallarg(const netbsd32_gid_tp) gidset; | |
776 | } */ | 776 | } */ | |
777 | struct sys_setgroups_args ua; | 777 | struct sys_setgroups_args ua; | |
778 | 778 | |||
779 | NETBSD32TO64_UAP(gidsetsize); | 779 | NETBSD32TO64_UAP(gidsetsize); | |
780 | NETBSD32TOP_UAP(gidset, gid_t); | 780 | NETBSD32TOP_UAP(gidset, gid_t); | |
781 | 781 | |||
782 | return sys_setgroups(l, &ua, retval); | 782 | return sys_setgroups(l, &ua, retval); | |
783 | } | 783 | } | |
784 | 784 | |||
785 | int | 785 | int | |
786 | netbsd32_setpgid(struct lwp *l, const struct netbsd32_setpgid_args *uap, register_t *retval) | 786 | netbsd32_setpgid(struct lwp *l, const struct netbsd32_setpgid_args *uap, register_t *retval) | |
787 | { | 787 | { | |
788 | /* { | 788 | /* { | |
789 | syscallarg(int) pid; | 789 | syscallarg(int) pid; | |
790 | syscallarg(int) pgid; | 790 | syscallarg(int) pgid; | |
791 | } */ | 791 | } */ | |
792 | struct sys_setpgid_args ua; | 792 | struct sys_setpgid_args ua; | |
793 | 793 | |||
794 | NETBSD32TO64_UAP(pid); | 794 | NETBSD32TO64_UAP(pid); | |
795 | NETBSD32TO64_UAP(pgid); | 795 | NETBSD32TO64_UAP(pgid); | |
796 | 796 | |||
797 | return sys_setpgid(l, &ua, retval); | 797 | return sys_setpgid(l, &ua, retval); | |
798 | } | 798 | } | |
799 | 799 | |||
800 | int | 800 | int | |
801 | netbsd32_fcntl(struct lwp *l, const struct netbsd32_fcntl_args *uap, register_t *retval) | 801 | netbsd32_fcntl(struct lwp *l, const struct netbsd32_fcntl_args *uap, register_t *retval) | |
802 | { | 802 | { | |
803 | /* { | 803 | /* { | |
804 | syscallarg(int) fd; | 804 | syscallarg(int) fd; | |
805 | syscallarg(int) cmd; | 805 | syscallarg(int) cmd; | |
806 | syscallarg(netbsd32_voidp) arg; | 806 | syscallarg(netbsd32_voidp) arg; | |
807 | } */ | 807 | } */ | |
808 | struct sys_fcntl_args ua; | 808 | struct sys_fcntl_args ua; | |
809 | 809 | |||
810 | NETBSD32TO64_UAP(fd); | 810 | NETBSD32TO64_UAP(fd); | |
811 | NETBSD32TO64_UAP(cmd); | 811 | NETBSD32TO64_UAP(cmd); | |
812 | /* we can do this because `struct flock' doesn't change */ | 812 | /* we can do this because `struct flock' doesn't change */ | |
813 | NETBSD32TOP_UAP(arg, void); | 813 | NETBSD32TOP_UAP(arg, void); | |
814 | 814 | |||
815 | return sys_fcntl(l, &ua, retval); | 815 | return sys_fcntl(l, &ua, retval); | |
816 | } | 816 | } | |
817 | 817 | |||
818 | int | 818 | int | |
819 | netbsd32_dup2(struct lwp *l, const struct netbsd32_dup2_args *uap, register_t *retval) | 819 | netbsd32_dup2(struct lwp *l, const struct netbsd32_dup2_args *uap, register_t *retval) | |
820 | { | 820 | { | |
821 | /* { | 821 | /* { | |
822 | syscallarg(int) from; | 822 | syscallarg(int) from; | |
823 | syscallarg(int) to; | 823 | syscallarg(int) to; | |
824 | } */ | 824 | } */ | |
825 | struct sys_dup2_args ua; | 825 | struct sys_dup2_args ua; | |
826 | 826 | |||
827 | NETBSD32TO64_UAP(from); | 827 | NETBSD32TO64_UAP(from); | |
828 | NETBSD32TO64_UAP(to); | 828 | NETBSD32TO64_UAP(to); | |
829 | 829 | |||
830 | return sys_dup2(l, &ua, retval); | 830 | return sys_dup2(l, &ua, retval); | |
831 | } | 831 | } | |
832 | 832 | |||
833 | int | 833 | int | |
834 | netbsd32_fsync(struct lwp *l, const struct netbsd32_fsync_args *uap, register_t *retval) | 834 | netbsd32_fsync(struct lwp *l, const struct netbsd32_fsync_args *uap, register_t *retval) | |
835 | { | 835 | { | |
836 | /* { | 836 | /* { | |
837 | syscallarg(int) fd; | 837 | syscallarg(int) fd; | |
838 | } */ | 838 | } */ | |
839 | struct sys_fsync_args ua; | 839 | struct sys_fsync_args ua; | |
840 | 840 | |||
841 | NETBSD32TO64_UAP(fd); | 841 | NETBSD32TO64_UAP(fd); | |
842 | 842 | |||
843 | return sys_fsync(l, &ua, retval); | 843 | return sys_fsync(l, &ua, retval); | |
844 | } | 844 | } | |
845 | 845 | |||
846 | int | 846 | int | |
847 | netbsd32_setpriority(struct lwp *l, const struct netbsd32_setpriority_args *uap, register_t *retval) | 847 | netbsd32_setpriority(struct lwp *l, const struct netbsd32_setpriority_args *uap, register_t *retval) | |
848 | { | 848 | { | |
849 | /* { | 849 | /* { | |
850 | syscallarg(int) which; | 850 | syscallarg(int) which; | |
851 | syscallarg(int) who; | 851 | syscallarg(int) who; | |
852 | syscallarg(int) prio; | 852 | syscallarg(int) prio; | |
853 | } */ | 853 | } */ | |
854 | struct sys_setpriority_args ua; | 854 | struct sys_setpriority_args ua; | |
855 | 855 | |||
856 | NETBSD32TO64_UAP(which); | 856 | NETBSD32TO64_UAP(which); | |
857 | NETBSD32TO64_UAP(who); | 857 | NETBSD32TO64_UAP(who); | |
858 | NETBSD32TO64_UAP(prio); | 858 | NETBSD32TO64_UAP(prio); | |
859 | 859 | |||
860 | return sys_setpriority(l, &ua, retval); | 860 | return sys_setpriority(l, &ua, retval); | |
861 | } | 861 | } | |
862 | 862 | |||
863 | int | 863 | int | |
864 | netbsd32___socket30(struct lwp *l, const struct netbsd32___socket30_args *uap, register_t *retval) | 864 | netbsd32___socket30(struct lwp *l, const struct netbsd32___socket30_args *uap, register_t *retval) | |
865 | { | 865 | { | |
866 | /* { | 866 | /* { | |
867 | syscallarg(int) domain; | 867 | syscallarg(int) domain; | |
868 | syscallarg(int) type; | 868 | syscallarg(int) type; | |
869 | syscallarg(int) protocol; | 869 | syscallarg(int) protocol; | |
870 | } */ | 870 | } */ | |
871 | struct sys___socket30_args ua; | 871 | struct sys___socket30_args ua; | |
872 | 872 | |||
873 | NETBSD32TO64_UAP(domain); | 873 | NETBSD32TO64_UAP(domain); | |
874 | NETBSD32TO64_UAP(type); | 874 | NETBSD32TO64_UAP(type); | |
875 | NETBSD32TO64_UAP(protocol); | 875 | NETBSD32TO64_UAP(protocol); | |
876 | 876 | |||
877 | return sys___socket30(l, &ua, retval); | 877 | return sys___socket30(l, &ua, retval); | |
878 | } | 878 | } | |
879 | 879 | |||
880 | int | 880 | int | |
881 | netbsd32_connect(struct lwp *l, const struct netbsd32_connect_args *uap, register_t *retval) | 881 | netbsd32_connect(struct lwp *l, const struct netbsd32_connect_args *uap, register_t *retval) | |
882 | { | 882 | { | |
883 | /* { | 883 | /* { | |
884 | syscallarg(int) s; | 884 | syscallarg(int) s; | |
885 | syscallarg(const netbsd32_sockaddrp_t) name; | 885 | syscallarg(const netbsd32_sockaddrp_t) name; | |
886 | syscallarg(int) namelen; | 886 | syscallarg(int) namelen; | |
887 | } */ | 887 | } */ | |
888 | struct sys_connect_args ua; | 888 | struct sys_connect_args ua; | |
889 | 889 | |||
890 | NETBSD32TO64_UAP(s); | 890 | NETBSD32TO64_UAP(s); | |
891 | NETBSD32TOP_UAP(name, struct sockaddr); | 891 | NETBSD32TOP_UAP(name, struct sockaddr); | |
892 | NETBSD32TO64_UAP(namelen); | 892 | NETBSD32TO64_UAP(namelen); | |
893 | 893 | |||
894 | return sys_connect(l, &ua, retval); | 894 | return sys_connect(l, &ua, retval); | |
895 | } | 895 | } | |
896 | 896 | |||
897 | int | 897 | int | |
898 | netbsd32_getpriority(struct lwp *l, const struct netbsd32_getpriority_args *uap, register_t *retval) | 898 | netbsd32_getpriority(struct lwp *l, const struct netbsd32_getpriority_args *uap, register_t *retval) | |
899 | { | 899 | { | |
900 | /* { | 900 | /* { | |
901 | syscallarg(int) which; | 901 | syscallarg(int) which; | |
902 | syscallarg(int) who; | 902 | syscallarg(int) who; | |
903 | } */ | 903 | } */ | |
904 | struct sys_getpriority_args ua; | 904 | struct sys_getpriority_args ua; | |
905 | 905 | |||
906 | NETBSD32TO64_UAP(which); | 906 | NETBSD32TO64_UAP(which); | |
907 | NETBSD32TO64_UAP(who); | 907 | NETBSD32TO64_UAP(who); | |
908 | 908 | |||
909 | return sys_getpriority(l, &ua, retval); | 909 | return sys_getpriority(l, &ua, retval); | |
910 | } | 910 | } | |
911 | 911 | |||
912 | int | 912 | int | |
913 | netbsd32_bind(struct lwp *l, const struct netbsd32_bind_args *uap, register_t *retval) | 913 | netbsd32_bind(struct lwp *l, const struct netbsd32_bind_args *uap, register_t *retval) | |
914 | { | 914 | { | |
915 | /* { | 915 | /* { | |
916 | syscallarg(int) s; | 916 | syscallarg(int) s; | |
917 | syscallarg(const netbsd32_sockaddrp_t) name; | 917 | syscallarg(const netbsd32_sockaddrp_t) name; | |
918 | syscallarg(int) namelen; | 918 | syscallarg(int) namelen; | |
919 | } */ | 919 | } */ | |
920 | struct sys_bind_args ua; | 920 | struct sys_bind_args ua; | |
921 | 921 | |||
922 | NETBSD32TO64_UAP(s); | 922 | NETBSD32TO64_UAP(s); | |
923 | NETBSD32TOP_UAP(name, struct sockaddr); | 923 | NETBSD32TOP_UAP(name, struct sockaddr); | |
924 | NETBSD32TO64_UAP(namelen); | 924 | NETBSD32TO64_UAP(namelen); | |
925 | 925 | |||
926 | return sys_bind(l, &ua, retval); | 926 | return sys_bind(l, &ua, retval); | |
927 | } | 927 | } | |
928 | 928 | |||
929 | int | 929 | int | |
930 | netbsd32_setsockopt(struct lwp *l, const struct netbsd32_setsockopt_args *uap, register_t *retval) | 930 | netbsd32_setsockopt(struct lwp *l, const struct netbsd32_setsockopt_args *uap, register_t *retval) | |
931 | { | 931 | { | |
932 | /* { | 932 | /* { | |
933 | syscallarg(int) s; | 933 | syscallarg(int) s; | |
934 | syscallarg(int) level; | 934 | syscallarg(int) level; | |
935 | syscallarg(int) name; | 935 | syscallarg(int) name; | |
936 | syscallarg(const netbsd32_voidp) val; | 936 | syscallarg(const netbsd32_voidp) val; | |
937 | syscallarg(int) valsize; | 937 | syscallarg(int) valsize; | |
938 | } */ | 938 | } */ | |
939 | struct sys_setsockopt_args ua; | 939 | struct sys_setsockopt_args ua; | |
940 | 940 | |||
941 | NETBSD32TO64_UAP(s); | 941 | NETBSD32TO64_UAP(s); | |
942 | NETBSD32TO64_UAP(level); | 942 | NETBSD32TO64_UAP(level); | |
943 | NETBSD32TO64_UAP(name); | 943 | NETBSD32TO64_UAP(name); | |
944 | NETBSD32TOP_UAP(val, void); | 944 | NETBSD32TOP_UAP(val, void); | |
945 | NETBSD32TO64_UAP(valsize); | 945 | NETBSD32TO64_UAP(valsize); | |
946 | /* may be more efficient to do this inline. */ | 946 | /* may be more efficient to do this inline. */ | |
947 | 947 | |||
948 | return sys_setsockopt(l, &ua, retval); | 948 | return sys_setsockopt(l, &ua, retval); | |
949 | } | 949 | } | |
950 | 950 | |||
951 | int | 951 | int | |
952 | netbsd32_listen(struct lwp *l, const struct netbsd32_listen_args *uap, register_t *retval) | 952 | netbsd32_listen(struct lwp *l, const struct netbsd32_listen_args *uap, register_t *retval) | |
953 | { | 953 | { | |
954 | /* { | 954 | /* { | |
955 | syscallarg(int) s; | 955 | syscallarg(int) s; | |
956 | syscallarg(int) backlog; | 956 | syscallarg(int) backlog; | |
957 | } */ | 957 | } */ | |
958 | struct sys_listen_args ua; | 958 | struct sys_listen_args ua; | |
959 | 959 | |||
960 | NETBSD32TO64_UAP(s); | 960 | NETBSD32TO64_UAP(s); | |
961 | NETBSD32TO64_UAP(backlog); | 961 | NETBSD32TO64_UAP(backlog); | |
962 | 962 | |||
963 | return sys_listen(l, &ua, retval); | 963 | return sys_listen(l, &ua, retval); | |
964 | } | 964 | } | |
965 | 965 | |||
966 | int | 966 | int | |
967 | netbsd32_fchown(struct lwp *l, const struct netbsd32_fchown_args *uap, register_t *retval) | 967 | netbsd32_fchown(struct lwp *l, const struct netbsd32_fchown_args *uap, register_t *retval) | |
968 | { | 968 | { | |
969 | /* { | 969 | /* { | |
970 | syscallarg(int) fd; | 970 | syscallarg(int) fd; | |
971 | syscallarg(uid_t) uid; | 971 | syscallarg(uid_t) uid; | |
972 | syscallarg(gid_t) gid; | 972 | syscallarg(gid_t) gid; | |
973 | } */ | 973 | } */ | |
974 | struct sys_fchown_args ua; | 974 | struct sys_fchown_args ua; | |
975 | 975 | |||
976 | NETBSD32TO64_UAP(fd); | 976 | NETBSD32TO64_UAP(fd); | |
977 | NETBSD32TO64_UAP(uid); | 977 | NETBSD32TO64_UAP(uid); | |
978 | NETBSD32TO64_UAP(gid); | 978 | NETBSD32TO64_UAP(gid); | |
979 | 979 | |||
980 | return sys_fchown(l, &ua, retval); | 980 | return sys_fchown(l, &ua, retval); | |
981 | } | 981 | } | |
982 | 982 | |||
983 | int | 983 | int | |
984 | netbsd32_fchmod(struct lwp *l, const struct netbsd32_fchmod_args *uap, register_t *retval) | 984 | netbsd32_fchmod(struct lwp *l, const struct netbsd32_fchmod_args *uap, register_t *retval) | |
985 | { | 985 | { | |
986 | /* { | 986 | /* { | |
987 | syscallarg(int) fd; | 987 | syscallarg(int) fd; | |
988 | syscallarg(mode_t) mode; | 988 | syscallarg(mode_t) mode; | |
989 | } */ | 989 | } */ | |
990 | struct sys_fchmod_args ua; | 990 | struct sys_fchmod_args ua; | |
991 | 991 | |||
992 | NETBSD32TO64_UAP(fd); | 992 | NETBSD32TO64_UAP(fd); | |
993 | NETBSD32TO64_UAP(mode); | 993 | NETBSD32TO64_UAP(mode); | |
994 | 994 | |||
995 | return sys_fchmod(l, &ua, retval); | 995 | return sys_fchmod(l, &ua, retval); | |
996 | } | 996 | } | |
997 | 997 | |||
998 | int | 998 | int | |
999 | netbsd32_setreuid(struct lwp *l, const struct netbsd32_setreuid_args *uap, register_t *retval) | 999 | netbsd32_setreuid(struct lwp *l, const struct netbsd32_setreuid_args *uap, register_t *retval) | |
1000 | { | 1000 | { | |
1001 | /* { | 1001 | /* { | |
1002 | syscallarg(uid_t) ruid; | 1002 | syscallarg(uid_t) ruid; | |
1003 | syscallarg(uid_t) euid; | 1003 | syscallarg(uid_t) euid; | |
1004 | } */ | 1004 | } */ | |
1005 | struct sys_setreuid_args ua; | 1005 | struct sys_setreuid_args ua; | |
1006 | 1006 | |||
1007 | NETBSD32TO64_UAP(ruid); | 1007 | NETBSD32TO64_UAP(ruid); | |
1008 | NETBSD32TO64_UAP(euid); | 1008 | NETBSD32TO64_UAP(euid); | |
1009 | return sys_setreuid(l, &ua, retval); | 1009 | return sys_setreuid(l, &ua, retval); | |
1010 | } | 1010 | } | |
1011 | 1011 | |||
1012 | int | 1012 | int | |
1013 | netbsd32_setregid(struct lwp *l, const struct netbsd32_setregid_args *uap, register_t *retval) | 1013 | netbsd32_setregid(struct lwp *l, const struct netbsd32_setregid_args *uap, register_t *retval) | |
1014 | { | 1014 | { | |
1015 | /* { | 1015 | /* { | |
1016 | syscallarg(gid_t) rgid; | 1016 | syscallarg(gid_t) rgid; | |
1017 | syscallarg(gid_t) egid; | 1017 | syscallarg(gid_t) egid; | |
1018 | } */ | 1018 | } */ | |
1019 | struct sys_setregid_args ua; | 1019 | struct sys_setregid_args ua; | |
1020 | 1020 | |||
1021 | NETBSD32TO64_UAP(rgid); | 1021 | NETBSD32TO64_UAP(rgid); | |
1022 | NETBSD32TO64_UAP(egid); | 1022 | NETBSD32TO64_UAP(egid); | |
1023 | 1023 | |||
1024 | return sys_setregid(l, &ua, retval); | 1024 | return sys_setregid(l, &ua, retval); | |
1025 | } | 1025 | } | |
1026 | 1026 | |||
1027 | int | 1027 | int | |
1028 | netbsd32_getsockopt(struct lwp *l, const struct netbsd32_getsockopt_args *uap, register_t *retval) | 1028 | netbsd32_getsockopt(struct lwp *l, const struct netbsd32_getsockopt_args *uap, register_t *retval) | |
1029 | { | 1029 | { | |
@@ -1652,1015 +1652,1030 @@ netbsd32___posix_fchown(struct lwp *l, c | @@ -1652,1015 +1652,1030 @@ netbsd32___posix_fchown(struct lwp *l, c | |||
1652 | NETBSD32TO64_UAP(gid); | 1652 | NETBSD32TO64_UAP(gid); | |
1653 | 1653 | |||
1654 | return sys___posix_fchown(l, &ua, retval); | 1654 | return sys___posix_fchown(l, &ua, retval); | |
1655 | } | 1655 | } | |
1656 | 1656 | |||
1657 | int | 1657 | int | |
1658 | netbsd32___posix_lchown(struct lwp *l, const struct netbsd32___posix_lchown_args *uap, register_t *retval) | 1658 | netbsd32___posix_lchown(struct lwp *l, const struct netbsd32___posix_lchown_args *uap, register_t *retval) | |
1659 | { | 1659 | { | |
1660 | /* { | 1660 | /* { | |
1661 | syscallarg(const netbsd32_charp) path; | 1661 | syscallarg(const netbsd32_charp) path; | |
1662 | syscallarg(uid_t) uid; | 1662 | syscallarg(uid_t) uid; | |
1663 | syscallarg(gid_t) gid; | 1663 | syscallarg(gid_t) gid; | |
1664 | } */ | 1664 | } */ | |
1665 | struct sys___posix_lchown_args ua; | 1665 | struct sys___posix_lchown_args ua; | |
1666 | 1666 | |||
1667 | NETBSD32TOP_UAP(path, const char); | 1667 | NETBSD32TOP_UAP(path, const char); | |
1668 | NETBSD32TO64_UAP(uid); | 1668 | NETBSD32TO64_UAP(uid); | |
1669 | NETBSD32TO64_UAP(gid); | 1669 | NETBSD32TO64_UAP(gid); | |
1670 | 1670 | |||
1671 | return sys___posix_lchown(l, &ua, retval); | 1671 | return sys___posix_lchown(l, &ua, retval); | |
1672 | } | 1672 | } | |
1673 | 1673 | |||
1674 | int | 1674 | int | |
1675 | netbsd32_getsid(struct lwp *l, const struct netbsd32_getsid_args *uap, register_t *retval) | 1675 | netbsd32_getsid(struct lwp *l, const struct netbsd32_getsid_args *uap, register_t *retval) | |
1676 | { | 1676 | { | |
1677 | /* { | 1677 | /* { | |
1678 | syscallarg(pid_t) pid; | 1678 | syscallarg(pid_t) pid; | |
1679 | } */ | 1679 | } */ | |
1680 | struct sys_getsid_args ua; | 1680 | struct sys_getsid_args ua; | |
1681 | 1681 | |||
1682 | NETBSD32TO64_UAP(pid); | 1682 | NETBSD32TO64_UAP(pid); | |
1683 | 1683 | |||
1684 | return sys_getsid(l, &ua, retval); | 1684 | return sys_getsid(l, &ua, retval); | |
1685 | } | 1685 | } | |
1686 | 1686 | |||
1687 | int | 1687 | int | |
1688 | netbsd32_fktrace(struct lwp *l, const struct netbsd32_fktrace_args *uap, register_t *retval) | 1688 | netbsd32_fktrace(struct lwp *l, const struct netbsd32_fktrace_args *uap, register_t *retval) | |
1689 | { | 1689 | { | |
1690 | /* { | 1690 | /* { | |
1691 | syscallarg(int) fd; | 1691 | syscallarg(int) fd; | |
1692 | syscallarg(int) ops; | 1692 | syscallarg(int) ops; | |
1693 | syscallarg(int) facs; | 1693 | syscallarg(int) facs; | |
1694 | syscallarg(int) pid; | 1694 | syscallarg(int) pid; | |
1695 | } */ | 1695 | } */ | |
1696 | struct sys_fktrace_args ua; | 1696 | struct sys_fktrace_args ua; | |
1697 | 1697 | |||
1698 | NETBSD32TOX_UAP(fd, int); | 1698 | NETBSD32TOX_UAP(fd, int); | |
1699 | NETBSD32TO64_UAP(ops); | 1699 | NETBSD32TO64_UAP(ops); | |
1700 | NETBSD32TO64_UAP(facs); | 1700 | NETBSD32TO64_UAP(facs); | |
1701 | NETBSD32TO64_UAP(pid); | 1701 | NETBSD32TO64_UAP(pid); | |
1702 | 1702 | |||
1703 | return sys_fktrace(l, &ua, retval); | 1703 | return sys_fktrace(l, &ua, retval); | |
1704 | } | 1704 | } | |
1705 | 1705 | |||
1706 | int | 1706 | int | |
1707 | netbsd32___sigpending14(struct lwp *l, const struct netbsd32___sigpending14_args *uap, register_t *retval) | 1707 | netbsd32___sigpending14(struct lwp *l, const struct netbsd32___sigpending14_args *uap, register_t *retval) | |
1708 | { | 1708 | { | |
1709 | /* { | 1709 | /* { | |
1710 | syscallarg(sigset_t *) set; | 1710 | syscallarg(sigset_t *) set; | |
1711 | } */ | 1711 | } */ | |
1712 | struct sys___sigpending14_args ua; | 1712 | struct sys___sigpending14_args ua; | |
1713 | 1713 | |||
1714 | NETBSD32TOP_UAP(set, sigset_t); | 1714 | NETBSD32TOP_UAP(set, sigset_t); | |
1715 | 1715 | |||
1716 | return sys___sigpending14(l, &ua, retval); | 1716 | return sys___sigpending14(l, &ua, retval); | |
1717 | } | 1717 | } | |
1718 | 1718 | |||
1719 | int | 1719 | int | |
1720 | netbsd32___sigprocmask14(struct lwp *l, const struct netbsd32___sigprocmask14_args *uap, register_t *retval) | 1720 | netbsd32___sigprocmask14(struct lwp *l, const struct netbsd32___sigprocmask14_args *uap, register_t *retval) | |
1721 | { | 1721 | { | |
1722 | /* { | 1722 | /* { | |
1723 | syscallarg(int) how; | 1723 | syscallarg(int) how; | |
1724 | syscallarg(const sigset_t *) set; | 1724 | syscallarg(const sigset_t *) set; | |
1725 | syscallarg(sigset_t *) oset; | 1725 | syscallarg(sigset_t *) oset; | |
1726 | } */ | 1726 | } */ | |
1727 | struct sys___sigprocmask14_args ua; | 1727 | struct sys___sigprocmask14_args ua; | |
1728 | 1728 | |||
1729 | NETBSD32TO64_UAP(how); | 1729 | NETBSD32TO64_UAP(how); | |
1730 | NETBSD32TOP_UAP(set, sigset_t); | 1730 | NETBSD32TOP_UAP(set, sigset_t); | |
1731 | NETBSD32TOP_UAP(oset, sigset_t); | 1731 | NETBSD32TOP_UAP(oset, sigset_t); | |
1732 | 1732 | |||
1733 | return sys___sigprocmask14(l, &ua, retval); | 1733 | return sys___sigprocmask14(l, &ua, retval); | |
1734 | } | 1734 | } | |
1735 | 1735 | |||
1736 | int | 1736 | int | |
1737 | netbsd32___sigsuspend14(struct lwp *l, const struct netbsd32___sigsuspend14_args *uap, register_t *retval) | 1737 | netbsd32___sigsuspend14(struct lwp *l, const struct netbsd32___sigsuspend14_args *uap, register_t *retval) | |
1738 | { | 1738 | { | |
1739 | /* { | 1739 | /* { | |
1740 | syscallarg(const sigset_t *) set; | 1740 | syscallarg(const sigset_t *) set; | |
1741 | } */ | 1741 | } */ | |
1742 | struct sys___sigsuspend14_args ua; | 1742 | struct sys___sigsuspend14_args ua; | |
1743 | 1743 | |||
1744 | NETBSD32TOP_UAP(set, sigset_t); | 1744 | NETBSD32TOP_UAP(set, sigset_t); | |
1745 | 1745 | |||
1746 | return sys___sigsuspend14(l, &ua, retval); | 1746 | return sys___sigsuspend14(l, &ua, retval); | |
1747 | } | 1747 | } | |
1748 | 1748 | |||
1749 | int | 1749 | int | |
1750 | netbsd32_fchroot(struct lwp *l, const struct netbsd32_fchroot_args *uap, register_t *retval) | 1750 | netbsd32_fchroot(struct lwp *l, const struct netbsd32_fchroot_args *uap, register_t *retval) | |
1751 | { | 1751 | { | |
1752 | /* { | 1752 | /* { | |
1753 | syscallarg(int) fd; | 1753 | syscallarg(int) fd; | |
1754 | } */ | 1754 | } */ | |
1755 | struct sys_fchroot_args ua; | 1755 | struct sys_fchroot_args ua; | |
1756 | 1756 | |||
1757 | NETBSD32TO64_UAP(fd); | 1757 | NETBSD32TO64_UAP(fd); | |
1758 | 1758 | |||
1759 | return sys_fchroot(l, &ua, retval); | 1759 | return sys_fchroot(l, &ua, retval); | |
1760 | } | 1760 | } | |
1761 | 1761 | |||
1762 | /* | 1762 | /* | |
1763 | * Open a file given a file handle. | 1763 | * Open a file given a file handle. | |
1764 | * | 1764 | * | |
1765 | * Check permissions, allocate an open file structure, | 1765 | * Check permissions, allocate an open file structure, | |
1766 | * and call the device open routine if any. | 1766 | * and call the device open routine if any. | |
1767 | */ | 1767 | */ | |
1768 | int | 1768 | int | |
1769 | netbsd32___fhopen40(struct lwp *l, const struct netbsd32___fhopen40_args *uap, register_t *retval) | 1769 | netbsd32___fhopen40(struct lwp *l, const struct netbsd32___fhopen40_args *uap, register_t *retval) | |
1770 | { | 1770 | { | |
1771 | /* { | 1771 | /* { | |
1772 | syscallarg(const netbsd32_pointer_t *) fhp; | 1772 | syscallarg(const netbsd32_pointer_t *) fhp; | |
1773 | syscallarg(netbsd32_size_t) fh_size; | 1773 | syscallarg(netbsd32_size_t) fh_size; | |
1774 | syscallarg(int) flags; | 1774 | syscallarg(int) flags; | |
1775 | } */ | 1775 | } */ | |
1776 | struct sys___fhopen40_args ua; | 1776 | struct sys___fhopen40_args ua; | |
1777 | 1777 | |||
1778 | NETBSD32TOP_UAP(fhp, fhandle_t); | 1778 | NETBSD32TOP_UAP(fhp, fhandle_t); | |
1779 | NETBSD32TO64_UAP(fh_size); | 1779 | NETBSD32TO64_UAP(fh_size); | |
1780 | NETBSD32TO64_UAP(flags); | 1780 | NETBSD32TO64_UAP(flags); | |
1781 | 1781 | |||
1782 | return sys___fhopen40(l, &ua, retval); | 1782 | return sys___fhopen40(l, &ua, retval); | |
1783 | } | 1783 | } | |
1784 | 1784 | |||
1785 | /* virtual memory syscalls */ | 1785 | /* virtual memory syscalls */ | |
1786 | int | 1786 | int | |
1787 | netbsd32_ovadvise(struct lwp *l, const struct netbsd32_ovadvise_args *uap, register_t *retval) | 1787 | netbsd32_ovadvise(struct lwp *l, const struct netbsd32_ovadvise_args *uap, register_t *retval) | |
1788 | { | 1788 | { | |
1789 | /* { | 1789 | /* { | |
1790 | syscallarg(int) anom; | 1790 | syscallarg(int) anom; | |
1791 | } */ | 1791 | } */ | |
1792 | struct sys_ovadvise_args ua; | 1792 | struct sys_ovadvise_args ua; | |
1793 | 1793 | |||
1794 | NETBSD32TO64_UAP(anom); | 1794 | NETBSD32TO64_UAP(anom); | |
1795 | 1795 | |||
1796 | return sys_ovadvise(l, &ua, retval); | 1796 | return sys_ovadvise(l, &ua, retval); | |
1797 | } | 1797 | } | |
1798 | 1798 | |||
1799 | int | 1799 | int | |
1800 | netbsd32_uuidgen(struct lwp *l, const struct netbsd32_uuidgen_args *uap, register_t *retval) | 1800 | netbsd32_uuidgen(struct lwp *l, const struct netbsd32_uuidgen_args *uap, register_t *retval) | |
1801 | { | 1801 | { | |
1802 | /* { | 1802 | /* { | |
1803 | syscallarg(netbsd32_uuidp_t) store; | 1803 | syscallarg(netbsd32_uuidp_t) store; | |
1804 | syscallarg(int) count; | 1804 | syscallarg(int) count; | |
1805 | } */ | 1805 | } */ | |
1806 | struct sys_uuidgen_args ua; | 1806 | struct sys_uuidgen_args ua; | |
1807 | 1807 | |||
1808 | NETBSD32TOP_UAP(store, struct uuid); | 1808 | NETBSD32TOP_UAP(store, struct uuid); | |
1809 | NETBSD32TO64_UAP(count); | 1809 | NETBSD32TO64_UAP(count); | |
1810 | 1810 | |||
1811 | return sys_uuidgen(l, &ua, retval); | 1811 | return sys_uuidgen(l, &ua, retval); | |
1812 | } | 1812 | } | |
1813 | 1813 | |||
1814 | int | 1814 | int | |
1815 | netbsd32_extattrctl(struct lwp *l, const struct netbsd32_extattrctl_args *uap, register_t *retval) | 1815 | netbsd32_extattrctl(struct lwp *l, const struct netbsd32_extattrctl_args *uap, register_t *retval) | |
1816 | { | 1816 | { | |
1817 | /* { | 1817 | /* { | |
1818 | syscallarg(const netbsd32_charp) path; | 1818 | syscallarg(const netbsd32_charp) path; | |
1819 | syscallarg(int) cmd; | 1819 | syscallarg(int) cmd; | |
1820 | syscallarg(const netbsd32_charp) filename; | 1820 | syscallarg(const netbsd32_charp) filename; | |
1821 | syscallarg(int) attrnamespace; | 1821 | syscallarg(int) attrnamespace; | |
1822 | syscallarg(const netbsd32_charp) attrname; | 1822 | syscallarg(const netbsd32_charp) attrname; | |
1823 | } */ | 1823 | } */ | |
1824 | struct sys_extattrctl_args ua; | 1824 | struct sys_extattrctl_args ua; | |
1825 | 1825 | |||
1826 | NETBSD32TOP_UAP(path, const char); | 1826 | NETBSD32TOP_UAP(path, const char); | |
1827 | NETBSD32TO64_UAP(cmd); | 1827 | NETBSD32TO64_UAP(cmd); | |
1828 | NETBSD32TOP_UAP(filename, const char); | 1828 | NETBSD32TOP_UAP(filename, const char); | |
1829 | NETBSD32TO64_UAP(attrnamespace); | 1829 | NETBSD32TO64_UAP(attrnamespace); | |
1830 | NETBSD32TOP_UAP(attrname, const char); | 1830 | NETBSD32TOP_UAP(attrname, const char); | |
1831 | 1831 | |||
1832 | return sys_extattrctl(l, &ua, retval); | 1832 | return sys_extattrctl(l, &ua, retval); | |
1833 | } | 1833 | } | |
1834 | 1834 | |||
1835 | int | 1835 | int | |
1836 | netbsd32_extattr_set_fd(struct lwp *l, const struct netbsd32_extattr_set_fd_args *uap, register_t *retval) | 1836 | netbsd32_extattr_set_fd(struct lwp *l, const struct netbsd32_extattr_set_fd_args *uap, register_t *retval) | |
1837 | { | 1837 | { | |
1838 | /* { | 1838 | /* { | |
1839 | syscallarg(int) fd; | 1839 | syscallarg(int) fd; | |
1840 | syscallarg(int) attrnamespace; | 1840 | syscallarg(int) attrnamespace; | |
1841 | syscallarg(const netbsd32_charp) attrname; | 1841 | syscallarg(const netbsd32_charp) attrname; | |
1842 | syscallarg(const netbsd32_voidp) data; | 1842 | syscallarg(const netbsd32_voidp) data; | |
1843 | syscallarg(netbsd32_size_t) nbytes; | 1843 | syscallarg(netbsd32_size_t) nbytes; | |
1844 | } */ | 1844 | } */ | |
1845 | struct sys_extattr_set_fd_args ua; | 1845 | struct sys_extattr_set_fd_args ua; | |
1846 | 1846 | |||
1847 | NETBSD32TO64_UAP(fd); | 1847 | NETBSD32TO64_UAP(fd); | |
1848 | NETBSD32TO64_UAP(attrnamespace); | 1848 | NETBSD32TO64_UAP(attrnamespace); | |
1849 | NETBSD32TOP_UAP(attrname, const char); | 1849 | NETBSD32TOP_UAP(attrname, const char); | |
1850 | NETBSD32TOP_UAP(data, const void); | 1850 | NETBSD32TOP_UAP(data, const void); | |
1851 | NETBSD32TOX_UAP(nbytes, size_t); | 1851 | NETBSD32TOX_UAP(nbytes, size_t); | |
1852 | 1852 | |||
1853 | return sys_extattr_set_fd(l, &ua, retval); | 1853 | return sys_extattr_set_fd(l, &ua, retval); | |
1854 | } | 1854 | } | |
1855 | 1855 | |||
1856 | int | 1856 | int | |
1857 | netbsd32_extattr_set_file(struct lwp *l, const struct netbsd32_extattr_set_file_args *uap, register_t *retval) | 1857 | netbsd32_extattr_set_file(struct lwp *l, const struct netbsd32_extattr_set_file_args *uap, register_t *retval) | |
1858 | { | 1858 | { | |
1859 | /* { | 1859 | /* { | |
1860 | syscallarg(const netbsd32_charp) path; | 1860 | syscallarg(const netbsd32_charp) path; | |
1861 | syscallarg(int) attrnamespace; | 1861 | syscallarg(int) attrnamespace; | |
1862 | syscallarg(const netbsd32_charp) attrname; | 1862 | syscallarg(const netbsd32_charp) attrname; | |
1863 | syscallarg(const netbsd32_voidp) data; | 1863 | syscallarg(const netbsd32_voidp) data; | |
1864 | syscallarg(netbsd32_size_t) nbytes; | 1864 | syscallarg(netbsd32_size_t) nbytes; | |
1865 | } */ | 1865 | } */ | |
1866 | struct sys_extattr_set_file_args ua; | 1866 | struct sys_extattr_set_file_args ua; | |
1867 | 1867 | |||
1868 | NETBSD32TOP_UAP(path, const char); | 1868 | NETBSD32TOP_UAP(path, const char); | |
1869 | NETBSD32TO64_UAP(attrnamespace); | 1869 | NETBSD32TO64_UAP(attrnamespace); | |
1870 | NETBSD32TOP_UAP(attrname, const char); | 1870 | NETBSD32TOP_UAP(attrname, const char); | |
1871 | NETBSD32TOP_UAP(data, const void); | 1871 | NETBSD32TOP_UAP(data, const void); | |
1872 | NETBSD32TOX_UAP(nbytes, size_t); | 1872 | NETBSD32TOX_UAP(nbytes, size_t); | |
1873 | 1873 | |||
1874 | return sys_extattr_set_file(l, &ua, retval); | 1874 | return sys_extattr_set_file(l, &ua, retval); | |
1875 | } | 1875 | } | |
1876 | 1876 | |||
1877 | int | 1877 | int | |
1878 | netbsd32_extattr_set_link(struct lwp *l, const struct netbsd32_extattr_set_link_args *uap, register_t *retval) | 1878 | netbsd32_extattr_set_link(struct lwp *l, const struct netbsd32_extattr_set_link_args *uap, register_t *retval) | |
1879 | { | 1879 | { | |
1880 | /* { | 1880 | /* { | |
1881 | syscallarg(const netbsd32_charp) path; | 1881 | syscallarg(const netbsd32_charp) path; | |
1882 | syscallarg(int) attrnamespace; | 1882 | syscallarg(int) attrnamespace; | |
1883 | syscallarg(const netbsd32_charp) attrname; | 1883 | syscallarg(const netbsd32_charp) attrname; | |
1884 | syscallarg(const netbsd32_voidp) data; | 1884 | syscallarg(const netbsd32_voidp) data; | |
1885 | syscallarg(netbsd32_size_t) nbytes; | 1885 | syscallarg(netbsd32_size_t) nbytes; | |
1886 | } */ | 1886 | } */ | |
1887 | struct sys_extattr_set_link_args ua; | 1887 | struct sys_extattr_set_link_args ua; | |
1888 | 1888 | |||
1889 | NETBSD32TOP_UAP(path, const char); | 1889 | NETBSD32TOP_UAP(path, const char); | |
1890 | NETBSD32TO64_UAP(attrnamespace); | 1890 | NETBSD32TO64_UAP(attrnamespace); | |
1891 | NETBSD32TOP_UAP(attrname, const char); | 1891 | NETBSD32TOP_UAP(attrname, const char); | |
1892 | NETBSD32TOP_UAP(data, const void); | 1892 | NETBSD32TOP_UAP(data, const void); | |
1893 | NETBSD32TOX_UAP(nbytes, size_t); | 1893 | NETBSD32TOX_UAP(nbytes, size_t); | |
1894 | 1894 | |||
1895 | return sys_extattr_set_link(l, &ua, retval); | 1895 | return sys_extattr_set_link(l, &ua, retval); | |
1896 | } | 1896 | } | |
1897 | 1897 | |||
1898 | int | 1898 | int | |
1899 | netbsd32_extattr_get_fd(struct lwp *l, const struct netbsd32_extattr_get_fd_args *uap, register_t *retval) | 1899 | netbsd32_extattr_get_fd(struct lwp *l, const struct netbsd32_extattr_get_fd_args *uap, register_t *retval) | |
1900 | { | 1900 | { | |
1901 | /* { | 1901 | /* { | |
1902 | syscallarg(int) fd; | 1902 | syscallarg(int) fd; | |
1903 | syscallarg(int) attrnamespace; | 1903 | syscallarg(int) attrnamespace; | |
1904 | syscallarg(const netbsd32_charp) attrname; | 1904 | syscallarg(const netbsd32_charp) attrname; | |
1905 | syscallarg(netbsd32_voidp) data; | 1905 | syscallarg(netbsd32_voidp) data; | |
1906 | syscallarg(netbsd32_size_t) nbytes; | 1906 | syscallarg(netbsd32_size_t) nbytes; | |
1907 | } */ | 1907 | } */ | |
1908 | struct sys_extattr_get_fd_args ua; | 1908 | struct sys_extattr_get_fd_args ua; | |
1909 | 1909 | |||
1910 | NETBSD32TO64_UAP(fd); | 1910 | NETBSD32TO64_UAP(fd); | |
1911 | NETBSD32TO64_UAP(attrnamespace); | 1911 | NETBSD32TO64_UAP(attrnamespace); | |
1912 | NETBSD32TOP_UAP(attrname, const char); | 1912 | NETBSD32TOP_UAP(attrname, const char); | |
1913 | NETBSD32TOP_UAP(data, void); | 1913 | NETBSD32TOP_UAP(data, void); | |
1914 | NETBSD32TOX_UAP(nbytes, size_t); | 1914 | NETBSD32TOX_UAP(nbytes, size_t); | |
1915 | 1915 | |||
1916 | return sys_extattr_get_fd(l, &ua, retval); | 1916 | return sys_extattr_get_fd(l, &ua, retval); | |
1917 | } | 1917 | } | |
1918 | 1918 | |||
1919 | int | 1919 | int | |
1920 | netbsd32_extattr_get_file(struct lwp *l, const struct netbsd32_extattr_get_file_args *uap, register_t *retval) | 1920 | netbsd32_extattr_get_file(struct lwp *l, const struct netbsd32_extattr_get_file_args *uap, register_t *retval) | |
1921 | { | 1921 | { | |
1922 | /* { | 1922 | /* { | |
1923 | syscallarg(const netbsd32_charp) path; | 1923 | syscallarg(const netbsd32_charp) path; | |
1924 | syscallarg(int) attrnamespace; | 1924 | syscallarg(int) attrnamespace; | |
1925 | syscallarg(const netbsd32_charp) attrname; | 1925 | syscallarg(const netbsd32_charp) attrname; | |
1926 | syscallarg(netbsd32_voidp) data; | 1926 | syscallarg(netbsd32_voidp) data; | |
1927 | syscallarg(netbsd32_size_t) nbytes; | 1927 | syscallarg(netbsd32_size_t) nbytes; | |
1928 | } */ | 1928 | } */ | |
1929 | struct sys_extattr_get_file_args ua; | 1929 | struct sys_extattr_get_file_args ua; | |
1930 | 1930 | |||
1931 | NETBSD32TOP_UAP(path, const char); | 1931 | NETBSD32TOP_UAP(path, const char); | |
1932 | NETBSD32TO64_UAP(attrnamespace); | 1932 | NETBSD32TO64_UAP(attrnamespace); | |
1933 | NETBSD32TOP_UAP(attrname, const char); | 1933 | NETBSD32TOP_UAP(attrname, const char); | |
1934 | NETBSD32TOP_UAP(data, void); | 1934 | NETBSD32TOP_UAP(data, void); | |
1935 | NETBSD32TOX_UAP(nbytes, size_t); | 1935 | NETBSD32TOX_UAP(nbytes, size_t); | |
1936 | 1936 | |||
1937 | return sys_extattr_get_file(l, &ua, retval); | 1937 | return sys_extattr_get_file(l, &ua, retval); | |
1938 | } | 1938 | } | |
1939 | 1939 | |||
1940 | int | 1940 | int | |
1941 | netbsd32_extattr_get_link(struct lwp *l, const struct netbsd32_extattr_get_link_args *uap, register_t *retval) | 1941 | netbsd32_extattr_get_link(struct lwp *l, const struct netbsd32_extattr_get_link_args *uap, register_t *retval) | |
1942 | { | 1942 | { | |
1943 | /* { | 1943 | /* { | |
1944 | syscallarg(const netbsd32_charp) path; | 1944 | syscallarg(const netbsd32_charp) path; | |
1945 | syscallarg(int) attrnamespace; | 1945 | syscallarg(int) attrnamespace; | |
1946 | syscallarg(const netbsd32_charp) attrname; | 1946 | syscallarg(const netbsd32_charp) attrname; | |
1947 | syscallarg(netbsd32_voidp) data; | 1947 | syscallarg(netbsd32_voidp) data; | |
1948 | syscallarg(netbsd32_size_t) nbytes; | 1948 | syscallarg(netbsd32_size_t) nbytes; | |
1949 | } */ | 1949 | } */ | |
1950 | struct sys_extattr_get_link_args ua; | 1950 | struct sys_extattr_get_link_args ua; | |
1951 | 1951 | |||
1952 | NETBSD32TOP_UAP(path, const char); | 1952 | NETBSD32TOP_UAP(path, const char); | |
1953 | NETBSD32TO64_UAP(attrnamespace); | 1953 | NETBSD32TO64_UAP(attrnamespace); | |
1954 | NETBSD32TOP_UAP(attrname, const char); | 1954 | NETBSD32TOP_UAP(attrname, const char); | |
1955 | NETBSD32TOP_UAP(data, void); | 1955 | NETBSD32TOP_UAP(data, void); | |
1956 | NETBSD32TOX_UAP(nbytes, size_t); | 1956 | NETBSD32TOX_UAP(nbytes, size_t); | |
1957 | 1957 | |||
1958 | return sys_extattr_get_link(l, &ua, retval); | 1958 | return sys_extattr_get_link(l, &ua, retval); | |
1959 | } | 1959 | } | |
1960 | 1960 | |||
1961 | int | 1961 | int | |
1962 | netbsd32_extattr_delete_fd(struct lwp *l, const struct netbsd32_extattr_delete_fd_args *uap, register_t *retval) | 1962 | netbsd32_extattr_delete_fd(struct lwp *l, const struct netbsd32_extattr_delete_fd_args *uap, register_t *retval) | |
1963 | { | 1963 | { | |
1964 | /* { | 1964 | /* { | |
1965 | syscallarg(int) fd; | 1965 | syscallarg(int) fd; | |
1966 | syscallarg(int) attrnamespace; | 1966 | syscallarg(int) attrnamespace; | |
1967 | syscallarg(const netbsd32_charp) attrname; | 1967 | syscallarg(const netbsd32_charp) attrname; | |
1968 | } */ | 1968 | } */ | |
1969 | struct sys_extattr_delete_fd_args ua; | 1969 | struct sys_extattr_delete_fd_args ua; | |
1970 | 1970 | |||
1971 | NETBSD32TO64_UAP(fd); | 1971 | NETBSD32TO64_UAP(fd); | |
1972 | NETBSD32TO64_UAP(attrnamespace); | 1972 | NETBSD32TO64_UAP(attrnamespace); | |
1973 | NETBSD32TOP_UAP(attrname, const char); | 1973 | NETBSD32TOP_UAP(attrname, const char); | |
1974 | 1974 | |||
1975 | return sys_extattr_delete_fd(l, &ua, retval); | 1975 | return sys_extattr_delete_fd(l, &ua, retval); | |
1976 | } | 1976 | } | |
1977 | 1977 | |||
1978 | int | 1978 | int | |
1979 | netbsd32_extattr_delete_file(struct lwp *l, const struct netbsd32_extattr_delete_file_args *uap, register_t *retval) | 1979 | netbsd32_extattr_delete_file(struct lwp *l, const struct netbsd32_extattr_delete_file_args *uap, register_t *retval) | |
1980 | { | 1980 | { | |
1981 | /* { | 1981 | /* { | |
1982 | syscallarg(const netbsd32_charp) path; | 1982 | syscallarg(const netbsd32_charp) path; | |
1983 | syscallarg(int) attrnamespace; | 1983 | syscallarg(int) attrnamespace; | |
1984 | syscallarg(const netbsd32_charp) attrname; | 1984 | syscallarg(const netbsd32_charp) attrname; | |
1985 | } */ | 1985 | } */ | |
1986 | struct sys_extattr_delete_file_args ua; | 1986 | struct sys_extattr_delete_file_args ua; | |
1987 | 1987 | |||
1988 | NETBSD32TOP_UAP(path, const char); | 1988 | NETBSD32TOP_UAP(path, const char); | |
1989 | NETBSD32TO64_UAP(attrnamespace); | 1989 | NETBSD32TO64_UAP(attrnamespace); | |
1990 | NETBSD32TOP_UAP(attrname, const char); | 1990 | NETBSD32TOP_UAP(attrname, const char); | |
1991 | 1991 | |||
1992 | return sys_extattr_delete_file(l, &ua, retval); | 1992 | return sys_extattr_delete_file(l, &ua, retval); | |
1993 | } | 1993 | } | |
1994 | 1994 | |||
1995 | int | 1995 | int | |
1996 | netbsd32_extattr_delete_link(struct lwp *l, const struct netbsd32_extattr_delete_link_args *uap, register_t *retval) | 1996 | netbsd32_extattr_delete_link(struct lwp *l, const struct netbsd32_extattr_delete_link_args *uap, register_t *retval) | |
1997 | { | 1997 | { | |
1998 | /* { | 1998 | /* { | |
1999 | syscallarg(const netbsd32_charp) path; | 1999 | syscallarg(const netbsd32_charp) path; | |
2000 | syscallarg(int) attrnamespace; | 2000 | syscallarg(int) attrnamespace; | |
2001 | syscallarg(const netbsd32_charp) attrname; | 2001 | syscallarg(const netbsd32_charp) attrname; | |
2002 | } */ | 2002 | } */ | |
2003 | struct sys_extattr_delete_link_args ua; | 2003 | struct sys_extattr_delete_link_args ua; | |
2004 | 2004 | |||
2005 | NETBSD32TOP_UAP(path, const char); | 2005 | NETBSD32TOP_UAP(path, const char); | |
2006 | NETBSD32TO64_UAP(attrnamespace); | 2006 | NETBSD32TO64_UAP(attrnamespace); | |
2007 | NETBSD32TOP_UAP(attrname, const char); | 2007 | NETBSD32TOP_UAP(attrname, const char); | |
2008 | 2008 | |||
2009 | return sys_extattr_delete_link(l, &ua, retval); | 2009 | return sys_extattr_delete_link(l, &ua, retval); | |
2010 | } | 2010 | } | |
2011 | 2011 | |||
2012 | int | 2012 | int | |
2013 | netbsd32_extattr_list_fd(struct lwp *l, const struct netbsd32_extattr_list_fd_args *uap, register_t *retval) | 2013 | netbsd32_extattr_list_fd(struct lwp *l, const struct netbsd32_extattr_list_fd_args *uap, register_t *retval) | |
2014 | { | 2014 | { | |
2015 | /* { | 2015 | /* { | |
2016 | syscallarg(int) fd; | 2016 | syscallarg(int) fd; | |
2017 | syscallarg(int) attrnamespace; | 2017 | syscallarg(int) attrnamespace; | |
2018 | syscallarg(netbsd32_voidp) data; | 2018 | syscallarg(netbsd32_voidp) data; | |
2019 | syscallarg(netbsd32_size_t) nbytes; | 2019 | syscallarg(netbsd32_size_t) nbytes; | |
2020 | } */ | 2020 | } */ | |
2021 | struct sys_extattr_list_fd_args ua; | 2021 | struct sys_extattr_list_fd_args ua; | |
2022 | 2022 | |||
2023 | NETBSD32TO64_UAP(fd); | 2023 | NETBSD32TO64_UAP(fd); | |
2024 | NETBSD32TO64_UAP(attrnamespace); | 2024 | NETBSD32TO64_UAP(attrnamespace); | |
2025 | NETBSD32TOP_UAP(data, void); | 2025 | NETBSD32TOP_UAP(data, void); | |
2026 | NETBSD32TOX_UAP(nbytes, size_t); | 2026 | NETBSD32TOX_UAP(nbytes, size_t); | |
2027 | 2027 | |||
2028 | return sys_extattr_list_fd(l, &ua, retval); | 2028 | return sys_extattr_list_fd(l, &ua, retval); | |
2029 | } | 2029 | } | |
2030 | 2030 | |||
2031 | int | 2031 | int | |
2032 | netbsd32_extattr_list_file(struct lwp *l, const struct netbsd32_extattr_list_file_args *uap, register_t *retval) | 2032 | netbsd32_extattr_list_file(struct lwp *l, const struct netbsd32_extattr_list_file_args *uap, register_t *retval) | |
2033 | { | 2033 | { | |
2034 | /* { | 2034 | /* { | |
2035 | syscallarg(const netbsd32_charp) path; | 2035 | syscallarg(const netbsd32_charp) path; | |
2036 | syscallarg(int) attrnamespace; | 2036 | syscallarg(int) attrnamespace; | |
2037 | syscallarg(netbsd32_voidp) data; | 2037 | syscallarg(netbsd32_voidp) data; | |
2038 | syscallarg(netbsd32_size_t) nbytes; | 2038 | syscallarg(netbsd32_size_t) nbytes; | |
2039 | } */ | 2039 | } */ | |
2040 | struct sys_extattr_list_file_args ua; | 2040 | struct sys_extattr_list_file_args ua; | |
2041 | 2041 | |||
2042 | NETBSD32TOP_UAP(path, const char); | 2042 | NETBSD32TOP_UAP(path, const char); | |
2043 | NETBSD32TO64_UAP(attrnamespace); | 2043 | NETBSD32TO64_UAP(attrnamespace); | |
2044 | NETBSD32TOP_UAP(data, void); | 2044 | NETBSD32TOP_UAP(data, void); | |
2045 | NETBSD32TOX_UAP(nbytes, size_t); | 2045 | NETBSD32TOX_UAP(nbytes, size_t); | |
2046 | 2046 | |||
2047 | return sys_extattr_list_file(l, &ua, retval); | 2047 | return sys_extattr_list_file(l, &ua, retval); | |
2048 | } | 2048 | } | |
2049 | 2049 | |||
2050 | int | 2050 | int | |
2051 | netbsd32_extattr_list_link(struct lwp *l, const struct netbsd32_extattr_list_link_args *uap, register_t *retval) | 2051 | netbsd32_extattr_list_link(struct lwp *l, const struct netbsd32_extattr_list_link_args *uap, register_t *retval) | |
2052 | { | 2052 | { | |
2053 | /* { | 2053 | /* { | |
2054 | syscallarg(const netbsd32_charp) path; | 2054 | syscallarg(const netbsd32_charp) path; | |
2055 | syscallarg(int) attrnamespace; | 2055 | syscallarg(int) attrnamespace; | |
2056 | syscallarg(netbsd32_voidp) data; | 2056 | syscallarg(netbsd32_voidp) data; | |
2057 | syscallarg(netbsd32_size_t) nbytes; | 2057 | syscallarg(netbsd32_size_t) nbytes; | |
2058 | } */ | 2058 | } */ | |
2059 | struct sys_extattr_list_link_args ua; | 2059 | struct sys_extattr_list_link_args ua; | |
2060 | 2060 | |||
2061 | NETBSD32TOP_UAP(path, const char); | 2061 | NETBSD32TOP_UAP(path, const char); | |
2062 | NETBSD32TO64_UAP(attrnamespace); | 2062 | NETBSD32TO64_UAP(attrnamespace); | |
2063 | NETBSD32TOP_UAP(data, void); | 2063 | NETBSD32TOP_UAP(data, void); | |
2064 | NETBSD32TOX_UAP(nbytes, size_t); | 2064 | NETBSD32TOX_UAP(nbytes, size_t); | |
2065 | 2065 | |||
2066 | return sys_extattr_list_link(l, &ua, retval); | 2066 | return sys_extattr_list_link(l, &ua, retval); | |
2067 | } | 2067 | } | |
2068 | 2068 | |||
2069 | int | 2069 | int | |
2070 | netbsd32_mlockall(struct lwp *l, const struct netbsd32_mlockall_args *uap, register_t *retval) | 2070 | netbsd32_mlockall(struct lwp *l, const struct netbsd32_mlockall_args *uap, register_t *retval) | |
2071 | { | 2071 | { | |
2072 | /* { | 2072 | /* { | |
2073 | syscallarg(int) flags; | 2073 | syscallarg(int) flags; | |
2074 | } */ | 2074 | } */ | |
2075 | struct sys_mlockall_args ua; | 2075 | struct sys_mlockall_args ua; | |
2076 | 2076 | |||
2077 | NETBSD32TO64_UAP(flags); | 2077 | NETBSD32TO64_UAP(flags); | |
2078 | 2078 | |||
2079 | return sys_mlockall(l, &ua, retval); | 2079 | return sys_mlockall(l, &ua, retval); | |
2080 | } | 2080 | } | |
2081 | 2081 | |||
2082 | int | 2082 | int | |
2083 | netbsd32___clone(struct lwp *l, const struct netbsd32___clone_args *uap, register_t *retval) | 2083 | netbsd32___clone(struct lwp *l, const struct netbsd32___clone_args *uap, register_t *retval) | |
2084 | { | 2084 | { | |
2085 | /* { | 2085 | /* { | |
2086 | syscallarg(int) flags; | 2086 | syscallarg(int) flags; | |
2087 | syscallarg(netbsd32_voidp) stack; | 2087 | syscallarg(netbsd32_voidp) stack; | |
2088 | } */ | 2088 | } */ | |
2089 | struct sys___clone_args ua; | 2089 | struct sys___clone_args ua; | |
2090 | 2090 | |||
2091 | NETBSD32TO64_UAP(flags); | 2091 | NETBSD32TO64_UAP(flags); | |
2092 | NETBSD32TOP_UAP(stack, void); | 2092 | NETBSD32TOP_UAP(stack, void); | |
2093 | 2093 | |||
2094 | return sys___clone(l, &ua, retval); | 2094 | return sys___clone(l, &ua, retval); | |
2095 | } | 2095 | } | |
2096 | 2096 | |||
2097 | int | 2097 | int | |
2098 | netbsd32_fsync_range(struct lwp *l, const struct netbsd32_fsync_range_args *uap, register_t *retval) | 2098 | netbsd32_fsync_range(struct lwp *l, const struct netbsd32_fsync_range_args *uap, register_t *retval) | |
2099 | { | 2099 | { | |
2100 | /* { | 2100 | /* { | |
2101 | syscallarg(int) fd; | 2101 | syscallarg(int) fd; | |
2102 | syscallarg(int) flags; | 2102 | syscallarg(int) flags; | |
2103 | syscallarg(off_t) start; | 2103 | syscallarg(off_t) start; | |
2104 | syscallarg(off_t) length; | 2104 | syscallarg(off_t) length; | |
2105 | } */ | 2105 | } */ | |
2106 | struct sys_fsync_range_args ua; | 2106 | struct sys_fsync_range_args ua; | |
2107 | 2107 | |||
2108 | NETBSD32TO64_UAP(fd); | 2108 | NETBSD32TO64_UAP(fd); | |
2109 | NETBSD32TO64_UAP(flags); | 2109 | NETBSD32TO64_UAP(flags); | |
2110 | NETBSD32TO64_UAP(start); | 2110 | NETBSD32TO64_UAP(start); | |
2111 | NETBSD32TO64_UAP(length); | 2111 | NETBSD32TO64_UAP(length); | |
2112 | 2112 | |||
2113 | return sys_fsync_range(l, &ua, retval); | 2113 | return sys_fsync_range(l, &ua, retval); | |
2114 | } | 2114 | } | |
2115 | 2115 | |||
2116 | int | 2116 | int | |
2117 | netbsd32_rasctl(struct lwp *l, const struct netbsd32_rasctl_args *uap, register_t *retval) | 2117 | netbsd32_rasctl(struct lwp *l, const struct netbsd32_rasctl_args *uap, register_t *retval) | |
2118 | { | 2118 | { | |
2119 | /* { | 2119 | /* { | |
2120 | syscallarg(netbsd32_voidp) addr; | 2120 | syscallarg(netbsd32_voidp) addr; | |
2121 | syscallarg(netbsd32_size_t) len; | 2121 | syscallarg(netbsd32_size_t) len; | |
2122 | syscallarg(int) op; | 2122 | syscallarg(int) op; | |
2123 | } */ | 2123 | } */ | |
2124 | struct sys_rasctl_args ua; | 2124 | struct sys_rasctl_args ua; | |
2125 | 2125 | |||
2126 | NETBSD32TOP_UAP(addr, void *); | 2126 | NETBSD32TOP_UAP(addr, void *); | |
2127 | NETBSD32TOX_UAP(len, size_t); | 2127 | NETBSD32TOX_UAP(len, size_t); | |
2128 | NETBSD32TO64_UAP(op); | 2128 | NETBSD32TO64_UAP(op); | |
2129 | 2129 | |||
2130 | return sys_rasctl(l, &ua, retval); | 2130 | return sys_rasctl(l, &ua, retval); | |
2131 | } | 2131 | } | |
2132 | 2132 | |||
2133 | int | 2133 | int | |
2134 | netbsd32_setxattr(struct lwp *l, const struct netbsd32_setxattr_args *uap, register_t *retval) | 2134 | netbsd32_setxattr(struct lwp *l, const struct netbsd32_setxattr_args *uap, register_t *retval) | |
2135 | { | 2135 | { | |
2136 | /* { | 2136 | /* { | |
2137 | syscallarg(const netbsd32_charp) path; | 2137 | syscallarg(const netbsd32_charp) path; | |
2138 | syscallarg(const netbsd32_charp) name; | 2138 | syscallarg(const netbsd32_charp) name; | |
2139 | syscallarg(netbsd32_voidp) value; | 2139 | syscallarg(netbsd32_voidp) value; | |
2140 | syscallarg(netbsd32_size_t) size; | 2140 | syscallarg(netbsd32_size_t) size; | |
2141 | syscallarg(int) flags; | 2141 | syscallarg(int) flags; | |
2142 | } */ | 2142 | } */ | |
2143 | struct sys_setxattr_args ua; | 2143 | struct sys_setxattr_args ua; | |
2144 | 2144 | |||
2145 | NETBSD32TOP_UAP(path, const char); | 2145 | NETBSD32TOP_UAP(path, const char); | |
2146 | NETBSD32TOP_UAP(name, const char); | 2146 | NETBSD32TOP_UAP(name, const char); | |
2147 | NETBSD32TOP_UAP(value, void); | 2147 | NETBSD32TOP_UAP(value, void); | |
2148 | NETBSD32TOX_UAP(size, size_t); | 2148 | NETBSD32TOX_UAP(size, size_t); | |
2149 | NETBSD32TO64_UAP(flags); | 2149 | NETBSD32TO64_UAP(flags); | |
2150 | 2150 | |||
2151 | return sys_setxattr(l, &ua, retval); | 2151 | return sys_setxattr(l, &ua, retval); | |
2152 | } | 2152 | } | |
2153 | 2153 | |||
2154 | int | 2154 | int | |
2155 | netbsd32_lsetxattr(struct lwp *l, const struct netbsd32_lsetxattr_args *uap, register_t *retval) | 2155 | netbsd32_lsetxattr(struct lwp *l, const struct netbsd32_lsetxattr_args *uap, register_t *retval) | |
2156 | { | 2156 | { | |
2157 | /* { | 2157 | /* { | |
2158 | syscallarg(const netbsd32_charp) path; | 2158 | syscallarg(const netbsd32_charp) path; | |
2159 | syscallarg(const netbsd32_charp) name; | 2159 | syscallarg(const netbsd32_charp) name; | |
2160 | syscallarg(netbsd32_voidp) value; | 2160 | syscallarg(netbsd32_voidp) value; | |
2161 | syscallarg(netbsd32_size_t) size; | 2161 | syscallarg(netbsd32_size_t) size; | |
2162 | syscallarg(int) flags; | 2162 | syscallarg(int) flags; | |
2163 | } */ | 2163 | } */ | |
2164 | struct sys_lsetxattr_args ua; | 2164 | struct sys_lsetxattr_args ua; | |
2165 | 2165 | |||
2166 | NETBSD32TOP_UAP(path, const char); | 2166 | NETBSD32TOP_UAP(path, const char); | |
2167 | NETBSD32TOP_UAP(name, const char); | 2167 | NETBSD32TOP_UAP(name, const char); | |
2168 | NETBSD32TOP_UAP(value, void); | 2168 | NETBSD32TOP_UAP(value, void); | |
2169 | NETBSD32TOX_UAP(size, size_t); | 2169 | NETBSD32TOX_UAP(size, size_t); | |
2170 | NETBSD32TO64_UAP(flags); | 2170 | NETBSD32TO64_UAP(flags); | |
2171 | 2171 | |||
2172 | return sys_lsetxattr(l, &ua, retval); | 2172 | return sys_lsetxattr(l, &ua, retval); | |
2173 | } | 2173 | } | |
2174 | 2174 | |||
2175 | int | 2175 | int | |
2176 | netbsd32_fsetxattr(struct lwp *l, const struct netbsd32_fsetxattr_args *uap, register_t *retval) | 2176 | netbsd32_fsetxattr(struct lwp *l, const struct netbsd32_fsetxattr_args *uap, register_t *retval) | |
2177 | { | 2177 | { | |
2178 | /* { | 2178 | /* { | |
2179 | syscallarg(int) fd; | 2179 | syscallarg(int) fd; | |
2180 | syscallarg(const netbsd32_charp) name; | 2180 | syscallarg(const netbsd32_charp) name; | |
2181 | syscallarg(netbsd32_voidp) value; | 2181 | syscallarg(netbsd32_voidp) value; | |
2182 | syscallarg(netbsd32_size_t) size; | 2182 | syscallarg(netbsd32_size_t) size; | |
2183 | syscallarg(int) flags; | 2183 | syscallarg(int) flags; | |
2184 | } */ | 2184 | } */ | |
2185 | struct sys_fsetxattr_args ua; | 2185 | struct sys_fsetxattr_args ua; | |
2186 | 2186 | |||
2187 | NETBSD32TO64_UAP(fd); | 2187 | NETBSD32TO64_UAP(fd); | |
2188 | NETBSD32TOP_UAP(name, const char); | 2188 | NETBSD32TOP_UAP(name, const char); | |
2189 | NETBSD32TOP_UAP(value, void); | 2189 | NETBSD32TOP_UAP(value, void); | |
2190 | NETBSD32TOX_UAP(size, size_t); | 2190 | NETBSD32TOX_UAP(size, size_t); | |
2191 | NETBSD32TO64_UAP(flags); | 2191 | NETBSD32TO64_UAP(flags); | |
2192 | 2192 | |||
2193 | return sys_fsetxattr(l, &ua, retval); | 2193 | return sys_fsetxattr(l, &ua, retval); | |
2194 | } | 2194 | } | |
2195 | 2195 | |||
2196 | int | 2196 | int | |
2197 | netbsd32_getxattr(struct lwp *l, const struct netbsd32_getxattr_args *uap, register_t *retval) | 2197 | netbsd32_getxattr(struct lwp *l, const struct netbsd32_getxattr_args *uap, register_t *retval) | |
2198 | { | 2198 | { | |
2199 | /* { | 2199 | /* { | |
2200 | syscallarg(const netbsd32_charp) path; | 2200 | syscallarg(const netbsd32_charp) path; | |
2201 | syscallarg(const netbsd32_charp) name; | 2201 | syscallarg(const netbsd32_charp) name; | |
2202 | syscallarg(netbsd32_voidp) value; | 2202 | syscallarg(netbsd32_voidp) value; | |
2203 | syscallarg(netbsd32_size_t) size; | 2203 | syscallarg(netbsd32_size_t) size; | |
2204 | } */ | 2204 | } */ | |
2205 | struct sys_getxattr_args ua; | 2205 | struct sys_getxattr_args ua; | |
2206 | 2206 | |||
2207 | NETBSD32TOP_UAP(path, const char); | 2207 | NETBSD32TOP_UAP(path, const char); | |
2208 | NETBSD32TOP_UAP(name, const char); | 2208 | NETBSD32TOP_UAP(name, const char); | |
2209 | NETBSD32TOP_UAP(value, void); | 2209 | NETBSD32TOP_UAP(value, void); | |
2210 | NETBSD32TOX_UAP(size, size_t); | 2210 | NETBSD32TOX_UAP(size, size_t); | |
2211 | 2211 | |||
2212 | return sys_getxattr(l, &ua, retval); | 2212 | return sys_getxattr(l, &ua, retval); | |
2213 | } | 2213 | } | |
2214 | 2214 | |||
2215 | int | 2215 | int | |
2216 | netbsd32_lgetxattr(struct lwp *l, const struct netbsd32_lgetxattr_args *uap, register_t *retval) | 2216 | netbsd32_lgetxattr(struct lwp *l, const struct netbsd32_lgetxattr_args *uap, register_t *retval) | |
2217 | { | 2217 | { | |
2218 | /* { | 2218 | /* { | |
2219 | syscallarg(const netbsd32_charp) path; | 2219 | syscallarg(const netbsd32_charp) path; | |
2220 | syscallarg(const netbsd32_charp) name; | 2220 | syscallarg(const netbsd32_charp) name; | |
2221 | syscallarg(netbsd32_voidp) value; | 2221 | syscallarg(netbsd32_voidp) value; | |
2222 | syscallarg(netbsd32_size_t) size; | 2222 | syscallarg(netbsd32_size_t) size; | |
2223 | } */ | 2223 | } */ | |
2224 | struct sys_lgetxattr_args ua; | 2224 | struct sys_lgetxattr_args ua; | |
2225 | 2225 | |||
2226 | NETBSD32TOP_UAP(path, const char); | 2226 | NETBSD32TOP_UAP(path, const char); | |
2227 | NETBSD32TOP_UAP(name, const char); | 2227 | NETBSD32TOP_UAP(name, const char); | |
2228 | NETBSD32TOP_UAP(value, void); | 2228 | NETBSD32TOP_UAP(value, void); | |
2229 | NETBSD32TOX_UAP(size, size_t); | 2229 | NETBSD32TOX_UAP(size, size_t); | |
2230 | 2230 | |||
2231 | return sys_lgetxattr(l, &ua, retval); | 2231 | return sys_lgetxattr(l, &ua, retval); | |
2232 | } | 2232 | } | |
2233 | 2233 | |||
2234 | int | 2234 | int | |
2235 | netbsd32_fgetxattr(struct lwp *l, const struct netbsd32_fgetxattr_args *uap, register_t *retval) | 2235 | netbsd32_fgetxattr(struct lwp *l, const struct netbsd32_fgetxattr_args *uap, register_t *retval) | |
2236 | { | 2236 | { | |
2237 | /* { | 2237 | /* { | |
2238 | syscallarg(int) fd; | 2238 | syscallarg(int) fd; | |
2239 | syscallarg(const netbsd32_charp) name; | 2239 | syscallarg(const netbsd32_charp) name; | |
2240 | syscallarg(netbsd32_voidp) value; | 2240 | syscallarg(netbsd32_voidp) value; | |
2241 | syscallarg(netbsd32_size_t) size; | 2241 | syscallarg(netbsd32_size_t) size; | |
2242 | } */ | 2242 | } */ | |
2243 | struct sys_fgetxattr_args ua; | 2243 | struct sys_fgetxattr_args ua; | |
2244 | 2244 | |||
2245 | NETBSD32TO64_UAP(fd); | 2245 | NETBSD32TO64_UAP(fd); | |
2246 | NETBSD32TOP_UAP(name, const char); | 2246 | NETBSD32TOP_UAP(name, const char); | |
2247 | NETBSD32TOP_UAP(value, void); | 2247 | NETBSD32TOP_UAP(value, void); | |
2248 | NETBSD32TOX_UAP(size, size_t); | 2248 | NETBSD32TOX_UAP(size, size_t); | |
2249 | 2249 | |||
2250 | return sys_fgetxattr(l, &ua, retval); | 2250 | return sys_fgetxattr(l, &ua, retval); | |
2251 | } | 2251 | } | |
2252 | 2252 | |||
2253 | int | 2253 | int | |
2254 | netbsd32_listxattr(struct lwp *l, const struct netbsd32_listxattr_args *uap, register_t *retval) | 2254 | netbsd32_listxattr(struct lwp *l, const struct netbsd32_listxattr_args *uap, register_t *retval) | |
2255 | { | 2255 | { | |
2256 | /* { | 2256 | /* { | |
2257 | syscallarg(const netbsd32_charp) path; | 2257 | syscallarg(const netbsd32_charp) path; | |
2258 | syscallarg(netbsd32_charp) list; | 2258 | syscallarg(netbsd32_charp) list; | |
2259 | syscallarg(netbsd32_size_t) size; | 2259 | syscallarg(netbsd32_size_t) size; | |
2260 | } */ | 2260 | } */ | |
2261 | struct sys_listxattr_args ua; | 2261 | struct sys_listxattr_args ua; | |
2262 | 2262 | |||
2263 | NETBSD32TOP_UAP(path, const char); | 2263 | NETBSD32TOP_UAP(path, const char); | |
2264 | NETBSD32TOP_UAP(list, char); | 2264 | NETBSD32TOP_UAP(list, char); | |
2265 | NETBSD32TOX_UAP(size, size_t); | 2265 | NETBSD32TOX_UAP(size, size_t); | |
2266 | 2266 | |||
2267 | return sys_listxattr(l, &ua, retval); | 2267 | return sys_listxattr(l, &ua, retval); | |
2268 | } | 2268 | } | |
2269 | 2269 | |||
2270 | int | 2270 | int | |
2271 | netbsd32_llistxattr(struct lwp *l, const struct netbsd32_llistxattr_args *uap, register_t *retval) | 2271 | netbsd32_llistxattr(struct lwp *l, const struct netbsd32_llistxattr_args *uap, register_t *retval) | |
2272 | { | 2272 | { | |
2273 | /* { | 2273 | /* { | |
2274 | syscallarg(const netbsd32_charp) path; | 2274 | syscallarg(const netbsd32_charp) path; | |
2275 | syscallarg(netbsd32_charp) list; | 2275 | syscallarg(netbsd32_charp) list; | |
2276 | syscallarg(netbsd32_size_t) size; | 2276 | syscallarg(netbsd32_size_t) size; | |
2277 | } */ | 2277 | } */ | |
2278 | struct sys_llistxattr_args ua; | 2278 | struct sys_llistxattr_args ua; | |
2279 | 2279 | |||
2280 | NETBSD32TOP_UAP(path, const char); | 2280 | NETBSD32TOP_UAP(path, const char); | |
2281 | NETBSD32TOP_UAP(list, char); | 2281 | NETBSD32TOP_UAP(list, char); | |
2282 | NETBSD32TOX_UAP(size, size_t); | 2282 | NETBSD32TOX_UAP(size, size_t); | |
2283 | 2283 | |||
2284 | return sys_llistxattr(l, &ua, retval); | 2284 | return sys_llistxattr(l, &ua, retval); | |
2285 | } | 2285 | } | |
2286 | 2286 | |||
2287 | int | 2287 | int | |
2288 | netbsd32_flistxattr(struct lwp *l, const struct netbsd32_flistxattr_args *uap, register_t *retval) | 2288 | netbsd32_flistxattr(struct lwp *l, const struct netbsd32_flistxattr_args *uap, register_t *retval) | |
2289 | { | 2289 | { | |
2290 | /* { | 2290 | /* { | |
2291 | syscallarg(int) fd; | 2291 | syscallarg(int) fd; | |
2292 | syscallarg(netbsd32_charp) list; | 2292 | syscallarg(netbsd32_charp) list; | |
2293 | syscallarg(netbsd32_size_t) size; | 2293 | syscallarg(netbsd32_size_t) size; | |
2294 | } */ | 2294 | } */ | |
2295 | struct sys_flistxattr_args ua; | 2295 | struct sys_flistxattr_args ua; | |
2296 | 2296 | |||
2297 | NETBSD32TO64_UAP(fd); | 2297 | NETBSD32TO64_UAP(fd); | |
2298 | NETBSD32TOP_UAP(list, char); | 2298 | NETBSD32TOP_UAP(list, char); | |
2299 | NETBSD32TOX_UAP(size, size_t); | 2299 | NETBSD32TOX_UAP(size, size_t); | |
2300 | 2300 | |||
2301 | return sys_flistxattr(l, &ua, retval); | 2301 | return sys_flistxattr(l, &ua, retval); | |
2302 | } | 2302 | } | |
2303 | 2303 | |||
2304 | int | 2304 | int | |
2305 | netbsd32_removexattr(struct lwp *l, const struct netbsd32_removexattr_args *uap, register_t *retval) | 2305 | netbsd32_removexattr(struct lwp *l, const struct netbsd32_removexattr_args *uap, register_t *retval) | |
2306 | { | 2306 | { | |
2307 | /* { | 2307 | /* { | |
2308 | syscallarg(const netbsd32_charp) path; | 2308 | syscallarg(const netbsd32_charp) path; | |
2309 | syscallarg(const netbsd32_charp) name; | 2309 | syscallarg(const netbsd32_charp) name; | |
2310 | } */ | 2310 | } */ | |
2311 | struct sys_removexattr_args ua; | 2311 | struct sys_removexattr_args ua; | |
2312 | 2312 | |||
2313 | NETBSD32TOP_UAP(path, const char); | 2313 | NETBSD32TOP_UAP(path, const char); | |
2314 | NETBSD32TOP_UAP(name, const char); | 2314 | NETBSD32TOP_UAP(name, const char); | |
2315 | 2315 | |||
2316 | return sys_removexattr(l, &ua, retval); | 2316 | return sys_removexattr(l, &ua, retval); | |
2317 | } | 2317 | } | |
2318 | 2318 | |||
2319 | int | 2319 | int | |
2320 | netbsd32_lremovexattr(struct lwp *l, const struct netbsd32_lremovexattr_args *uap, register_t *retval) | 2320 | netbsd32_lremovexattr(struct lwp *l, const struct netbsd32_lremovexattr_args *uap, register_t *retval) | |
2321 | { | 2321 | { | |
2322 | /* { | 2322 | /* { | |
2323 | syscallarg(const netbsd32_charp) path; | 2323 | syscallarg(const netbsd32_charp) path; | |
2324 | syscallarg(const netbsd32_charp) name; | 2324 | syscallarg(const netbsd32_charp) name; | |
2325 | } */ | 2325 | } */ | |
2326 | struct sys_lremovexattr_args ua; | 2326 | struct sys_lremovexattr_args ua; | |
2327 | NETBSD32TOP_UAP(path, const char); | 2327 | NETBSD32TOP_UAP(path, const char); | |
2328 | NETBSD32TOP_UAP(name, const char); | 2328 | NETBSD32TOP_UAP(name, const char); | |
2329 | return sys_lremovexattr(l, &ua, retval); | 2329 | return sys_lremovexattr(l, &ua, retval); | |
2330 | } | 2330 | } | |
2331 | 2331 | |||
2332 | int | 2332 | int | |
2333 | netbsd32_fremovexattr(struct lwp *l, const struct netbsd32_fremovexattr_args *uap, register_t *retval) | 2333 | netbsd32_fremovexattr(struct lwp *l, const struct netbsd32_fremovexattr_args *uap, register_t *retval) | |
2334 | { | 2334 | { | |
2335 | /* { | 2335 | /* { | |
2336 | syscallarg(int) fd; | 2336 | syscallarg(int) fd; | |
2337 | syscallarg(const netbsd32_charp) name; | 2337 | syscallarg(const netbsd32_charp) name; | |
2338 | } */ | 2338 | } */ | |
2339 | struct sys_fremovexattr_args ua; | 2339 | struct sys_fremovexattr_args ua; | |
2340 | 2340 | |||
2341 | NETBSD32TO64_UAP(fd); | 2341 | NETBSD32TO64_UAP(fd); | |
2342 | NETBSD32TOP_UAP(name, const char); | 2342 | NETBSD32TOP_UAP(name, const char); | |
2343 | 2343 | |||
2344 | return sys_fremovexattr(l, &ua, retval); | 2344 | return sys_fremovexattr(l, &ua, retval); | |
2345 | } | 2345 | } | |
2346 | 2346 | |||
2347 | int | 2347 | int | |
2348 | netbsd32___posix_fadvise50(struct lwp *l, | 2348 | netbsd32___posix_fadvise50(struct lwp *l, | |
2349 | const struct netbsd32___posix_fadvise50_args *uap, register_t *retval) | 2349 | const struct netbsd32___posix_fadvise50_args *uap, register_t *retval) | |
2350 | { | 2350 | { | |
2351 | /* { | 2351 | /* { | |
2352 | syscallarg(int) fd; | 2352 | syscallarg(int) fd; | |
2353 | syscallarg(int) PAD; | 2353 | syscallarg(int) PAD; | |
2354 | syscallarg(netbsd32_off_t) offset; | 2354 | syscallarg(netbsd32_off_t) offset; | |
2355 | syscallarg(netbsd32_off_t) len; | 2355 | syscallarg(netbsd32_off_t) len; | |
2356 | syscallarg(int) advice; | 2356 | syscallarg(int) advice; | |
2357 | } */ | 2357 | } */ | |
2358 | 2358 | |||
2359 | *retval = do_posix_fadvise(SCARG(uap, fd), SCARG(uap, offset), | 2359 | *retval = do_posix_fadvise(SCARG(uap, fd), SCARG(uap, offset), | |
2360 | SCARG(uap, len), SCARG(uap, advice)); | 2360 | SCARG(uap, len), SCARG(uap, advice)); | |
2361 | 2361 | |||
2362 | return 0; | 2362 | return 0; | |
2363 | } | 2363 | } | |
2364 | 2364 | |||
2365 | int | 2365 | int | |
2366 | netbsd32__sched_setparam(struct lwp *l, | 2366 | netbsd32__sched_setparam(struct lwp *l, | |
2367 | const struct netbsd32__sched_setparam_args *uap, | 2367 | const struct netbsd32__sched_setparam_args *uap, | |
2368 | register_t *retval) | 2368 | register_t *retval) | |
2369 | { | 2369 | { | |
2370 | /* { | 2370 | /* { | |
2371 | syscallarg(pid_t) pid; | 2371 | syscallarg(pid_t) pid; | |
2372 | syscallarg(lwpid_t) lid; | 2372 | syscallarg(lwpid_t) lid; | |
2373 | syscallarg(int) policy; | 2373 | syscallarg(int) policy; | |
2374 | syscallarg(const netbsd32_sched_paramp_t) params; | 2374 | syscallarg(const netbsd32_sched_paramp_t) params; | |
2375 | } */ | 2375 | } */ | |
2376 | struct sys__sched_setparam_args ua; | 2376 | struct sys__sched_setparam_args ua; | |
2377 | 2377 | |||
2378 | NETBSD32TO64_UAP(pid); | 2378 | NETBSD32TO64_UAP(pid); | |
2379 | NETBSD32TO64_UAP(lid); | 2379 | NETBSD32TO64_UAP(lid); | |
2380 | NETBSD32TO64_UAP(policy); | 2380 | NETBSD32TO64_UAP(policy); | |
2381 | NETBSD32TOP_UAP(params, const struct sched_param *); | 2381 | NETBSD32TOP_UAP(params, const struct sched_param *); | |
2382 | 2382 | |||
2383 | return sys__sched_setparam(l, &ua, retval); | 2383 | return sys__sched_setparam(l, &ua, retval); | |
2384 | } | 2384 | } | |
2385 | 2385 | |||
2386 | int | 2386 | int | |
2387 | netbsd32__sched_getparam(struct lwp *l, | 2387 | netbsd32__sched_getparam(struct lwp *l, | |
2388 | const struct netbsd32__sched_getparam_args *uap, | 2388 | const struct netbsd32__sched_getparam_args *uap, | |
2389 | register_t *retval) | 2389 | register_t *retval) | |
2390 | { | 2390 | { | |
2391 | /* { | 2391 | /* { | |
2392 | syscallarg(pid_t) pid; | 2392 | syscallarg(pid_t) pid; | |
2393 | syscallarg(lwpid_t) lid; | 2393 | syscallarg(lwpid_t) lid; | |
2394 | syscallarg(netbsd32_intp) policy; | 2394 | syscallarg(netbsd32_intp) policy; | |
2395 | syscallarg(netbsd32_sched_paramp_t) params; | 2395 | syscallarg(netbsd32_sched_paramp_t) params; | |
2396 | } */ | 2396 | } */ | |
2397 | struct sys__sched_getparam_args ua; | 2397 | struct sys__sched_getparam_args ua; | |
2398 | 2398 | |||
2399 | NETBSD32TO64_UAP(pid); | 2399 | NETBSD32TO64_UAP(pid); | |
2400 | NETBSD32TO64_UAP(lid); | 2400 | NETBSD32TO64_UAP(lid); | |
2401 | NETBSD32TOP_UAP(policy, int *); | 2401 | NETBSD32TOP_UAP(policy, int *); | |
2402 | NETBSD32TOP_UAP(params, struct sched_param *); | 2402 | NETBSD32TOP_UAP(params, struct sched_param *); | |
2403 | 2403 | |||
2404 | return sys__sched_getparam(l, &ua, retval); | 2404 | return sys__sched_getparam(l, &ua, retval); | |
2405 | } | 2405 | } | |
2406 | 2406 | |||
2407 | int | 2407 | int | |
2408 | netbsd32__sched_setaffinity(struct lwp *l, | 2408 | netbsd32__sched_setaffinity(struct lwp *l, | |
2409 | const struct netbsd32__sched_setaffinity_args *uap, | 2409 | const struct netbsd32__sched_setaffinity_args *uap, | |
2410 | register_t *retval) | 2410 | register_t *retval) | |
2411 | { | 2411 | { | |
2412 | /* { | 2412 | /* { | |
2413 | syscallarg(pid_t) pid; | 2413 | syscallarg(pid_t) pid; | |
2414 | syscallarg(lwpid_t) lid; | 2414 | syscallarg(lwpid_t) lid; | |
2415 | syscallarg(netbsd_size_t) size; | 2415 | syscallarg(netbsd_size_t) size; | |
2416 | syscallarg(const netbsd32_cpusetp_t) cpuset; | 2416 | syscallarg(const netbsd32_cpusetp_t) cpuset; | |
2417 | } */ | 2417 | } */ | |
2418 | struct sys__sched_setaffinity_args ua; | 2418 | struct sys__sched_setaffinity_args ua; | |
2419 | 2419 | |||
2420 | NETBSD32TO64_UAP(pid); | 2420 | NETBSD32TO64_UAP(pid); | |
2421 | NETBSD32TO64_UAP(lid); | 2421 | NETBSD32TO64_UAP(lid); | |
2422 | NETBSD32TOX_UAP(size, size_t); | 2422 | NETBSD32TOX_UAP(size, size_t); | |
2423 | NETBSD32TOP_UAP(cpuset, const cpuset_t *); | 2423 | NETBSD32TOP_UAP(cpuset, const cpuset_t *); | |
2424 | 2424 | |||
2425 | return sys__sched_setaffinity(l, &ua, retval); | 2425 | return sys__sched_setaffinity(l, &ua, retval); | |
2426 | } | 2426 | } | |
2427 | 2427 | |||
2428 | int | 2428 | int | |
2429 | netbsd32__sched_getaffinity(struct lwp *l, | 2429 | netbsd32__sched_getaffinity(struct lwp *l, | |
2430 | const struct netbsd32__sched_getaffinity_args *uap, | 2430 | const struct netbsd32__sched_getaffinity_args *uap, | |
2431 | register_t *retval) | 2431 | register_t *retval) | |
2432 | { | 2432 | { | |
2433 | /* { | 2433 | /* { | |
2434 | syscallarg(pid_t) pid; | 2434 | syscallarg(pid_t) pid; | |
2435 | syscallarg(lwpid_t) lid; | 2435 | syscallarg(lwpid_t) lid; | |
2436 | syscallarg(netbsd_size_t) size; | 2436 | syscallarg(netbsd_size_t) size; | |
2437 | syscallarg(netbsd32_cpusetp_t) cpuset; | 2437 | syscallarg(netbsd32_cpusetp_t) cpuset; | |
2438 | } */ | 2438 | } */ | |
2439 | struct sys__sched_getaffinity_args ua; | 2439 | struct sys__sched_getaffinity_args ua; | |
2440 | 2440 | |||
2441 | NETBSD32TO64_UAP(pid); | 2441 | NETBSD32TO64_UAP(pid); | |
2442 | NETBSD32TO64_UAP(lid); | 2442 | NETBSD32TO64_UAP(lid); | |
2443 | NETBSD32TOX_UAP(size, size_t); | 2443 | NETBSD32TOX_UAP(size, size_t); | |
2444 | NETBSD32TOP_UAP(cpuset, cpuset_t *); | 2444 | NETBSD32TOP_UAP(cpuset, cpuset_t *); | |
2445 | 2445 | |||
2446 | return sys__sched_getaffinity(l, &ua, retval); | 2446 | return sys__sched_getaffinity(l, &ua, retval); | |
2447 | } | 2447 | } | |
2448 | 2448 | |||
2449 | int | 2449 | int | |
2450 | netbsd32__sched_protect(struct lwp *l, | 2450 | netbsd32__sched_protect(struct lwp *l, | |
2451 | const struct netbsd32__sched_protect_args *uap, | 2451 | const struct netbsd32__sched_protect_args *uap, | |
2452 | register_t *retval) | 2452 | register_t *retval) | |
2453 | { | 2453 | { | |
2454 | /* { | 2454 | /* { | |
2455 | syscallarg(int) priority; | 2455 | syscallarg(int) priority; | |
2456 | } */ | 2456 | } */ | |
2457 | struct sys__sched_protect_args ua; | 2457 | struct sys__sched_protect_args ua; | |
2458 | 2458 | |||
2459 | NETBSD32TO64_UAP(priority); | 2459 | NETBSD32TO64_UAP(priority); | |
2460 | 2460 | |||
2461 | return sys__sched_protect(l, &ua, retval); | 2461 | return sys__sched_protect(l, &ua, retval); | |
2462 | } | 2462 | } | |
2463 | 2463 | |||
2464 | int | 2464 | int | |
2465 | netbsd32_dup3(struct lwp *l, const struct netbsd32_dup3_args *uap, | 2465 | netbsd32_dup3(struct lwp *l, const struct netbsd32_dup3_args *uap, | |
2466 | register_t *retval) | 2466 | register_t *retval) | |
2467 | { | 2467 | { | |
2468 | /* { | 2468 | /* { | |
2469 | syscallarg(int) from; | 2469 | syscallarg(int) from; | |
2470 | syscallarg(int) to; | 2470 | syscallarg(int) to; | |
2471 | syscallarg(int) flags; | 2471 | syscallarg(int) flags; | |
2472 | } */ | 2472 | } */ | |
2473 | struct sys_dup3_args ua; | 2473 | struct sys_dup3_args ua; | |
2474 | 2474 | |||
2475 | NETBSD32TO64_UAP(from); | 2475 | NETBSD32TO64_UAP(from); | |
2476 | NETBSD32TO64_UAP(to); | 2476 | NETBSD32TO64_UAP(to); | |
2477 | NETBSD32TO64_UAP(flags); | 2477 | NETBSD32TO64_UAP(flags); | |
2478 | 2478 | |||
2479 | return sys_dup3(l, &ua, retval); | 2479 | return sys_dup3(l, &ua, retval); | |
2480 | } | 2480 | } | |
2481 | 2481 | |||
2482 | int | 2482 | int | |
2483 | netbsd32_kqueue1(struct lwp *l, const struct netbsd32_kqueue1_args *uap, | 2483 | netbsd32_kqueue1(struct lwp *l, const struct netbsd32_kqueue1_args *uap, | |
2484 | register_t *retval) | 2484 | register_t *retval) | |
2485 | { | 2485 | { | |
2486 | /* { | 2486 | /* { | |
2487 | syscallarg(int) flags; | 2487 | syscallarg(int) flags; | |
2488 | } */ | 2488 | } */ | |
2489 | struct sys_kqueue1_args ua; | 2489 | struct sys_kqueue1_args ua; | |
2490 | 2490 | |||
2491 | NETBSD32TO64_UAP(flags); | 2491 | NETBSD32TO64_UAP(flags); | |
2492 | 2492 | |||
2493 | return sys_kqueue1(l, &ua, retval); | 2493 | return sys_kqueue1(l, &ua, retval); | |
2494 | } | 2494 | } | |
2495 | 2495 | |||
2496 | int | 2496 | int | |
2497 | netbsd32_paccept(struct lwp *l, const struct netbsd32_paccept_args *uap, | 2497 | netbsd32_paccept(struct lwp *l, const struct netbsd32_paccept_args *uap, | |
2498 | register_t *retval) | 2498 | register_t *retval) | |
2499 | { | 2499 | { | |
2500 | /* { | 2500 | /* { | |
2501 | syscallarg(int) s; | 2501 | syscallarg(int) s; | |
2502 | syscallarg(netbsd32_sockaddrp_t) name; | 2502 | syscallarg(netbsd32_sockaddrp_t) name; | |
2503 | syscallarg(netbsd32_socklenp_t) anamelen; | 2503 | syscallarg(netbsd32_socklenp_t) anamelen; | |
2504 | syscallarg(const netbsd32_sigsetp_t) mask; | 2504 | syscallarg(const netbsd32_sigsetp_t) mask; | |
2505 | syscallarg(int) flags; | 2505 | syscallarg(int) flags; | |
2506 | } */ | 2506 | } */ | |
2507 | struct sys_paccept_args ua; | 2507 | struct sys_paccept_args ua; | |
2508 | 2508 | |||
2509 | NETBSD32TO64_UAP(s); | 2509 | NETBSD32TO64_UAP(s); | |
2510 | NETBSD32TOP_UAP(name, struct sockaddr *); | 2510 | NETBSD32TOP_UAP(name, struct sockaddr *); | |
2511 | NETBSD32TOP_UAP(anamelen, socklen_t *); | 2511 | NETBSD32TOP_UAP(anamelen, socklen_t *); | |
2512 | NETBSD32TOP_UAP(mask, const sigset_t *); | 2512 | NETBSD32TOP_UAP(mask, const sigset_t *); | |
2513 | NETBSD32TO64_UAP(flags); | 2513 | NETBSD32TO64_UAP(flags); | |
2514 | 2514 | |||
2515 | return sys_paccept(l, &ua, retval); | 2515 | return sys_paccept(l, &ua, retval); | |
2516 | } | 2516 | } | |
2517 | 2517 | |||
2518 | int | 2518 | int | |
2519 | netbsd32_fdiscard(struct lwp *l, const struct netbsd32_fdiscard_args *uap, | 2519 | netbsd32_fdiscard(struct lwp *l, const struct netbsd32_fdiscard_args *uap, | |
2520 | register_t *retval) | 2520 | register_t *retval) | |
2521 | { | 2521 | { | |
2522 | /* { | 2522 | /* { | |
2523 | syscallarg(int) fd; | 2523 | syscallarg(int) fd; | |
2524 | syscallarg(netbsd32_off_t) pos; | 2524 | syscallarg(netbsd32_off_t) pos; | |
2525 | syscallarg(netbsd32_off_t) len; | 2525 | syscallarg(netbsd32_off_t) len; | |
2526 | } */ | 2526 | } */ | |
2527 | struct sys_fdiscard_args ua; | 2527 | struct sys_fdiscard_args ua; | |
2528 | 2528 | |||
2529 | NETBSD32TO64_UAP(fd); | 2529 | NETBSD32TO64_UAP(fd); | |
2530 | NETBSD32TO64_UAP(pos); | 2530 | NETBSD32TO64_UAP(pos); | |
2531 | NETBSD32TO64_UAP(len); | 2531 | NETBSD32TO64_UAP(len); | |
2532 | 2532 | |||
2533 | return sys_fdiscard(l, &ua, retval); | 2533 | return sys_fdiscard(l, &ua, retval); | |
2534 | } | 2534 | } | |
2535 | 2535 | |||
2536 | int | 2536 | int | |
2537 | netbsd32_posix_fallocate(struct lwp *l, const struct netbsd32_posix_fallocate_args *uap, | 2537 | netbsd32_posix_fallocate(struct lwp *l, const struct netbsd32_posix_fallocate_args *uap, | |
2538 | register_t *retval) | 2538 | register_t *retval) | |
2539 | { | 2539 | { | |
2540 | /* { | 2540 | /* { | |
2541 | syscallarg(int) fd; | 2541 | syscallarg(int) fd; | |
2542 | syscallarg(netbsd32_off_t) pos; | 2542 | syscallarg(netbsd32_off_t) pos; | |
2543 | syscallarg(netbsd32_off_t) len; | 2543 | syscallarg(netbsd32_off_t) len; | |
2544 | } */ | 2544 | } */ | |
2545 | struct sys_posix_fallocate_args ua; | 2545 | struct sys_posix_fallocate_args ua; | |
2546 | 2546 | |||
2547 | NETBSD32TO64_UAP(fd); | 2547 | NETBSD32TO64_UAP(fd); | |
2548 | NETBSD32TO64_UAP(pos); | 2548 | NETBSD32TO64_UAP(pos); | |
2549 | NETBSD32TO64_UAP(len); | 2549 | NETBSD32TO64_UAP(len); | |
2550 | 2550 | |||
2551 | return sys_posix_fallocate(l, &ua, retval); | 2551 | return sys_posix_fallocate(l, &ua, retval); | |
2552 | } | 2552 | } | |
2553 | 2553 | |||
2554 | int | 2554 | int | |
2555 | netbsd32_pset_create(struct lwp *l, | 2555 | netbsd32_pset_create(struct lwp *l, | |
2556 | const struct netbsd32_pset_create_args *uap, register_t *retval) | 2556 | const struct netbsd32_pset_create_args *uap, register_t *retval) | |
2557 | { | 2557 | { | |
2558 | /* { | 2558 | /* { | |
2559 | syscallarg(netbsd32_psetidp_t) psid; | 2559 | syscallarg(netbsd32_psetidp_t) psid; | |
2560 | }; */ | 2560 | }; */ | |
2561 | struct sys_pset_create_args ua; | 2561 | struct sys_pset_create_args ua; | |
2562 | 2562 | |||
2563 | NETBSD32TOP_UAP(psid, psetid_t); | 2563 | NETBSD32TOP_UAP(psid, psetid_t); | |
2564 | 2564 | |||
2565 | return sys_pset_create(l, &ua, retval); | 2565 | return sys_pset_create(l, &ua, retval); | |
2566 | } | 2566 | } | |
2567 | 2567 | |||
2568 | int | 2568 | int | |
2569 | netbsd32_pset_destroy(struct lwp *l, | 2569 | netbsd32_pset_destroy(struct lwp *l, | |
2570 | const struct netbsd32_pset_destroy_args *uap, register_t *retval) | 2570 | const struct netbsd32_pset_destroy_args *uap, register_t *retval) | |
2571 | { | 2571 | { | |
2572 | /* { | 2572 | /* { | |
2573 | syscallarg(psetid_t) psid; | 2573 | syscallarg(psetid_t) psid; | |
2574 | }; */ | 2574 | }; */ | |
2575 | 2575 | |||
2576 | return sys_pset_destroy(l, (const void *)uap, retval); | 2576 | return sys_pset_destroy(l, (const void *)uap, retval); | |
2577 | } | 2577 | } | |
2578 | 2578 | |||
2579 | int | 2579 | int | |
2580 | netbsd32_pset_assign(struct lwp *l, | 2580 | netbsd32_pset_assign(struct lwp *l, | |
2581 | const struct netbsd32_pset_assign_args *uap, register_t *retval) | 2581 | const struct netbsd32_pset_assign_args *uap, register_t *retval) | |
2582 | { | 2582 | { | |
2583 | /* { | 2583 | /* { | |
2584 | syscallarg(psetid_t) psid; | 2584 | syscallarg(psetid_t) psid; | |
2585 | syscallarg(cpuid_t) cpuid; | 2585 | syscallarg(cpuid_t) cpuid; | |
2586 | syscallarg(netbsd32_psetidp_t) opsid; | 2586 | syscallarg(netbsd32_psetidp_t) opsid; | |
2587 | }; */ | 2587 | }; */ | |
2588 | struct sys_pset_assign_args ua; | 2588 | struct sys_pset_assign_args ua; | |
2589 | 2589 | |||
2590 | SCARG(&ua, psid) = SCARG(uap, psid); | 2590 | SCARG(&ua, psid) = SCARG(uap, psid); | |
2591 | NETBSD32TO64_UAP(cpuid); | 2591 | NETBSD32TO64_UAP(cpuid); | |
2592 | NETBSD32TOP_UAP(opsid, psetid_t); | 2592 | NETBSD32TOP_UAP(opsid, psetid_t); | |
2593 | 2593 | |||
2594 | return sys_pset_assign(l, &ua, retval); | 2594 | return sys_pset_assign(l, &ua, retval); | |
2595 | } | 2595 | } | |
2596 | 2596 | |||
2597 | int | 2597 | int | |
2598 | netbsd32__pset_bind(struct lwp *l, | 2598 | netbsd32__pset_bind(struct lwp *l, | |
2599 | const struct netbsd32__pset_bind_args *uap, register_t *retval) | 2599 | const struct netbsd32__pset_bind_args *uap, register_t *retval) | |
2600 | { | 2600 | { | |
2601 | /* { | 2601 | /* { | |
2602 | syscallarg(idtype_t) idtype; | 2602 | syscallarg(idtype_t) idtype; | |
2603 | syscallarg(id_t) first_id; | 2603 | syscallarg(id_t) first_id; | |
2604 | syscallarg(id_t) second_id; | 2604 | syscallarg(id_t) second_id; | |
2605 | syscallarg(psetid_t) psid; | 2605 | syscallarg(psetid_t) psid; | |
2606 | syscallarg(netbsd32_psetidp_t) opsid; | 2606 | syscallarg(netbsd32_psetidp_t) opsid; | |
2607 | }; */ | 2607 | }; */ | |
2608 | struct sys__pset_bind_args ua; | 2608 | struct sys__pset_bind_args ua; | |
2609 | 2609 | |||
2610 | SCARG(&ua, idtype) = SCARG(uap, idtype); | 2610 | SCARG(&ua, idtype) = SCARG(uap, idtype); | |
2611 | SCARG(&ua, first_id) = SCARG(uap, first_id); | 2611 | SCARG(&ua, first_id) = SCARG(uap, first_id); | |
2612 | SCARG(&ua, second_id) = SCARG(uap, second_id); | 2612 | SCARG(&ua, second_id) = SCARG(uap, second_id); | |
2613 | SCARG(&ua, psid) = SCARG(uap, psid); | 2613 | SCARG(&ua, psid) = SCARG(uap, psid); | |
2614 | NETBSD32TOP_UAP(opsid, psetid_t); | 2614 | NETBSD32TOP_UAP(opsid, psetid_t); | |
2615 | 2615 | |||
2616 | return sys__pset_bind(l, &ua, retval); | 2616 | return sys__pset_bind(l, &ua, retval); | |
2617 | } | 2617 | } | |
2618 | 2618 | |||
2619 | int | 2619 | int | |
2620 | netbsd32_getrandom(struct lwp *l, const struct netbsd32_getrandom_args *uap, | 2620 | netbsd32_getrandom(struct lwp *l, const struct netbsd32_getrandom_args *uap, | |
2621 | register_t *retval) | 2621 | register_t *retval) | |
2622 | { | 2622 | { | |
2623 | /* { | 2623 | /* { | |
2624 | syscallarg(netbsd32_voidp) buf; | 2624 | syscallarg(netbsd32_voidp) buf; | |
2625 | syscallarg(netbsd32_size_t) buflen; | 2625 | syscallarg(netbsd32_size_t) buflen; | |
2626 | syscallarg(unsigned) flags; | 2626 | syscallarg(unsigned) flags; | |
2627 | } */ | 2627 | } */ | |
2628 | struct sys_getrandom_args ua; | 2628 | struct sys_getrandom_args ua; | |
2629 | 2629 | |||
2630 | NETBSD32TOP_UAP(buf, void *); | 2630 | NETBSD32TOP_UAP(buf, void *); | |
2631 | NETBSD32TOX_UAP(buflen, size_t); | 2631 | NETBSD32TOX_UAP(buflen, size_t); | |
2632 | NETBSD32TO64_UAP(flags); | 2632 | NETBSD32TO64_UAP(flags); | |
2633 | return sys_getrandom(l, &ua, retval); | 2633 | return sys_getrandom(l, &ua, retval); | |
2634 | } | 2634 | } | |
2635 | 2635 | |||
2636 | int | 2636 | int | |
2637 | netbsd32_eventfd(struct lwp *l, | 2637 | netbsd32_eventfd(struct lwp *l, | |
2638 | const struct netbsd32_eventfd_args *uap, register_t *retval) | 2638 | const struct netbsd32_eventfd_args *uap, register_t *retval) | |
2639 | { | 2639 | { | |
2640 | /* { | 2640 | /* { | |
2641 | syscallarg(unsigned int) val; | 2641 | syscallarg(unsigned int) val; | |
2642 | syscallarg(int) flags; | 2642 | syscallarg(int) flags; | |
2643 | } */ | 2643 | } */ | |
2644 | struct sys_eventfd_args ua; | 2644 | struct sys_eventfd_args ua; | |
2645 | 2645 | |||
2646 | NETBSD32TO64_UAP(val); | 2646 | NETBSD32TO64_UAP(val); | |
2647 | NETBSD32TO64_UAP(flags); | 2647 | NETBSD32TO64_UAP(flags); | |
2648 | return sys_eventfd(l, &ua, retval); | 2648 | return sys_eventfd(l, &ua, retval); | |
2649 | } | 2649 | } | |
2650 | 2650 | |||
2651 | int | |||
2652 | netbsd32_memfd_create(struct lwp *l, | |||
2653 | const struct netbsd32_memfd_create_args *uap, register_t *retval) | |||
2654 | { | |||
2655 | /* { | |||
2656 | syscallarg(const netbsd32_charp) name; | |||
2657 | syscallarg(unsigned int) flags; | |||
2658 | } */ | |||
2659 | struct sys_memfd_create_args ua; | |||
2660 | ||||
2661 | NETBSD32TOP_UAP(name, const char); | |||
2662 | NETBSD32TO64_UAP(flags); | |||
2663 | return sys_memfd_create(l, &ua, retval); | |||
2664 | } | |||
2665 | ||||
2651 | /* | 2666 | /* | |
2652 | * MI indirect system call support. | 2667 | * MI indirect system call support. | |
2653 | * Only used if the MD netbsd32_syscall.c doesn't intercept the calls. | 2668 | * Only used if the MD netbsd32_syscall.c doesn't intercept the calls. | |
2654 | */ | 2669 | */ | |
2655 | 2670 | |||
2656 | #define NETBSD32_SYSCALL | 2671 | #define NETBSD32_SYSCALL | |
2657 | #undef SYS_NSYSENT | 2672 | #undef SYS_NSYSENT | |
2658 | #define SYS_NSYSENT NETBSD32_SYS_NSYSENT | 2673 | #define SYS_NSYSENT NETBSD32_SYS_NSYSENT | |
2659 | 2674 | |||
2660 | #define SYS_SYSCALL netbsd32_syscall | 2675 | #define SYS_SYSCALL netbsd32_syscall | |
2661 | #include "../../kern/sys_syscall.c" | 2676 | #include "../../kern/sys_syscall.c" | |
2662 | #undef SYS_SYSCALL | 2677 | #undef SYS_SYSCALL | |
2663 | 2678 | |||
2664 | #define SYS_SYSCALL netbsd32____syscall | 2679 | #define SYS_SYSCALL netbsd32____syscall | |
2665 | #include "../../kern/sys_syscall.c" | 2680 | #include "../../kern/sys_syscall.c" | |
2666 | #undef SYS_SYSCALL | 2681 | #undef SYS_SYSCALL |
--- src/sys/compat/netbsd32/syscalls.master 2023/07/29 12:38:25 1.142
+++ src/sys/compat/netbsd32/syscalls.master 2023/07/30 05:30:45 1.143
@@ -1,1226 +1,1227 @@ | @@ -1,1226 +1,1227 @@ | |||
1 | $NetBSD: syscalls.master,v 1.142 2023/07/29 12:38:25 rin Exp $ | 1 | $NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin 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: | |
15 | ; STD always included | 15 | ; STD always included | |
16 | ; OBSOL obsolete, not included in system | 16 | ; OBSOL obsolete, not included in system | |
17 | ; IGNORED syscall is a null op, but always succeeds | 17 | ; IGNORED syscall is a null op, but always succeeds | |
18 | ; UNIMPL unimplemented, not included in system | 18 | ; UNIMPL unimplemented, not included in system | |
19 | ; EXCL implemented, but not included in system | 19 | ; EXCL implemented, but not included in system | |
20 | ; NODEF included, but don't define the syscall number | 20 | ; NODEF included, but don't define the syscall number | |
21 | ; NOARGS included, but don't define the syscall args structure | 21 | ; NOARGS included, but don't define the syscall args structure | |
22 | ; INDIR 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. | 23 | ; and allow it to be "really" varargs. | |
24 | ; | 24 | ; | |
25 | ; The compat options are defined in the syscalls.conf file, and the | 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 | 26 | ; compat option name is prefixed to the syscall name. Other than | |
27 | ; that, they're like NODEF (for 'compat' options), or STD (for | 27 | ; that, they're like NODEF (for 'compat' options), or STD (for | |
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_ntp.h" | 41 | #include "opt_ntp.h" | |
42 | #include "opt_compat_43.h" | 42 | #include "opt_compat_43.h" | |
43 | #include "opt_quota.h" | 43 | #include "opt_quota.h" | |
44 | #endif | 44 | #endif | |
45 | 45 | |||
46 | #include <sys/param.h> | 46 | #include <sys/param.h> | |
47 | #include <sys/systm.h> | 47 | #include <sys/systm.h> | |
48 | #include <sys/signal.h> | 48 | #include <sys/signal.h> | |
49 | #include <sys/mount.h> | 49 | #include <sys/mount.h> | |
50 | #include <sys/syscallargs.h> | 50 | #include <sys/syscallargs.h> | |
51 | 51 | |||
52 | #include <compat/netbsd32/netbsd32.h> | 52 | #include <compat/netbsd32/netbsd32.h> | |
53 | #include <compat/netbsd32/netbsd32_syscall.h> | 53 | #include <compat/netbsd32/netbsd32_syscall.h> | |
54 | #include <compat/netbsd32/netbsd32_syscallargs.h> | 54 | #include <compat/netbsd32/netbsd32_syscallargs.h> | |
55 | 55 | |||
56 | %% | 56 | %% | |
57 | 57 | |||
58 | ; Reserved/unimplemented system calls in the range 0-150 inclusive | 58 | ; Reserved/unimplemented system calls in the range 0-150 inclusive | |
59 | ; are reserved for use in future Berkeley releases. | 59 | ; are reserved for use in future Berkeley releases. | |
60 | ; Additional system calls implemented in vendor and other | 60 | ; Additional system calls implemented in vendor and other | |
61 | ; redistributions should be placed in the reserved range at the end | 61 | ; redistributions should be placed in the reserved range at the end | |
62 | ; of the current calls. | 62 | ; of the current calls. | |
63 | 63 | |||
64 | 0 INDIR { int|netbsd32||syscall(int code, \ | 64 | 0 INDIR { int|netbsd32||syscall(int code, \ | |
65 | ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } | 65 | ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } | |
66 | 1 STD { void|netbsd32||exit(int rval); } | 66 | 1 STD { void|netbsd32||exit(int rval); } | |
67 | 2 NOARGS { int|sys||fork(void); } | 67 | 2 NOARGS { int|sys||fork(void); } | |
68 | 3 STD { netbsd32_ssize_t|netbsd32||read(int fd, \ | 68 | 3 STD { netbsd32_ssize_t|netbsd32||read(int fd, \ | |
69 | netbsd32_voidp buf, netbsd32_size_t nbyte); } | 69 | netbsd32_voidp buf, netbsd32_size_t nbyte); } | |
70 | 4 STD { netbsd32_ssize_t|netbsd32||write(int fd, \ | 70 | 4 STD { netbsd32_ssize_t|netbsd32||write(int fd, \ | |
71 | netbsd32_voidp buf, netbsd32_size_t nbyte); } | 71 | netbsd32_voidp buf, netbsd32_size_t nbyte); } | |
72 | 5 STD { int|netbsd32||open(netbsd32_charp path, int flags, \ | 72 | 5 STD { int|netbsd32||open(netbsd32_charp path, int flags, \ | |
73 | ... mode_t mode); } | 73 | ... mode_t mode); } | |
74 | 6 STD { int|netbsd32||close(int fd); } | 74 | 6 STD { int|netbsd32||close(int fd); } | |
75 | 7 COMPAT_50 MODULAR compat_netbsd32_50 \ | 75 | 7 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
76 | { int|netbsd32||wait4(int pid, netbsd32_intp status, \ | 76 | { int|netbsd32||wait4(int pid, netbsd32_intp status, \ | |
77 | int options, netbsd32_rusage50p_t rusage); } | 77 | int options, netbsd32_rusage50p_t rusage); } | |
78 | 8 COMPAT_43 MODULAR compat_netbsd32_43 \ | 78 | 8 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
79 | { int|netbsd32||ocreat(netbsd32_charp path, \ | 79 | { int|netbsd32||ocreat(netbsd32_charp path, \ | |
80 | mode_t mode); } | 80 | mode_t mode); } | |
81 | 9 STD { int|netbsd32||link(netbsd32_charp path, \ | 81 | 9 STD { int|netbsd32||link(netbsd32_charp path, \ | |
82 | netbsd32_charp link); } | 82 | netbsd32_charp link); } | |
83 | 10 STD { int|netbsd32||unlink(netbsd32_charp path); } | 83 | 10 STD { int|netbsd32||unlink(netbsd32_charp path); } | |
84 | 11 OBSOL execv | 84 | 11 OBSOL execv | |
85 | 12 STD { int|netbsd32||chdir(netbsd32_charp path); } | 85 | 12 STD { int|netbsd32||chdir(netbsd32_charp path); } | |
86 | 13 STD { int|netbsd32||fchdir(int fd); } | 86 | 13 STD { int|netbsd32||fchdir(int fd); } | |
87 | 14 COMPAT_50 MODULAR compat_netbsd32_50 \ | 87 | 14 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
88 | { int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \ | 88 | { int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \ | |
89 | uint32_t dev); } | 89 | uint32_t dev); } | |
90 | 15 STD { int|netbsd32||chmod(netbsd32_charp path, mode_t mode); } | 90 | 15 STD { int|netbsd32||chmod(netbsd32_charp path, mode_t mode); } | |
91 | 16 STD { int|netbsd32||chown(netbsd32_charp path, uid_t uid, \ | 91 | 16 STD { int|netbsd32||chown(netbsd32_charp path, uid_t uid, \ | |
92 | gid_t gid); } | 92 | gid_t gid); } | |
93 | 17 STD { int|netbsd32||break(netbsd32_charp nsize); } | 93 | 17 STD { int|netbsd32||break(netbsd32_charp nsize); } | |
94 | 18 COMPAT_20 MODULAR compat_netbsd32_20 \ | 94 | 18 COMPAT_20 MODULAR compat_netbsd32_20 \ | |
95 | { int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \ | 95 | { int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \ | |
96 | netbsd32_long bufsize, int flags); } | 96 | netbsd32_long bufsize, int flags); } | |
97 | 19 COMPAT_43 MODULAR compat_netbsd32_43 \ | 97 | 19 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
98 | { netbsd32_long|netbsd32||olseek(int fd, \ | 98 | { netbsd32_long|netbsd32||olseek(int fd, \ | |
99 | netbsd32_long offset, int whence); } | 99 | netbsd32_long offset, int whence); } | |
100 | 20 NOARGS { pid_t|sys||getpid_with_ppid(void); } getpid | 100 | 20 NOARGS { pid_t|sys||getpid_with_ppid(void); } getpid | |
101 | 21 COMPAT_40 MODULAR compat_netbsd32_40 \ | 101 | 21 COMPAT_40 MODULAR compat_netbsd32_40 \ | |
102 | { int|netbsd32||mount(netbsd32_charp type, \ | 102 | { int|netbsd32||mount(netbsd32_charp type, \ | |
103 | netbsd32_charp path, int flags, \ | 103 | netbsd32_charp path, int flags, \ | |
104 | netbsd32_voidp data); } | 104 | netbsd32_voidp data); } | |
105 | 22 STD { int|netbsd32||unmount(netbsd32_charp path, \ | 105 | 22 STD { int|netbsd32||unmount(netbsd32_charp path, \ | |
106 | int flags); } | 106 | int flags); } | |
107 | 23 STD { int|netbsd32||setuid(uid_t uid); } | 107 | 23 STD { int|netbsd32||setuid(uid_t uid); } | |
108 | 24 NOARGS { uid_t|sys||getuid_with_euid(void); } getuid | 108 | 24 NOARGS { uid_t|sys||getuid_with_euid(void); } getuid | |
109 | 25 NOARGS { uid_t|sys||geteuid(void); } | 109 | 25 NOARGS { uid_t|sys||geteuid(void); } | |
110 | 26 STD MODULAR compat_netbsd32_ptrace \ | 110 | 26 STD MODULAR compat_netbsd32_ptrace \ | |
111 | { int|netbsd32||ptrace(int req, pid_t pid, \ | 111 | { int|netbsd32||ptrace(int req, pid_t pid, \ | |
112 | netbsd32_voidp addr, int data); } | 112 | netbsd32_voidp addr, int data); } | |
113 | 27 STD { netbsd32_ssize_t|netbsd32||recvmsg(int s, \ | 113 | 27 STD { netbsd32_ssize_t|netbsd32||recvmsg(int s, \ | |
114 | netbsd32_msghdrp_t msg, int flags); } | 114 | netbsd32_msghdrp_t msg, int flags); } | |
115 | 28 STD { netbsd32_ssize_t|netbsd32||sendmsg(int s, \ | 115 | 28 STD { netbsd32_ssize_t|netbsd32||sendmsg(int s, \ | |
116 | netbsd32_msghdrp_t msg, int flags); } | 116 | netbsd32_msghdrp_t msg, int flags); } | |
117 | 29 STD { netbsd32_ssize_t|netbsd32||recvfrom(int s, \ | 117 | 29 STD { netbsd32_ssize_t|netbsd32||recvfrom(int s, \ | |
118 | netbsd32_voidp buf, netbsd32_size_t len, \ | 118 | netbsd32_voidp buf, netbsd32_size_t len, \ | |
119 | int flags, netbsd32_sockaddrp_t from, \ | 119 | int flags, netbsd32_sockaddrp_t from, \ | |
120 | netbsd32_intp fromlenaddr); } | 120 | netbsd32_intp fromlenaddr); } | |
121 | 30 STD { int|netbsd32||accept(int s, \ | 121 | 30 STD { int|netbsd32||accept(int s, \ | |
122 | netbsd32_sockaddrp_t name, \ | 122 | netbsd32_sockaddrp_t name, \ | |
123 | netbsd32_intp anamelen); } | 123 | netbsd32_intp anamelen); } | |
124 | 31 STD { int|netbsd32||getpeername(int fdes, \ | 124 | 31 STD { int|netbsd32||getpeername(int fdes, \ | |
125 | netbsd32_sockaddrp_t asa, netbsd32_intp alen); } | 125 | netbsd32_sockaddrp_t asa, netbsd32_intp alen); } | |
126 | 32 STD { int|netbsd32||getsockname(int fdes, \ | 126 | 32 STD { int|netbsd32||getsockname(int fdes, \ | |
127 | netbsd32_sockaddrp_t asa, netbsd32_intp alen); } | 127 | netbsd32_sockaddrp_t asa, netbsd32_intp alen); } | |
128 | 33 STD { int|netbsd32||access(netbsd32_charp path, int flags); } | 128 | 33 STD { int|netbsd32||access(netbsd32_charp path, int flags); } | |
129 | 34 STD { int|netbsd32||chflags(netbsd32_charp path, \ | 129 | 34 STD { int|netbsd32||chflags(netbsd32_charp path, \ | |
130 | netbsd32_u_long flags); } | 130 | netbsd32_u_long flags); } | |
131 | 35 STD { int|netbsd32||fchflags(int fd, \ | 131 | 35 STD { int|netbsd32||fchflags(int fd, \ | |
132 | netbsd32_u_long flags); } | 132 | netbsd32_u_long flags); } | |
133 | 36 NOARGS { void|sys||sync(void); } | 133 | 36 NOARGS { void|sys||sync(void); } | |
134 | 37 STD { int|netbsd32||kill(int pid, int signum); } | 134 | 37 STD { int|netbsd32||kill(int pid, int signum); } | |
135 | 38 COMPAT_43 MODULAR compat_netbsd32_43 \ | 135 | 38 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
136 | { int|netbsd32||stat43(netbsd32_charp path, \ | 136 | { int|netbsd32||stat43(netbsd32_charp path, \ | |
137 | netbsd32_stat43p_t ub); } | 137 | netbsd32_stat43p_t ub); } | |
138 | 39 NOARGS { pid_t|sys||getppid(void); } | 138 | 39 NOARGS { pid_t|sys||getppid(void); } | |
139 | 40 COMPAT_43 MODULAR compat_netbsd32_43 \ | 139 | 40 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
140 | { int|netbsd32||lstat43(netbsd32_charp path, \ | 140 | { int|netbsd32||lstat43(netbsd32_charp path, \ | |
141 | netbsd32_stat43p_t ub); } | 141 | netbsd32_stat43p_t ub); } | |
142 | 41 STD { int|netbsd32||dup(int fd); } | 142 | 41 STD { int|netbsd32||dup(int fd); } | |
143 | 42 NOARGS { int|sys||pipe(void); } | 143 | 42 NOARGS { int|sys||pipe(void); } | |
144 | 43 NOARGS { gid_t|sys||getegid(void); } | 144 | 43 NOARGS { gid_t|sys||getegid(void); } | |
145 | 44 STD { int|netbsd32||profil(netbsd32_voidp samples, \ | 145 | 44 STD { int|netbsd32||profil(netbsd32_voidp samples, \ | |
146 | netbsd32_size_t size, netbsd32_u_long offset, \ | 146 | netbsd32_size_t size, netbsd32_u_long offset, \ | |
147 | u_int scale); } | 147 | u_int scale); } | |
148 | 45 STD { int|netbsd32||ktrace(netbsd32_charp fname, int ops, \ | 148 | 45 STD { int|netbsd32||ktrace(netbsd32_charp fname, int ops, \ | |
149 | int facs, int pid); } | 149 | int facs, int pid); } | |
150 | 46 STD { int|netbsd32||sigaction(int signum, \ | 150 | 46 STD { int|netbsd32||sigaction(int signum, \ | |
151 | netbsd32_sigactionp_t nsa, \ | 151 | netbsd32_sigactionp_t nsa, \ | |
152 | netbsd32_sigactionp_t osa); } | 152 | netbsd32_sigactionp_t osa); } | |
153 | 47 NOARGS { gid_t|sys||getgid_with_egid(void); } getgid | 153 | 47 NOARGS { gid_t|sys||getgid_with_egid(void); } getgid | |
154 | 48 COMPAT_13 MODULAR compat_netbsd32_13 \ | 154 | 48 COMPAT_13 MODULAR compat_netbsd32_13 \ | |
155 | { int|netbsd32||sigprocmask(int how, \ | 155 | { int|netbsd32||sigprocmask(int how, \ | |
156 | int mask); } sigprocmask13 | 156 | int mask); } sigprocmask13 | |
157 | 49 STD { int|netbsd32||__getlogin(netbsd32_charp namebuf, \ | 157 | 49 STD { int|netbsd32||__getlogin(netbsd32_charp namebuf, \ | |
158 | u_int namelen); } | 158 | u_int namelen); } | |
159 | 50 STD { int|netbsd32||setlogin(netbsd32_charp namebuf); } | 159 | 50 STD { int|netbsd32||setlogin(netbsd32_charp namebuf); } | |
160 | 51 STD { int|netbsd32||acct(netbsd32_charp path); } | 160 | 51 STD { int|netbsd32||acct(netbsd32_charp path); } | |
161 | 52 COMPAT_13 MODULAR compat_netbsd32_13 \ | 161 | 52 COMPAT_13 MODULAR compat_netbsd32_13 \ | |
162 | { int|sys||sigpending(void); } sigpending13 | 162 | { int|sys||sigpending(void); } sigpending13 | |
163 | 53 COMPAT_13 MODULAR compat_netbsd32_13 \ | 163 | 53 COMPAT_13 MODULAR compat_netbsd32_13 \ | |
164 | { int|netbsd32||sigaltstack13( \ | 164 | { int|netbsd32||sigaltstack13( \ | |
165 | netbsd32_sigaltstack13p_t nss, \ | 165 | netbsd32_sigaltstack13p_t nss, \ | |
166 | netbsd32_sigaltstack13p_t oss); } | 166 | netbsd32_sigaltstack13p_t oss); } | |
167 | 54 STD { int|netbsd32||ioctl(int fd, netbsd32_u_long com, \ | 167 | 54 STD { int|netbsd32||ioctl(int fd, netbsd32_u_long com, \ | |
168 | ... netbsd32_voidp data); } | 168 | ... netbsd32_voidp data); } | |
169 | 55 COMPAT_12 MODULAR compat_netbsd32_12 \ | 169 | 55 COMPAT_12 MODULAR compat_netbsd32_12 \ | |
170 | { int|netbsd32||reboot(int opt); } | 170 | { int|netbsd32||reboot(int opt); } | |
171 | 56 STD { int|netbsd32||revoke(netbsd32_charp path); } | 171 | 56 STD { int|netbsd32||revoke(netbsd32_charp path); } | |
172 | 57 STD { int|netbsd32||symlink(netbsd32_charp path, \ | 172 | 57 STD { int|netbsd32||symlink(netbsd32_charp path, \ | |
173 | netbsd32_charp link); } | 173 | netbsd32_charp link); } | |
174 | 58 STD { int|netbsd32||readlink(netbsd32_charp path, \ | 174 | 58 STD { int|netbsd32||readlink(netbsd32_charp path, \ | |
175 | netbsd32_charp buf, netbsd32_size_t count); } | 175 | netbsd32_charp buf, netbsd32_size_t count); } | |
176 | 59 STD { int|netbsd32||execve(netbsd32_charp path, \ | 176 | 59 STD { int|netbsd32||execve(netbsd32_charp path, \ | |
177 | netbsd32_charpp argp, netbsd32_charpp envp); } | 177 | netbsd32_charpp argp, netbsd32_charpp envp); } | |
178 | 60 STD { mode_t|netbsd32||umask(mode_t newmask); } | 178 | 60 STD { mode_t|netbsd32||umask(mode_t newmask); } | |
179 | 61 STD { int|netbsd32||chroot(netbsd32_charp path); } | 179 | 61 STD { int|netbsd32||chroot(netbsd32_charp path); } | |
180 | 62 COMPAT_43 MODULAR compat_netbsd32_43 \ | 180 | 62 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
181 | { int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); } | 181 | { int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); } | |
182 | 63 COMPAT_43 MODULAR compat_netbsd32_43 \ | 182 | 63 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
183 | { int|netbsd32||ogetkerninfo(int op, \ | 183 | { int|netbsd32||ogetkerninfo(int op, \ | |
184 | netbsd32_charp where, netbsd32_intp size, \ | 184 | netbsd32_charp where, netbsd32_intp size, \ | |
185 | int arg); } | 185 | int arg); } | |
186 | 64 COMPAT_43 MODULAR compat_43 \ | 186 | 64 COMPAT_43 MODULAR compat_43 \ | |
187 | { int|sys||getpagesize(void); } ogetpagesize | 187 | { int|sys||getpagesize(void); } ogetpagesize | |
188 | 65 COMPAT_12 MODULAR compat_netbsd32_12 \ | 188 | 65 COMPAT_12 MODULAR compat_netbsd32_12 \ | |
189 | { int|netbsd32||msync(netbsd32_voidp addr, \ | 189 | { int|netbsd32||msync(netbsd32_voidp addr, \ | |
190 | netbsd32_size_t len); } | 190 | netbsd32_size_t len); } | |
191 | ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? | 191 | ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? | |
192 | 66 NOARGS { int|sys||vfork(void); } | 192 | 66 NOARGS { int|sys||vfork(void); } | |
193 | 67 OBSOL vread | 193 | 67 OBSOL vread | |
194 | 68 OBSOL vwrite | 194 | 68 OBSOL vwrite | |
195 | 69 OBSOL sbrk | 195 | 69 OBSOL sbrk | |
196 | 70 OBSOL sstk | 196 | 70 OBSOL sstk | |
197 | 71 COMPAT_43 MODULAR compat_netbsd32_43 \ | 197 | 71 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
198 | { int|netbsd32||ommap(netbsd32_voidp addr, \ | 198 | { int|netbsd32||ommap(netbsd32_voidp addr, \ | |
199 | netbsd32_size_t len, int prot, int flags, int fd, \ | 199 | netbsd32_size_t len, int prot, int flags, int fd, \ | |
200 | netbsd32_long pos); } | 200 | netbsd32_long pos); } | |
201 | 72 STD { int|netbsd32||ovadvise(int anom); } vadvise | 201 | 72 STD { int|netbsd32||ovadvise(int anom); } vadvise | |
202 | 73 STD { int|netbsd32||munmap(netbsd32_voidp addr, \ | 202 | 73 STD { int|netbsd32||munmap(netbsd32_voidp addr, \ | |
203 | netbsd32_size_t len); } | 203 | netbsd32_size_t len); } | |
204 | 74 STD { int|netbsd32||mprotect(netbsd32_voidp addr, \ | 204 | 74 STD { int|netbsd32||mprotect(netbsd32_voidp addr, \ | |
205 | netbsd32_size_t len, int prot); } | 205 | netbsd32_size_t len, int prot); } | |
206 | 75 STD { int|netbsd32||madvise(netbsd32_voidp addr, \ | 206 | 75 STD { int|netbsd32||madvise(netbsd32_voidp addr, \ | |
207 | netbsd32_size_t len, int behav); } | 207 | netbsd32_size_t len, int behav); } | |
208 | 76 OBSOL vhangup | 208 | 76 OBSOL vhangup | |
209 | 77 OBSOL vlimit | 209 | 77 OBSOL vlimit | |
210 | 78 STD { int|netbsd32||mincore(netbsd32_voidp addr, \ | 210 | 78 STD { int|netbsd32||mincore(netbsd32_voidp addr, \ | |
211 | netbsd32_size_t len, netbsd32_charp vec); } | 211 | netbsd32_size_t len, netbsd32_charp vec); } | |
212 | 79 STD { int|netbsd32||getgroups(int gidsetsize, \ | 212 | 79 STD { int|netbsd32||getgroups(int gidsetsize, \ | |
213 | netbsd32_gid_tp gidset); } | 213 | netbsd32_gid_tp gidset); } | |
214 | 80 STD { int|netbsd32||setgroups(int gidsetsize, \ | 214 | 80 STD { int|netbsd32||setgroups(int gidsetsize, \ | |
215 | netbsd32_gid_tp gidset); } | 215 | netbsd32_gid_tp gidset); } | |
216 | 81 NOARGS { int|sys||getpgrp(void); } | 216 | 81 NOARGS { int|sys||getpgrp(void); } | |
217 | 82 STD { int|netbsd32||setpgid(int pid, int pgid); } | 217 | 82 STD { int|netbsd32||setpgid(int pid, int pgid); } | |
218 | 83 COMPAT_50 MODULAR compat_netbsd32_50 \ | 218 | 83 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
219 | { int|netbsd32||setitimer(int which, \ | 219 | { int|netbsd32||setitimer(int which, \ | |
220 | netbsd32_itimerval50p_t itv, \ | 220 | netbsd32_itimerval50p_t itv, \ | |
221 | netbsd32_itimerval50p_t oitv); } | 221 | netbsd32_itimerval50p_t oitv); } | |
222 | 84 COMPAT_43 MODULAR compat_43 \ | 222 | 84 COMPAT_43 MODULAR compat_43 \ | |
223 | { int|sys||wait(void); } owait | 223 | { int|sys||wait(void); } owait | |
224 | 85 COMPAT_12 MODULAR compat_netbsd32_12 \ | 224 | 85 COMPAT_12 MODULAR compat_netbsd32_12 \ | |
225 | { int|netbsd32||oswapon(netbsd32_charp name); } | 225 | { int|netbsd32||oswapon(netbsd32_charp name); } | |
226 | 86 COMPAT_50 MODULAR compat_netbsd32_50 \ | 226 | 86 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
227 | { int|netbsd32||getitimer(int which, \ | 227 | { int|netbsd32||getitimer(int which, \ | |
228 | netbsd32_itimerval50p_t itv); } | 228 | netbsd32_itimerval50p_t itv); } | |
229 | 87 COMPAT_43 MODULAR compat_netbsd32_43 \ | 229 | 87 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
230 | { int|netbsd32||ogethostname(netbsd32_charp hostname, \ | 230 | { int|netbsd32||ogethostname(netbsd32_charp hostname, \ | |
231 | u_int len); } | 231 | u_int len); } | |
232 | 88 COMPAT_43 MODULAR compat_netbsd32_43 \ | 232 | 88 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
233 | { int|netbsd32||osethostname(netbsd32_charp hostname, \ | 233 | { int|netbsd32||osethostname(netbsd32_charp hostname, \ | |
234 | u_int len); } | 234 | u_int len); } | |
235 | 89 COMPAT_43 MODULAR compat_43 \ | 235 | 89 COMPAT_43 MODULAR compat_43 \ | |
236 | { int|sys||getdtablesize(void); } ogetdtablesize | 236 | { int|sys||getdtablesize(void); } ogetdtablesize | |
237 | 90 STD { int|netbsd32||dup2(int from, int to); } | 237 | 90 STD { int|netbsd32||dup2(int from, int to); } | |
238 | 91 STD { netbsd32_ssize_t|netbsd32||getrandom( \ | 238 | 91 STD { netbsd32_ssize_t|netbsd32||getrandom( \ | |
239 | netbsd32_voidp buf, netbsd32_size_t buflen, \ | 239 | netbsd32_voidp buf, netbsd32_size_t buflen, \ | |
240 | unsigned int flags); } | 240 | unsigned int flags); } | |
241 | 92 STD { int|netbsd32||fcntl(int fd, int cmd, \ | 241 | 92 STD { int|netbsd32||fcntl(int fd, int cmd, \ | |
242 | ... netbsd32_voidp arg); } | 242 | ... netbsd32_voidp arg); } | |
243 | 93 COMPAT_50 MODULAR compat_netbsd32_50 \ | 243 | 93 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
244 | { int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \ | 244 | { int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \ | |
245 | netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ | 245 | netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ | |
246 | netbsd32_timeval50p_t tv); } | 246 | netbsd32_timeval50p_t tv); } | |
247 | 94 UNIMPL setdopt | 247 | 94 UNIMPL setdopt | |
248 | 95 STD { int|netbsd32||fsync(int fd); } | 248 | 95 STD { int|netbsd32||fsync(int fd); } | |
249 | 96 STD { int|netbsd32||setpriority(int which, int who, \ | 249 | 96 STD { int|netbsd32||setpriority(int which, int who, \ | |
250 | int prio); } | 250 | int prio); } | |
251 | 97 COMPAT_30 MODULAR compat_netbsd32_30 \ | 251 | 97 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
252 | { int|netbsd32||socket(int domain, int type, \ | 252 | { int|netbsd32||socket(int domain, int type, \ | |
253 | int protocol); } | 253 | int protocol); } | |
254 | 98 STD { int|netbsd32||connect(int s, \ | 254 | 98 STD { int|netbsd32||connect(int s, \ | |
255 | netbsd32_sockaddrp_t name, int namelen); } | 255 | netbsd32_sockaddrp_t name, int namelen); } | |
256 | 99 COMPAT_43 MODULAR compat_netbsd32_43 \ | 256 | 99 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
257 | { int|netbsd32||oaccept(int s, netbsd32_voidp name, \ | 257 | { int|netbsd32||oaccept(int s, netbsd32_voidp name, \ | |
258 | netbsd32_intp anamelen); } | 258 | netbsd32_intp anamelen); } | |
259 | 100 STD { int|netbsd32||getpriority(int which, int who); } | 259 | 100 STD { int|netbsd32||getpriority(int which, int who); } | |
260 | 101 COMPAT_43 MODULAR compat_netbsd32_43 \ | 260 | 101 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
261 | { int|netbsd32||osend(int s, netbsd32_voidp buf, \ | 261 | { int|netbsd32||osend(int s, netbsd32_voidp buf, \ | |
262 | int len, int flags); } | 262 | int len, int flags); } | |
263 | 102 COMPAT_43 MODULAR compat_netbsd32_43 \ | 263 | 102 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
264 | { int|netbsd32||orecv(int s, netbsd32_voidp buf, \ | 264 | { int|netbsd32||orecv(int s, netbsd32_voidp buf, \ | |
265 | int len, int flags); } | 265 | int len, int flags); } | |
266 | 103 COMPAT_13 MODULAR compat_netbsd32_13 \ | 266 | 103 COMPAT_13 MODULAR compat_netbsd32_13 \ | |
267 | { int|netbsd32||sigreturn( \ | 267 | { int|netbsd32||sigreturn( \ | |
268 | netbsd32_sigcontextp_t sigcntxp); } sigreturn13 | 268 | netbsd32_sigcontextp_t sigcntxp); } sigreturn13 | |
269 | 104 STD { int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \ | 269 | 104 STD { int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \ | |
270 | int namelen); } | 270 | int namelen); } | |
271 | 105 STD { int|netbsd32||setsockopt(int s, int level, int name, \ | 271 | 105 STD { int|netbsd32||setsockopt(int s, int level, int name, \ | |
272 | netbsd32_voidp val, int valsize); } | 272 | netbsd32_voidp val, int valsize); } | |
273 | 106 STD { int|netbsd32||listen(int s, int backlog); } | 273 | 106 STD { int|netbsd32||listen(int s, int backlog); } | |
274 | 107 OBSOL vtimes | 274 | 107 OBSOL vtimes | |
275 | 108 COMPAT_43 MODULAR compat_netbsd32_43 \ | 275 | 108 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
276 | { int|netbsd32||osigvec(int signum, \ | 276 | { int|netbsd32||osigvec(int signum, \ | |
277 | netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } | 277 | netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } | |
278 | 109 COMPAT_43 MODULAR compat_netbsd32_43 \ | 278 | 109 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
279 | { int|netbsd32||sigblock(int mask); } | 279 | { int|netbsd32||sigblock(int mask); } | |
280 | 110 COMPAT_43 MODULAR compat_netbsd32_43 \ | 280 | 110 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
281 | { int|netbsd32||sigsetmask(int mask); } | 281 | { int|netbsd32||sigsetmask(int mask); } | |
282 | 111 COMPAT_13 MODULAR compat_netbsd32_13 \ | 282 | 111 COMPAT_13 MODULAR compat_netbsd32_13 \ | |
283 | { int|netbsd32||sigsuspend(int mask); } sigsuspend13 | 283 | { int|netbsd32||sigsuspend(int mask); } sigsuspend13 | |
284 | 112 COMPAT_43 MODULAR compat_netbsd32_43 \ | 284 | 112 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
285 | { int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \ | 285 | { int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \ | |
286 | netbsd32_sigstackp_t oss); } | 286 | netbsd32_sigstackp_t oss); } | |
287 | 113 COMPAT_43 MODULAR compat_netbsd32_43 \ | 287 | 113 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
288 | { int|netbsd32||orecvmsg(int s, \ | 288 | { int|netbsd32||orecvmsg(int s, \ | |
289 | netbsd32_omsghdrp_t msg, int flags); } | 289 | netbsd32_omsghdrp_t msg, int flags); } | |
290 | 114 COMPAT_43 MODULAR compat_netbsd32_43 \ | 290 | 114 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
291 | { int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \ | 291 | { int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \ | |
292 | int flags); } | 292 | int flags); } | |
293 | 115 OBSOL vtrace | 293 | 115 OBSOL vtrace | |
294 | 116 COMPAT_50 MODULAR compat_netbsd32_50 \ | 294 | 116 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
295 | { int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \ | 295 | { int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \ | |
296 | netbsd32_timezonep_t tzp); } | 296 | netbsd32_timezonep_t tzp); } | |
297 | 117 COMPAT_50 MODULAR compat_netbsd32_50 \ | 297 | 117 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
298 | { int|netbsd32||getrusage(int who, \ | 298 | { int|netbsd32||getrusage(int who, \ | |
299 | netbsd32_rusage50p_t rusage); } | 299 | netbsd32_rusage50p_t rusage); } | |
300 | 118 STD { int|netbsd32||getsockopt(int s, int level, int name, \ | 300 | 118 STD { int|netbsd32||getsockopt(int s, int level, int name, \ | |
301 | netbsd32_voidp val, netbsd32_intp avalsize); } | 301 | netbsd32_voidp val, netbsd32_intp avalsize); } | |
302 | 119 OBSOL resuba | 302 | 119 OBSOL resuba | |
303 | 120 STD { netbsd32_ssize_t|netbsd32||readv(int fd, \ | 303 | 120 STD { netbsd32_ssize_t|netbsd32||readv(int fd, \ | |
304 | netbsd32_iovecp_t iovp, int iovcnt); } | 304 | netbsd32_iovecp_t iovp, int iovcnt); } | |
305 | 121 STD { netbsd32_ssize_t|netbsd32||writev(int fd, \ | 305 | 121 STD { netbsd32_ssize_t|netbsd32||writev(int fd, \ | |
306 | netbsd32_iovecp_t iovp, int iovcnt); } | 306 | netbsd32_iovecp_t iovp, int iovcnt); } | |
307 | 122 COMPAT_50 MODULAR compat_netbsd32_50 \ | 307 | 122 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
308 | { int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \ | 308 | { int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \ | |
309 | netbsd32_timezonep_t tzp); } | 309 | netbsd32_timezonep_t tzp); } | |
310 | 123 STD { int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); } | 310 | 123 STD { int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); } | |
311 | 124 STD { int|netbsd32||fchmod(int fd, mode_t mode); } | 311 | 124 STD { int|netbsd32||fchmod(int fd, mode_t mode); } | |
312 | 125 COMPAT_43 MODULAR compat_netbsd32_43 \ | 312 | 125 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
313 | { int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \ | 313 | { int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \ | |
314 | netbsd32_size_t len, int flags, \ | 314 | netbsd32_size_t len, int flags, \ | |
315 | netbsd32_voidp from, netbsd32_intp fromlenaddr); } | 315 | netbsd32_voidp from, netbsd32_intp fromlenaddr); } | |
316 | 126 STD { int|netbsd32||setreuid(uid_t ruid, uid_t euid); } | 316 | 126 STD { int|netbsd32||setreuid(uid_t ruid, uid_t euid); } | |
317 | 127 STD { int|netbsd32||setregid(gid_t rgid, gid_t egid); } | 317 | 127 STD { int|netbsd32||setregid(gid_t rgid, gid_t egid); } | |
318 | 128 STD { int|netbsd32||rename(netbsd32_charp from, \ | 318 | 128 STD { int|netbsd32||rename(netbsd32_charp from, \ | |
319 | netbsd32_charp to); } | 319 | netbsd32_charp to); } | |
320 | 129 COMPAT_43 MODULAR compat_netbsd32_43 \ | 320 | 129 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
321 | { int|netbsd32||otruncate(netbsd32_charp path, \ | 321 | { int|netbsd32||otruncate(netbsd32_charp path, \ | |
322 | netbsd32_long length); } | 322 | netbsd32_long length); } | |
323 | 130 COMPAT_43 MODULAR compat_netbsd32_43 \ | 323 | 130 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
324 | { int|netbsd32||oftruncate(int fd, \ | 324 | { int|netbsd32||oftruncate(int fd, \ | |
325 | netbsd32_long length); } | 325 | netbsd32_long length); } | |
326 | 131 STD { int|netbsd32||flock(int fd, int how); } | 326 | 131 STD { int|netbsd32||flock(int fd, int how); } | |
327 | 132 STD { int|netbsd32||mkfifo(netbsd32_charp path, \ | 327 | 132 STD { int|netbsd32||mkfifo(netbsd32_charp path, \ | |
328 | mode_t mode); } | 328 | mode_t mode); } | |
329 | 133 STD { netbsd32_ssize_t|netbsd32||sendto(int s, \ | 329 | 133 STD { netbsd32_ssize_t|netbsd32||sendto(int s, \ | |
330 | netbsd32_voidp buf, netbsd32_size_t len, \ | 330 | netbsd32_voidp buf, netbsd32_size_t len, \ | |
331 | int flags, netbsd32_sockaddrp_t to, int tolen); } | 331 | int flags, netbsd32_sockaddrp_t to, int tolen); } | |
332 | 134 STD { int|netbsd32||shutdown(int s, int how); } | 332 | 134 STD { int|netbsd32||shutdown(int s, int how); } | |
333 | 135 STD { int|netbsd32||socketpair(int domain, int type, \ | 333 | 135 STD { int|netbsd32||socketpair(int domain, int type, \ | |
334 | int protocol, netbsd32_intp rsv); } | 334 | int protocol, netbsd32_intp rsv); } | |
335 | 136 STD { int|netbsd32||mkdir(netbsd32_charp path, \ | 335 | 136 STD { int|netbsd32||mkdir(netbsd32_charp path, \ | |
336 | mode_t mode); } | 336 | mode_t mode); } | |
337 | 137 STD { int|netbsd32||rmdir(netbsd32_charp path); } | 337 | 137 STD { int|netbsd32||rmdir(netbsd32_charp path); } | |
338 | 138 COMPAT_50 MODULAR compat_netbsd32_50 \ | 338 | 138 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
339 | { int|netbsd32||utimes(netbsd32_charp path, \ | 339 | { int|netbsd32||utimes(netbsd32_charp path, \ | |
340 | netbsd32_timeval50p_t tptr); } | 340 | netbsd32_timeval50p_t tptr); } | |
341 | 139 OBSOL 4.2 sigreturn | 341 | 139 OBSOL 4.2 sigreturn | |
342 | 140 COMPAT_50 MODULAR compat_netbsd32_50 \ | 342 | 140 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
343 | { int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \ | 343 | { int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \ | |
344 | netbsd32_timeval50p_t olddelta); } | 344 | netbsd32_timeval50p_t olddelta); } | |
345 | 141 COMPAT_43 MODULAR compat_netbsd32_43 \ | 345 | 141 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
346 | { int|netbsd32||ogetpeername(int fdes, \ | 346 | { int|netbsd32||ogetpeername(int fdes, \ | |
347 | netbsd32_voidp asa, netbsd32_intp alen); } | 347 | netbsd32_voidp asa, netbsd32_intp alen); } | |
348 | 142 COMPAT_43 MODULAR compat_43 \ | 348 | 142 COMPAT_43 MODULAR compat_43 \ | |
349 | { int32_t|sys||gethostid(void); } ogethostid | 349 | { int32_t|sys||gethostid(void); } ogethostid | |
350 | 143 COMPAT_43 MODULAR compat_netbsd32_43 \ | 350 | 143 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
351 | { int|netbsd32||sethostid(int32_t hostid); } | 351 | { int|netbsd32||sethostid(int32_t hostid); } | |
352 | 144 COMPAT_43 MODULAR compat_netbsd32_43 \ | 352 | 144 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
353 | { int|netbsd32||ogetrlimit(int which, \ | 353 | { int|netbsd32||ogetrlimit(int which, \ | |
354 | netbsd32_orlimitp_t rlp); } | 354 | netbsd32_orlimitp_t rlp); } | |
355 | 145 COMPAT_43 MODULAR compat_netbsd32_43 \ | 355 | 145 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
356 | { int|netbsd32||osetrlimit(int which, \ | 356 | { int|netbsd32||osetrlimit(int which, \ | |
357 | netbsd32_orlimitp_t rlp); } | 357 | netbsd32_orlimitp_t rlp); } | |
358 | 146 COMPAT_43 MODULAR compat_netbsd32_43 \ | 358 | 146 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
359 | { int|netbsd32||killpg(int pgid, int signum); } | 359 | { int|netbsd32||killpg(int pgid, int signum); } | |
360 | 147 NOARGS { int|sys||setsid(void); } | 360 | 147 NOARGS { int|sys||setsid(void); } | |
361 | 148 COMPAT_50 MODULAR compat_netbsd32_quota_50 \ | 361 | 148 COMPAT_50 MODULAR compat_netbsd32_quota_50 \ | |
362 | { int|netbsd32||quotactl(netbsd32_charp path, int cmd, \ | 362 | { int|netbsd32||quotactl(netbsd32_charp path, int cmd, \ | |
363 | int uid, netbsd32_voidp arg); } | 363 | int uid, netbsd32_voidp arg); } | |
364 | 149 EXCL compat_netbsd32_quota | 364 | 149 EXCL compat_netbsd32_quota | |
365 | 150 COMPAT_43 MODULAR compat_netbsd32_43 \ | 365 | 150 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
366 | { int|netbsd32||ogetsockname(int fdec, \ | 366 | { int|netbsd32||ogetsockname(int fdec, \ | |
367 | netbsd32_voidp asa, netbsd32_intp alen); } | 367 | netbsd32_voidp asa, netbsd32_intp alen); } | |
368 | 368 | |||
369 | ; Syscalls 151-180 inclusive are reserved for vendor-specific | 369 | ; Syscalls 151-180 inclusive are reserved for vendor-specific | |
370 | ; system calls. (This includes various calls added for compatibity | 370 | ; system calls. (This includes various calls added for compatibity | |
371 | ; with other Unix variants.) | 371 | ; with other Unix variants.) | |
372 | ; Some of these calls are now supported by BSD... | 372 | ; Some of these calls are now supported by BSD... | |
373 | 151 UNIMPL | 373 | 151 UNIMPL | |
374 | 152 UNIMPL | 374 | 152 UNIMPL | |
375 | 153 UNIMPL | 375 | 153 UNIMPL | |
376 | 154 UNIMPL | 376 | 154 UNIMPL | |
377 | 155 STD MODULAR compat_netbsd32_nfssrv \ | 377 | 155 STD MODULAR compat_netbsd32_nfssrv \ | |
378 | { int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); } | 378 | { int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); } | |
379 | 156 COMPAT_43 MODULAR compat_netbsd32_43 \ | 379 | 156 COMPAT_43 MODULAR compat_netbsd32_43 \ | |
380 | { int|netbsd32||ogetdirentries(int fd, \ | 380 | { int|netbsd32||ogetdirentries(int fd, \ | |
381 | netbsd32_charp buf, u_int count, \ | 381 | netbsd32_charp buf, u_int count, \ | |
382 | netbsd32_longp basep); } | 382 | netbsd32_longp basep); } | |
383 | 157 COMPAT_20 MODULAR compat_netbsd32_20 \ | 383 | 157 COMPAT_20 MODULAR compat_netbsd32_20 \ | |
384 | { int|netbsd32||statfs(netbsd32_charp path, \ | 384 | { int|netbsd32||statfs(netbsd32_charp path, \ | |
385 | netbsd32_statfsp_t buf); } | 385 | netbsd32_statfsp_t buf); } | |
386 | 158 COMPAT_20 MODULAR compat_netbsd32_20 \ | 386 | 158 COMPAT_20 MODULAR compat_netbsd32_20 \ | |
387 | { int|netbsd32||fstatfs(int fd, \ | 387 | { int|netbsd32||fstatfs(int fd, \ | |
388 | netbsd32_statfsp_t buf); } | 388 | netbsd32_statfsp_t buf); } | |
389 | 159 UNIMPL | 389 | 159 UNIMPL | |
390 | 160 UNIMPL | 390 | 160 UNIMPL | |
391 | 161 COMPAT_30 MODULAR compat_netbsd32_30 \ | 391 | 161 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
392 | { int|netbsd32||getfh(netbsd32_charp fname, \ | 392 | { int|netbsd32||getfh(netbsd32_charp fname, \ | |
393 | netbsd32_compat_30_fhandlep_t fhp); } | 393 | netbsd32_compat_30_fhandlep_t fhp); } | |
394 | 162 COMPAT_09 MODULAR compat_netbsd32_09 \ | 394 | 162 COMPAT_09 MODULAR compat_netbsd32_09 \ | |
395 | { int|netbsd32||ogetdomainname( \ | 395 | { int|netbsd32||ogetdomainname( \ | |
396 | netbsd32_charp domainname, int len); } | 396 | netbsd32_charp domainname, int len); } | |
397 | 163 COMPAT_09 MODULAR compat_netbsd32_09 \ | 397 | 163 COMPAT_09 MODULAR compat_netbsd32_09 \ | |
398 | { int|netbsd32||osetdomainname( \ | 398 | { int|netbsd32||osetdomainname( \ | |
399 | netbsd32_charp domainname, int len); } | 399 | netbsd32_charp domainname, int len); } | |
400 | 164 COMPAT_09 MODULAR compat_netbsd32_09 \ | 400 | 164 COMPAT_09 MODULAR compat_netbsd32_09 \ | |
401 | { int|netbsd32||uname(netbsd32_outsnamep_t name); } | 401 | { int|netbsd32||uname(netbsd32_outsnamep_t name); } | |
402 | 165 STD { int|netbsd32||sysarch(int op, netbsd32_voidp parms); } | 402 | 165 STD { int|netbsd32||sysarch(int op, netbsd32_voidp parms); } | |
403 | 166 STD { int|netbsd32||__futex(netbsd32_intp uaddr, int op, \ | 403 | 166 STD { int|netbsd32||__futex(netbsd32_intp uaddr, int op, \ | |
404 | int val, const netbsd32_timespecp_t timeout, \ | 404 | int val, const netbsd32_timespecp_t timeout, \ | |
405 | netbsd32_intp uaddr2, int val2, int val3); } | 405 | netbsd32_intp uaddr2, int val2, int val3); } | |
406 | 167 STD { int|netbsd32||__futex_set_robust_list( \ | 406 | 167 STD { int|netbsd32||__futex_set_robust_list( \ | |
407 | netbsd32_voidp head, netbsd32_size_t len); } | 407 | netbsd32_voidp head, netbsd32_size_t len); } | |
408 | 168 STD { int|netbsd32||__futex_get_robust_list(lwpid_t lwpid, \ | 408 | 168 STD { int|netbsd32||__futex_get_robust_list(lwpid_t lwpid, \ | |
409 | netbsd32_voidp headp, netbsd32_size_tp lenp); } | 409 | netbsd32_voidp headp, netbsd32_size_tp lenp); } | |
410 | 169 COMPAT_10 MODULAR compat_netbsd32_sysvipc_10 \ | 410 | 169 COMPAT_10 MODULAR compat_netbsd32_sysvipc_10 \ | |
411 | { int|netbsd32||semsys(int which, int a2, int a3, \ | 411 | { int|netbsd32||semsys(int which, int a2, int a3, \ | |
412 | int a4, int a5); } osemsys | 412 | int a4, int a5); } osemsys | |
413 | 170 COMPAT_10 MODULAR compat_netbsd32_sysvipc_10 \ | 413 | 170 COMPAT_10 MODULAR compat_netbsd32_sysvipc_10 \ | |
414 | { int|netbsd32||msgsys(int which, int a2, int a3, \ | 414 | { int|netbsd32||msgsys(int which, int a2, int a3, \ | |
415 | int a4, int a5, int a6); } omsgsys | 415 | int a4, int a5, int a6); } omsgsys | |
416 | 171 COMPAT_10 MODULAR compat_netbsd32_sysvipc_10 \ | 416 | 171 COMPAT_10 MODULAR compat_netbsd32_sysvipc_10 \ | |
417 | { int|netbsd32||shmsys(int which, int a2, int a3, \ | 417 | { int|netbsd32||shmsys(int which, int a2, int a3, \ | |
418 | int a4); } oshmsys | 418 | int a4); } oshmsys | |
419 | 172 UNIMPL | 419 | 172 UNIMPL | |
420 | 173 STD { netbsd32_ssize_t|netbsd32||pread(int fd, \ | 420 | 173 STD { netbsd32_ssize_t|netbsd32||pread(int fd, \ | |
421 | netbsd32_voidp buf, netbsd32_size_t nbyte, \ | 421 | netbsd32_voidp buf, netbsd32_size_t nbyte, \ | |
422 | int PAD, netbsd32_off_t offset); } | 422 | int PAD, netbsd32_off_t offset); } | |
423 | 174 STD { netbsd32_ssize_t|netbsd32||pwrite(int fd, \ | 423 | 174 STD { netbsd32_ssize_t|netbsd32||pwrite(int fd, \ | |
424 | netbsd32_voidp buf, netbsd32_size_t nbyte, \ | 424 | netbsd32_voidp buf, netbsd32_size_t nbyte, \ | |
425 | int PAD, netbsd32_off_t offset); } | 425 | int PAD, netbsd32_off_t offset); } | |
426 | 175 COMPAT_30 MODULAR compat_netbsd32_30 \ | 426 | 175 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
427 | { int|netbsd32||ntp_gettime( \ | 427 | { int|netbsd32||ntp_gettime( \ | |
428 | netbsd32_ntptimeval50p_t ntvp); } | 428 | netbsd32_ntptimeval50p_t ntvp); } | |
429 | #if defined(NTP) || !defined(_KERNEL_OPT) | 429 | #if defined(NTP) || !defined(_KERNEL_OPT) | |
430 | 176 STD { int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); } | 430 | 176 STD { int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); } | |
431 | #else | 431 | #else | |
432 | 176 EXCL ntp_adjtime | 432 | 176 EXCL ntp_adjtime | |
433 | #endif | 433 | #endif | |
434 | 177 STD { int|netbsd32||timerfd_create( \ | 434 | 177 STD { int|netbsd32||timerfd_create( \ | |
435 | netbsd32_clockid_t clock_id, \ | 435 | netbsd32_clockid_t clock_id, \ | |
436 | int flags); } | 436 | int flags); } | |
437 | 178 STD { int|netbsd32||timerfd_settime(int fd, int flags, \ | 437 | 178 STD { int|netbsd32||timerfd_settime(int fd, int flags, \ | |
438 | const netbsd32_itimerspecp_t new_value, \ | 438 | const netbsd32_itimerspecp_t new_value, \ | |
439 | netbsd32_itimerspecp_t old_value); } | 439 | netbsd32_itimerspecp_t old_value); } | |
440 | 179 STD { int|netbsd32||timerfd_gettime(int fd, \ | 440 | 179 STD { int|netbsd32||timerfd_gettime(int fd, \ | |
441 | netbsd32_itimerspecp_t curr_value); } | 441 | netbsd32_itimerspecp_t curr_value); } | |
442 | 180 UNIMPL | 442 | 180 UNIMPL | |
443 | 443 | |||
444 | ; Syscalls 180-199 are used by/reserved for BSD | 444 | ; Syscalls 180-199 are used by/reserved for BSD | |
445 | 181 STD { int|netbsd32||setgid(gid_t gid); } | 445 | 181 STD { int|netbsd32||setgid(gid_t gid); } | |
446 | 182 STD { int|netbsd32||setegid(gid_t egid); } | 446 | 182 STD { int|netbsd32||setegid(gid_t egid); } | |
447 | 183 STD { int|netbsd32||seteuid(uid_t euid); } | 447 | 183 STD { int|netbsd32||seteuid(uid_t euid); } | |
448 | 184 EXCL netbsd32_lfs_bmapv | 448 | 184 EXCL netbsd32_lfs_bmapv | |
449 | 185 EXCL netbsd32_lfs_markv | 449 | 185 EXCL netbsd32_lfs_markv | |
450 | 186 EXCL netbsd32_lfs_segclean | 450 | 186 EXCL netbsd32_lfs_segclean | |
451 | 187 EXCL netbsd32_lfs_segwait | 451 | 187 EXCL netbsd32_lfs_segwait | |
452 | 188 COMPAT_12 MODULAR compat_netbsd32_12 \ | 452 | 188 COMPAT_12 MODULAR compat_netbsd32_12 \ | |
453 | { int|netbsd32||stat12(netbsd32_charp path, \ | 453 | { int|netbsd32||stat12(netbsd32_charp path, \ | |
454 | netbsd32_stat12p_t ub); } | 454 | netbsd32_stat12p_t ub); } | |
455 | 189 COMPAT_12 MODULAR compat_netbsd32_12 \ | 455 | 189 COMPAT_12 MODULAR compat_netbsd32_12 \ | |
456 | { int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); } | 456 | { int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); } | |
457 | 190 COMPAT_12 MODULAR compat_netbsd32_12 \ | 457 | 190 COMPAT_12 MODULAR compat_netbsd32_12 \ | |
458 | { int|netbsd32||lstat12(netbsd32_charp path, \ | 458 | { int|netbsd32||lstat12(netbsd32_charp path, \ | |
459 | netbsd32_stat12p_t ub); } | 459 | netbsd32_stat12p_t ub); } | |
460 | 191 STD { netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \ | 460 | 191 STD { netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \ | |
461 | int name); } | 461 | int name); } | |
462 | 192 STD { netbsd32_long|netbsd32||fpathconf(int fd, int name); } | 462 | 192 STD { netbsd32_long|netbsd32||fpathconf(int fd, int name); } | |
463 | 193 STD { int|netbsd32||getsockopt2(int s, int level, int name, \ | 463 | 193 STD { int|netbsd32||getsockopt2(int s, int level, int name, \ | |
464 | netbsd32_voidp val, netbsd32_intp avalsize); } | 464 | netbsd32_voidp val, netbsd32_intp avalsize); } | |
465 | 194 STD { int|netbsd32||getrlimit(int which, \ | 465 | 194 STD { int|netbsd32||getrlimit(int which, \ | |
466 | netbsd32_rlimitp_t rlp); } | 466 | netbsd32_rlimitp_t rlp); } | |
467 | 195 STD { int|netbsd32||setrlimit(int which, \ | 467 | 195 STD { int|netbsd32||setrlimit(int which, \ | |
468 | netbsd32_rlimitp_t rlp); } | 468 | netbsd32_rlimitp_t rlp); } | |
469 | 196 COMPAT_12 MODULAR compat_netbsd32_12 \ | 469 | 196 COMPAT_12 MODULAR compat_netbsd32_12 \ | |
470 | { int|netbsd32||getdirentries(int fd, \ | 470 | { int|netbsd32||getdirentries(int fd, \ | |
471 | netbsd32_charp buf, u_int count, \ | 471 | netbsd32_charp buf, u_int count, \ | |
472 | netbsd32_longp basep); } | 472 | netbsd32_longp basep); } | |
473 | 197 STD { netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \ | 473 | 197 STD { netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \ | |
474 | netbsd32_size_t len, int prot, int flags, int fd, \ | 474 | netbsd32_size_t len, int prot, int flags, int fd, \ | |
475 | netbsd32_long PAD, netbsd32_off_t pos); } | 475 | netbsd32_long PAD, netbsd32_off_t pos); } | |
476 | 198 INDIR { quad_t|netbsd32||___syscall(quad_t code, \ | 476 | 198 INDIR { quad_t|netbsd32||___syscall(quad_t code, \ | |
477 | ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } | 477 | ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } | |
478 | 199 STD { netbsd32_off_t|netbsd32||lseek(int fd, int PAD, \ | 478 | 199 STD { netbsd32_off_t|netbsd32||lseek(int fd, int PAD, \ | |
479 | netbsd32_off_t offset, int whence); } | 479 | netbsd32_off_t offset, int whence); } | |
480 | 200 STD { int|netbsd32||truncate(netbsd32_charp path, int PAD, \ | 480 | 200 STD { int|netbsd32||truncate(netbsd32_charp path, int PAD, \ | |
481 | netbsd32_off_t length); } | 481 | netbsd32_off_t length); } | |
482 | 201 STD { int|netbsd32||ftruncate(int fd, int PAD, \ | 482 | 201 STD { int|netbsd32||ftruncate(int fd, int PAD, \ | |
483 | netbsd32_off_t length); } | 483 | netbsd32_off_t length); } | |
484 | 202 STD { int|netbsd32||__sysctl(netbsd32_intp name, \ | 484 | 202 STD { int|netbsd32||__sysctl(netbsd32_intp name, \ | |
485 | u_int namelen, netbsd32_voidp oldv, \ | 485 | u_int namelen, netbsd32_voidp oldv, \ | |
486 | netbsd32_size_tp oldlenp, netbsd32_voidp newv, \ | 486 | netbsd32_size_tp oldlenp, netbsd32_voidp newv, \ | |
487 | netbsd32_size_t newlen); } | 487 | netbsd32_size_t newlen); } | |
488 | 203 STD { int|netbsd32||mlock(netbsd32_voidp addr, \ | 488 | 203 STD { int|netbsd32||mlock(netbsd32_voidp addr, \ | |
489 | netbsd32_size_t len); } | 489 | netbsd32_size_t len); } | |
490 | 204 STD { int|netbsd32||munlock(netbsd32_voidp addr, \ | 490 | 204 STD { int|netbsd32||munlock(netbsd32_voidp addr, \ | |
491 | netbsd32_size_t len); } | 491 | netbsd32_size_t len); } | |
492 | 205 STD { int|netbsd32||undelete(netbsd32_charp path); } | 492 | 205 STD { int|netbsd32||undelete(netbsd32_charp path); } | |
493 | 206 COMPAT_50 MODULAR compat_netbsd32_50 \ | 493 | 206 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
494 | { int|netbsd32||futimes(int fd, \ | 494 | { int|netbsd32||futimes(int fd, \ | |
495 | netbsd32_timeval50p_t tptr); } | 495 | netbsd32_timeval50p_t tptr); } | |
496 | 207 STD { int|netbsd32||getpgid(pid_t pid); } | 496 | 207 STD { int|netbsd32||getpgid(pid_t pid); } | |
497 | 208 STD { int|netbsd32||reboot(int opt, \ | 497 | 208 STD { int|netbsd32||reboot(int opt, \ | |
498 | netbsd32_charp bootstr); } | 498 | netbsd32_charp bootstr); } | |
499 | 209 STD { int|netbsd32||poll(netbsd32_pollfdp_t fds, \ | 499 | 209 STD { int|netbsd32||poll(netbsd32_pollfdp_t fds, \ | |
500 | u_int nfds, int timeout); } | 500 | u_int nfds, int timeout); } | |
501 | 210 UNIMPL { int|netbsd32||afssys(long id, long a1, long a2, \ | 501 | 210 UNIMPL { int|netbsd32||afssys(long id, long a1, long a2, \ | |
502 | long a3, long a4, long a5, long a6); } | 502 | long a3, long a4, long a5, long a6); } | |
503 | 211 UNIMPL | 503 | 211 UNIMPL | |
504 | 212 UNIMPL | 504 | 212 UNIMPL | |
505 | 213 UNIMPL | 505 | 213 UNIMPL | |
506 | 214 UNIMPL | 506 | 214 UNIMPL | |
507 | 215 UNIMPL | 507 | 215 UNIMPL | |
508 | 216 UNIMPL | 508 | 216 UNIMPL | |
509 | 217 UNIMPL | 509 | 217 UNIMPL | |
510 | 218 UNIMPL | 510 | 218 UNIMPL | |
511 | 219 UNIMPL | 511 | 219 UNIMPL | |
512 | ; System calls 220-300 are reserved for use by NetBSD | 512 | ; System calls 220-300 are reserved for use by NetBSD | |
513 | 220 COMPAT_14 MODULAR compat_netbsd32_sysvipc_14 \ | 513 | 220 COMPAT_14 MODULAR compat_netbsd32_sysvipc_14 \ | |
514 | { int|netbsd32||__semctl(int semid, int semnum, \ | 514 | { int|netbsd32||__semctl(int semid, int semnum, \ | |
515 | int cmd, netbsd32_semunu_t arg); } | 515 | int cmd, netbsd32_semunu_t arg); } | |
516 | 221 STD MODULAR compat_netbsd32_sysvipc \ | 516 | 221 STD MODULAR compat_netbsd32_sysvipc \ | |
517 | { int|netbsd32||semget(netbsd32_key_t key, int nsems, \ | 517 | { int|netbsd32||semget(netbsd32_key_t key, int nsems, \ | |
518 | int semflg); } | 518 | int semflg); } | |
519 | 222 STD MODULAR compat_netbsd32_sysvipc \ | 519 | 222 STD MODULAR compat_netbsd32_sysvipc \ | |
520 | { int|netbsd32||semop(int semid, \ | 520 | { int|netbsd32||semop(int semid, \ | |
521 | netbsd32_sembufp_t sops, netbsd32_size_t nsops); } | 521 | netbsd32_sembufp_t sops, netbsd32_size_t nsops); } | |
522 | 223 STD MODULAR compat_netbsd32_sysvipc \ | 522 | 223 STD MODULAR compat_netbsd32_sysvipc \ | |
523 | { int|netbsd32||semconfig(int flag); } | 523 | { int|netbsd32||semconfig(int flag); } | |
524 | 224 COMPAT_14 MODULAR compat_netbsd32_sysvipc_14 \ | 524 | 224 COMPAT_14 MODULAR compat_netbsd32_sysvipc_14 \ | |
525 | { int|netbsd32||msgctl(int msqid, int cmd, \ | 525 | { int|netbsd32||msgctl(int msqid, int cmd, \ | |
526 | netbsd32_msqid_ds14p_t buf); } | 526 | netbsd32_msqid_ds14p_t buf); } | |
527 | 225 STD MODULAR compat_netbsd32_sysvipc \ | 527 | 225 STD MODULAR compat_netbsd32_sysvipc \ | |
528 | { int|netbsd32||msgget(netbsd32_key_t key, int msgflg); } | 528 | { int|netbsd32||msgget(netbsd32_key_t key, int msgflg); } | |
529 | 226 STD MODULAR compat_netbsd32_sysvipc \ | 529 | 226 STD MODULAR compat_netbsd32_sysvipc \ | |
530 | { int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \ | 530 | { int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \ | |
531 | netbsd32_size_t msgsz, int msgflg); } | 531 | netbsd32_size_t msgsz, int msgflg); } | |
532 | 227 STD MODULAR compat_netbsd32_sysvipc \ | 532 | 227 STD MODULAR compat_netbsd32_sysvipc \ | |
533 | { netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \ | 533 | { netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \ | |
534 | netbsd32_voidp msgp, netbsd32_size_t msgsz, \ | 534 | netbsd32_voidp msgp, netbsd32_size_t msgsz, \ | |
535 | netbsd32_long msgtyp, int msgflg); } | 535 | netbsd32_long msgtyp, int msgflg); } | |
536 | 228 STD MODULAR compat_netbsd32_sysvipc \ | 536 | 228 STD MODULAR compat_netbsd32_sysvipc \ | |
537 | { netbsd32_voidp|netbsd32||shmat(int shmid, \ | 537 | { netbsd32_voidp|netbsd32||shmat(int shmid, \ | |
538 | netbsd32_voidp shmaddr, int shmflg); } | 538 | netbsd32_voidp shmaddr, int shmflg); } | |
539 | 229 COMPAT_14 MODULAR compat_netbsd32_sysvipc_14 \ | 539 | 229 COMPAT_14 MODULAR compat_netbsd32_sysvipc_14 \ | |
540 | { int|netbsd32||shmctl(int shmid, int cmd, \ | 540 | { int|netbsd32||shmctl(int shmid, int cmd, \ | |
541 | netbsd32_shmid_dsp_t buf); } | 541 | netbsd32_shmid_dsp_t buf); } | |
542 | 230 STD MODULAR compat_netbsd32_sysvipc \ | 542 | 230 STD MODULAR compat_netbsd32_sysvipc \ | |
543 | { int|netbsd32||shmdt(netbsd32_voidp shmaddr); } | 543 | { int|netbsd32||shmdt(netbsd32_voidp shmaddr); } | |
544 | 231 STD MODULAR compat_netbsd32_sysvipc \ | 544 | 231 STD MODULAR compat_netbsd32_sysvipc \ | |
545 | { int|netbsd32||shmget(netbsd32_key_t key, \ | 545 | { int|netbsd32||shmget(netbsd32_key_t key, \ | |
546 | netbsd32_size_t size, int shmflg); } | 546 | netbsd32_size_t size, int shmflg); } | |
547 | 232 COMPAT_50 MODULAR compat_netbsd32_50 \ | 547 | 232 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
548 | { int|netbsd32||clock_gettime( \ | 548 | { int|netbsd32||clock_gettime( \ | |
549 | netbsd32_clockid_t clock_id, \ | 549 | netbsd32_clockid_t clock_id, \ | |
550 | netbsd32_timespec50p_t tp); } | 550 | netbsd32_timespec50p_t tp); } | |
551 | 233 COMPAT_50 MODULAR compat_netbsd32_50 \ | 551 | 233 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
552 | { int|netbsd32||clock_settime( \ | 552 | { int|netbsd32||clock_settime( \ | |
553 | netbsd32_clockid_t clock_id, \ | 553 | netbsd32_clockid_t clock_id, \ | |
554 | netbsd32_timespec50p_t tp); } | 554 | netbsd32_timespec50p_t tp); } | |
555 | 234 COMPAT_50 MODULAR compat_netbsd32_50 \ | 555 | 234 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
556 | { int|netbsd32||clock_getres( \ | 556 | { int|netbsd32||clock_getres( \ | |
557 | netbsd32_clockid_t clock_id, \ | 557 | netbsd32_clockid_t clock_id, \ | |
558 | netbsd32_timespec50p_t tp); } | 558 | netbsd32_timespec50p_t tp); } | |
559 | 235 STD { int|netbsd32||timer_create( \ | 559 | 235 STD { int|netbsd32||timer_create( \ | |
560 | netbsd32_clockid_t clock_id, \ | 560 | netbsd32_clockid_t clock_id, \ | |
561 | netbsd32_sigeventp_t evp, \ | 561 | netbsd32_sigeventp_t evp, \ | |
562 | netbsd32_timerp_t timerid); } | 562 | netbsd32_timerp_t timerid); } | |
563 | 236 STD { int|netbsd32||timer_delete(netbsd32_timer_t timerid); } | 563 | 236 STD { int|netbsd32||timer_delete(netbsd32_timer_t timerid); } | |
564 | 237 COMPAT_50 MODULAR compat_netbsd32_50 \ | 564 | 237 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
565 | { int|netbsd32||timer_settime(netbsd32_timer_t timerid, \ | 565 | { int|netbsd32||timer_settime(netbsd32_timer_t timerid, \ | |
566 | int flags, \ | 566 | int flags, \ | |
567 | netbsd32_itimerspec50p_t value, \ | 567 | netbsd32_itimerspec50p_t value, \ | |
568 | netbsd32_itimerspec50p_t ovalue); } | 568 | netbsd32_itimerspec50p_t ovalue); } | |
569 | 238 COMPAT_50 MODULAR compat_netbsd32_50 \ | 569 | 238 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
570 | { int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \ | 570 | { int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \ | |
571 | netbsd32_itimerspec50p_t value); } | 571 | netbsd32_itimerspec50p_t value); } | |
572 | 239 STD { int|netbsd32||timer_getoverrun( \ | 572 | 239 STD { int|netbsd32||timer_getoverrun( \ | |
573 | netbsd32_timer_t timerid); } | 573 | netbsd32_timer_t timerid); } | |
574 | ; | 574 | ; | |
575 | ; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls | 575 | ; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls | |
576 | ; | 576 | ; | |
577 | 240 COMPAT_50 MODULAR compat_netbsd32_50 \ | 577 | 240 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
578 | { int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \ | 578 | { int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \ | |
579 | netbsd32_timespec50p_t rmtp); } | 579 | netbsd32_timespec50p_t rmtp); } | |
580 | 241 STD { int|netbsd32||fdatasync(int fd); } | 580 | 241 STD { int|netbsd32||fdatasync(int fd); } | |
581 | 242 STD { int|netbsd32||mlockall(int flags); } | 581 | 242 STD { int|netbsd32||mlockall(int flags); } | |
582 | 243 NOARGS { int|sys||munlockall(void); } | 582 | 243 NOARGS { int|sys||munlockall(void); } | |
583 | 244 COMPAT_50 MODULAR compat_netbsd32_50 \ | 583 | 244 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
584 | { int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \ | 584 | { int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \ | |
585 | netbsd32_siginfop_t info, \ | 585 | netbsd32_siginfop_t info, \ | |
586 | netbsd32_timespec50p_t timeout); } | 586 | netbsd32_timespec50p_t timeout); } | |
587 | 245 STD { int|netbsd32||sigqueueinfo(pid_t pid, \ | 587 | 245 STD { int|netbsd32||sigqueueinfo(pid_t pid, \ | |
588 | const netbsd32_siginfop_t info); } | 588 | const netbsd32_siginfop_t info); } | |
589 | 246 STD { int|netbsd32||modctl(int cmd, netbsd32_voidp arg); } | 589 | 246 STD { int|netbsd32||modctl(int cmd, netbsd32_voidp arg); } | |
590 | 247 STD { int|netbsd32||_ksem_init(unsigned int value, \ | 590 | 247 STD { int|netbsd32||_ksem_init(unsigned int value, \ | |
591 | netbsd32_semidp_t idp); } | 591 | netbsd32_semidp_t idp); } | |
592 | 248 STD { int|netbsd32||_ksem_open(netbsd32_charp name, \ | 592 | 248 STD { int|netbsd32||_ksem_open(netbsd32_charp name, \ | |
593 | int oflag, mode_t mode, unsigned int value, \ | 593 | int oflag, mode_t mode, unsigned int value, \ | |
594 | netbsd32_semidp_t idp); } | 594 | netbsd32_semidp_t idp); } | |
595 | 249 STD { int|netbsd32||_ksem_unlink(netbsd32_charp name); } | 595 | 249 STD { int|netbsd32||_ksem_unlink(netbsd32_charp name); } | |
596 | 250 STD { int|netbsd32||_ksem_close(netbsd32_intptr_t id); } | 596 | 250 STD { int|netbsd32||_ksem_close(netbsd32_intptr_t id); } | |
597 | 251 STD { int|netbsd32||_ksem_post(netbsd32_intptr_t id); } | 597 | 251 STD { int|netbsd32||_ksem_post(netbsd32_intptr_t id); } | |
598 | 252 STD { int|netbsd32||_ksem_wait(netbsd32_intptr_t id); } | 598 | 252 STD { int|netbsd32||_ksem_wait(netbsd32_intptr_t id); } | |
599 | 253 STD { int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); } | 599 | 253 STD { int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); } | |
600 | 254 STD { int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \ | 600 | 254 STD { int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \ | |
601 | netbsd32_intp value); } | 601 | netbsd32_intp value); } | |
602 | 255 STD { int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); } | 602 | 255 STD { int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); } | |
603 | 256 STD { int|netbsd32||_ksem_timedwait(intptr_t id, \ | 603 | 256 STD { int|netbsd32||_ksem_timedwait(intptr_t id, \ | |
604 | const netbsd32_timespecp_t abstime); } | 604 | const netbsd32_timespecp_t abstime); } | |
605 | 257 STD MODULAR compat_netbsd32_mqueue \ | 605 | 257 STD MODULAR compat_netbsd32_mqueue \ | |
606 | { mqd_t|netbsd32||mq_open(const netbsd32_charp name, \ | 606 | { mqd_t|netbsd32||mq_open(const netbsd32_charp name, \ | |
607 | int oflag, mode_t mode, \ | 607 | int oflag, mode_t mode, \ | |
608 | netbsd32_mq_attrp_t attr); } | 608 | netbsd32_mq_attrp_t attr); } | |
609 | 258 STD MODULAR compat_netbsd32_mqueue \ | 609 | 258 STD MODULAR compat_netbsd32_mqueue \ | |
610 | { int|netbsd32||mq_close(mqd_t mqdes); } | 610 | { int|netbsd32||mq_close(mqd_t mqdes); } | |
611 | 259 STD MODULAR compat_netbsd32_mqueue \ | 611 | 259 STD MODULAR compat_netbsd32_mqueue \ | |
612 | { int|netbsd32||mq_unlink(const netbsd32_charp name); } | 612 | { int|netbsd32||mq_unlink(const netbsd32_charp name); } | |
613 | 260 STD MODULAR compat_netbsd32_mqueue \ | 613 | 260 STD MODULAR compat_netbsd32_mqueue \ | |
614 | { int|netbsd32||mq_getattr(mqd_t mqdes, \ | 614 | { int|netbsd32||mq_getattr(mqd_t mqdes, \ | |
615 | netbsd32_mq_attrp_t mqstat); } | 615 | netbsd32_mq_attrp_t mqstat); } | |
616 | 261 STD MODULAR compat_netbsd32_mqueue \ | 616 | 261 STD MODULAR compat_netbsd32_mqueue \ | |
617 | { int|netbsd32||mq_setattr(mqd_t mqdes, \ | 617 | { int|netbsd32||mq_setattr(mqd_t mqdes, \ | |
618 | const netbsd32_mq_attrp_t mqstat, \ | 618 | const netbsd32_mq_attrp_t mqstat, \ | |
619 | netbsd32_mq_attrp_t omqstat); } | 619 | netbsd32_mq_attrp_t omqstat); } | |
620 | 262 STD MODULAR compat_netbsd32_mqueue \ | 620 | 262 STD MODULAR compat_netbsd32_mqueue \ | |
621 | { int|netbsd32||mq_notify(mqd_t mqdes, \ | 621 | { int|netbsd32||mq_notify(mqd_t mqdes, \ | |
622 | const netbsd32_sigeventp_t notification); } | 622 | const netbsd32_sigeventp_t notification); } | |
623 | 263 STD MODULAR compat_netbsd32_mqueue \ | 623 | 263 STD MODULAR compat_netbsd32_mqueue \ | |
624 | { int|netbsd32||mq_send(mqd_t mqdes, \ | 624 | { int|netbsd32||mq_send(mqd_t mqdes, \ | |
625 | const netbsd32_charp msg_ptr, \ | 625 | const netbsd32_charp msg_ptr, \ | |
626 | netbsd32_size_t msg_len, unsigned msg_prio); } | 626 | netbsd32_size_t msg_len, unsigned msg_prio); } | |
627 | 264 STD MODULAR compat_netbsd32_mqueue \ | 627 | 264 STD MODULAR compat_netbsd32_mqueue \ | |
628 | { netbsd32_ssize_t|netbsd32||mq_receive(mqd_t mqdes, \ | 628 | { netbsd32_ssize_t|netbsd32||mq_receive(mqd_t mqdes, \ | |
629 | netbsd32_charp msg_ptr, \ | 629 | netbsd32_charp msg_ptr, \ | |
630 | netbsd32_size_t msg_len, netbsd32_uintp msg_prio); } | 630 | netbsd32_size_t msg_len, netbsd32_uintp msg_prio); } | |
631 | 265 COMPAT_50 MODULAR compat_netbsd32_mqueue \ | 631 | 265 COMPAT_50 MODULAR compat_netbsd32_mqueue \ | |
632 | { int|netbsd32||mq_timedsend(mqd_t mqdes, \ | 632 | { int|netbsd32||mq_timedsend(mqd_t mqdes, \ | |
633 | const netbsd32_charp msg_ptr, \ | 633 | const netbsd32_charp msg_ptr, \ | |
634 | netbsd32_size_t msg_len, \ | 634 | netbsd32_size_t msg_len, \ | |
635 | unsigned msg_prio, \ | 635 | unsigned msg_prio, \ | |
636 | const netbsd32_timespec50p_t abs_timeout); } | 636 | const netbsd32_timespec50p_t abs_timeout); } | |
637 | 266 COMPAT_50 MODULAR compat_netbsd32_mqueue \ | 637 | 266 COMPAT_50 MODULAR compat_netbsd32_mqueue \ | |
638 | { netbsd32_ssize_t|netbsd32||mq_timedreceive( \ | 638 | { netbsd32_ssize_t|netbsd32||mq_timedreceive( \ | |
639 | mqd_t mqdes, \ | 639 | mqd_t mqdes, \ | |
640 | netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \ | 640 | netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \ | |
641 | netbsd32_uintp msg_prio, \ | 641 | netbsd32_uintp msg_prio, \ | |
642 | const netbsd32_timespec50p_t abs_timeout); } | 642 | const netbsd32_timespec50p_t abs_timeout); } | |
643 | 267 STD { int|netbsd32||eventfd(unsigned int val, int flags); } | 643 | 267 STD { int|netbsd32||eventfd(unsigned int val, int flags); } | |
644 | 268 UNIMPL | 644 | 268 UNIMPL | |
645 | 269 UNIMPL | 645 | 269 UNIMPL | |
646 | 270 STD { int|netbsd32||__posix_rename(netbsd32_charp from, \ | 646 | 270 STD { int|netbsd32||__posix_rename(netbsd32_charp from, \ | |
647 | netbsd32_charp to); } | 647 | netbsd32_charp to); } | |
648 | 271 STD { int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \ | 648 | 271 STD { int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \ | |
649 | int misc); } | 649 | int misc); } | |
650 | 272 COMPAT_30 MODULAR compat_netbsd32_30 \ | 650 | 272 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
651 | { int|netbsd32||getdents(int fd, netbsd32_charp buf, \ | 651 | { int|netbsd32||getdents(int fd, netbsd32_charp buf, \ | |
652 | netbsd32_size_t count); } | 652 | netbsd32_size_t count); } | |
653 | 273 STD { int|netbsd32||minherit(netbsd32_voidp addr, \ | 653 | 273 STD { int|netbsd32||minherit(netbsd32_voidp addr, \ | |
654 | netbsd32_size_t len, int inherit); } | 654 | netbsd32_size_t len, int inherit); } | |
655 | 274 STD { int|netbsd32||lchmod(netbsd32_charp path, \ | 655 | 274 STD { int|netbsd32||lchmod(netbsd32_charp path, \ | |
656 | mode_t mode); } | 656 | mode_t mode); } | |
657 | 275 STD { int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \ | 657 | 275 STD { int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \ | |
658 | gid_t gid); } | 658 | gid_t gid); } | |
659 | 276 COMPAT_50 MODULAR compat_netbsd32_50 \ | 659 | 276 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
660 | { int|netbsd32||lutimes(netbsd32_charp path, \ | 660 | { int|netbsd32||lutimes(netbsd32_charp path, \ | |
661 | netbsd32_timeval50p_t tptr); } | 661 | netbsd32_timeval50p_t tptr); } | |
662 | 277 STD { int|netbsd32|13|msync(netbsd32_voidp addr, \ | 662 | 277 STD { int|netbsd32|13|msync(netbsd32_voidp addr, \ | |
663 | netbsd32_size_t len, int flags); } | 663 | netbsd32_size_t len, int flags); } | |
664 | 278 COMPAT_30 MODULAR compat_netbsd32_30 \ | 664 | 278 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
665 | { int|netbsd32|13|stat(netbsd32_charp path, \ | 665 | { int|netbsd32|13|stat(netbsd32_charp path, \ | |
666 | netbsd32_stat13p_t ub); } | 666 | netbsd32_stat13p_t ub); } | |
667 | 279 COMPAT_30 MODULAR compat_netbsd32_30 \ | 667 | 279 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
668 | { int|netbsd32|13|fstat(int fd, \ | 668 | { int|netbsd32|13|fstat(int fd, \ | |
669 | netbsd32_stat13p_t sb); } | 669 | netbsd32_stat13p_t sb); } | |
670 | 280 COMPAT_30 MODULAR compat_netbsd32_30 \ | 670 | 280 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
671 | { int|netbsd32|13|lstat(netbsd32_charp path, \ | 671 | { int|netbsd32|13|lstat(netbsd32_charp path, \ | |
672 | netbsd32_stat13p_t ub); } | 672 | netbsd32_stat13p_t ub); } | |
673 | 281 STD { int|netbsd32|14|sigaltstack(\ | 673 | 281 STD { int|netbsd32|14|sigaltstack(\ | |
674 | netbsd32_sigaltstackp_t nss, \ | 674 | netbsd32_sigaltstackp_t nss, \ | |
675 | netbsd32_sigaltstackp_t oss); } | 675 | netbsd32_sigaltstackp_t oss); } | |
676 | 282 NOARGS { int|sys|14|vfork(void); } | 676 | 282 NOARGS { int|sys|14|vfork(void); } | |
677 | 283 STD { int|netbsd32||__posix_chown(netbsd32_charp path, \ | 677 | 283 STD { int|netbsd32||__posix_chown(netbsd32_charp path, \ | |
678 | uid_t uid, gid_t gid); } | 678 | uid_t uid, gid_t gid); } | |
679 | 284 STD { int|netbsd32||__posix_fchown(int fd, uid_t uid, \ | 679 | 284 STD { int|netbsd32||__posix_fchown(int fd, uid_t uid, \ | |
680 | gid_t gid); } | 680 | gid_t gid); } | |
681 | 285 STD { int|netbsd32||__posix_lchown(netbsd32_charp path, \ | 681 | 285 STD { int|netbsd32||__posix_lchown(netbsd32_charp path, \ | |
682 | uid_t uid, gid_t gid); } | 682 | uid_t uid, gid_t gid); } | |
683 | 286 STD { pid_t|netbsd32||getsid(pid_t pid); } | 683 | 286 STD { pid_t|netbsd32||getsid(pid_t pid); } | |
684 | 287 STD { int|netbsd32||__clone(int flags, \ | 684 | 287 STD { int|netbsd32||__clone(int flags, \ | |
685 | netbsd32_voidp stack); } | 685 | netbsd32_voidp stack); } | |
686 | 288 STD { int|netbsd32||fktrace(int fd, int ops, int facs, \ | 686 | 288 STD { int|netbsd32||fktrace(int fd, int ops, int facs, \ | |
687 | int pid); } | 687 | int pid); } | |
688 | 289 STD { netbsd32_ssize_t|netbsd32||preadv(int fd, \ | 688 | 289 STD { netbsd32_ssize_t|netbsd32||preadv(int fd, \ | |
689 | netbsd32_iovecp_t iovp, int iovcnt, int PAD, \ | 689 | netbsd32_iovecp_t iovp, int iovcnt, int PAD, \ | |
690 | netbsd32_off_t offset); } | 690 | netbsd32_off_t offset); } | |
691 | 290 STD { netbsd32_ssize_t|netbsd32||pwritev(int fd, \ | 691 | 290 STD { netbsd32_ssize_t|netbsd32||pwritev(int fd, \ | |
692 | netbsd32_iovecp_t iovp, int iovcnt, int PAD, \ | 692 | netbsd32_iovecp_t iovp, int iovcnt, int PAD, \ | |
693 | netbsd32_off_t offset); } | 693 | netbsd32_off_t offset); } | |
694 | 291 STD { int|netbsd32|14|sigaction(int signum, \ | 694 | 291 STD { int|netbsd32|14|sigaction(int signum, \ | |
695 | netbsd32_sigactionp_t nsa, \ | 695 | netbsd32_sigactionp_t nsa, \ | |
696 | netbsd32_sigactionp_t osa); } | 696 | netbsd32_sigactionp_t osa); } | |
697 | 292 STD { int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); } | 697 | 292 STD { int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); } | |
698 | 293 STD { int|netbsd32|14|sigprocmask(int how, \ | 698 | 293 STD { int|netbsd32|14|sigprocmask(int how, \ | |
699 | netbsd32_sigsetp_t set, \ | 699 | netbsd32_sigsetp_t set, \ | |
700 | netbsd32_sigsetp_t oset); } | 700 | netbsd32_sigsetp_t oset); } | |
701 | 294 STD { int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); } | 701 | 294 STD { int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); } | |
702 | 295 COMPAT_16 MODULAR compat_netbsd32_16 \ | 702 | 295 COMPAT_16 MODULAR compat_netbsd32_16 \ | |
703 | { int|netbsd32|14|sigreturn( \ | 703 | { int|netbsd32|14|sigreturn( \ | |
704 | netbsd32_sigcontextp_t sigcntxp); } | 704 | netbsd32_sigcontextp_t sigcntxp); } | |
705 | 296 STD { int|netbsd32||__getcwd(netbsd32_charp bufp, \ | 705 | 296 STD { int|netbsd32||__getcwd(netbsd32_charp bufp, \ | |
706 | netbsd32_size_t length); } | 706 | netbsd32_size_t length); } | |
707 | 297 STD { int|netbsd32||fchroot(int fd); } | 707 | 297 STD { int|netbsd32||fchroot(int fd); } | |
708 | 298 COMPAT_30 MODULAR compat_netbsd32_30 \ | 708 | 298 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
709 | { int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \ | 709 | { int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \ | |
710 | int flags); } | 710 | int flags); } | |
711 | 299 COMPAT_30 MODULAR compat_netbsd32_30 \ | 711 | 299 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
712 | { int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \ | 712 | { int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \ | |
713 | netbsd32_stat13p_t sb); } | 713 | netbsd32_stat13p_t sb); } | |
714 | 300 COMPAT_20 MODULAR compat_netbsd32_20 \ | 714 | 300 COMPAT_20 MODULAR compat_netbsd32_20 \ | |
715 | { int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \ | 715 | { int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \ | |
716 | netbsd32_stat50p_t buf); } | 716 | netbsd32_stat50p_t buf); } | |
717 | 301 COMPAT_50 MODULAR compat_netbsd32_sysvipc_50 \ | 717 | 301 COMPAT_50 MODULAR compat_netbsd32_sysvipc_50 \ | |
718 | { int|netbsd32|14|semctl(int semid, int semnum, \ | 718 | { int|netbsd32|14|semctl(int semid, int semnum, \ | |
719 | int cmd, ... netbsd32_semun50p_t arg); } | 719 | int cmd, ... netbsd32_semun50p_t arg); } | |
720 | 302 COMPAT_50 MODULAR compat_netbsd32_sysvipc_50 \ | 720 | 302 COMPAT_50 MODULAR compat_netbsd32_sysvipc_50 \ | |
721 | { int|netbsd32|13|msgctl(int msqid, int cmd, \ | 721 | { int|netbsd32|13|msgctl(int msqid, int cmd, \ | |
722 | netbsd32_msqid_ds50p_t buf); } | 722 | netbsd32_msqid_ds50p_t buf); } | |
723 | 303 COMPAT_50 MODULAR compat_netbsd32_sysvipc_50 \ | 723 | 303 COMPAT_50 MODULAR compat_netbsd32_sysvipc_50 \ | |
724 | { int|netbsd32|13|shmctl(int shmid, int cmd, \ | 724 | { int|netbsd32|13|shmctl(int shmid, int cmd, \ | |
725 | netbsd32_shmid_ds50p_t buf); } | 725 | netbsd32_shmid_ds50p_t buf); } | |
726 | 304 STD { int|netbsd32||lchflags(netbsd32_charp path, \ | 726 | 304 STD { int|netbsd32||lchflags(netbsd32_charp path, \ | |
727 | netbsd32_u_long flags); } | 727 | netbsd32_u_long flags); } | |
728 | 305 NOARGS { int|sys||issetugid(void); } | 728 | 305 NOARGS { int|sys||issetugid(void); } | |
729 | 306 STD { int|netbsd32||utrace(netbsd32_charp label, \ | 729 | 306 STD { int|netbsd32||utrace(netbsd32_charp label, \ | |
730 | netbsd32_voidp addr, netbsd32_size_t len); } | 730 | netbsd32_voidp addr, netbsd32_size_t len); } | |
731 | 307 STD { int|netbsd32||getcontext(netbsd32_ucontextp ucp); } | 731 | 307 STD { int|netbsd32||getcontext(netbsd32_ucontextp ucp); } | |
732 | 308 STD { int|netbsd32||setcontext(netbsd32_ucontextp ucp); } | 732 | 308 STD { int|netbsd32||setcontext(netbsd32_ucontextp ucp); } | |
733 | 309 STD { int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \ | 733 | 309 STD { int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \ | |
734 | netbsd32_u_long flags, netbsd32_lwpidp new_lwp); } | 734 | netbsd32_u_long flags, netbsd32_lwpidp new_lwp); } | |
735 | 310 NOARGS { int|sys||_lwp_exit(void); } | 735 | 310 NOARGS { int|sys||_lwp_exit(void); } | |
736 | 311 NOARGS { lwpid_t|sys||_lwp_self(void); } | 736 | 311 NOARGS { lwpid_t|sys||_lwp_self(void); } | |
737 | 312 STD { int|netbsd32||_lwp_wait(lwpid_t wait_for, \ | 737 | 312 STD { int|netbsd32||_lwp_wait(lwpid_t wait_for, \ | |
738 | netbsd32_lwpidp departed); } | 738 | netbsd32_lwpidp departed); } | |
739 | 313 STD { int|netbsd32||_lwp_suspend(lwpid_t target); } | 739 | 313 STD { int|netbsd32||_lwp_suspend(lwpid_t target); } | |
740 | 314 STD { int|netbsd32||_lwp_continue(lwpid_t target); } | 740 | 314 STD { int|netbsd32||_lwp_continue(lwpid_t target); } | |
741 | 315 STD { int|netbsd32||_lwp_wakeup(lwpid_t target); } | 741 | 315 STD { int|netbsd32||_lwp_wakeup(lwpid_t target); } | |
742 | 316 NOARGS { netbsd32_voidp|sys||_lwp_getprivate(void); } | 742 | 316 NOARGS { netbsd32_voidp|sys||_lwp_getprivate(void); } | |
743 | 317 STD { void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); } | 743 | 317 STD { void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); } | |
744 | 318 STD { int|netbsd32||_lwp_kill(lwpid_t target, int signo); } | 744 | 318 STD { int|netbsd32||_lwp_kill(lwpid_t target, int signo); } | |
745 | 319 STD { int|netbsd32||_lwp_detach(lwpid_t target); } | 745 | 319 STD { int|netbsd32||_lwp_detach(lwpid_t target); } | |
746 | 320 COMPAT_50 MODULAR compat_netbsd32_50 \ | 746 | 320 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
747 | { int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \ | 747 | { int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \ | |
748 | lwpid_t unpark, netbsd32_voidp hint, \ | 748 | lwpid_t unpark, netbsd32_voidp hint, \ | |
749 | netbsd32_voidp unparkhint); } | 749 | netbsd32_voidp unparkhint); } | |
750 | 321 STD { int|netbsd32||_lwp_unpark(lwpid_t target, \ | 750 | 321 STD { int|netbsd32||_lwp_unpark(lwpid_t target, \ | |
751 | netbsd32_voidp hint); } | 751 | netbsd32_voidp hint); } | |
752 | 322 STD { netbsd32_size_t|netbsd32||_lwp_unpark_all( \ | 752 | 322 STD { netbsd32_size_t|netbsd32||_lwp_unpark_all( \ | |
753 | netbsd32_lwpidp targets, netbsd32_size_t ntargets, \ | 753 | netbsd32_lwpidp targets, netbsd32_size_t ntargets, \ | |
754 | netbsd32_voidp hint); } | 754 | netbsd32_voidp hint); } | |
755 | 323 STD { int|netbsd32||_lwp_setname(lwpid_t target, \ | 755 | 323 STD { int|netbsd32||_lwp_setname(lwpid_t target, \ | |
756 | netbsd32_charp name); } | 756 | netbsd32_charp name); } | |
757 | 324 STD { int|netbsd32||_lwp_getname(lwpid_t target, \ | 757 | 324 STD { int|netbsd32||_lwp_getname(lwpid_t target, \ | |
758 | netbsd32_charp name, netbsd32_size_t len); } | 758 | netbsd32_charp name, netbsd32_size_t len); } | |
759 | 325 STD { int|netbsd32||_lwp_ctl(int features, \ | 759 | 325 STD { int|netbsd32||_lwp_ctl(int features, \ | |
760 | netbsd32_pointer_t address); } | 760 | netbsd32_pointer_t address); } | |
761 | 326 UNIMPL | 761 | 326 UNIMPL | |
762 | 327 UNIMPL | 762 | 327 UNIMPL | |
763 | 328 UNIMPL | 763 | 328 UNIMPL | |
764 | 329 UNIMPL | 764 | 329 UNIMPL | |
765 | 330 OBSOL netbsd32_sa_register | 765 | 330 OBSOL netbsd32_sa_register | |
766 | 331 OBSOL netbsd32_sa_stacks | 766 | 331 OBSOL netbsd32_sa_stacks | |
767 | 332 OBSOL sa_enable | 767 | 332 OBSOL sa_enable | |
768 | 333 OBSOL netbsd32_sa_setconcurrency | 768 | 333 OBSOL netbsd32_sa_setconcurrency | |
769 | 334 OBSOL sa_yield | 769 | 334 OBSOL sa_yield | |
770 | 335 OBSOL netbsd32_sa_preempt | 770 | 335 OBSOL netbsd32_sa_preempt | |
771 | 336 OBSOL sys_sa_unblockyield | 771 | 336 OBSOL sys_sa_unblockyield | |
772 | 337 UNIMPL | 772 | 337 UNIMPL | |
773 | 338 UNIMPL | 773 | 338 UNIMPL | |
774 | 339 UNIMPL | 774 | 339 UNIMPL | |
775 | 340 STD { int|netbsd32||__sigaction_sigtramp(int signum, \ | 775 | 340 STD { int|netbsd32||__sigaction_sigtramp(int signum, \ | |
776 | netbsd32_sigactionp_t nsa, \ | 776 | netbsd32_sigactionp_t nsa, \ | |
777 | netbsd32_sigactionp_t osa, \ | 777 | netbsd32_sigactionp_t osa, \ | |
778 | netbsd32_voidp tramp, int vers); } | 778 | netbsd32_voidp tramp, int vers); } | |
779 | 341 OBSOL netbsd32_pmc_get_info | 779 | 341 OBSOL netbsd32_pmc_get_info | |
780 | 342 OBSOL netbsd32_pmc_control | 780 | 342 OBSOL netbsd32_pmc_control | |
781 | 343 STD { int|netbsd32||rasctl(netbsd32_voidp addr, \ | 781 | 343 STD { int|netbsd32||rasctl(netbsd32_voidp addr, \ | |
782 | netbsd32_size_t len, int op); } | 782 | netbsd32_size_t len, int op); } | |
783 | 344 NOARGS { int|sys||kqueue(void); } | 783 | 344 NOARGS { int|sys||kqueue(void); } | |
784 | 345 COMPAT_50 MODULAR compat_netbsd32_50 \ | 784 | 345 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
785 | { int|netbsd32||kevent(int fd, \ | 785 | { int|netbsd32||kevent(int fd, \ | |
786 | netbsd32_kevent100p_t changelist, \ | 786 | netbsd32_kevent100p_t changelist, \ | |
787 | netbsd32_size_t nchanges, \ | 787 | netbsd32_size_t nchanges, \ | |
788 | netbsd32_kevent100p_t eventlist, \ | 788 | netbsd32_kevent100p_t eventlist, \ | |
789 | netbsd32_size_t nevents, \ | 789 | netbsd32_size_t nevents, \ | |
790 | netbsd32_timespec50p_t timeout); } | 790 | netbsd32_timespec50p_t timeout); } | |
791 | ; Scheduling system calls. | 791 | ; Scheduling system calls. | |
792 | 346 STD { int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \ | 792 | 346 STD { int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \ | |
793 | int policy, const netbsd32_sched_paramp_t params); } | 793 | int policy, const netbsd32_sched_paramp_t params); } | |
794 | 347 STD { int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \ | 794 | 347 STD { int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \ | |
795 | netbsd32_intp policy, \ | 795 | netbsd32_intp policy, \ | |
796 | netbsd32_sched_paramp_t params); } | 796 | netbsd32_sched_paramp_t params); } | |
797 | 348 STD { int|netbsd32||_sched_setaffinity(pid_t pid, \ | 797 | 348 STD { int|netbsd32||_sched_setaffinity(pid_t pid, \ | |
798 | lwpid_t lid, netbsd32_size_t size, \ | 798 | lwpid_t lid, netbsd32_size_t size, \ | |
799 | const netbsd32_cpusetp_t cpuset); } | 799 | const netbsd32_cpusetp_t cpuset); } | |
800 | 349 STD { int|netbsd32||_sched_getaffinity(pid_t pid, \ | 800 | 349 STD { int|netbsd32||_sched_getaffinity(pid_t pid, \ | |
801 | lwpid_t lid, netbsd32_size_t size, \ | 801 | lwpid_t lid, netbsd32_size_t size, \ | |
802 | netbsd32_cpusetp_t cpuset); } | 802 | netbsd32_cpusetp_t cpuset); } | |
803 | 350 NOARGS { int|sys||sched_yield(void); } | 803 | 350 NOARGS { int|sys||sched_yield(void); } | |
804 | 351 STD { int|netbsd32||_sched_protect(int priority); } | 804 | 351 STD { int|netbsd32||_sched_protect(int priority); } | |
805 | 352 UNIMPL | 805 | 352 UNIMPL | |
806 | 353 UNIMPL | 806 | 353 UNIMPL | |
807 | 354 STD { int|netbsd32||fsync_range(int fd, int flags, \ | 807 | 354 STD { int|netbsd32||fsync_range(int fd, int flags, \ | |
808 | netbsd32_off_t start, netbsd32_off_t length); } | 808 | netbsd32_off_t start, netbsd32_off_t length); } | |
809 | 355 STD { int|netbsd32||uuidgen(netbsd32_uuidp_t store, \ | 809 | 355 STD { int|netbsd32||uuidgen(netbsd32_uuidp_t store, \ | |
810 | int count); } | 810 | int count); } | |
811 | 356 COMPAT_90 MODULAR compat_netbsd32_90 \ | 811 | 356 COMPAT_90 MODULAR compat_netbsd32_90 \ | |
812 | { int|netbsd32||getvfsstat(netbsd32_statvfs90p_t buf, \ | 812 | { int|netbsd32||getvfsstat(netbsd32_statvfs90p_t buf, \ | |
813 | netbsd32_size_t bufsize, int flags); } | 813 | netbsd32_size_t bufsize, int flags); } | |
814 | 357 COMPAT_90 MODULAR compat_netbsd32_90 \ | 814 | 357 COMPAT_90 MODULAR compat_netbsd32_90 \ | |
815 | { int|netbsd32||statvfs1(netbsd32_charp path, \ | 815 | { int|netbsd32||statvfs1(netbsd32_charp path, \ | |
816 | netbsd32_statvfs90p_t buf, int flags); } | 816 | netbsd32_statvfs90p_t buf, int flags); } | |
817 | 358 COMPAT_90 MODULAR compat_netbsd32_90 \ | 817 | 358 COMPAT_90 MODULAR compat_netbsd32_90 \ | |
818 | { int|netbsd32||fstatvfs1(int fd, \ | 818 | { int|netbsd32||fstatvfs1(int fd, \ | |
819 | netbsd32_statvfs90p_t buf, int flags); } | 819 | netbsd32_statvfs90p_t buf, int flags); } | |
820 | 359 COMPAT_30 MODULAR compat_netbsd32_30 \ | 820 | 359 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
821 | { int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \ | 821 | { int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \ | |
822 | netbsd32_statvfs90p_t buf, int flags); } | 822 | netbsd32_statvfs90p_t buf, int flags); } | |
823 | 360 STD { int|netbsd32||extattrctl(netbsd32_charp path, \ | 823 | 360 STD { int|netbsd32||extattrctl(netbsd32_charp path, \ | |
824 | int cmd, netbsd32_charp filename, \ | 824 | int cmd, netbsd32_charp filename, \ | |
825 | int attrnamespace, netbsd32_charp attrname); } | 825 | int attrnamespace, netbsd32_charp attrname); } | |
826 | 361 STD { int|netbsd32||extattr_set_file(netbsd32_charp path, \ | 826 | 361 STD { int|netbsd32||extattr_set_file(netbsd32_charp path, \ | |
827 | int attrnamespace, netbsd32_charp attrname, \ | 827 | int attrnamespace, netbsd32_charp attrname, \ | |
828 | netbsd32_voidp data, netbsd32_size_t nbytes); } | 828 | netbsd32_voidp data, netbsd32_size_t nbytes); } | |
829 | 362 STD { int|netbsd32||extattr_get_file(netbsd32_charp path, \ | 829 | 362 STD { int|netbsd32||extattr_get_file(netbsd32_charp path, \ | |
830 | int attrnamespace, netbsd32_charp attrname, \ | 830 | int attrnamespace, netbsd32_charp attrname, \ | |
831 | netbsd32_voidp data, netbsd32_size_t nbytes); } | 831 | netbsd32_voidp data, netbsd32_size_t nbytes); } | |
832 | 363 STD { int|netbsd32||extattr_delete_file( \ | 832 | 363 STD { int|netbsd32||extattr_delete_file( \ | |
833 | netbsd32_charp path, int attrnamespace, \ | 833 | netbsd32_charp path, int attrnamespace, \ | |
834 | netbsd32_charp attrname); } | 834 | netbsd32_charp attrname); } | |
835 | 364 STD { int|netbsd32||extattr_set_fd(int fd, \ | 835 | 364 STD { int|netbsd32||extattr_set_fd(int fd, \ | |
836 | int attrnamespace, netbsd32_charp attrname, \ | 836 | int attrnamespace, netbsd32_charp attrname, \ | |
837 | netbsd32_voidp data, netbsd32_size_t nbytes); } | 837 | netbsd32_voidp data, netbsd32_size_t nbytes); } | |
838 | 365 STD { int|netbsd32||extattr_get_fd(int fd, \ | 838 | 365 STD { int|netbsd32||extattr_get_fd(int fd, \ | |
839 | int attrnamespace, netbsd32_charp attrname, \ | 839 | int attrnamespace, netbsd32_charp attrname, \ | |
840 | netbsd32_voidp data, netbsd32_size_t nbytes); } | 840 | netbsd32_voidp data, netbsd32_size_t nbytes); } | |
841 | 366 STD { int|netbsd32||extattr_delete_fd(int fd, \ | 841 | 366 STD { int|netbsd32||extattr_delete_fd(int fd, \ | |
842 | int attrnamespace, netbsd32_charp attrname); } | 842 | int attrnamespace, netbsd32_charp attrname); } | |
843 | 367 STD { int|netbsd32||extattr_set_link(netbsd32_charp path, \ | 843 | 367 STD { int|netbsd32||extattr_set_link(netbsd32_charp path, \ | |
844 | int attrnamespace, netbsd32_charp attrname, \ | 844 | int attrnamespace, netbsd32_charp attrname, \ | |
845 | netbsd32_voidp data, netbsd32_size_t nbytes); } | 845 | netbsd32_voidp data, netbsd32_size_t nbytes); } | |
846 | 368 STD { int|netbsd32||extattr_get_link(netbsd32_charp path, \ | 846 | 368 STD { int|netbsd32||extattr_get_link(netbsd32_charp path, \ | |
847 | int attrnamespace, netbsd32_charp attrname, \ | 847 | int attrnamespace, netbsd32_charp attrname, \ | |
848 | netbsd32_voidp data, netbsd32_size_t nbytes); } | 848 | netbsd32_voidp data, netbsd32_size_t nbytes); } | |
849 | 369 STD { int|netbsd32||extattr_delete_link( \ | 849 | 369 STD { int|netbsd32||extattr_delete_link( \ | |
850 | netbsd32_charp path, int attrnamespace, \ | 850 | netbsd32_charp path, int attrnamespace, \ | |
851 | netbsd32_charp attrname); } | 851 | netbsd32_charp attrname); } | |
852 | 370 STD { int|netbsd32||extattr_list_fd(int fd, \ | 852 | 370 STD { int|netbsd32||extattr_list_fd(int fd, \ | |
853 | int attrnamespace, netbsd32_voidp data, \ | 853 | int attrnamespace, netbsd32_voidp data, \ | |
854 | netbsd32_size_t nbytes); } | 854 | netbsd32_size_t nbytes); } | |
855 | 371 STD { int|netbsd32||extattr_list_file(netbsd32_charp path, \ | 855 | 371 STD { int|netbsd32||extattr_list_file(netbsd32_charp path, \ | |
856 | int attrnamespace, netbsd32_voidp data, \ | 856 | int attrnamespace, netbsd32_voidp data, \ | |
857 | netbsd32_size_t nbytes); } | 857 | netbsd32_size_t nbytes); } | |
858 | 372 STD { int|netbsd32||extattr_list_link(netbsd32_charp path, \ | 858 | 372 STD { int|netbsd32||extattr_list_link(netbsd32_charp path, \ | |
859 | int attrnamespace, netbsd32_voidp data, \ | 859 | int attrnamespace, netbsd32_voidp data, \ | |
860 | netbsd32_size_t nbytes); } | 860 | netbsd32_size_t nbytes); } | |
861 | 373 COMPAT_50 MODULAR compat_netbsd32_50 \ | 861 | 373 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
862 | { int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \ | 862 | { int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \ | |
863 | netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ | 863 | netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ | |
864 | netbsd32_timespec50p_t ts, \ | 864 | netbsd32_timespec50p_t ts, \ | |
865 | netbsd32_sigsetp_t mask); } | 865 | netbsd32_sigsetp_t mask); } | |
866 | 374 COMPAT_50 MODULAR compat_netbsd32_50 \ | 866 | 374 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
867 | { int|netbsd32||pollts(netbsd32_pollfdp_t fds, \ | 867 | { int|netbsd32||pollts(netbsd32_pollfdp_t fds, \ | |
868 | u_int nfds, netbsd32_timespec50p_t ts, \ | 868 | u_int nfds, netbsd32_timespec50p_t ts, \ | |
869 | netbsd32_sigsetp_t mask); } | 869 | netbsd32_sigsetp_t mask); } | |
870 | 375 STD { int|netbsd32||setxattr(netbsd32_charp path, \ | 870 | 375 STD { int|netbsd32||setxattr(netbsd32_charp path, \ | |
871 | netbsd32_charp name, netbsd32_voidp value, \ | 871 | netbsd32_charp name, netbsd32_voidp value, \ | |
872 | netbsd32_size_t size, int flags); } | 872 | netbsd32_size_t size, int flags); } | |
873 | 376 STD { int|netbsd32||lsetxattr(netbsd32_charp path, \ | 873 | 376 STD { int|netbsd32||lsetxattr(netbsd32_charp path, \ | |
874 | netbsd32_charp name, netbsd32_voidp value, \ | 874 | netbsd32_charp name, netbsd32_voidp value, \ | |
875 | netbsd32_size_t size, int flags); } | 875 | netbsd32_size_t size, int flags); } | |
876 | 377 STD { int|netbsd32||fsetxattr(int fd, \ | 876 | 377 STD { int|netbsd32||fsetxattr(int fd, \ | |
877 | netbsd32_charp name, netbsd32_voidp value, \ | 877 | netbsd32_charp name, netbsd32_voidp value, \ | |
878 | netbsd32_size_t size, int flags); } | 878 | netbsd32_size_t size, int flags); } | |
879 | 378 STD { int|netbsd32||getxattr(netbsd32_charp path, \ | 879 | 378 STD { int|netbsd32||getxattr(netbsd32_charp path, \ | |
880 | netbsd32_charp name, netbsd32_voidp value, \ | 880 | netbsd32_charp name, netbsd32_voidp value, \ | |
881 | netbsd32_size_t size); } | 881 | netbsd32_size_t size); } | |
882 | 379 STD { int|netbsd32||lgetxattr(netbsd32_charp path, \ | 882 | 379 STD { int|netbsd32||lgetxattr(netbsd32_charp path, \ | |
883 | netbsd32_charp name, netbsd32_voidp value, \ | 883 | netbsd32_charp name, netbsd32_voidp value, \ | |
884 | netbsd32_size_t size); } | 884 | netbsd32_size_t size); } | |
885 | 380 STD { int|netbsd32||fgetxattr(int fd, \ | 885 | 380 STD { int|netbsd32||fgetxattr(int fd, \ | |
886 | netbsd32_charp name, netbsd32_voidp value, \ | 886 | netbsd32_charp name, netbsd32_voidp value, \ | |
887 | netbsd32_size_t size); } | 887 | netbsd32_size_t size); } | |
888 | 381 STD { int|netbsd32||listxattr(netbsd32_charp path, \ | 888 | 381 STD { int|netbsd32||listxattr(netbsd32_charp path, \ | |
889 | netbsd32_charp list, netbsd32_size_t size); } | 889 | netbsd32_charp list, netbsd32_size_t size); } | |
890 | 382 STD { int|netbsd32||llistxattr(netbsd32_charp path, \ | 890 | 382 STD { int|netbsd32||llistxattr(netbsd32_charp path, \ | |
891 | netbsd32_charp list, netbsd32_size_t size); } | 891 | netbsd32_charp list, netbsd32_size_t size); } | |
892 | 383 STD { int|netbsd32||flistxattr(int fd, \ | 892 | 383 STD { int|netbsd32||flistxattr(int fd, \ | |
893 | netbsd32_charp list, netbsd32_size_t size); } | 893 | netbsd32_charp list, netbsd32_size_t size); } | |
894 | 384 STD { int|netbsd32||removexattr(netbsd32_charp path, \ | 894 | 384 STD { int|netbsd32||removexattr(netbsd32_charp path, \ | |
895 | netbsd32_charp name); } | 895 | netbsd32_charp name); } | |
896 | 385 STD { int|netbsd32||lremovexattr(netbsd32_charp path, \ | 896 | 385 STD { int|netbsd32||lremovexattr(netbsd32_charp path, \ | |
897 | netbsd32_charp name); } | 897 | netbsd32_charp name); } | |
898 | 386 STD { int|netbsd32||fremovexattr(int fd, \ | 898 | 386 STD { int|netbsd32||fremovexattr(int fd, \ | |
899 | netbsd32_charp name); } | 899 | netbsd32_charp name); } | |
900 | 387 COMPAT_50 MODULAR compat_netbsd32_50 \ | 900 | 387 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
901 | { int|netbsd32|30|stat(netbsd32_charp path, \ | 901 | { int|netbsd32|30|stat(netbsd32_charp path, \ | |
902 | netbsd32_stat50p_t ub); } | 902 | netbsd32_stat50p_t ub); } | |
903 | 388 COMPAT_50 MODULAR compat_netbsd32_50 \ | 903 | 388 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
904 | { int|netbsd32|30|fstat(int fd, \ | 904 | { int|netbsd32|30|fstat(int fd, \ | |
905 | netbsd32_stat50p_t sb); } | 905 | netbsd32_stat50p_t sb); } | |
906 | 389 COMPAT_50 MODULAR compat_netbsd32_50 \ | 906 | 389 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
907 | { int|netbsd32|30|lstat( \ | 907 | { int|netbsd32|30|lstat( \ | |
908 | netbsd32_charp path, netbsd32_stat50p_t ub); } | 908 | netbsd32_charp path, netbsd32_stat50p_t ub); } | |
909 | 390 STD { int|netbsd32|30|getdents(int fd, \ | 909 | 390 STD { int|netbsd32|30|getdents(int fd, \ | |
910 | netbsd32_charp buf, netbsd32_size_t count); } | 910 | netbsd32_charp buf, netbsd32_size_t count); } | |
911 | 391 IGNORED old posix fadvise | 911 | 391 IGNORED old posix fadvise | |
912 | 392 COMPAT_30 MODULAR compat_netbsd32_30 \ | 912 | 392 COMPAT_30 MODULAR compat_netbsd32_30 \ | |
913 | { int|netbsd32|30|fhstat( \ | 913 | { int|netbsd32|30|fhstat( \ | |
914 | netbsd32_fhandlep_t fhp, \ | 914 | netbsd32_fhandlep_t fhp, \ | |
915 | netbsd32_stat50p_t sb); } | 915 | netbsd32_stat50p_t sb); } | |
916 | 393 COMPAT_50 MODULAR compat_netbsd32_50 \ | 916 | 393 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
917 | { int|netbsd32||ntp_gettime( \ | 917 | { int|netbsd32||ntp_gettime( \ | |
918 | netbsd32_ntptimeval50p_t ntvp); } | 918 | netbsd32_ntptimeval50p_t ntvp); } | |
919 | 394 STD { int|netbsd32|30|socket(int domain, int type, \ | 919 | 394 STD { int|netbsd32|30|socket(int domain, int type, \ | |
920 | int protocol); } | 920 | int protocol); } | |
921 | 395 STD { int|netbsd32|30|getfh(netbsd32_charp fname, \ | 921 | 395 STD { int|netbsd32|30|getfh(netbsd32_charp fname, \ | |
922 | netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); } | 922 | netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); } | |
923 | 396 STD { int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \ | 923 | 396 STD { int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \ | |
924 | netbsd32_size_t fh_size, int flags); } | 924 | netbsd32_size_t fh_size, int flags); } | |
925 | 397 COMPAT_90 MODULAR compat_netbsd90 \ | 925 | 397 COMPAT_90 MODULAR compat_netbsd90 \ | |
926 | { int|netbsd32||fhstatvfs1( \ | 926 | { int|netbsd32||fhstatvfs1( \ | |
927 | netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ | 927 | netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ | |
928 | netbsd32_statvfs90p_t buf, int flags); } | 928 | netbsd32_statvfs90p_t buf, int flags); } | |
929 | 398 COMPAT_50 MODULAR compat_netbsd32_50 \ | 929 | 398 COMPAT_50 MODULAR compat_netbsd32_50 \ | |
930 | { int|netbsd32|40|fhstat( \ | 930 | { int|netbsd32|40|fhstat( \ | |
931 | netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ | 931 | netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ | |
932 | netbsd32_stat50p_t sb); } | 932 | netbsd32_stat50p_t sb); } | |
933 | 933 | |||
934 | ; Asynchronous I/O system calls | 934 | ; Asynchronous I/O system calls | |
935 | 399 UNIMPL sys_aio_cancel | 935 | 399 UNIMPL sys_aio_cancel | |
936 | 400 UNIMPL sys_aio_error | 936 | 400 UNIMPL sys_aio_error | |
937 | 401 UNIMPL sys_aio_fsync | 937 | 401 UNIMPL sys_aio_fsync | |
938 | 402 UNIMPL sys_aio_read | 938 | 402 UNIMPL sys_aio_read | |
939 | 403 UNIMPL sys_aio_return | 939 | 403 UNIMPL sys_aio_return | |
940 | 404 UNIMPL sys_aio_suspend | 940 | 404 UNIMPL sys_aio_suspend | |
941 | 405 UNIMPL sys_aio_write | 941 | 405 UNIMPL sys_aio_write | |
942 | 406 UNIMPL sys_lio_listio | 942 | 406 UNIMPL sys_lio_listio | |
943 | 943 | |||
944 | 407 UNIMPL | 944 | 407 UNIMPL | |
945 | 408 UNIMPL | 945 | 408 UNIMPL | |
946 | 409 UNIMPL | 946 | 409 UNIMPL | |
947 | 947 | |||
948 | 410 STD { int|netbsd32||__mount50(netbsd32_charp type, \ | 948 | 410 STD { int|netbsd32||__mount50(netbsd32_charp type, \ | |
949 | netbsd32_charp path, int flags, \ | 949 | netbsd32_charp path, int flags, \ | |
950 | netbsd32_voidp data, netbsd32_size_t data_len); } | 950 | netbsd32_voidp data, netbsd32_size_t data_len); } | |
951 | 411 STD { netbsd32_voidp|netbsd32||mremap( \ | 951 | 411 STD { netbsd32_voidp|netbsd32||mremap( \ | |
952 | netbsd32_voidp old_address, \ | 952 | netbsd32_voidp old_address, \ | |
953 | netbsd32_size_t old_size, \ | 953 | netbsd32_size_t old_size, \ | |
954 | netbsd32_voidp new_address, \ | 954 | netbsd32_voidp new_address, \ | |
955 | netbsd32_size_t new_size, int flags); } | 955 | netbsd32_size_t new_size, int flags); } | |
956 | 956 | |||
957 | 412 STD { int|netbsd32||pset_create(netbsd32_psetidp_t psid); } | 957 | 412 STD { int|netbsd32||pset_create(netbsd32_psetidp_t psid); } | |
958 | 413 STD { int|netbsd32||pset_destroy(psetid_t psid); } | 958 | 413 STD { int|netbsd32||pset_destroy(psetid_t psid); } | |
959 | 414 STD { int|netbsd32||pset_assign(psetid_t psid, \ | 959 | 414 STD { int|netbsd32||pset_assign(psetid_t psid, \ | |
960 | cpuid_t cpuid, netbsd32_psetidp_t opsid); } | 960 | cpuid_t cpuid, netbsd32_psetidp_t opsid); } | |
961 | 415 STD { int|netbsd32||_pset_bind(idtype_t idtype, \ | 961 | 415 STD { int|netbsd32||_pset_bind(idtype_t idtype, \ | |
962 | id_t first_id, id_t second_id, psetid_t psid, \ | 962 | id_t first_id, id_t second_id, psetid_t psid, \ | |
963 | netbsd32_psetidp_t opsid); } | 963 | netbsd32_psetidp_t opsid); } | |
964 | 964 | |||
965 | 416 STD { int|netbsd32|50|posix_fadvise(int fd, int PAD, \ | 965 | 416 STD { int|netbsd32|50|posix_fadvise(int fd, int PAD, \ | |
966 | netbsd32_off_t offset, netbsd32_off_t len, int advice); } | 966 | netbsd32_off_t offset, netbsd32_off_t len, int advice); } | |
967 | 417 STD { int|netbsd32|50|select(int nd, \ | 967 | 417 STD { int|netbsd32|50|select(int nd, \ | |
968 | netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \ | 968 | netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \ | |
969 | netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); } | 969 | netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); } | |
970 | 418 STD { int|netbsd32|50|gettimeofday( \ | 970 | 418 STD { int|netbsd32|50|gettimeofday( \ | |
971 | netbsd32_timevalp_t tp, netbsd32_voidp tzp); } | 971 | netbsd32_timevalp_t tp, netbsd32_voidp tzp); } | |
972 | 419 STD { int|netbsd32|50|settimeofday( \ | 972 | 419 STD { int|netbsd32|50|settimeofday( \ | |
973 | const netbsd32_timevalp_t tv, \ | 973 | const netbsd32_timevalp_t tv, \ | |
974 | const netbsd32_voidp tzp); } | 974 | const netbsd32_voidp tzp); } | |
975 | 420 STD { int|netbsd32|50|utimes(const netbsd32_charp path, \ | 975 | 420 STD { int|netbsd32|50|utimes(const netbsd32_charp path, \ | |
976 | const netbsd32_timevalp_t tptr); } | 976 | const netbsd32_timevalp_t tptr); } | |
977 | 421 STD { int|netbsd32|50|adjtime( \ | 977 | 421 STD { int|netbsd32|50|adjtime( \ | |
978 | const netbsd32_timevalp_t delta, \ | 978 | const netbsd32_timevalp_t delta, \ | |
979 | netbsd32_timevalp_t olddelta); } | 979 | netbsd32_timevalp_t olddelta); } | |
980 | 422 EXCL __lfs_segwait50 | 980 | 422 EXCL __lfs_segwait50 | |
981 | 423 STD { int|netbsd32|50|futimes(int fd, \ | 981 | 423 STD { int|netbsd32|50|futimes(int fd, \ | |
982 | const netbsd32_timevalp_t tptr); } | 982 | const netbsd32_timevalp_t tptr); } | |
983 | 424 STD { int|netbsd32|50|lutimes(const netbsd32_charp path, \ | 983 | 424 STD { int|netbsd32|50|lutimes(const netbsd32_charp path, \ | |
984 | const netbsd32_timevalp_t tptr); } | 984 | const netbsd32_timevalp_t tptr); } | |
985 | 425 STD { int|netbsd32|50|setitimer(int which, \ | 985 | 425 STD { int|netbsd32|50|setitimer(int which, \ | |
986 | const netbsd32_itimervalp_t itv, \ | 986 | const netbsd32_itimervalp_t itv, \ | |
987 | netbsd32_itimervalp_t oitv); } | 987 | netbsd32_itimervalp_t oitv); } | |
988 | 426 STD { int|netbsd32|50|getitimer(int which, \ | 988 | 426 STD { int|netbsd32|50|getitimer(int which, \ | |
989 | netbsd32_itimervalp_t itv); } | 989 | netbsd32_itimervalp_t itv); } | |
990 | 427 STD { int|netbsd32|50|clock_gettime(clockid_t clock_id, \ | 990 | 427 STD { int|netbsd32|50|clock_gettime(clockid_t clock_id, \ | |
991 | netbsd32_timespecp_t tp); } | 991 | netbsd32_timespecp_t tp); } | |
992 | 428 STD { int|netbsd32|50|clock_settime(clockid_t clock_id, \ | 992 | 428 STD { int|netbsd32|50|clock_settime(clockid_t clock_id, \ | |
993 | const netbsd32_timespecp_t tp); } | 993 | const netbsd32_timespecp_t tp); } | |
994 | 429 STD { int|netbsd32|50|clock_getres(clockid_t clock_id, \ | 994 | 429 STD { int|netbsd32|50|clock_getres(clockid_t clock_id, \ | |
995 | netbsd32_timespecp_t tp); } | 995 | netbsd32_timespecp_t tp); } | |
996 | 430 STD { int|netbsd32|50|nanosleep( \ | 996 | 430 STD { int|netbsd32|50|nanosleep( \ | |
997 | const netbsd32_timespecp_t rqtp, \ | 997 | const netbsd32_timespecp_t rqtp, \ | |
998 | netbsd32_timespecp_t rmtp); } | 998 | netbsd32_timespecp_t rmtp); } | |
999 | 431 STD { int|netbsd32|50|__sigtimedwait( \ | 999 | 431 STD { int|netbsd32|50|__sigtimedwait( \ | |
1000 | const netbsd32_sigsetp_t set, \ | 1000 | const netbsd32_sigsetp_t set, \ | |
1001 | netbsd32_siginfop_t info, \ | 1001 | netbsd32_siginfop_t info, \ | |
1002 | netbsd32_timespecp_t timeout); } | 1002 | netbsd32_timespecp_t timeout); } | |
1003 | 432 STD MODULAR compat_netbsd32_mqueue \ | 1003 | 432 STD MODULAR compat_netbsd32_mqueue \ | |
1004 | { int|netbsd32|50|mq_timedsend(mqd_t mqdes, \ | 1004 | { int|netbsd32|50|mq_timedsend(mqd_t mqdes, \ | |
1005 | const netbsd32_charp msg_ptr, \ | 1005 | const netbsd32_charp msg_ptr, \ | |
1006 | netbsd32_size_t msg_len, \ | 1006 | netbsd32_size_t msg_len, \ | |
1007 | unsigned msg_prio, \ | 1007 | unsigned msg_prio, \ | |
1008 | const netbsd32_timespecp_t abs_timeout); } | 1008 | const netbsd32_timespecp_t abs_timeout); } | |
1009 | 433 STD MODULAR compat_netbsd32_mqueue \ | 1009 | 433 STD MODULAR compat_netbsd32_mqueue \ | |
1010 | { netbsd32_ssize_t|netbsd32|50|mq_timedreceive( \ | 1010 | { netbsd32_ssize_t|netbsd32|50|mq_timedreceive( \ | |
1011 | mqd_t mqdes, netbsd32_charp msg_ptr, \ | 1011 | mqd_t mqdes, netbsd32_charp msg_ptr, \ | |
1012 | netbsd32_size_t msg_len, netbsd32_uintp msg_prio, \ | 1012 | netbsd32_size_t msg_len, netbsd32_uintp msg_prio, \ | |
1013 | const netbsd32_timespecp_t abs_timeout); } | 1013 | const netbsd32_timespecp_t abs_timeout); } | |
1014 | 434 COMPAT_60 MODULAR compat_netbsd32_60 \ | 1014 | 434 COMPAT_60 MODULAR compat_netbsd32_60 \ | |
1015 | { int|netbsd32||_lwp_park( \ | 1015 | { int|netbsd32||_lwp_park( \ | |
1016 | const netbsd32_timespecp_t ts, \ | 1016 | const netbsd32_timespecp_t ts, \ | |
1017 | lwpid_t unpark, const netbsd32_voidp hint, \ | 1017 | lwpid_t unpark, const netbsd32_voidp hint, \ | |
1018 | const netbsd32_voidp unparkhint); } | 1018 | const netbsd32_voidp unparkhint); } | |
1019 | 435 COMPAT_100 MODULAR compat_netbsd32_100 \ | 1019 | 435 COMPAT_100 MODULAR compat_netbsd32_100 \ | |
1020 | { int|netbsd32|50|kevent(int fd, \ | 1020 | { int|netbsd32|50|kevent(int fd, \ | |
1021 | const netbsd32_kevent100p_t changelist, \ | 1021 | const netbsd32_kevent100p_t changelist, \ | |
1022 | netbsd32_size_t nchanges, \ | 1022 | netbsd32_size_t nchanges, \ | |
1023 | netbsd32_kevent100p_t eventlist, \ | 1023 | netbsd32_kevent100p_t eventlist, \ | |
1024 | netbsd32_size_t nevents, \ | 1024 | netbsd32_size_t nevents, \ | |
1025 | const netbsd32_timespecp_t timeout); } | 1025 | const netbsd32_timespecp_t timeout); } | |
1026 | 436 STD { int|netbsd32|50|pselect(int nd, \ | 1026 | 436 STD { int|netbsd32|50|pselect(int nd, \ | |
1027 | netbsd32_fd_setp_t in, \ | 1027 | netbsd32_fd_setp_t in, \ | |
1028 | netbsd32_fd_setp_t ou, \ | 1028 | netbsd32_fd_setp_t ou, \ | |
1029 | netbsd32_fd_setp_t ex, \ | 1029 | netbsd32_fd_setp_t ex, \ | |
1030 | const netbsd32_timespecp_t ts, \ | 1030 | const netbsd32_timespecp_t ts, \ | |
1031 | const netbsd32_sigsetp_t mask); } | 1031 | const netbsd32_sigsetp_t mask); } | |
1032 | 437 STD { int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \ | 1032 | 437 STD { int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \ | |
1033 | u_int nfds, const netbsd32_timespecp_t ts, \ | 1033 | u_int nfds, const netbsd32_timespecp_t ts, \ | |
1034 | const netbsd32_sigsetp_t mask); } | 1034 | const netbsd32_sigsetp_t mask); } | |
1035 | 438 UNIMPL netbsd32___aio_suspend50 | 1035 | 438 UNIMPL netbsd32___aio_suspend50 | |
1036 | 439 STD { int|netbsd32|50|stat(const netbsd32_charp path, \ | 1036 | 439 STD { int|netbsd32|50|stat(const netbsd32_charp path, \ | |
1037 | netbsd32_statp_t ub); } | 1037 | netbsd32_statp_t ub); } | |
1038 | 440 STD { int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); } | 1038 | 440 STD { int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); } | |
1039 | 441 STD { int|netbsd32|50|lstat(const netbsd32_charp path, \ | 1039 | 441 STD { int|netbsd32|50|lstat(const netbsd32_charp path, \ | |
1040 | netbsd32_statp_t ub); } | 1040 | netbsd32_statp_t ub); } | |
1041 | 442 STD MODULAR compat_netbsd32_sysvipc \ | 1041 | 442 STD MODULAR compat_netbsd32_sysvipc \ | |
1042 | { int|netbsd32|50|__semctl(int semid, int semnum, \ | 1042 | { int|netbsd32|50|__semctl(int semid, int semnum, \ | |
1043 | int cmd, ... netbsd32_semunp_t arg); } | 1043 | int cmd, ... netbsd32_semunp_t arg); } | |
1044 | 443 STD MODULAR compat_netbsd32_sysvipc \ | 1044 | 443 STD MODULAR compat_netbsd32_sysvipc \ | |
1045 | { int|netbsd32|50|shmctl(int shmid, int cmd, \ | 1045 | { int|netbsd32|50|shmctl(int shmid, int cmd, \ | |
1046 | netbsd32_shmid_dsp_t buf); } | 1046 | netbsd32_shmid_dsp_t buf); } | |
1047 | 444 STD MODULAR compat_netbsd32_sysvipc \ | 1047 | 444 STD MODULAR compat_netbsd32_sysvipc \ | |
1048 | { int|netbsd32|50|msgctl(int msqid, int cmd, \ | 1048 | { int|netbsd32|50|msgctl(int msqid, int cmd, \ | |
1049 | netbsd32_msqid_dsp_t buf); } | 1049 | netbsd32_msqid_dsp_t buf); } | |
1050 | 445 STD { int|netbsd32|50|getrusage(int who, \ | 1050 | 445 STD { int|netbsd32|50|getrusage(int who, \ | |
1051 | netbsd32_rusagep_t rusage); } | 1051 | netbsd32_rusagep_t rusage); } | |
1052 | 446 STD { int|netbsd32|50|timer_settime(timer_t timerid, \ | 1052 | 446 STD { int|netbsd32|50|timer_settime(timer_t timerid, \ | |
1053 | int flags, const netbsd32_itimerspecp_t value, \ | 1053 | int flags, const netbsd32_itimerspecp_t value, \ | |
1054 | netbsd32_itimerspecp_t ovalue); } | 1054 | netbsd32_itimerspecp_t ovalue); } | |
1055 | 447 STD { int|netbsd32|50|timer_gettime(timer_t timerid, \ | 1055 | 447 STD { int|netbsd32|50|timer_gettime(timer_t timerid, \ | |
1056 | netbsd32_itimerspecp_t value); } | 1056 | netbsd32_itimerspecp_t value); } | |
1057 | #if defined(NTP) || !defined(_KERNEL_OPT) | 1057 | #if defined(NTP) || !defined(_KERNEL_OPT) | |
1058 | 448 STD { int|netbsd32|50|ntp_gettime( \ | 1058 | 448 STD { int|netbsd32|50|ntp_gettime( \ | |
1059 | netbsd32_ntptimevalp_t ntvp); } | 1059 | netbsd32_ntptimevalp_t ntvp); } | |
1060 | #else | 1060 | #else | |
1061 | 448 EXCL ___ntp_gettime50 | 1061 | 448 EXCL ___ntp_gettime50 | |
1062 | #endif | 1062 | #endif | |
1063 | 449 STD { int|netbsd32|50|wait4(int pid, \ | 1063 | 449 STD { int|netbsd32|50|wait4(int pid, \ | |
1064 | netbsd32_intp status, \ | 1064 | netbsd32_intp status, \ | |
1065 | int options, netbsd32_rusagep_t rusage); } | 1065 | int options, netbsd32_rusagep_t rusage); } | |
1066 | 450 STD { int|netbsd32|50|mknod(const netbsd32_charp path, \ | 1066 | 450 STD { int|netbsd32|50|mknod(const netbsd32_charp path, \ | |
1067 | mode_t mode, netbsd32_dev_t dev); } | 1067 | mode_t mode, netbsd32_dev_t dev); } | |
1068 | 451 STD { int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \ | 1068 | 451 STD { int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \ | |
1069 | netbsd32_size_t fh_size, netbsd32_statp_t sb); } | 1069 | netbsd32_size_t fh_size, netbsd32_statp_t sb); } | |
1070 | 452 OBSOL 5.99 quotactl | 1070 | 452 OBSOL 5.99 quotactl | |
1071 | 453 STD { int|netbsd32||pipe2(netbsd32_intp fildes, int flags); } | 1071 | 453 STD { int|netbsd32||pipe2(netbsd32_intp fildes, int flags); } | |
1072 | 454 STD { int|netbsd32||dup3(int from, int to, int flags); } | 1072 | 454 STD { int|netbsd32||dup3(int from, int to, int flags); } | |
1073 | 455 STD { int|netbsd32||kqueue1(int flags); } | 1073 | 455 STD { int|netbsd32||kqueue1(int flags); } | |
1074 | 456 STD { int|netbsd32||paccept(int s, \ | 1074 | 456 STD { int|netbsd32||paccept(int s, \ | |
1075 | netbsd32_sockaddrp_t name, \ | 1075 | netbsd32_sockaddrp_t name, \ | |
1076 | netbsd32_socklenp_t anamelen, \ | 1076 | netbsd32_socklenp_t anamelen, \ | |
1077 | const netbsd32_sigsetp_t mask, \ | 1077 | const netbsd32_sigsetp_t mask, \ | |
1078 | int flags); } | 1078 | int flags); } | |
1079 | 457 STD { int|netbsd32||linkat(int fd1, \ | 1079 | 457 STD { int|netbsd32||linkat(int fd1, \ | |
1080 | const netbsd32_charp name1, \ | 1080 | const netbsd32_charp name1, \ | |
1081 | int fd2, \ | 1081 | int fd2, \ | |
1082 | const netbsd32_charp name2, \ | 1082 | const netbsd32_charp name2, \ | |
1083 | int flags); } | 1083 | int flags); } | |
1084 | 458 STD { int|netbsd32||renameat(int fromfd, \ | 1084 | 458 STD { int|netbsd32||renameat(int fromfd, \ | |
1085 | const netbsd32_charp from, \ | 1085 | const netbsd32_charp from, \ | |
1086 | int tofd, \ | 1086 | int tofd, \ | |
1087 | const netbsd32_charp to); } | 1087 | const netbsd32_charp to); } | |
1088 | 459 STD { int|netbsd32||mkfifoat(int fd, \ | 1088 | 459 STD { int|netbsd32||mkfifoat(int fd, \ | |
1089 | const netbsd32_charp path, \ | 1089 | const netbsd32_charp path, \ | |
1090 | mode_t mode); } | 1090 | mode_t mode); } | |
1091 | 460 STD { int|netbsd32||mknodat(int fd, \ | 1091 | 460 STD { int|netbsd32||mknodat(int fd, \ | |
1092 | const netbsd32_charp path, \ | 1092 | const netbsd32_charp path, \ | |
1093 | mode_t mode, int PAD, \ | 1093 | mode_t mode, int PAD, \ | |
1094 | netbsd32_dev_t dev); } | 1094 | netbsd32_dev_t dev); } | |
1095 | 461 STD { int|netbsd32||mkdirat(int fd, \ | 1095 | 461 STD { int|netbsd32||mkdirat(int fd, \ | |
1096 | const netbsd32_charp path, \ | 1096 | const netbsd32_charp path, \ | |
1097 | mode_t mode); } | 1097 | mode_t mode); } | |
1098 | 462 STD { int|netbsd32||faccessat(int fd, \ | 1098 | 462 STD { int|netbsd32||faccessat(int fd, \ | |
1099 | const netbsd32_charp path, \ | 1099 | const netbsd32_charp path, \ | |
1100 | int amode, \ | 1100 | int amode, \ | |
1101 | int flag); } | 1101 | int flag); } | |
1102 | 463 STD { int|netbsd32||fchmodat(int fd, \ | 1102 | 463 STD { int|netbsd32||fchmodat(int fd, \ | |
1103 | const netbsd32_charp path, \ | 1103 | const netbsd32_charp path, \ | |
1104 | mode_t mode, \ | 1104 | mode_t mode, \ | |
1105 | int flag); } | 1105 | int flag); } | |
1106 | 464 STD { int|netbsd32||fchownat(int fd, \ | 1106 | 464 STD { int|netbsd32||fchownat(int fd, \ | |
1107 | const netbsd32_charp path, \ | 1107 | const netbsd32_charp path, \ | |
1108 | uid_t owner, \ | 1108 | uid_t owner, \ | |
1109 | gid_t group, \ | 1109 | gid_t group, \ | |
1110 | int flag); } | 1110 | int flag); } | |
1111 | 465 STD { int|netbsd32||fexecve(int fd, \ | 1111 | 465 STD { int|netbsd32||fexecve(int fd, \ | |
1112 | netbsd32_charpp argp, \ | 1112 | netbsd32_charpp argp, \ | |
1113 | netbsd32_charpp envp); } | 1113 | netbsd32_charpp envp); } | |
1114 | 466 STD { int|netbsd32||fstatat(int fd, \ | 1114 | 466 STD { int|netbsd32||fstatat(int fd, \ | |
1115 | const netbsd32_charp path, \ | 1115 | const netbsd32_charp path, \ | |
1116 | netbsd32_statp_t buf, \ | 1116 | netbsd32_statp_t buf, \ | |
1117 | int flag); } | 1117 | int flag); } | |
1118 | 467 STD { int|netbsd32||utimensat(int fd, \ | 1118 | 467 STD { int|netbsd32||utimensat(int fd, \ | |
1119 | const netbsd32_charp path, \ | 1119 | const netbsd32_charp path, \ | |
1120 | const netbsd32_timespecp_t tptr, \ | 1120 | const netbsd32_timespecp_t tptr, \ | |
1121 | int flag); } | 1121 | int flag); } | |
1122 | 468 STD { int|netbsd32||openat(int fd, \ | 1122 | 468 STD { int|netbsd32||openat(int fd, \ | |
1123 | const netbsd32_charp path, \ | 1123 | const netbsd32_charp path, \ | |
1124 | int oflags, ... \ | 1124 | int oflags, ... \ | |
1125 | mode_t mode); } | 1125 | mode_t mode); } | |
1126 | 469 STD { netbsd32_ssize_t|netbsd32||readlinkat(int fd, \ | 1126 | 469 STD { netbsd32_ssize_t|netbsd32||readlinkat(int fd, \ | |
1127 | const netbsd32_charp path, \ | 1127 | const netbsd32_charp path, \ | |
1128 | netbsd32_charp buf, \ | 1128 | netbsd32_charp buf, \ | |
1129 | netbsd32_size_t bufsize); } | 1129 | netbsd32_size_t bufsize); } | |
1130 | 470 STD { int|netbsd32||symlinkat(const netbsd32_charp path1, \ | 1130 | 470 STD { int|netbsd32||symlinkat(const netbsd32_charp path1, \ | |
1131 | int fd, \ | 1131 | int fd, \ | |
1132 | const netbsd32_charp path2); } | 1132 | const netbsd32_charp path2); } | |
1133 | 471 STD { int|netbsd32||unlinkat(int fd, \ | 1133 | 471 STD { int|netbsd32||unlinkat(int fd, \ | |
1134 | const netbsd32_charp path, \ | 1134 | const netbsd32_charp path, \ | |
1135 | int flag); } | 1135 | int flag); } | |
1136 | 472 STD { int|netbsd32||futimens(int fd, \ | 1136 | 472 STD { int|netbsd32||futimens(int fd, \ | |
1137 | const netbsd32_timespecp_t tptr); } | 1137 | const netbsd32_timespecp_t tptr); } | |
1138 | 473 STD MODULAR compat_netbsd32_quota \ | 1138 | 473 STD MODULAR compat_netbsd32_quota \ | |
1139 | { int|netbsd32||__quotactl(const netbsd32_charp path, \ | 1139 | { int|netbsd32||__quotactl(const netbsd32_charp path, \ | |
1140 | netbsd32_voidp args); } | 1140 | netbsd32_voidp args); } | |
1141 | 474 NOERR { int|netbsd32||posix_spawn(netbsd32_pid_tp pid, \ | 1141 | 474 NOERR { int|netbsd32||posix_spawn(netbsd32_pid_tp pid, \ | |
1142 | const netbsd32_charp path, \ | 1142 | const netbsd32_charp path, \ | |
1143 | const netbsd32_posix_spawn_file_actionsp \ | 1143 | const netbsd32_posix_spawn_file_actionsp \ | |
1144 | file_actions, \ | 1144 | file_actions, \ | |
1145 | const netbsd32_posix_spawnattrp attrp, \ | 1145 | const netbsd32_posix_spawnattrp attrp, \ | |
1146 | netbsd32_charpp argv, netbsd32_charpp envp); } | 1146 | netbsd32_charpp argv, netbsd32_charpp envp); } | |
1147 | 1147 | |||
1148 | 475 STD { int|netbsd32||recvmmsg(int s, \ | 1148 | 475 STD { int|netbsd32||recvmmsg(int s, \ | |
1149 | netbsd32_mmsghdrp_t mmsg, \ | 1149 | netbsd32_mmsghdrp_t mmsg, \ | |
1150 | unsigned int vlen, unsigned int flags, \ | 1150 | unsigned int vlen, unsigned int flags, \ | |
1151 | netbsd32_timespecp_t timeout); } | 1151 | netbsd32_timespecp_t timeout); } | |
1152 | 476 STD { int|netbsd32||sendmmsg(int s, \ | 1152 | 476 STD { int|netbsd32||sendmmsg(int s, \ | |
1153 | netbsd32_mmsghdrp_t mmsg, \ | 1153 | netbsd32_mmsghdrp_t mmsg, \ | |
1154 | unsigned int vlen, unsigned int flags); } | 1154 | unsigned int vlen, unsigned int flags); } | |
1155 | 477 STD { int|netbsd32||clock_nanosleep(\ | 1155 | 477 STD { int|netbsd32||clock_nanosleep(\ | |
1156 | netbsd32_clockid_t clock_id, \ | 1156 | netbsd32_clockid_t clock_id, \ | |
1157 | int flags, const netbsd32_timespecp_t rqtp, \ | 1157 | int flags, const netbsd32_timespecp_t rqtp, \ | |
1158 | netbsd32_timespecp_t rmtp); } | 1158 | netbsd32_timespecp_t rmtp); } | |
1159 | 478 STD { int|netbsd32|60|_lwp_park(\ | 1159 | 478 STD { int|netbsd32|60|_lwp_park(\ | |
1160 | netbsd32_clockid_t clock_id, \ | 1160 | netbsd32_clockid_t clock_id, \ | |
1161 | int flags, netbsd32_timespecp_t ts, \ | 1161 | int flags, netbsd32_timespecp_t ts, \ | |
1162 | lwpid_t unpark, netbsd32_voidp hint, \ | 1162 | lwpid_t unpark, netbsd32_voidp hint, \ | |
1163 | netbsd32_voidp unparkhint); } | 1163 | netbsd32_voidp unparkhint); } | |
1164 | 479 NOERR { int|netbsd32||posix_fallocate(int fd, int PAD, \ | 1164 | 479 NOERR { int|netbsd32||posix_fallocate(int fd, int PAD, \ | |
1165 | netbsd32_off_t pos, netbsd32_off_t len); } | 1165 | netbsd32_off_t pos, netbsd32_off_t len); } | |
1166 | 480 STD { int|netbsd32||fdiscard(int fd, int PAD, \ | 1166 | 480 STD { int|netbsd32||fdiscard(int fd, int PAD, \ | |
1167 | netbsd32_off_t pos, netbsd32_off_t len); } | 1167 | netbsd32_off_t pos, netbsd32_off_t len); } | |
1168 | 481 STD { int|netbsd32||wait6(idtype_t idtype, id_t id, \ | 1168 | 481 STD { int|netbsd32||wait6(idtype_t idtype, id_t id, \ | |
1169 | netbsd32_intp status, int options, \ | 1169 | netbsd32_intp status, int options, \ | |
1170 | netbsd32_wrusagep_t wru, netbsd32_siginfop_t info); } | 1170 | netbsd32_wrusagep_t wru, netbsd32_siginfop_t info); } | |
1171 | 482 STD { int|netbsd32||clock_getcpuclockid2(idtype_t idtype, \ | 1171 | 482 STD { int|netbsd32||clock_getcpuclockid2(idtype_t idtype, \ | |
1172 | id_t id, netbsd32_clockidp_t clock_id); } | 1172 | id_t id, netbsd32_clockidp_t clock_id); } | |
1173 | 483 STD { int|netbsd32|90|getvfsstat( \ | 1173 | 483 STD { int|netbsd32|90|getvfsstat( \ | |
1174 | netbsd32_statvfsp_t buf, \ | 1174 | netbsd32_statvfsp_t buf, \ | |
1175 | netbsd32_size_t bufsize, int flags); } | 1175 | netbsd32_size_t bufsize, int flags); } | |
1176 | 484 STD { int|netbsd32|90|statvfs1(netbsd32_charp path, \ | 1176 | 484 STD { int|netbsd32|90|statvfs1(netbsd32_charp path, \ | |
1177 | netbsd32_statvfsp_t buf, int flags); } | 1177 | netbsd32_statvfsp_t buf, int flags); } | |
1178 | 485 STD { int|netbsd32|90|fstatvfs1(int fd, \ | 1178 | 485 STD { int|netbsd32|90|fstatvfs1(int fd, \ | |
1179 | netbsd32_statvfsp_t buf, int flags); } | 1179 | netbsd32_statvfsp_t buf, int flags); } | |
1180 | 486 STD { int|netbsd32|90|fhstatvfs1(netbsd32_voidp fhp, \ | 1180 | 486 STD { int|netbsd32|90|fhstatvfs1(netbsd32_voidp fhp, \ | |
1181 | netbsd32_size_t fh_size, netbsd32_statvfsp_t buf, \ | 1181 | netbsd32_size_t fh_size, netbsd32_statvfsp_t buf, \ | |
1182 | int flags); } | 1182 | int flags); } | |
1183 | 487 STD { int|netbsd32||__acl_get_link( \ | 1183 | 487 STD { int|netbsd32||__acl_get_link( \ | |
1184 | const netbsd32_charp path, \ | 1184 | const netbsd32_charp path, \ | |
1185 | acl_type_t type, netbsd32_aclp_t aclp); } | 1185 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1186 | 488 STD { int|netbsd32||__acl_set_link( \ | 1186 | 488 STD { int|netbsd32||__acl_set_link( \ | |
1187 | const netbsd32_charp path, \ | 1187 | const netbsd32_charp path, \ | |
1188 | acl_type_t type, netbsd32_aclp_t aclp); } | 1188 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1189 | 489 STD { int|netbsd32||__acl_delete_link( \ | 1189 | 489 STD { int|netbsd32||__acl_delete_link( \ | |
1190 | const netbsd32_charp path, \ | 1190 | const netbsd32_charp path, \ | |
1191 | acl_type_t type); } | 1191 | acl_type_t type); } | |
1192 | 490 STD { int|netbsd32||__acl_aclcheck_link( \ | 1192 | 490 STD { int|netbsd32||__acl_aclcheck_link( \ | |
1193 | const netbsd32_charp path, \ | 1193 | const netbsd32_charp path, \ | |
1194 | acl_type_t type, netbsd32_aclp_t aclp); } | 1194 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1195 | 491 STD { int|netbsd32||__acl_get_file( \ | 1195 | 491 STD { int|netbsd32||__acl_get_file( \ | |
1196 | const netbsd32_charp path, \ | 1196 | const netbsd32_charp path, \ | |
1197 | acl_type_t type, netbsd32_aclp_t aclp); } | 1197 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1198 | 492 STD { int|netbsd32||__acl_set_file( \ | 1198 | 492 STD { int|netbsd32||__acl_set_file( \ | |
1199 | const netbsd32_charp path, \ | 1199 | const netbsd32_charp path, \ | |
1200 | acl_type_t type, netbsd32_aclp_t aclp); } | 1200 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1201 | 493 STD { int|netbsd32||__acl_get_fd(int filedes, \ | 1201 | 493 STD { int|netbsd32||__acl_get_fd(int filedes, \ | |
1202 | acl_type_t type, netbsd32_aclp_t aclp); } | 1202 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1203 | 494 STD { int|netbsd32||__acl_set_fd(int filedes, \ | 1203 | 494 STD { int|netbsd32||__acl_set_fd(int filedes, \ | |
1204 | acl_type_t type, netbsd32_aclp_t aclp); } | 1204 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1205 | 495 STD { int|netbsd32||__acl_delete_file( \ | 1205 | 495 STD { int|netbsd32||__acl_delete_file( \ | |
1206 | const netbsd32_charp path, \ | 1206 | const netbsd32_charp path, \ | |
1207 | acl_type_t type); } | 1207 | acl_type_t type); } | |
1208 | 496 STD { int|netbsd32||__acl_delete_fd(int filedes, \ | 1208 | 496 STD { int|netbsd32||__acl_delete_fd(int filedes, \ | |
1209 | acl_type_t type); } | 1209 | acl_type_t type); } | |
1210 | 497 STD { int|netbsd32||__acl_aclcheck_file( \ | 1210 | 497 STD { int|netbsd32||__acl_aclcheck_file( \ | |
1211 | const netbsd32_charp path, \ | 1211 | const netbsd32_charp path, \ | |
1212 | acl_type_t type, netbsd32_aclp_t aclp); } | 1212 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1213 | 498 STD { int|netbsd32||__acl_aclcheck_fd(int filedes, \ | 1213 | 498 STD { int|netbsd32||__acl_aclcheck_fd(int filedes, \ | |
1214 | acl_type_t type, netbsd32_aclp_t aclp); } | 1214 | acl_type_t type, netbsd32_aclp_t aclp); } | |
1215 | 499 STD { long|netbsd32||lpathconf(const netbsd32_charp path, \ | 1215 | 499 STD { long|netbsd32||lpathconf(const netbsd32_charp path, \ | |
1216 | int name); } | 1216 | int name); } | |
1217 | 500 UNIMPL memfd_create | 1217 | 500 STD { int|netbsd32||memfd_create( \ | |
1218 | const netbsd32_charp name, unsigned int flags); } | |||
1218 | 501 STD { int|netbsd32|100|kevent(int fd, \ | 1219 | 501 STD { int|netbsd32|100|kevent(int fd, \ | |
1219 | const netbsd32_keventp_t changelist, \ | 1220 | const netbsd32_keventp_t changelist, \ | |
1220 | netbsd32_size_t nchanges, \ | 1221 | netbsd32_size_t nchanges, \ | |
1221 | netbsd32_keventp_t eventlist, \ | 1222 | netbsd32_keventp_t eventlist, \ | |
1222 | netbsd32_size_t nevents, \ | 1223 | netbsd32_size_t nevents, \ | |
1223 | const netbsd32_timespecp_t timeout); } | 1224 | const netbsd32_timespecp_t timeout); } | |
1224 | 502 UNIMPL epoll_create1 | 1225 | 502 UNIMPL epoll_create1 | |
1225 | 503 UNIMPL epoll_ctl | 1226 | 503 UNIMPL epoll_ctl | |
1226 | 504 UNIMPL epoll_pwait2 | 1227 | 504 UNIMPL epoll_pwait2 |