ultrix_syscallargs.h revision 1.5 1 /*
2 * System call argument lists.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * created from NetBSD: syscalls.master,v 1.10 1995/06/01 16:38:15 mellon Exp
6 */
7
8 #define syscallarg(x) union { x datum; register_t pad; }
9
10 struct sun_open_args {
11 syscallarg(char *) path;
12 syscallarg(int) flags;
13 syscallarg(int) mode;
14 };
15
16 struct sun_execv_args {
17 syscallarg(char *) path;
18 syscallarg(char **) argp;
19 };
20
21 struct sun_mknod_args {
22 syscallarg(char *) path;
23 syscallarg(int) mode;
24 syscallarg(int) dev;
25 };
26
27 struct sun_mmap_args {
28 syscallarg(caddr_t) addr;
29 syscallarg(int) len;
30 syscallarg(int) prot;
31 syscallarg(u_int) flags;
32 syscallarg(int) fd;
33 syscallarg(long) pos;
34 };
35
36 struct sun_setpgid_args {
37 syscallarg(int) pid;
38 syscallarg(int) pgid;
39 };
40
41 struct sun_wait3_args {
42 syscallarg(int *) status;
43 syscallarg(int) options;
44 syscallarg(struct rusage *) rusage;
45 };
46
47 struct sun_setsockopt_args {
48 syscallarg(int) s;
49 syscallarg(int) level;
50 syscallarg(int) name;
51 syscallarg(caddr_t) val;
52 syscallarg(int) valsize;
53 };
54
55 struct ultrix_sigcleanup_args {
56 syscallarg(struct sigcontext *) sigcntxp;
57 };
58
59 struct sun_nfssvc_args {
60 syscallarg(int) fd;
61 };
62
63 struct sun_statfs_args {
64 syscallarg(char *) path;
65 syscallarg(struct sunos_statfs *) buf;
66 };
67
68 struct sun_fstatfs_args {
69 syscallarg(int) fd;
70 syscallarg(struct sunos_statfs *) buf;
71 };
72
73 struct sun_unmount_args {
74 syscallarg(char *) path;
75 syscallarg(int) flags;
76 };
77
78 struct sun_quotactl_args {
79 syscallarg(int) cmd;
80 syscallarg(char *) special;
81 syscallarg(int) uid;
82 syscallarg(caddr_t) addr;
83 };
84
85 struct sun_exportfs_args {
86 syscallarg(char *) path;
87 syscallarg(char *) ex;
88 };
89
90 struct sun_uname_args {
91 syscallarg(struct sunos_utsname *) name;
92 };
93
94 struct sun_ustat_args {
95 syscallarg(int) dev;
96 syscallarg(struct sunos_ustat *) buf;
97 };
98
99 struct sun_sigpending_args {
100 syscallarg(int *) mask;
101 };
102
103 struct ultrix_getsysinfo_args {
104 syscallarg(unsigned) op;
105 syscallarg(char *) buffer;
106 syscallarg(unsigned) nbytes;
107 syscallarg(int *) start;
108 syscallarg(char *) arg;
109 };
110
111 struct ultrix_setsysinfo_args {
112 syscallarg(unsigned) op;
113 syscallarg(char *) buffer;
114 syscallarg(unsigned) nbytes;
115 syscallarg(unsigned) arg;
116 syscallarg(unsigned) flag;
117 };
118
119 #undef syscallarg
120
121 /*
122 * System call prototypes.
123 */
124
125 int nosys __P((struct proc *, void *, register_t *));
126 int exit __P((struct proc *, void *, register_t *));
127 int fork __P((struct proc *, void *, register_t *));
128 int read __P((struct proc *, void *, register_t *));
129 int write __P((struct proc *, void *, register_t *));
130 int sun_open __P((struct proc *, void *, register_t *));
131 int close __P((struct proc *, void *, register_t *));
132 int compat_43_creat __P((struct proc *, void *, register_t *));
133 int link __P((struct proc *, void *, register_t *));
134 int unlink __P((struct proc *, void *, register_t *));
135 int sun_execv __P((struct proc *, void *, register_t *));
136 int chdir __P((struct proc *, void *, register_t *));
137 int sun_mknod __P((struct proc *, void *, register_t *));
138 int chmod __P((struct proc *, void *, register_t *));
139 int chown __P((struct proc *, void *, register_t *));
140 int obreak __P((struct proc *, void *, register_t *));
141 int compat_43_lseek __P((struct proc *, void *, register_t *));
142 int getpid __P((struct proc *, void *, register_t *));
143 int setuid __P((struct proc *, void *, register_t *));
144 int getuid __P((struct proc *, void *, register_t *));
145 int access __P((struct proc *, void *, register_t *));
146 int sync __P((struct proc *, void *, register_t *));
147 int kill __P((struct proc *, void *, register_t *));
148 int compat_43_stat __P((struct proc *, void *, register_t *));
149 int compat_43_lstat __P((struct proc *, void *, register_t *));
150 int dup __P((struct proc *, void *, register_t *));
151 int pipe __P((struct proc *, void *, register_t *));
152 int profil __P((struct proc *, void *, register_t *));
153 int getgid __P((struct proc *, void *, register_t *));
154 int acct __P((struct proc *, void *, register_t *));
155 int ioctl __P((struct proc *, void *, register_t *));
156 int reboot __P((struct proc *, void *, register_t *));
157 int symlink __P((struct proc *, void *, register_t *));
158 int readlink __P((struct proc *, void *, register_t *));
159 int execve __P((struct proc *, void *, register_t *));
160 int umask __P((struct proc *, void *, register_t *));
161 int chroot __P((struct proc *, void *, register_t *));
162 int compat_43_fstat __P((struct proc *, void *, register_t *));
163 int compat_43_getpagesize __P((struct proc *, void *, register_t *));
164 int vfork __P((struct proc *, void *, register_t *));
165 int sbrk __P((struct proc *, void *, register_t *));
166 int sstk __P((struct proc *, void *, register_t *));
167 int sun_mmap __P((struct proc *, void *, register_t *));
168 int ovadvise __P((struct proc *, void *, register_t *));
169 int munmap __P((struct proc *, void *, register_t *));
170 int mprotect __P((struct proc *, void *, register_t *));
171 int madvise __P((struct proc *, void *, register_t *));
172 int sun_vhangup __P((struct proc *, void *, register_t *));
173 int mincore __P((struct proc *, void *, register_t *));
174 int getgroups __P((struct proc *, void *, register_t *));
175 int setgroups __P((struct proc *, void *, register_t *));
176 int getpgrp __P((struct proc *, void *, register_t *));
177 int sun_setpgid __P((struct proc *, void *, register_t *));
178 int setitimer __P((struct proc *, void *, register_t *));
179 int sun_wait3 __P((struct proc *, void *, register_t *));
180 int swapon __P((struct proc *, void *, register_t *));
181 int getitimer __P((struct proc *, void *, register_t *));
182 int compat_43_gethostname __P((struct proc *, void *, register_t *));
183 int compat_43_sethostname __P((struct proc *, void *, register_t *));
184 int compat_43_getdtablesize __P((struct proc *, void *, register_t *));
185 int dup2 __P((struct proc *, void *, register_t *));
186 int fcntl __P((struct proc *, void *, register_t *));
187 int select __P((struct proc *, void *, register_t *));
188 int fsync __P((struct proc *, void *, register_t *));
189 int setpriority __P((struct proc *, void *, register_t *));
190 int socket __P((struct proc *, void *, register_t *));
191 int connect __P((struct proc *, void *, register_t *));
192 int compat_43_accept __P((struct proc *, void *, register_t *));
193 int getpriority __P((struct proc *, void *, register_t *));
194 int compat_43_send __P((struct proc *, void *, register_t *));
195 int compat_43_recv __P((struct proc *, void *, register_t *));
196 int sigreturn __P((struct proc *, void *, register_t *));
197 int bind __P((struct proc *, void *, register_t *));
198 int sun_setsockopt __P((struct proc *, void *, register_t *));
199 int listen __P((struct proc *, void *, register_t *));
200 int compat_43_sigvec __P((struct proc *, void *, register_t *));
201 int compat_43_sigblock __P((struct proc *, void *, register_t *));
202 int compat_43_sigsetmask __P((struct proc *, void *, register_t *));
203 int sigsuspend __P((struct proc *, void *, register_t *));
204 int compat_43_sigstack __P((struct proc *, void *, register_t *));
205 int compat_43_recvmsg __P((struct proc *, void *, register_t *));
206 int compat_43_sendmsg __P((struct proc *, void *, register_t *));
207 int gettimeofday __P((struct proc *, void *, register_t *));
208 int getrusage __P((struct proc *, void *, register_t *));
209 int getsockopt __P((struct proc *, void *, register_t *));
210 int readv __P((struct proc *, void *, register_t *));
211 int writev __P((struct proc *, void *, register_t *));
212 int settimeofday __P((struct proc *, void *, register_t *));
213 int fchown __P((struct proc *, void *, register_t *));
214 int fchmod __P((struct proc *, void *, register_t *));
215 int compat_43_recvfrom __P((struct proc *, void *, register_t *));
216 int compat_43_setreuid __P((struct proc *, void *, register_t *));
217 int compat_43_setregid __P((struct proc *, void *, register_t *));
218 int rename __P((struct proc *, void *, register_t *));
219 int compat_43_truncate __P((struct proc *, void *, register_t *));
220 int compat_43_ftruncate __P((struct proc *, void *, register_t *));
221 int flock __P((struct proc *, void *, register_t *));
222 int sendto __P((struct proc *, void *, register_t *));
223 int shutdown __P((struct proc *, void *, register_t *));
224 int socketpair __P((struct proc *, void *, register_t *));
225 int mkdir __P((struct proc *, void *, register_t *));
226 int rmdir __P((struct proc *, void *, register_t *));
227 int utimes __P((struct proc *, void *, register_t *));
228 int ultrix_sigcleanup __P((struct proc *, void *, register_t *));
229 int adjtime __P((struct proc *, void *, register_t *));
230 int compat_43_getpeername __P((struct proc *, void *, register_t *));
231 int compat_43_gethostid __P((struct proc *, void *, register_t *));
232 int compat_43_getrlimit __P((struct proc *, void *, register_t *));
233 int compat_43_setrlimit __P((struct proc *, void *, register_t *));
234 int compat_43_killpg __P((struct proc *, void *, register_t *));
235 int compat_43_getsockname __P((struct proc *, void *, register_t *));
236 #ifdef NFSSERVER
237 int sun_nfssvc __P((struct proc *, void *, register_t *));
238 #else
239 #endif
240 int compat_43_getdirentries __P((struct proc *, void *, register_t *));
241 int sun_statfs __P((struct proc *, void *, register_t *));
242 int sun_fstatfs __P((struct proc *, void *, register_t *));
243 int sun_unmount __P((struct proc *, void *, register_t *));
244 #ifdef NFSCLIENT
245 int async_daemon __P((struct proc *, void *, register_t *));
246 int getfh __P((struct proc *, void *, register_t *));
247 #else
248 #endif
249 int compat_09_getdomainname __P((struct proc *, void *, register_t *));
250 int compat_09_setdomainname __P((struct proc *, void *, register_t *));
251 int sun_quotactl __P((struct proc *, void *, register_t *));
252 int sun_exportfs __P((struct proc *, void *, register_t *));
253 #ifdef SYSVMSG
254 #else
255 #endif
256 #ifdef SYSVSEM
257 #else
258 #endif
259 int sun_uname __P((struct proc *, void *, register_t *));
260 #ifdef SYSVSHM
261 int shmsys __P((struct proc *, void *, register_t *));
262 #else
263 #endif
264 int sun_ustat __P((struct proc *, void *, register_t *));
265 int sun_sigpending __P((struct proc *, void *, register_t *));
266 int setsid __P((struct proc *, void *, register_t *));
267 int ultrix_waitpid __P((struct proc *, void *, register_t *));
268 int ultrix_getsysinfo __P((struct proc *, void *, register_t *));
269 int ultrix_setsysinfo __P((struct proc *, void *, register_t *));
270
271 #ifdef COMPAT_43
272 #define compat_43(func) __CONCAT(compat_43_,func)
273
274 #ifdef NFSSERVER
275 #else
276 #endif
277 #ifdef NFSCLIENT
278 #else
279 #endif
280 #ifdef SYSVMSG
281 #else
282 #endif
283 #ifdef SYSVSEM
284 #else
285 #endif
286 #ifdef SYSVSHM
287 #else
288 #endif
289
290 #else /* COMPAT_43 */
291 #define compat_43(func) nosys
292 #endif /* COMPAT_43 */
293
294
295 #ifdef COMPAT_09
296 #define compat_09(func) __CONCAT(compat_09_,func)
297
298 #ifdef NFSSERVER
299 #else
300 #endif
301 #ifdef NFSCLIENT
302 #else
303 #endif
304 #ifdef SYSVMSG
305 #else
306 #endif
307 #ifdef SYSVSEM
308 #else
309 #endif
310 #ifdef SYSVSHM
311 #else
312 #endif
313
314 #else /* COMPAT_09 */
315 #define compat_09(func) nosys
316 #endif /* COMPAT_09 */
317
318
319 #ifdef COMPAT_10
320 #define compat_10(func) __CONCAT(compat_10_,func)
321
322 #ifdef NFSSERVER
323 #else
324 #endif
325 #ifdef NFSCLIENT
326 #else
327 #endif
328 #ifdef SYSVMSG
329 #else
330 #endif
331 #ifdef SYSVSEM
332 #else
333 #endif
334 #ifdef SYSVSHM
335 #else
336 #endif
337
338 #else /* COMPAT_10 */
339 #define compat_10(func) nosys
340 #endif /* COMPAT_10 */
341
342