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