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