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