sunos_syscallargs.h revision 1.38 1 1.32 thorpej /* $NetBSD: sunos_syscallargs.h,v 1.38 1998/10/19 22:41:07 tron Exp $ */
2 1.32 thorpej
3 1.1 deraadt /*
4 1.1 deraadt * System call argument lists.
5 1.1 deraadt *
6 1.1 deraadt * DO NOT EDIT-- this file is automatically generated.
7 1.38 tron * created from NetBSD: syscalls.master,v 1.48 1998/10/19 22:40:29 tron Exp
8 1.1 deraadt */
9 1.38 tron
10 1.38 tron #ifdef syscallarg
11 1.38 tron #undef syscallarg
12 1.38 tron #endif
13 1.1 deraadt
14 1.37 eeh #define syscallarg(x) \
15 1.37 eeh union { \
16 1.37 eeh register_t pad; \
17 1.37 eeh struct { x datum; } le; \
18 1.37 eeh struct { \
19 1.37 eeh int8_t pad[ (sizeof (register_t) < sizeof (x)) \
20 1.37 eeh ? 0 \
21 1.37 eeh : sizeof (register_t) - sizeof (x)]; \
22 1.37 eeh x datum; \
23 1.37 eeh } be; \
24 1.37 eeh }
25 1.1 deraadt
26 1.16 mycroft struct sunos_sys_open_args {
27 1.1 deraadt syscallarg(char *) path;
28 1.1 deraadt syscallarg(int) flags;
29 1.1 deraadt syscallarg(int) mode;
30 1.1 deraadt };
31 1.1 deraadt
32 1.16 mycroft struct sunos_sys_wait4_args {
33 1.1 deraadt syscallarg(int) pid;
34 1.1 deraadt syscallarg(int *) status;
35 1.1 deraadt syscallarg(int) options;
36 1.1 deraadt syscallarg(struct rusage *) rusage;
37 1.1 deraadt };
38 1.1 deraadt
39 1.16 mycroft struct sunos_sys_creat_args {
40 1.1 deraadt syscallarg(char *) path;
41 1.1 deraadt syscallarg(int) mode;
42 1.1 deraadt };
43 1.1 deraadt
44 1.16 mycroft struct sunos_sys_execv_args {
45 1.1 deraadt syscallarg(char *) path;
46 1.4 deraadt syscallarg(char **) argp;
47 1.1 deraadt };
48 1.1 deraadt
49 1.16 mycroft struct sunos_sys_mknod_args {
50 1.1 deraadt syscallarg(char *) path;
51 1.1 deraadt syscallarg(int) mode;
52 1.1 deraadt syscallarg(int) dev;
53 1.1 deraadt };
54 1.1 deraadt
55 1.21 christos struct sunos_sys_stime_args {
56 1.21 christos syscallarg(time_t *) tp;
57 1.21 christos };
58 1.21 christos
59 1.16 mycroft struct sunos_sys_ptrace_args {
60 1.5 deraadt syscallarg(int) req;
61 1.16 mycroft syscallarg(pid_t) pid;
62 1.16 mycroft syscallarg(caddr_t) addr;
63 1.5 deraadt syscallarg(int) data;
64 1.5 deraadt syscallarg(char *) addr2;
65 1.5 deraadt };
66 1.5 deraadt
67 1.16 mycroft struct sunos_sys_access_args {
68 1.10 pk syscallarg(char *) path;
69 1.10 pk syscallarg(int) flags;
70 1.10 pk };
71 1.10 pk
72 1.16 mycroft struct sunos_sys_stat_args {
73 1.10 pk syscallarg(char *) path;
74 1.28 christos syscallarg(struct stat43 *) ub;
75 1.10 pk };
76 1.10 pk
77 1.16 mycroft struct sunos_sys_lstat_args {
78 1.10 pk syscallarg(char *) path;
79 1.28 christos syscallarg(struct stat43 *) ub;
80 1.10 pk };
81 1.10 pk
82 1.16 mycroft struct sunos_sys_mctl_args {
83 1.29 christos syscallarg(void *) addr;
84 1.1 deraadt syscallarg(int) len;
85 1.1 deraadt syscallarg(int) func;
86 1.1 deraadt syscallarg(void *) arg;
87 1.1 deraadt };
88 1.1 deraadt
89 1.16 mycroft struct sunos_sys_ioctl_args {
90 1.1 deraadt syscallarg(int) fd;
91 1.1 deraadt syscallarg(u_long) com;
92 1.1 deraadt syscallarg(caddr_t) data;
93 1.9 christos };
94 1.9 christos
95 1.16 mycroft struct sunos_sys_reboot_args {
96 1.9 christos syscallarg(int) howto;
97 1.9 christos syscallarg(char *) bootstr;
98 1.1 deraadt };
99 1.1 deraadt
100 1.20 thorpej struct sunos_sys_execve_args {
101 1.20 thorpej syscallarg(char *) path;
102 1.20 thorpej syscallarg(char **) argp;
103 1.20 thorpej syscallarg(char **) envp;
104 1.20 thorpej };
105 1.20 thorpej
106 1.16 mycroft struct sunos_sys_omsync_args {
107 1.1 deraadt syscallarg(caddr_t) addr;
108 1.16 mycroft syscallarg(size_t) len;
109 1.1 deraadt syscallarg(int) flags;
110 1.1 deraadt };
111 1.1 deraadt
112 1.16 mycroft struct sunos_sys_mmap_args {
113 1.29 christos syscallarg(void *) addr;
114 1.16 mycroft syscallarg(size_t) len;
115 1.1 deraadt syscallarg(int) prot;
116 1.16 mycroft syscallarg(int) flags;
117 1.1 deraadt syscallarg(int) fd;
118 1.1 deraadt syscallarg(long) pos;
119 1.1 deraadt };
120 1.1 deraadt
121 1.16 mycroft struct sunos_sys_setpgrp_args {
122 1.1 deraadt syscallarg(int) pid;
123 1.1 deraadt syscallarg(int) pgid;
124 1.1 deraadt };
125 1.1 deraadt
126 1.17 pk struct sunos_sys_fcntl_args {
127 1.17 pk syscallarg(int) fd;
128 1.17 pk syscallarg(int) cmd;
129 1.17 pk syscallarg(void *) arg;
130 1.17 pk };
131 1.17 pk
132 1.16 mycroft struct sunos_sys_setsockopt_args {
133 1.1 deraadt syscallarg(int) s;
134 1.1 deraadt syscallarg(int) level;
135 1.1 deraadt syscallarg(int) name;
136 1.1 deraadt syscallarg(caddr_t) val;
137 1.1 deraadt syscallarg(int) valsize;
138 1.14 pk };
139 1.14 pk
140 1.16 mycroft struct sunos_sys_sigvec_args {
141 1.14 pk syscallarg(int) signum;
142 1.14 pk syscallarg(struct sigvec *) nsv;
143 1.14 pk syscallarg(struct sigvec *) osv;
144 1.1 deraadt };
145 1.1 deraadt
146 1.36 pk struct sunos_sys_sigsuspend_args {
147 1.36 pk syscallarg(int) mask;
148 1.36 pk };
149 1.36 pk
150 1.16 mycroft struct sunos_sys_sigreturn_args {
151 1.8 christos syscallarg(struct sigcontext *) sigcntxp;
152 1.8 christos };
153 1.8 christos
154 1.16 mycroft struct sunos_sys_getrlimit_args {
155 1.1 deraadt syscallarg(u_int) which;
156 1.1 deraadt syscallarg(struct orlimit *) rlp;
157 1.1 deraadt };
158 1.1 deraadt
159 1.16 mycroft struct sunos_sys_setrlimit_args {
160 1.1 deraadt syscallarg(u_int) which;
161 1.1 deraadt syscallarg(struct orlimit *) rlp;
162 1.5 deraadt };
163 1.5 deraadt
164 1.16 mycroft struct sunos_sys_nfssvc_args {
165 1.1 deraadt syscallarg(int) fd;
166 1.1 deraadt };
167 1.1 deraadt
168 1.16 mycroft struct sunos_sys_statfs_args {
169 1.1 deraadt syscallarg(char *) path;
170 1.1 deraadt syscallarg(struct sunos_statfs *) buf;
171 1.1 deraadt };
172 1.1 deraadt
173 1.16 mycroft struct sunos_sys_fstatfs_args {
174 1.1 deraadt syscallarg(int) fd;
175 1.1 deraadt syscallarg(struct sunos_statfs *) buf;
176 1.1 deraadt };
177 1.1 deraadt
178 1.16 mycroft struct sunos_sys_unmount_args {
179 1.1 deraadt syscallarg(char *) path;
180 1.1 deraadt };
181 1.1 deraadt
182 1.16 mycroft struct sunos_sys_quotactl_args {
183 1.1 deraadt syscallarg(int) cmd;
184 1.1 deraadt syscallarg(char *) special;
185 1.1 deraadt syscallarg(int) uid;
186 1.1 deraadt syscallarg(caddr_t) addr;
187 1.1 deraadt };
188 1.1 deraadt
189 1.16 mycroft struct sunos_sys_exportfs_args {
190 1.1 deraadt syscallarg(char *) path;
191 1.1 deraadt syscallarg(char *) ex;
192 1.1 deraadt };
193 1.1 deraadt
194 1.16 mycroft struct sunos_sys_mount_args {
195 1.1 deraadt syscallarg(char *) type;
196 1.1 deraadt syscallarg(char *) dir;
197 1.1 deraadt syscallarg(int) flags;
198 1.1 deraadt syscallarg(caddr_t) data;
199 1.1 deraadt };
200 1.1 deraadt
201 1.16 mycroft struct sunos_sys_ustat_args {
202 1.1 deraadt syscallarg(int) dev;
203 1.1 deraadt syscallarg(struct sunos_ustat *) buf;
204 1.1 deraadt };
205 1.1 deraadt
206 1.16 mycroft struct sunos_sys_auditsys_args {
207 1.1 deraadt syscallarg(char *) record;
208 1.1 deraadt };
209 1.1 deraadt
210 1.16 mycroft struct sunos_sys_getdents_args {
211 1.1 deraadt syscallarg(int) fd;
212 1.1 deraadt syscallarg(char *) buf;
213 1.1 deraadt syscallarg(int) nbytes;
214 1.1 deraadt };
215 1.1 deraadt
216 1.16 mycroft struct sunos_sys_fchroot_args {
217 1.1 deraadt syscallarg(int) fd;
218 1.1 deraadt };
219 1.1 deraadt
220 1.16 mycroft struct sunos_sys_sigpending_args {
221 1.1 deraadt syscallarg(int *) mask;
222 1.1 deraadt };
223 1.1 deraadt
224 1.16 mycroft struct sunos_sys_sysconf_args {
225 1.1 deraadt syscallarg(int) name;
226 1.1 deraadt };
227 1.1 deraadt
228 1.16 mycroft struct sunos_sys_uname_args {
229 1.1 deraadt syscallarg(struct sunos_utsname *) name;
230 1.1 deraadt };
231 1.1 deraadt
232 1.15 thorpej /*
233 1.15 thorpej * System call prototypes.
234 1.15 thorpej */
235 1.15 thorpej
236 1.16 mycroft int sys_nosys __P((struct proc *, void *, register_t *));
237 1.16 mycroft int sys_exit __P((struct proc *, void *, register_t *));
238 1.16 mycroft int sys_fork __P((struct proc *, void *, register_t *));
239 1.16 mycroft int sys_read __P((struct proc *, void *, register_t *));
240 1.16 mycroft int sys_write __P((struct proc *, void *, register_t *));
241 1.16 mycroft int sunos_sys_open __P((struct proc *, void *, register_t *));
242 1.16 mycroft int sys_close __P((struct proc *, void *, register_t *));
243 1.16 mycroft int sunos_sys_wait4 __P((struct proc *, void *, register_t *));
244 1.16 mycroft int sunos_sys_creat __P((struct proc *, void *, register_t *));
245 1.16 mycroft int sys_link __P((struct proc *, void *, register_t *));
246 1.16 mycroft int sys_unlink __P((struct proc *, void *, register_t *));
247 1.16 mycroft int sunos_sys_execv __P((struct proc *, void *, register_t *));
248 1.16 mycroft int sys_chdir __P((struct proc *, void *, register_t *));
249 1.16 mycroft int sunos_sys_mknod __P((struct proc *, void *, register_t *));
250 1.16 mycroft int sys_chmod __P((struct proc *, void *, register_t *));
251 1.16 mycroft int sys_chown __P((struct proc *, void *, register_t *));
252 1.16 mycroft int sys_obreak __P((struct proc *, void *, register_t *));
253 1.16 mycroft int compat_43_sys_lseek __P((struct proc *, void *, register_t *));
254 1.16 mycroft int sys_getpid __P((struct proc *, void *, register_t *));
255 1.16 mycroft int sys_setuid __P((struct proc *, void *, register_t *));
256 1.16 mycroft int sys_getuid __P((struct proc *, void *, register_t *));
257 1.21 christos int sunos_sys_stime __P((struct proc *, void *, register_t *));
258 1.16 mycroft int sunos_sys_ptrace __P((struct proc *, void *, register_t *));
259 1.16 mycroft int sunos_sys_access __P((struct proc *, void *, register_t *));
260 1.16 mycroft int sys_sync __P((struct proc *, void *, register_t *));
261 1.16 mycroft int sys_kill __P((struct proc *, void *, register_t *));
262 1.16 mycroft int sunos_sys_stat __P((struct proc *, void *, register_t *));
263 1.16 mycroft int sunos_sys_lstat __P((struct proc *, void *, register_t *));
264 1.16 mycroft int sys_dup __P((struct proc *, void *, register_t *));
265 1.16 mycroft int sys_pipe __P((struct proc *, void *, register_t *));
266 1.16 mycroft int sys_profil __P((struct proc *, void *, register_t *));
267 1.16 mycroft int sys_setgid __P((struct proc *, void *, register_t *));
268 1.16 mycroft int sys_getgid __P((struct proc *, void *, register_t *));
269 1.16 mycroft int sys_acct __P((struct proc *, void *, register_t *));
270 1.16 mycroft int sunos_sys_mctl __P((struct proc *, void *, register_t *));
271 1.16 mycroft int sunos_sys_ioctl __P((struct proc *, void *, register_t *));
272 1.16 mycroft int sunos_sys_reboot __P((struct proc *, void *, register_t *));
273 1.16 mycroft int sys_symlink __P((struct proc *, void *, register_t *));
274 1.16 mycroft int sys_readlink __P((struct proc *, void *, register_t *));
275 1.20 thorpej int sunos_sys_execve __P((struct proc *, void *, register_t *));
276 1.16 mycroft int sys_umask __P((struct proc *, void *, register_t *));
277 1.16 mycroft int sys_chroot __P((struct proc *, void *, register_t *));
278 1.16 mycroft int compat_43_sys_fstat __P((struct proc *, void *, register_t *));
279 1.16 mycroft int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *));
280 1.16 mycroft int sunos_sys_omsync __P((struct proc *, void *, register_t *));
281 1.16 mycroft int sys_vfork __P((struct proc *, void *, register_t *));
282 1.16 mycroft int sys_sbrk __P((struct proc *, void *, register_t *));
283 1.16 mycroft int sys_sstk __P((struct proc *, void *, register_t *));
284 1.16 mycroft int sunos_sys_mmap __P((struct proc *, void *, register_t *));
285 1.16 mycroft int sys_ovadvise __P((struct proc *, void *, register_t *));
286 1.16 mycroft int sys_munmap __P((struct proc *, void *, register_t *));
287 1.16 mycroft int sys_mprotect __P((struct proc *, void *, register_t *));
288 1.16 mycroft int sys_madvise __P((struct proc *, void *, register_t *));
289 1.16 mycroft int sunos_sys_vhangup __P((struct proc *, void *, register_t *));
290 1.16 mycroft int sys_mincore __P((struct proc *, void *, register_t *));
291 1.16 mycroft int sys_getgroups __P((struct proc *, void *, register_t *));
292 1.16 mycroft int sys_setgroups __P((struct proc *, void *, register_t *));
293 1.16 mycroft int sys_getpgrp __P((struct proc *, void *, register_t *));
294 1.16 mycroft int sunos_sys_setpgrp __P((struct proc *, void *, register_t *));
295 1.16 mycroft int sys_setitimer __P((struct proc *, void *, register_t *));
296 1.26 thorpej int compat_12_sys_swapon __P((struct proc *, void *, register_t *));
297 1.16 mycroft int sys_getitimer __P((struct proc *, void *, register_t *));
298 1.16 mycroft int compat_43_sys_gethostname __P((struct proc *, void *, register_t *));
299 1.16 mycroft int compat_43_sys_sethostname __P((struct proc *, void *, register_t *));
300 1.16 mycroft int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *));
301 1.16 mycroft int sys_dup2 __P((struct proc *, void *, register_t *));
302 1.17 pk int sunos_sys_fcntl __P((struct proc *, void *, register_t *));
303 1.16 mycroft int sys_select __P((struct proc *, void *, register_t *));
304 1.16 mycroft int sys_fsync __P((struct proc *, void *, register_t *));
305 1.16 mycroft int sys_setpriority __P((struct proc *, void *, register_t *));
306 1.16 mycroft int sys_socket __P((struct proc *, void *, register_t *));
307 1.16 mycroft int sys_connect __P((struct proc *, void *, register_t *));
308 1.16 mycroft int compat_43_sys_accept __P((struct proc *, void *, register_t *));
309 1.16 mycroft int sys_getpriority __P((struct proc *, void *, register_t *));
310 1.16 mycroft int compat_43_sys_send __P((struct proc *, void *, register_t *));
311 1.16 mycroft int compat_43_sys_recv __P((struct proc *, void *, register_t *));
312 1.16 mycroft int sys_bind __P((struct proc *, void *, register_t *));
313 1.16 mycroft int sunos_sys_setsockopt __P((struct proc *, void *, register_t *));
314 1.16 mycroft int sys_listen __P((struct proc *, void *, register_t *));
315 1.16 mycroft int sunos_sys_sigvec __P((struct proc *, void *, register_t *));
316 1.16 mycroft int compat_43_sys_sigblock __P((struct proc *, void *, register_t *));
317 1.16 mycroft int compat_43_sys_sigsetmask __P((struct proc *, void *, register_t *));
318 1.36 pk int sunos_sys_sigsuspend __P((struct proc *, void *, register_t *));
319 1.16 mycroft int compat_43_sys_sigstack __P((struct proc *, void *, register_t *));
320 1.16 mycroft int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *));
321 1.16 mycroft int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *));
322 1.16 mycroft int sys_gettimeofday __P((struct proc *, void *, register_t *));
323 1.16 mycroft int sys_getrusage __P((struct proc *, void *, register_t *));
324 1.16 mycroft int sys_getsockopt __P((struct proc *, void *, register_t *));
325 1.16 mycroft int sys_readv __P((struct proc *, void *, register_t *));
326 1.16 mycroft int sys_writev __P((struct proc *, void *, register_t *));
327 1.16 mycroft int sys_settimeofday __P((struct proc *, void *, register_t *));
328 1.16 mycroft int sys_fchown __P((struct proc *, void *, register_t *));
329 1.16 mycroft int sys_fchmod __P((struct proc *, void *, register_t *));
330 1.16 mycroft int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *));
331 1.19 mycroft int sys_setreuid __P((struct proc *, void *, register_t *));
332 1.19 mycroft int sys_setregid __P((struct proc *, void *, register_t *));
333 1.16 mycroft int sys_rename __P((struct proc *, void *, register_t *));
334 1.16 mycroft int compat_43_sys_truncate __P((struct proc *, void *, register_t *));
335 1.16 mycroft int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *));
336 1.16 mycroft int sys_flock __P((struct proc *, void *, register_t *));
337 1.16 mycroft int sys_sendto __P((struct proc *, void *, register_t *));
338 1.16 mycroft int sys_shutdown __P((struct proc *, void *, register_t *));
339 1.16 mycroft int sys_socketpair __P((struct proc *, void *, register_t *));
340 1.16 mycroft int sys_mkdir __P((struct proc *, void *, register_t *));
341 1.16 mycroft int sys_rmdir __P((struct proc *, void *, register_t *));
342 1.16 mycroft int sys_utimes __P((struct proc *, void *, register_t *));
343 1.16 mycroft int sunos_sys_sigreturn __P((struct proc *, void *, register_t *));
344 1.16 mycroft int sys_adjtime __P((struct proc *, void *, register_t *));
345 1.16 mycroft int compat_43_sys_getpeername __P((struct proc *, void *, register_t *));
346 1.16 mycroft int compat_43_sys_gethostid __P((struct proc *, void *, register_t *));
347 1.16 mycroft int sunos_sys_getrlimit __P((struct proc *, void *, register_t *));
348 1.16 mycroft int sunos_sys_setrlimit __P((struct proc *, void *, register_t *));
349 1.16 mycroft int compat_43_sys_killpg __P((struct proc *, void *, register_t *));
350 1.16 mycroft int compat_43_sys_getsockname __P((struct proc *, void *, register_t *));
351 1.22 mycroft int sys_poll __P((struct proc *, void *, register_t *));
352 1.15 thorpej #ifdef NFSSERVER
353 1.16 mycroft int sunos_sys_nfssvc __P((struct proc *, void *, register_t *));
354 1.15 thorpej #else
355 1.15 thorpej #endif
356 1.27 fvdl int compat_12_sys_getdirentries __P((struct proc *, void *, register_t *));
357 1.16 mycroft int sunos_sys_statfs __P((struct proc *, void *, register_t *));
358 1.16 mycroft int sunos_sys_fstatfs __P((struct proc *, void *, register_t *));
359 1.16 mycroft int sunos_sys_unmount __P((struct proc *, void *, register_t *));
360 1.24 thorpej #ifdef NFS
361 1.15 thorpej int async_daemon __P((struct proc *, void *, register_t *));
362 1.16 mycroft int sys_getfh __P((struct proc *, void *, register_t *));
363 1.15 thorpej #else
364 1.15 thorpej #endif
365 1.16 mycroft int compat_09_sys_getdomainname __P((struct proc *, void *, register_t *));
366 1.16 mycroft int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *));
367 1.16 mycroft int sunos_sys_quotactl __P((struct proc *, void *, register_t *));
368 1.16 mycroft int sunos_sys_exportfs __P((struct proc *, void *, register_t *));
369 1.16 mycroft int sunos_sys_mount __P((struct proc *, void *, register_t *));
370 1.16 mycroft int sunos_sys_ustat __P((struct proc *, void *, register_t *));
371 1.15 thorpej #ifdef SYSVSEM
372 1.16 mycroft int compat_10_sys_semsys __P((struct proc *, void *, register_t *));
373 1.15 thorpej #else
374 1.15 thorpej #endif
375 1.15 thorpej #ifdef SYSVMSG
376 1.16 mycroft int compat_10_sys_msgsys __P((struct proc *, void *, register_t *));
377 1.15 thorpej #else
378 1.15 thorpej #endif
379 1.15 thorpej #ifdef SYSVSHM
380 1.16 mycroft int compat_10_sys_shmsys __P((struct proc *, void *, register_t *));
381 1.15 thorpej #else
382 1.15 thorpej #endif
383 1.16 mycroft int sunos_sys_auditsys __P((struct proc *, void *, register_t *));
384 1.16 mycroft int sunos_sys_getdents __P((struct proc *, void *, register_t *));
385 1.16 mycroft int sys_setsid __P((struct proc *, void *, register_t *));
386 1.16 mycroft int sys_fchdir __P((struct proc *, void *, register_t *));
387 1.16 mycroft int sunos_sys_fchroot __P((struct proc *, void *, register_t *));
388 1.16 mycroft int sunos_sys_sigpending __P((struct proc *, void *, register_t *));
389 1.16 mycroft int sys_setpgid __P((struct proc *, void *, register_t *));
390 1.16 mycroft int sys_pathconf __P((struct proc *, void *, register_t *));
391 1.16 mycroft int sys_fpathconf __P((struct proc *, void *, register_t *));
392 1.16 mycroft int sunos_sys_sysconf __P((struct proc *, void *, register_t *));
393 1.16 mycroft int sunos_sys_uname __P((struct proc *, void *, register_t *));
394