sunos32_syscallargs.h revision 1.2 1 /* $NetBSD: sunos32_syscallargs.h,v 1.2 2001/02/04 09:48:44 mrg Exp $ */
2
3 /*
4 * System call argument lists.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from; NetBSD: syscalls.master,v 1.2 2001/02/04 09:47:22 mrg Exp
8 */
9
10 #ifndef _SUNOS32_SYS__SYSCALLARGS_H_
11 #define _SUNOS32_SYS__SYSCALLARGS_H_
12
13 #ifdef syscallarg
14 #undef syscallarg
15 #endif
16
17 #define syscallarg(x) \
18 union { \
19 register32_t pad; \
20 struct { x datum; } le; \
21 struct { \
22 int8_t pad[ (sizeof (register32_t) < sizeof (x)) \
23 ? 0 \
24 : sizeof (register32_t) - sizeof (x)]; \
25 x datum; \
26 } be; \
27 }
28
29 struct sunos32_sys_open_args {
30 syscallarg(const netbsd32_charp) path;
31 syscallarg(int) flags;
32 syscallarg(int) mode;
33 };
34
35 struct sunos32_sys_wait4_args {
36 syscallarg(int) pid;
37 syscallarg(netbsd32_intp) status;
38 syscallarg(int) options;
39 syscallarg(netbsd32_rusagep_t) rusage;
40 };
41
42 struct sunos32_sys_creat_args {
43 syscallarg(const netbsd32_charp) path;
44 syscallarg(int) mode;
45 };
46
47 struct sunos32_sys_execv_args {
48 syscallarg(const netbsd32_charp) path;
49 syscallarg(netbsd32_charpp) argp;
50 };
51
52 struct sunos32_sys_mknod_args {
53 syscallarg(const netbsd32_charp) path;
54 syscallarg(int) mode;
55 syscallarg(int) dev;
56 };
57
58 struct sunos32_sys_stime_args {
59 syscallarg(sunos32_time_tp) tp;
60 };
61
62 struct sunos32_sys_ptrace_args {
63 syscallarg(int) req;
64 syscallarg(pid_t) pid;
65 syscallarg(netbsd32_caddr_t) addr;
66 syscallarg(int) data;
67 syscallarg(netbsd32_charp) addr2;
68 };
69
70 struct sunos32_sys_access_args {
71 syscallarg(const netbsd32_charp) path;
72 syscallarg(int) flags;
73 };
74
75 struct sunos32_sys_stat_args {
76 syscallarg(const netbsd32_charp) path;
77 syscallarg(netbsd32_stat43p_t) ub;
78 };
79
80 struct sunos32_sys_lstat_args {
81 syscallarg(const netbsd32_charp) path;
82 syscallarg(netbsd32_stat43p_t) ub;
83 };
84
85 struct sunos32_sys_mctl_args {
86 syscallarg(netbsd32_voidp) addr;
87 syscallarg(int) len;
88 syscallarg(int) func;
89 syscallarg(netbsd32_voidp) arg;
90 };
91
92 struct sunos32_sys_ioctl_args {
93 syscallarg(int) fd;
94 syscallarg(netbsd32_u_long) com;
95 syscallarg(netbsd32_caddr_t) data;
96 };
97
98 struct sunos32_sys_reboot_args {
99 syscallarg(int) howto;
100 syscallarg(netbsd32_charp) bootstr;
101 };
102
103 struct sunos32_sys_execve_args {
104 syscallarg(const netbsd32_charp) path;
105 syscallarg(netbsd32_charpp) argp;
106 syscallarg(netbsd32_charpp) envp;
107 };
108
109 struct sunos32_sys_omsync_args {
110 syscallarg(netbsd32_caddr_t) addr;
111 syscallarg(netbsd32_size_t) len;
112 syscallarg(int) flags;
113 };
114
115 struct sunos32_sys_mmap_args {
116 syscallarg(netbsd32_voidp) addr;
117 syscallarg(netbsd32_size_t) len;
118 syscallarg(int) prot;
119 syscallarg(int) flags;
120 syscallarg(int) fd;
121 syscallarg(netbsd32_long) pos;
122 };
123
124 struct sunos32_sys_setpgrp_args {
125 syscallarg(int) pid;
126 syscallarg(int) pgid;
127 };
128
129 struct sunos32_sys_fcntl_args {
130 syscallarg(int) fd;
131 syscallarg(int) cmd;
132 syscallarg(netbsd32_voidp) arg;
133 };
134
135 struct sunos32_sys_setsockopt_args {
136 syscallarg(int) s;
137 syscallarg(int) level;
138 syscallarg(int) name;
139 syscallarg(netbsd32_caddr_t) val;
140 syscallarg(int) valsize;
141 };
142
143 struct sunos32_sys_sigvec_args {
144 syscallarg(int) signum;
145 syscallarg(netbsd32_sigvecp_t) nsv;
146 syscallarg(netbsd32_sigvecp_t) osv;
147 };
148
149 struct sunos32_sys_sigsuspend_args {
150 syscallarg(int) mask;
151 };
152
153 struct sunos32_sys_getrlimit_args {
154 syscallarg(u_int) which;
155 syscallarg(netbsd32_orlimitp_t) rlp;
156 };
157
158 struct sunos32_sys_setrlimit_args {
159 syscallarg(u_int) which;
160 syscallarg(netbsd32_orlimitp_t) rlp;
161 };
162
163 struct sunos32_sys_nfssvc_args {
164 syscallarg(int) fd;
165 };
166
167 struct sunos32_sys_statfs_args {
168 syscallarg(const netbsd32_charp) path;
169 syscallarg(sunos32_statfsp_t) buf;
170 };
171
172 struct sunos32_sys_fstatfs_args {
173 syscallarg(int) fd;
174 syscallarg(sunos32_statfsp_t) buf;
175 };
176
177 struct sunos32_sys_unmount_args {
178 syscallarg(netbsd32_charp) path;
179 };
180
181 struct sunos32_sys_quotactl_args {
182 syscallarg(int) cmd;
183 syscallarg(netbsd32_charp) special;
184 syscallarg(int) uid;
185 syscallarg(netbsd32_caddr_t) addr;
186 };
187
188 struct sunos32_sys_exportfs_args {
189 syscallarg(netbsd32_charp) path;
190 syscallarg(netbsd32_charp) ex;
191 };
192
193 struct sunos32_sys_mount_args {
194 syscallarg(netbsd32_charp) type;
195 syscallarg(netbsd32_charp) path;
196 syscallarg(int) flags;
197 syscallarg(netbsd32_caddr_t) data;
198 };
199
200 struct sunos32_sys_ustat_args {
201 syscallarg(int) dev;
202 syscallarg(sunos32_ustatp_t) buf;
203 };
204
205 struct sunos32_sys_auditsys_args {
206 syscallarg(netbsd32_charp) record;
207 };
208
209 struct sunos32_sys_getdents_args {
210 syscallarg(int) fd;
211 syscallarg(netbsd32_charp) buf;
212 syscallarg(int) nbytes;
213 };
214
215 struct sunos32_sys_sigpending_args {
216 syscallarg(netbsd32_intp) mask;
217 };
218
219 struct sunos32_sys_sysconf_args {
220 syscallarg(int) name;
221 };
222
223 struct sunos32_sys_uname_args {
224 syscallarg(sunos32_utsnamep_t) name;
225 };
226
227 /*
228 * System call prototypes.
229 */
230
231 int sys_nosys(struct proc *, void *, register_t *);
232 int netbsd32_exit(struct proc *, void *, register_t *);
233 int sys_fork(struct proc *, void *, register_t *);
234 int netbsd32_read(struct proc *, void *, register_t *);
235 int netbsd32_write(struct proc *, void *, register_t *);
236 int sunos32_sys_open(struct proc *, void *, register_t *);
237 int netbsd32_close(struct proc *, void *, register_t *);
238 int sunos32_sys_wait4(struct proc *, void *, register_t *);
239 int sunos32_sys_creat(struct proc *, void *, register_t *);
240 int netbsd32_link(struct proc *, void *, register_t *);
241 int netbsd32_unlink(struct proc *, void *, register_t *);
242 int sunos32_sys_execv(struct proc *, void *, register_t *);
243 int netbsd32_chdir(struct proc *, void *, register_t *);
244 int sunos32_sys_mknod(struct proc *, void *, register_t *);
245 int netbsd32_chmod(struct proc *, void *, register_t *);
246 int netbsd32_chown(struct proc *, void *, register_t *);
247 int netbsd32_break(struct proc *, void *, register_t *);
248 int compat_43_netbsd32_olseek(struct proc *, void *, register_t *);
249 int sys_getpid_with_ppid(struct proc *, void *, register_t *);
250 int netbsd32_setuid(struct proc *, void *, register_t *);
251 int sys_getuid_with_euid(struct proc *, void *, register_t *);
252 int sunos32_sys_stime(struct proc *, void *, register_t *);
253 int sunos32_sys_ptrace(struct proc *, void *, register_t *);
254 int sunos32_sys_access(struct proc *, void *, register_t *);
255 int sys_sync(struct proc *, void *, register_t *);
256 int netbsd32_kill(struct proc *, void *, register_t *);
257 int sunos32_sys_stat(struct proc *, void *, register_t *);
258 int sunos32_sys_lstat(struct proc *, void *, register_t *);
259 int netbsd32_dup(struct proc *, void *, register_t *);
260 int sys_pipe(struct proc *, void *, register_t *);
261 int netbsd32_profil(struct proc *, void *, register_t *);
262 int netbsd32_setgid(struct proc *, void *, register_t *);
263 int sys_getgid_with_egid(struct proc *, void *, register_t *);
264 int netbsd32_acct(struct proc *, void *, register_t *);
265 int sunos32_sys_mctl(struct proc *, void *, register_t *);
266 int sunos32_sys_ioctl(struct proc *, void *, register_t *);
267 int sunos32_sys_reboot(struct proc *, void *, register_t *);
268 int netbsd32_symlink(struct proc *, void *, register_t *);
269 int netbsd32_readlink(struct proc *, void *, register_t *);
270 int sunos32_sys_execve(struct proc *, void *, register_t *);
271 int netbsd32_umask(struct proc *, void *, register_t *);
272 int netbsd32_chroot(struct proc *, void *, register_t *);
273 int compat_43_netbsd32_fstat43(struct proc *, void *, register_t *);
274 int compat_43_sys_getpagesize(struct proc *, void *, register_t *);
275 int sunos32_sys_omsync(struct proc *, void *, register_t *);
276 int sys_vfork(struct proc *, void *, register_t *);
277 int netbsd32_sbrk(struct proc *, void *, register_t *);
278 int netbsd32_sstk(struct proc *, void *, register_t *);
279 int sunos32_sys_mmap(struct proc *, void *, register_t *);
280 int netbsd32_ovadvise(struct proc *, void *, register_t *);
281 int netbsd32_munmap(struct proc *, void *, register_t *);
282 int netbsd32_mprotect(struct proc *, void *, register_t *);
283 int netbsd32_madvise(struct proc *, void *, register_t *);
284 int sunos32_sys_vhangup(struct proc *, void *, register_t *);
285 int netbsd32_mincore(struct proc *, void *, register_t *);
286 int netbsd32_getgroups(struct proc *, void *, register_t *);
287 int netbsd32_setgroups(struct proc *, void *, register_t *);
288 int sys_getpgrp(struct proc *, void *, register_t *);
289 int sunos32_sys_setpgrp(struct proc *, void *, register_t *);
290 int netbsd32_setitimer(struct proc *, void *, register_t *);
291 int compat_12_netbsd32_oswapon(struct proc *, void *, register_t *);
292 int netbsd32_getitimer(struct proc *, void *, register_t *);
293 int compat_43_netbsd32_ogethostname(struct proc *, void *, register_t *);
294 int compat_43_netbsd32_osethostname(struct proc *, void *, register_t *);
295 int compat_43_sys_getdtablesize(struct proc *, void *, register_t *);
296 int netbsd32_dup2(struct proc *, void *, register_t *);
297 int sunos32_sys_fcntl(struct proc *, void *, register_t *);
298 int sys_select(struct proc *, void *, register_t *);
299 int netbsd32_fsync(struct proc *, void *, register_t *);
300 int netbsd32_setpriority(struct proc *, void *, register_t *);
301 int netbsd32_socket(struct proc *, void *, register_t *);
302 int netbsd32_connect(struct proc *, void *, register_t *);
303 int compat_43_netbsd32_oaccept(struct proc *, void *, register_t *);
304 int netbsd32_getpriority(struct proc *, void *, register_t *);
305 int compat_43_netbsd32_osend(struct proc *, void *, register_t *);
306 int compat_43_netbsd32_orecv(struct proc *, void *, register_t *);
307 int netbsd32_bind(struct proc *, void *, register_t *);
308 int sunos32_sys_setsockopt(struct proc *, void *, register_t *);
309 int netbsd32_listen(struct proc *, void *, register_t *);
310 int sunos32_sys_sigvec(struct proc *, void *, register_t *);
311 int compat_43_netbsd32_sigblock(struct proc *, void *, register_t *);
312 int compat_43_netbsd32_sigsetmask(struct proc *, void *, register_t *);
313 int sunos32_sys_sigsuspend(struct proc *, void *, register_t *);
314 int compat_43_netbsd32_osigstack(struct proc *, void *, register_t *);
315 int compat_43_netbsd32_orecvmsg(struct proc *, void *, register_t *);
316 int compat_43_netbsd32_osendmsg(struct proc *, void *, register_t *);
317 int netbsd32_gettimeofday(struct proc *, void *, register_t *);
318 int netbsd32_getrusage(struct proc *, void *, register_t *);
319 int netbsd32_getsockopt(struct proc *, void *, register_t *);
320 int netbsd32_readv(struct proc *, void *, register_t *);
321 int netbsd32_writev(struct proc *, void *, register_t *);
322 int netbsd32_settimeofday(struct proc *, void *, register_t *);
323 int netbsd32_fchown(struct proc *, void *, register_t *);
324 int netbsd32_fchmod(struct proc *, void *, register_t *);
325 int compat_43_netbsd32_orecvfrom(struct proc *, void *, register_t *);
326 int netbsd32_setreuid(struct proc *, void *, register_t *);
327 int netbsd32_setregid(struct proc *, void *, register_t *);
328 int netbsd32_rename(struct proc *, void *, register_t *);
329 int compat_43_netbsd32_otruncate(struct proc *, void *, register_t *);
330 int compat_43_netbsd32_oftruncate(struct proc *, void *, register_t *);
331 int netbsd32_flock(struct proc *, void *, register_t *);
332 int netbsd32_sendto(struct proc *, void *, register_t *);
333 int netbsd32_shutdown(struct proc *, void *, register_t *);
334 int netbsd32_socketpair(struct proc *, void *, register_t *);
335 int netbsd32_mkdir(struct proc *, void *, register_t *);
336 int netbsd32_rmdir(struct proc *, void *, register_t *);
337 int netbsd32_utimes(struct proc *, void *, register_t *);
338 int sunos_sys_sigreturn(struct proc *, void *, register_t *);
339 int netbsd32_adjtime(struct proc *, void *, register_t *);
340 int compat_43_netbsd32_ogetpeername(struct proc *, void *, register_t *);
341 int compat_43_sys_gethostid(struct proc *, void *, register_t *);
342 int sunos32_sys_getrlimit(struct proc *, void *, register_t *);
343 int sunos32_sys_setrlimit(struct proc *, void *, register_t *);
344 int compat_43_netbsd32_killpg(struct proc *, void *, register_t *);
345 int compat_43_netbsd32_ogetsockname(struct proc *, void *, register_t *);
346 int netbsd32_poll(struct proc *, void *, register_t *);
347 #ifdef NFSSERVER
348 int sunos32_sys_nfssvc(struct proc *, void *, register_t *);
349 #else
350 #endif
351 int compat_43_netbsd32_ogetdirentries(struct proc *, void *, register_t *);
352 int sunos32_sys_statfs(struct proc *, void *, register_t *);
353 int sunos32_sys_fstatfs(struct proc *, void *, register_t *);
354 int sunos32_sys_unmount(struct proc *, void *, register_t *);
355 #ifdef NFS
356 int async_daemon(struct proc *, void *, register_t *);
357 int sys_getfh(struct proc *, void *, register_t *);
358 #else
359 #endif
360 int compat_09_netbsd32_ogetdomainname(struct proc *, void *, register_t *);
361 int compat_09_netbsd32_osetdomainname(struct proc *, void *, register_t *);
362 int sunos32_sys_quotactl(struct proc *, void *, register_t *);
363 int sunos32_sys_exportfs(struct proc *, void *, register_t *);
364 int sunos32_sys_mount(struct proc *, void *, register_t *);
365 int sunos32_sys_ustat(struct proc *, void *, register_t *);
366 #ifdef SYSVSEM
367 int netbsd32_compat_10_sys_semsys(struct proc *, void *, register_t *);
368 #else
369 #endif
370 #ifdef SYSVMSG
371 int netbsd32_compat_10_sys_msgsys(struct proc *, void *, register_t *);
372 #else
373 #endif
374 #ifdef SYSVSHM
375 int netbsd32_compat_10_sys_shmsys(struct proc *, void *, register_t *);
376 #else
377 #endif
378 int sunos32_sys_auditsys(struct proc *, void *, register_t *);
379 int sunos32_sys_getdents(struct proc *, void *, register_t *);
380 int sys_setsid(struct proc *, void *, register_t *);
381 int netbsd32_fchdir(struct proc *, void *, register_t *);
382 int netbsd32_fchroot(struct proc *, void *, register_t *);
383 int sunos32_sys_sigpending(struct proc *, void *, register_t *);
384 int netbsd32_setpgid(struct proc *, void *, register_t *);
385 int netbsd32_pathconf(struct proc *, void *, register_t *);
386 int netbsd32_fpathconf(struct proc *, void *, register_t *);
387 int sunos32_sys_sysconf(struct proc *, void *, register_t *);
388 int sunos32_sys_uname(struct proc *, void *, register_t *);
389 #endif /* _SUNOS32_SYS__SYSCALLARGS_H_ */
390