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