1
2
3
4
5
6
7
8
9
10 #ifdef syscallarg
11 #undef syscallarg
12 #endif
13
14 #define syscallarg(x) \
15 union { \
16 register_t pad; \
17 struct { x datum; } le; \
18 struct { \
19 int8_t pad[ (sizeof (register_t) < sizeof (x)) \
20 ? 0 \
21 : sizeof (register_t) - sizeof (x)]; \
22 x datum; \
23 } be; \
24 }
25
26 struct osf1_sys_wait4_args {
27 syscallarg(int) pid;
28 syscallarg(int *) status;
29 syscallarg(int) options;
30 syscallarg(struct osf1_rusage *) rusage;
31 };
32
33 struct osf1_sys_mknod_args {
34 syscallarg(char *) path;
35 syscallarg(int) mode;
36 syscallarg(int) dev;
37 };
38
39 struct osf1_sys_getfsstat_args {
40 syscallarg(struct osf1_statfs *) buf;
41 syscallarg(long) bufsize;
42 syscallarg(int) flags;
43 };
44
45 struct osf1_sys_lseek_args {
46 syscallarg(int) fd;
47 syscallarg(off_t) offset;
48 syscallarg(int) whence;
49 };
50
51 struct osf1_sys_mount_args {
52 syscallarg(int) type;
53 syscallarg(const char *) path;
54 syscallarg(int) flags;
55 syscallarg(caddr_t) data;
56 };
57
58 struct osf1_sys_unmount_args {
59 syscallarg(const char *) path;
60 syscallarg(int) flags;
61 };
62
63 struct osf1_sys_setuid_args {
64 syscallarg(uid_t) uid;
65 };
66
67 struct osf1_sys_recvmsg_xopen_args {
68 syscallarg(int) s;
69 syscallarg(struct osf1_msghdr_xopen *) msg;
70 syscallarg(int) flags;
71 };
72
73 struct osf1_sys_sendmsg_xopen_args {
74 syscallarg(int) s;
75 syscallarg(const struct osf1_msghdr_xopen *) msg;
76 syscallarg(int) flags;
77 };
78
79 struct osf1_sys_access_args {
80 syscallarg(char *) path;
81 syscallarg(int) flags;
82 };
83
84 struct osf1_sys_set_program_attributes_args {
85 syscallarg(caddr_t) taddr;
86 syscallarg(unsigned long) tsize;
87 syscallarg(caddr_t) daddr;
88 syscallarg(unsigned long) dsize;
89 };
90
91 struct osf1_sys_open_args {
92 syscallarg(char *) path;
93 syscallarg(int) flags;
94 syscallarg(int) mode;
95 };
96
97 struct osf1_sys_classcntl_args {
98 syscallarg(int) opcode;
99 syscallarg(int) arg1;
100 syscallarg(int) arg2;
101 syscallarg(int) arg3;
102 };
103
104 struct osf1_sys_ioctl_args {
105 syscallarg(int) fd;
106 syscallarg(int) com;
107 syscallarg(caddr_t) data;
108 };
109
110 struct osf1_sys_reboot_args {
111 syscallarg(int) opt;
112 };
113
114 struct osf1_sys_execve_args {
115 syscallarg(char *) path;
116 syscallarg(char *const *) argp;
117 syscallarg(char *const *) envp;
118 };
119
120 struct osf1_sys_stat_args {
121 syscallarg(char *) path;
122 syscallarg(struct osf1_stat *) ub;
123 };
124
125 struct osf1_sys_lstat_args {
126 syscallarg(char *) path;
127 syscallarg(struct osf1_stat *) ub;
128 };
129
130 struct osf1_sys_mmap_args {
131 syscallarg(caddr_t) addr;
132 syscallarg(size_t) len;
133 syscallarg(int) prot;
134 syscallarg(int) flags;
135 syscallarg(int) fd;
136 syscallarg(off_t) pos;
137 };
138
139 struct osf1_sys_mprotect_args {
140 syscallarg(void *) addr;
141 syscallarg(size_t) len;
142 syscallarg(int) prot;
143 };
144
145 struct osf1_sys_madvise_args {
146 syscallarg(void *) addr;
147 syscallarg(size_t) len;
148 syscallarg(int) behav;
149 };
150
151 struct osf1_sys_setitimer_args {
152 syscallarg(u_int) which;
153 syscallarg(struct osf1_itimerval *) itv;
154 syscallarg(struct osf1_itimerval *) oitv;
155 };
156
157 struct osf1_sys_fstat_args {
158 syscallarg(int) fd;
159 syscallarg(void *) sb;
160 };
161
162 struct osf1_sys_fcntl_args {
163 syscallarg(int) fd;
164 syscallarg(int) cmd;
165 syscallarg(void *) arg;
166 };
167
168 struct osf1_sys_select_args {
169 syscallarg(u_int) nd;
170 syscallarg(fd_set *) in;
171 syscallarg(fd_set *) ou;
172 syscallarg(fd_set *) ex;
173 syscallarg(struct osf1_timeval *) tv;
174 };
175
176 struct osf1_sys_socket_args {
177 syscallarg(int) domain;
178 syscallarg(int) type;
179 syscallarg(int) protocol;
180 };
181
182 struct osf1_sys_gettimeofday_args {
183 syscallarg(struct osf1_timeval *) tp;
184 syscallarg(struct osf1_timezone *) tzp;
185 };
186
187 struct osf1_sys_getrusage_args {
188 syscallarg(int) who;
189 syscallarg(struct osf1_rusage *) rusage;
190 };
191
192 struct osf1_sys_readv_args {
193 syscallarg(int) fd;
194 syscallarg(struct osf1_iovec *) iovp;
195 syscallarg(u_int) iovcnt;
196 };
197
198 struct osf1_sys_writev_args {
199 syscallarg(int) fd;
200 syscallarg(struct osf1_iovec *) iovp;
201 syscallarg(u_int) iovcnt;
202 };
203
204 struct osf1_sys_settimeofday_args {
205 syscallarg(struct osf1_timeval *) tv;
206 syscallarg(struct osf1_timezone *) tzp;
207 };
208
209 struct osf1_sys_truncate_args {
210 syscallarg(char *) path;
211 syscallarg(off_t) length;
212 };
213
214 struct osf1_sys_ftruncate_args {
215 syscallarg(int) fd;
216 syscallarg(off_t) length;
217 };
218
219 struct osf1_sys_setgid_args {
220 syscallarg(gid_t) gid;
221 };
222
223 struct osf1_sys_sendto_args {
224 syscallarg(int) s;
225 syscallarg(caddr_t) buf;
226 syscallarg(size_t) len;
227 syscallarg(int) flags;
228 syscallarg(struct sockaddr *) to;
229 syscallarg(int) tolen;
230 };
231
232 struct osf1_sys_socketpair_args {
233 syscallarg(int) domain;
234 syscallarg(int) type;
235 syscallarg(int) protocol;
236 syscallarg(int *) rsv;
237 };
238
239 struct osf1_sys_utimes_args {
240 syscallarg(char *) path;
241 syscallarg(const struct osf1_timeval *) tptr;
242 };
243
244 struct osf1_sys_getrlimit_args {
245 syscallarg(u_int) which;
246 syscallarg(struct rlimit *) rlp;
247 };
248
249 struct osf1_sys_setrlimit_args {
250 syscallarg(u_int) which;
251 syscallarg(struct rlimit *) rlp;
252 };
253
254 struct osf1_sys_sigaction_args {
255 syscallarg(int) signum;
256 syscallarg(struct osf1_sigaction *) nsa;
257 syscallarg(struct osf1_sigaction *) osa;
258 };
259
260 struct osf1_sys_statfs_args {
261 syscallarg(const char *) path;
262 syscallarg(struct osf1_statfs *) buf;
263 syscallarg(int) len;
264 };
265
266 struct osf1_sys_fstatfs_args {
267 syscallarg(int) fd;
268 syscallarg(struct osf1_statfs *) buf;
269 syscallarg(int) len;
270 };
271
272 struct osf1_sys_uname_args {
273 syscallarg(struct osf1_uname *) name;
274 };
275
276 struct osf1_sys_shmat_args {
277 syscallarg(int) shmid;
278 syscallarg(const void *) shmaddr;
279 syscallarg(int) shmflg;
280 };
281
282 struct osf1_sys_shmctl_args {
283 syscallarg(int) shmid;
284 syscallarg(int) cmd;
285 syscallarg(struct osf1_shmid_ds *) buf;
286 };
287
288 struct osf1_sys_shmdt_args {
289 syscallarg(const void *) shmaddr;
290 };
291
292 struct osf1_sys_shmget_args {
293 syscallarg(osf1_key_t) key;
294 syscallarg(size_t) size;
295 syscallarg(int) flags;
296 };
297
298 struct osf1_sys_sigaltstack_args {
299 syscallarg(struct osf1_sigaltstack *) nss;
300 syscallarg(struct osf1_sigaltstack *) oss;
301 };
302
303 struct osf1_sys_sysinfo_args {
304 syscallarg(int) cmd;
305 syscallarg(char *) buf;
306 syscallarg(long) len;
307 };
308
309 struct osf1_sys_pathconf_args {
310 syscallarg(char *) path;
311 syscallarg(int) name;
312 };
313
314 struct osf1_sys_fpathconf_args {
315 syscallarg(int) fd;
316 syscallarg(int) name;
317 };
318
319 struct osf1_sys_usleep_thread_args {
320 syscallarg(struct osf1_timeval *) sleep;
321 syscallarg(struct osf1_timeval *) slept;
322 };
323
324 struct osf1_sys_setsysinfo_args {
325 syscallarg(u_long) op;
326 syscallarg(caddr_t) buffer;
327 syscallarg(u_long) nbytes;
328 syscallarg(caddr_t) arg;
329 syscallarg(u_long) flag;
330 };
331
332
333
334
335
336 int sys_nosys(struct proc *, void *, register_t *);
337 int sys_exit(struct proc *, void *, register_t *);
338 int sys_fork(struct proc *, void *, register_t *);
339 int sys_read(struct proc *, void *, register_t *);
340 int sys_write(struct proc *, void *, register_t *);
341 int sys_close(struct proc *, void *, register_t *);
342 int osf1_sys_wait4(struct proc *, void *, register_t *);
343 int sys_link(struct proc *, void *, register_t *);
344 int sys_unlink(struct proc *, void *, register_t *);
345 int sys_chdir(struct proc *, void *, register_t *);
346 int sys_fchdir(struct proc *, void *, register_t *);
347 int osf1_sys_mknod(struct proc *, void *, register_t *);
348 int sys_chmod(struct proc *, void *, register_t *);
349 int sys_chown(struct proc *, void *, register_t *);
350 int sys_obreak(struct proc *, void *, register_t *);
351 int osf1_sys_getfsstat(struct proc *, void *, register_t *);
352 int osf1_sys_lseek(struct proc *, void *, register_t *);
353 int sys_getpid(struct proc *, void *, register_t *);
354 int osf1_sys_mount(struct proc *, void *, register_t *);
355 int osf1_sys_unmount(struct proc *, void *, register_t *);
356 int osf1_sys_setuid(struct proc *, void *, register_t *);
357 int sys_getuid(struct proc *, void *, register_t *);
358 int osf1_sys_recvmsg_xopen(struct proc *, void *, register_t *);
359 int osf1_sys_sendmsg_xopen(struct proc *, void *, register_t *);
360 int osf1_sys_access(struct proc *, void *, register_t *);
361 int sys_sync(struct proc *, void *, register_t *);
362 int sys_kill(struct proc *, void *, register_t *);
363 int sys_setpgid(struct proc *, void *, register_t *);
364 int sys_dup(struct proc *, void *, register_t *);
365 int sys_pipe(struct proc *, void *, register_t *);
366 int osf1_sys_set_program_attributes(struct proc *, void *, register_t *);
367 int osf1_sys_open(struct proc *, void *, register_t *);
368 int sys_getgid(struct proc *, void *, register_t *);
369 int sys_sigprocmask(struct proc *, void *, register_t *);
370 int sys_getlogin(struct proc *, void *, register_t *);
371 int sys_setlogin(struct proc *, void *, register_t *);
372 #ifdef ACCOUNTING
373 int sys_acct(struct proc *, void *, register_t *);
374 #else
375 #endif
376 int osf1_sys_classcntl(struct proc *, void *, register_t *);
377 int osf1_sys_ioctl(struct proc *, void *, register_t *);
378 int osf1_sys_reboot(struct proc *, void *, register_t *);
379 int sys_revoke(struct proc *, void *, register_t *);
380 int sys_symlink(struct proc *, void *, register_t *);
381 int sys_readlink(struct proc *, void *, register_t *);
382 int osf1_sys_execve(struct proc *, void *, register_t *);
383 int sys_umask(struct proc *, void *, register_t *);
384 int sys_chroot(struct proc *, void *, register_t *);
385 int sys_getpgrp(struct proc *, void *, register_t *);
386 int compat_43_sys_getpagesize(struct proc *, void *, register_t *);
387 int sys_vfork(struct proc *, void *, register_t *);
388 int osf1_sys_stat(struct proc *, void *, register_t *);
389 int osf1_sys_lstat(struct proc *, void *, register_t *);
390 int osf1_sys_mmap(struct proc *, void *, register_t *);
391 int sys_munmap(struct proc *, void *, register_t *);
392 int osf1_sys_mprotect(struct proc *, void *, register_t *);
393 int osf1_sys_madvise(struct proc *, void *, register_t *);
394 int sys_getgroups(struct proc *, void *, register_t *);
395 int sys_setgroups(struct proc *, void *, register_t *);
396 int sys_setpgid(struct proc *, void *, register_t *);
397 int osf1_sys_setitimer(struct proc *, void *, register_t *);
398 int compat_43_sys_gethostname(struct proc *, void *, register_t *);
399 int compat_43_sys_sethostname(struct proc *, void *, register_t *);
400 int compat_43_sys_getdtablesize(struct proc *, void *, register_t *);
401 int sys_dup2(struct proc *, void *, register_t *);
402 int osf1_sys_fstat(struct proc *, void *, register_t *);
403 int osf1_sys_fcntl(struct proc *, void *, register_t *);
404 int osf1_sys_select(struct proc *, void *, register_t *);
405 int sys_poll(struct proc *, void *, register_t *);
406 int sys_fsync(struct proc *, void *, register_t *);
407 int sys_setpriority(struct proc *, void *, register_t *);
408 int osf1_sys_socket(struct proc *, void *, register_t *);
409 int sys_connect(struct proc *, void *, register_t *);
410 int compat_43_sys_accept(struct proc *, void *, register_t *);
411 int sys_getpriority(struct proc *, void *, register_t *);
412 int compat_43_sys_send(struct proc *, void *, register_t *);
413 int compat_43_sys_recv(struct proc *, void *, register_t *);
414 int sys_sigreturn(struct proc *, void *, register_t *);
415 int sys_bind(struct proc *, void *, register_t *);
416 int sys_setsockopt(struct proc *, void *, register_t *);
417 int sys_listen(struct proc *, void *, register_t *);
418 int sys_sigsuspend(struct proc *, void *, register_t *);
419 int compat_43_sys_sigstack(struct proc *, void *, register_t *);
420 int osf1_sys_gettimeofday(struct proc *, void *, register_t *);
421 int osf1_sys_getrusage(struct proc *, void *, register_t *);
422 int sys_getsockopt(struct proc *, void *, register_t *);
423 int osf1_sys_readv(struct proc *, void *, register_t *);
424 int osf1_sys_writev(struct proc *, void *, register_t *);
425 int osf1_sys_settimeofday(struct proc *, void *, register_t *);
426 int sys_fchown(struct proc *, void *, register_t *);
427 int sys_fchmod(struct proc *, void *, register_t *);
428 int compat_43_sys_recvfrom(struct proc *, void *, register_t *);
429 int sys_setreuid(struct proc *, void *, register_t *);
430 int sys_setregid(struct proc *, void *, register_t *);
431 int sys_rename(struct proc *, void *, register_t *);
432 int osf1_sys_truncate(struct proc *, void *, register_t *);
433 int osf1_sys_ftruncate(struct proc *, void *, register_t *);
434 int osf1_sys_setgid(struct proc *, void *, register_t *);
435 int osf1_sys_sendto(struct proc *, void *, register_t *);
436 int sys_shutdown(struct proc *, void *, register_t *);
437 int osf1_sys_socketpair(struct proc *, void *, register_t *);
438 int sys_mkdir(struct proc *, void *, register_t *);
439 int sys_rmdir(struct proc *, void *, register_t *);
440 int osf1_sys_utimes(struct proc *, void *, register_t *);
441 int compat_43_sys_getpeername(struct proc *, void *, register_t *);
442 int compat_43_sys_gethostid(struct proc *, void *, register_t *);
443 int compat_43_sys_sethostid(struct proc *, void *, register_t *);
444 int osf1_sys_getrlimit(struct proc *, void *, register_t *);
445 int osf1_sys_setrlimit(struct proc *, void *, register_t *);
446 int sys_setsid(struct proc *, void *, register_t *);
447 int compat_43_sys_quota(struct proc *, void *, register_t *);
448 int compat_43_sys_getsockname(struct proc *, void *, register_t *);
449 int osf1_sys_sigaction(struct proc *, void *, register_t *);
450 int compat_43_sys_getdirentries(struct proc *, void *, register_t *);
451 int osf1_sys_statfs(struct proc *, void *, register_t *);
452 int osf1_sys_fstatfs(struct proc *, void *, register_t *);
453 int compat_09_sys_getdomainname(struct proc *, void *, register_t *);
454 int compat_09_sys_setdomainname(struct proc *, void *, register_t *);
455 int osf1_sys_uname(struct proc *, void *, register_t *);
456 int sys_lchown(struct proc *, void *, register_t *);
457 int osf1_sys_shmat(struct proc *, void *, register_t *);
458 int osf1_sys_shmctl(struct proc *, void *, register_t *);
459 int osf1_sys_shmdt(struct proc *, void *, register_t *);
460 int osf1_sys_shmget(struct proc *, void *, register_t *);
461 int sys_getsid(struct proc *, void *, register_t *);
462 int osf1_sys_sigaltstack(struct proc *, void *, register_t *);
463 int osf1_sys_sysinfo(struct proc *, void *, register_t *);
464 int osf1_sys_pathconf(struct proc *, void *, register_t *);
465 int osf1_sys_fpathconf(struct proc *, void *, register_t *);
466 int osf1_sys_usleep_thread(struct proc *, void *, register_t *);
467 int osf1_sys_setsysinfo(struct proc *, void *, register_t *);