ultrix_syscallargs.h revision 1.40 1 1.34 cgd /* $NetBSD: ultrix_syscallargs.h,v 1.40 2003/01/18 08:49:59 thorpej Exp $ */
2 1.19 thorpej
3 1.1 dean /*
4 1.1 dean * System call argument lists.
5 1.1 dean *
6 1.1 dean * DO NOT EDIT-- this file is automatically generated.
7 1.40 thorpej * created from NetBSD
8 1.1 dean */
9 1.1 dean
10 1.30 christos #ifndef _ULTRIX_SYS__SYSCALLARGS_H_
11 1.38 mrg #define _ULTRIX_SYS__SYSCALLARGS_H_
12 1.30 christos
13 1.27 eeh #ifdef syscallarg
14 1.27 eeh #undef syscallarg
15 1.27 eeh #endif
16 1.27 eeh
17 1.33 cgd #define syscallarg(x) \
18 1.33 cgd union { \
19 1.33 cgd register_t pad; \
20 1.33 cgd struct { x datum; } le; \
21 1.39 lukem struct { /* LINTED zero array dimension */ \
22 1.39 lukem int8_t pad[ /* CONSTCOND */ \
23 1.39 lukem (sizeof (register_t) < sizeof (x)) \
24 1.33 cgd ? 0 \
25 1.33 cgd : sizeof (register_t) - sizeof (x)]; \
26 1.33 cgd x datum; \
27 1.33 cgd } be; \
28 1.33 cgd }
29 1.1 dean
30 1.6 mycroft struct ultrix_sys_open_args {
31 1.30 christos syscallarg(const char *) path;
32 1.1 dean syscallarg(int) flags;
33 1.1 dean syscallarg(int) mode;
34 1.1 dean };
35 1.1 dean
36 1.9 jonathan struct ultrix_sys_creat_args {
37 1.30 christos syscallarg(const char *) path;
38 1.9 jonathan syscallarg(int) mode;
39 1.9 jonathan };
40 1.9 jonathan
41 1.6 mycroft struct ultrix_sys_execv_args {
42 1.30 christos syscallarg(const char *) path;
43 1.1 dean syscallarg(char **) argp;
44 1.1 dean };
45 1.1 dean
46 1.6 mycroft struct ultrix_sys_mknod_args {
47 1.30 christos syscallarg(const char *) path;
48 1.1 dean syscallarg(int) mode;
49 1.1 dean syscallarg(int) dev;
50 1.1 dean };
51 1.1 dean
52 1.8 jonathan struct ultrix_sys_mount_args {
53 1.8 jonathan syscallarg(char *) special;
54 1.8 jonathan syscallarg(char *) dir;
55 1.8 jonathan syscallarg(int) rdonly;
56 1.8 jonathan syscallarg(int) type;
57 1.8 jonathan syscallarg(caddr_t) data;
58 1.8 jonathan };
59 1.8 jonathan
60 1.9 jonathan struct ultrix_sys_access_args {
61 1.30 christos syscallarg(const char *) path;
62 1.9 jonathan syscallarg(int) flags;
63 1.9 jonathan };
64 1.9 jonathan
65 1.9 jonathan struct ultrix_sys_stat_args {
66 1.30 christos syscallarg(const char *) path;
67 1.16 christos syscallarg(struct stat43 *) ub;
68 1.9 jonathan };
69 1.9 jonathan
70 1.9 jonathan struct ultrix_sys_lstat_args {
71 1.30 christos syscallarg(const char *) path;
72 1.16 christos syscallarg(struct stat43 *) ub;
73 1.9 jonathan };
74 1.9 jonathan
75 1.7 jonathan struct ultrix_sys_ioctl_args {
76 1.7 jonathan syscallarg(int) fd;
77 1.7 jonathan syscallarg(u_long) com;
78 1.7 jonathan syscallarg(caddr_t) data;
79 1.7 jonathan };
80 1.7 jonathan
81 1.11 mycroft struct ultrix_sys_execve_args {
82 1.30 christos syscallarg(const char *) path;
83 1.11 mycroft syscallarg(char **) argp;
84 1.11 mycroft syscallarg(char **) envp;
85 1.11 mycroft };
86 1.11 mycroft
87 1.6 mycroft struct ultrix_sys_mmap_args {
88 1.1 dean syscallarg(caddr_t) addr;
89 1.6 mycroft syscallarg(size_t) len;
90 1.1 dean syscallarg(int) prot;
91 1.1 dean syscallarg(u_int) flags;
92 1.1 dean syscallarg(int) fd;
93 1.1 dean syscallarg(long) pos;
94 1.1 dean };
95 1.1 dean
96 1.6 mycroft struct ultrix_sys_setpgrp_args {
97 1.1 dean syscallarg(int) pid;
98 1.1 dean syscallarg(int) pgid;
99 1.1 dean };
100 1.1 dean
101 1.6 mycroft struct ultrix_sys_wait3_args {
102 1.1 dean syscallarg(int *) status;
103 1.1 dean syscallarg(int) options;
104 1.1 dean syscallarg(struct rusage *) rusage;
105 1.1 dean };
106 1.1 dean
107 1.32 drochner struct ultrix_sys_fcntl_args {
108 1.32 drochner syscallarg(int) fd;
109 1.32 drochner syscallarg(int) cmd;
110 1.32 drochner syscallarg(void *) arg;
111 1.32 drochner };
112 1.32 drochner
113 1.8 jonathan struct ultrix_sys_select_args {
114 1.8 jonathan syscallarg(u_int) nd;
115 1.8 jonathan syscallarg(fd_set *) in;
116 1.8 jonathan syscallarg(fd_set *) ou;
117 1.8 jonathan syscallarg(fd_set *) ex;
118 1.8 jonathan syscallarg(struct timeval *) tv;
119 1.8 jonathan };
120 1.8 jonathan
121 1.25 drochner struct ultrix_sys_sigreturn_args {
122 1.25 drochner syscallarg(struct sigcontext *) sigcntxp;
123 1.25 drochner };
124 1.25 drochner
125 1.6 mycroft struct ultrix_sys_setsockopt_args {
126 1.1 dean syscallarg(int) s;
127 1.1 dean syscallarg(int) level;
128 1.1 dean syscallarg(int) name;
129 1.1 dean syscallarg(caddr_t) val;
130 1.1 dean syscallarg(int) valsize;
131 1.1 dean };
132 1.1 dean
133 1.26 drochner struct ultrix_sys_sigvec_args {
134 1.26 drochner syscallarg(int) signum;
135 1.26 drochner syscallarg(struct sigvec *) nsv;
136 1.26 drochner syscallarg(struct sigvec *) osv;
137 1.26 drochner };
138 1.26 drochner
139 1.25 drochner struct ultrix_sys_sigsuspend_args {
140 1.25 drochner syscallarg(int) mask;
141 1.25 drochner };
142 1.25 drochner
143 1.6 mycroft struct ultrix_sys_sigcleanup_args {
144 1.4 mellon syscallarg(struct sigcontext *) sigcntxp;
145 1.4 mellon };
146 1.4 mellon
147 1.14 jonathan struct ultrix_sys_cacheflush_args {
148 1.14 jonathan syscallarg(char *) addr;
149 1.14 jonathan syscallarg(int) nbytes;
150 1.14 jonathan syscallarg(int) whichcache;
151 1.14 jonathan };
152 1.14 jonathan
153 1.14 jonathan struct ultrix_sys_cachectl_args {
154 1.14 jonathan syscallarg(char *) addr;
155 1.14 jonathan syscallarg(int) nbytes;
156 1.14 jonathan syscallarg(int) cacheop;
157 1.14 jonathan };
158 1.14 jonathan
159 1.6 mycroft struct ultrix_sys_nfssvc_args {
160 1.1 dean syscallarg(int) fd;
161 1.1 dean };
162 1.1 dean
163 1.6 mycroft struct ultrix_sys_statfs_args {
164 1.30 christos syscallarg(const char *) path;
165 1.6 mycroft syscallarg(struct ultrix_statfs *) buf;
166 1.1 dean };
167 1.1 dean
168 1.6 mycroft struct ultrix_sys_fstatfs_args {
169 1.1 dean syscallarg(int) fd;
170 1.6 mycroft syscallarg(struct ultrix_statfs *) buf;
171 1.1 dean };
172 1.1 dean
173 1.6 mycroft struct ultrix_sys_quotactl_args {
174 1.1 dean syscallarg(int) cmd;
175 1.1 dean syscallarg(char *) special;
176 1.1 dean syscallarg(int) uid;
177 1.1 dean syscallarg(caddr_t) addr;
178 1.1 dean };
179 1.1 dean
180 1.6 mycroft struct ultrix_sys_exportfs_args {
181 1.1 dean syscallarg(char *) path;
182 1.1 dean syscallarg(char *) ex;
183 1.1 dean };
184 1.1 dean
185 1.6 mycroft struct ultrix_sys_uname_args {
186 1.6 mycroft syscallarg(struct ultrix_utsname *) name;
187 1.1 dean };
188 1.1 dean
189 1.13 jonathan struct ultrix_sys_shmsys_args {
190 1.13 jonathan syscallarg(u_int) shmop;
191 1.13 jonathan syscallarg(u_int) a2;
192 1.13 jonathan syscallarg(u_int) a3;
193 1.13 jonathan syscallarg(u_int) a4;
194 1.13 jonathan };
195 1.13 jonathan
196 1.6 mycroft struct ultrix_sys_ustat_args {
197 1.1 dean syscallarg(int) dev;
198 1.6 mycroft syscallarg(struct ultrix_ustat *) buf;
199 1.1 dean };
200 1.1 dean
201 1.7 jonathan struct ultrix_sys_getmnt_args {
202 1.7 jonathan syscallarg(int *) start;
203 1.7 jonathan syscallarg(struct ultrix_fs_data *) buf;
204 1.7 jonathan syscallarg(int) bufsize;
205 1.7 jonathan syscallarg(int) mode;
206 1.7 jonathan syscallarg(char *) path;
207 1.7 jonathan };
208 1.7 jonathan
209 1.6 mycroft struct ultrix_sys_sigpending_args {
210 1.1 dean syscallarg(int *) mask;
211 1.1 dean };
212 1.1 dean
213 1.6 mycroft struct ultrix_sys_waitpid_args {
214 1.6 mycroft syscallarg(int) pid;
215 1.6 mycroft syscallarg(int *) status;
216 1.6 mycroft syscallarg(int) options;
217 1.6 mycroft };
218 1.6 mycroft
219 1.6 mycroft struct ultrix_sys_getsysinfo_args {
220 1.1 dean syscallarg(unsigned) op;
221 1.1 dean syscallarg(char *) buffer;
222 1.1 dean syscallarg(unsigned) nbytes;
223 1.1 dean syscallarg(int *) start;
224 1.1 dean syscallarg(char *) arg;
225 1.1 dean };
226 1.1 dean
227 1.6 mycroft struct ultrix_sys_setsysinfo_args {
228 1.1 dean syscallarg(unsigned) op;
229 1.1 dean syscallarg(char *) buffer;
230 1.1 dean syscallarg(unsigned) nbytes;
231 1.1 dean syscallarg(unsigned) arg;
232 1.1 dean syscallarg(unsigned) flag;
233 1.1 dean };
234 1.1 dean
235 1.5 thorpej /*
236 1.5 thorpej * System call prototypes.
237 1.5 thorpej */
238 1.5 thorpej
239 1.40 thorpej int sys_nosys(struct lwp *, void *, register_t *);
240 1.40 thorpej int sys_exit(struct lwp *, void *, register_t *);
241 1.40 thorpej int sys_fork(struct lwp *, void *, register_t *);
242 1.40 thorpej int sys_read(struct lwp *, void *, register_t *);
243 1.40 thorpej int sys_write(struct lwp *, void *, register_t *);
244 1.40 thorpej int ultrix_sys_open(struct lwp *, void *, register_t *);
245 1.40 thorpej int sys_close(struct lwp *, void *, register_t *);
246 1.40 thorpej int compat_43_sys_wait(struct lwp *, void *, register_t *);
247 1.40 thorpej int ultrix_sys_creat(struct lwp *, void *, register_t *);
248 1.40 thorpej int sys_link(struct lwp *, void *, register_t *);
249 1.40 thorpej int sys_unlink(struct lwp *, void *, register_t *);
250 1.40 thorpej int ultrix_sys_execv(struct lwp *, void *, register_t *);
251 1.40 thorpej int sys_chdir(struct lwp *, void *, register_t *);
252 1.40 thorpej int ultrix_sys_mknod(struct lwp *, void *, register_t *);
253 1.40 thorpej int sys_chmod(struct lwp *, void *, register_t *);
254 1.40 thorpej int sys___posix_chown(struct lwp *, void *, register_t *);
255 1.40 thorpej int sys_obreak(struct lwp *, void *, register_t *);
256 1.40 thorpej int compat_43_sys_lseek(struct lwp *, void *, register_t *);
257 1.40 thorpej int sys_getpid(struct lwp *, void *, register_t *);
258 1.40 thorpej int ultrix_sys_mount(struct lwp *, void *, register_t *);
259 1.40 thorpej int sys_setuid(struct lwp *, void *, register_t *);
260 1.40 thorpej int sys_getuid(struct lwp *, void *, register_t *);
261 1.40 thorpej int ultrix_sys_access(struct lwp *, void *, register_t *);
262 1.40 thorpej int sys_sync(struct lwp *, void *, register_t *);
263 1.40 thorpej int sys_kill(struct lwp *, void *, register_t *);
264 1.40 thorpej int ultrix_sys_stat(struct lwp *, void *, register_t *);
265 1.40 thorpej int ultrix_sys_lstat(struct lwp *, void *, register_t *);
266 1.40 thorpej int sys_dup(struct lwp *, void *, register_t *);
267 1.40 thorpej int sys_pipe(struct lwp *, void *, register_t *);
268 1.40 thorpej int sys_profil(struct lwp *, void *, register_t *);
269 1.40 thorpej int sys_getgid(struct lwp *, void *, register_t *);
270 1.40 thorpej int sys_acct(struct lwp *, void *, register_t *);
271 1.40 thorpej int ultrix_sys_ioctl(struct lwp *, void *, register_t *);
272 1.40 thorpej int sys_reboot(struct lwp *, void *, register_t *);
273 1.40 thorpej int sys_symlink(struct lwp *, void *, register_t *);
274 1.40 thorpej int sys_readlink(struct lwp *, void *, register_t *);
275 1.40 thorpej int ultrix_sys_execve(struct lwp *, void *, register_t *);
276 1.40 thorpej int sys_umask(struct lwp *, void *, register_t *);
277 1.40 thorpej int sys_chroot(struct lwp *, void *, register_t *);
278 1.40 thorpej int compat_43_sys_fstat(struct lwp *, void *, register_t *);
279 1.40 thorpej int compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
280 1.40 thorpej int sys_vfork(struct lwp *, void *, register_t *);
281 1.40 thorpej int sys_sbrk(struct lwp *, void *, register_t *);
282 1.40 thorpej int sys_sstk(struct lwp *, void *, register_t *);
283 1.40 thorpej int ultrix_sys_mmap(struct lwp *, void *, register_t *);
284 1.40 thorpej int sys_ovadvise(struct lwp *, void *, register_t *);
285 1.40 thorpej int sys_munmap(struct lwp *, void *, register_t *);
286 1.40 thorpej int sys_mprotect(struct lwp *, void *, register_t *);
287 1.40 thorpej int sys_madvise(struct lwp *, void *, register_t *);
288 1.40 thorpej int ultrix_sys_vhangup(struct lwp *, void *, register_t *);
289 1.40 thorpej int sys_mincore(struct lwp *, void *, register_t *);
290 1.40 thorpej int sys_getgroups(struct lwp *, void *, register_t *);
291 1.40 thorpej int sys_setgroups(struct lwp *, void *, register_t *);
292 1.40 thorpej int sys_getpgrp(struct lwp *, void *, register_t *);
293 1.40 thorpej int ultrix_sys_setpgrp(struct lwp *, void *, register_t *);
294 1.40 thorpej int sys_setitimer(struct lwp *, void *, register_t *);
295 1.40 thorpej int ultrix_sys_wait3(struct lwp *, void *, register_t *);
296 1.40 thorpej int compat_12_sys_swapon(struct lwp *, void *, register_t *);
297 1.40 thorpej int sys_getitimer(struct lwp *, void *, register_t *);
298 1.40 thorpej int compat_43_sys_gethostname(struct lwp *, void *, register_t *);
299 1.40 thorpej int compat_43_sys_sethostname(struct lwp *, void *, register_t *);
300 1.40 thorpej int compat_43_sys_getdtablesize(struct lwp *, void *, register_t *);
301 1.40 thorpej int sys_dup2(struct lwp *, void *, register_t *);
302 1.40 thorpej int ultrix_sys_fcntl(struct lwp *, void *, register_t *);
303 1.40 thorpej int ultrix_sys_select(struct lwp *, void *, register_t *);
304 1.40 thorpej int sys_fsync(struct lwp *, void *, register_t *);
305 1.40 thorpej int sys_setpriority(struct lwp *, void *, register_t *);
306 1.40 thorpej int sys_socket(struct lwp *, void *, register_t *);
307 1.40 thorpej int sys_connect(struct lwp *, void *, register_t *);
308 1.40 thorpej int compat_43_sys_accept(struct lwp *, void *, register_t *);
309 1.40 thorpej int sys_getpriority(struct lwp *, void *, register_t *);
310 1.40 thorpej int compat_43_sys_send(struct lwp *, void *, register_t *);
311 1.40 thorpej int compat_43_sys_recv(struct lwp *, void *, register_t *);
312 1.40 thorpej int ultrix_sys_sigreturn(struct lwp *, void *, register_t *);
313 1.40 thorpej int sys_bind(struct lwp *, void *, register_t *);
314 1.40 thorpej int ultrix_sys_setsockopt(struct lwp *, void *, register_t *);
315 1.40 thorpej int sys_listen(struct lwp *, void *, register_t *);
316 1.40 thorpej int ultrix_sys_sigvec(struct lwp *, void *, register_t *);
317 1.40 thorpej int compat_43_sys_sigblock(struct lwp *, void *, register_t *);
318 1.40 thorpej int compat_43_sys_sigsetmask(struct lwp *, void *, register_t *);
319 1.40 thorpej int ultrix_sys_sigsuspend(struct lwp *, void *, register_t *);
320 1.40 thorpej int compat_43_sys_sigstack(struct lwp *, void *, register_t *);
321 1.40 thorpej int compat_43_sys_recvmsg(struct lwp *, void *, register_t *);
322 1.40 thorpej int compat_43_sys_sendmsg(struct lwp *, void *, register_t *);
323 1.40 thorpej int sys_gettimeofday(struct lwp *, void *, register_t *);
324 1.40 thorpej int sys_getrusage(struct lwp *, void *, register_t *);
325 1.40 thorpej int sys_getsockopt(struct lwp *, void *, register_t *);
326 1.40 thorpej int sys_readv(struct lwp *, void *, register_t *);
327 1.40 thorpej int sys_writev(struct lwp *, void *, register_t *);
328 1.40 thorpej int sys_settimeofday(struct lwp *, void *, register_t *);
329 1.40 thorpej int sys___posix_fchown(struct lwp *, void *, register_t *);
330 1.40 thorpej int sys_fchmod(struct lwp *, void *, register_t *);
331 1.40 thorpej int compat_43_sys_recvfrom(struct lwp *, void *, register_t *);
332 1.40 thorpej int sys_setreuid(struct lwp *, void *, register_t *);
333 1.40 thorpej int sys_setregid(struct lwp *, void *, register_t *);
334 1.40 thorpej int sys_rename(struct lwp *, void *, register_t *);
335 1.40 thorpej int compat_43_sys_truncate(struct lwp *, void *, register_t *);
336 1.40 thorpej int compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
337 1.40 thorpej int sys_flock(struct lwp *, void *, register_t *);
338 1.40 thorpej int sys_sendto(struct lwp *, void *, register_t *);
339 1.40 thorpej int sys_shutdown(struct lwp *, void *, register_t *);
340 1.40 thorpej int sys_socketpair(struct lwp *, void *, register_t *);
341 1.40 thorpej int sys_mkdir(struct lwp *, void *, register_t *);
342 1.40 thorpej int sys_rmdir(struct lwp *, void *, register_t *);
343 1.40 thorpej int sys_utimes(struct lwp *, void *, register_t *);
344 1.40 thorpej int ultrix_sys_sigcleanup(struct lwp *, void *, register_t *);
345 1.40 thorpej int sys_adjtime(struct lwp *, void *, register_t *);
346 1.40 thorpej int compat_43_sys_getpeername(struct lwp *, void *, register_t *);
347 1.40 thorpej int compat_43_sys_gethostid(struct lwp *, void *, register_t *);
348 1.40 thorpej int compat_43_sys_getrlimit(struct lwp *, void *, register_t *);
349 1.40 thorpej int compat_43_sys_setrlimit(struct lwp *, void *, register_t *);
350 1.40 thorpej int compat_43_sys_killpg(struct lwp *, void *, register_t *);
351 1.40 thorpej int compat_43_sys_getsockname(struct lwp *, void *, register_t *);
352 1.14 jonathan #ifdef __mips
353 1.40 thorpej int ultrix_sys_cacheflush(struct lwp *, void *, register_t *);
354 1.40 thorpej int ultrix_sys_cachectl(struct lwp *, void *, register_t *);
355 1.14 jonathan #else /* !mips */
356 1.14 jonathan #endif /* !mips */
357 1.5 thorpej #ifdef NFSSERVER
358 1.40 thorpej int ultrix_sys_nfssvc(struct lwp *, void *, register_t *);
359 1.5 thorpej #else
360 1.5 thorpej #endif
361 1.40 thorpej int compat_43_sys_getdirentries(struct lwp *, void *, register_t *);
362 1.40 thorpej int ultrix_sys_statfs(struct lwp *, void *, register_t *);
363 1.40 thorpej int ultrix_sys_fstatfs(struct lwp *, void *, register_t *);
364 1.12 thorpej #ifdef NFS
365 1.40 thorpej int async_daemon(struct lwp *, void *, register_t *);
366 1.40 thorpej int sys_getfh(struct lwp *, void *, register_t *);
367 1.5 thorpej #else
368 1.5 thorpej #endif
369 1.40 thorpej int compat_09_sys_getdomainname(struct lwp *, void *, register_t *);
370 1.40 thorpej int compat_09_sys_setdomainname(struct lwp *, void *, register_t *);
371 1.40 thorpej int ultrix_sys_quotactl(struct lwp *, void *, register_t *);
372 1.40 thorpej int ultrix_sys_exportfs(struct lwp *, void *, register_t *);
373 1.40 thorpej int ultrix_sys_uname(struct lwp *, void *, register_t *);
374 1.40 thorpej int ultrix_sys_shmsys(struct lwp *, void *, register_t *);
375 1.40 thorpej int ultrix_sys_ustat(struct lwp *, void *, register_t *);
376 1.40 thorpej int ultrix_sys_getmnt(struct lwp *, void *, register_t *);
377 1.40 thorpej int ultrix_sys_sigpending(struct lwp *, void *, register_t *);
378 1.40 thorpej int sys_setsid(struct lwp *, void *, register_t *);
379 1.40 thorpej int ultrix_sys_waitpid(struct lwp *, void *, register_t *);
380 1.40 thorpej int ultrix_sys_getsysinfo(struct lwp *, void *, register_t *);
381 1.40 thorpej int ultrix_sys_setsysinfo(struct lwp *, void *, register_t *);
382 1.30 christos #endif /* _ULTRIX_SYS__SYSCALLARGS_H_ */
383