No empty .Rs/.Re
[netbsd-mini2440.git] / sys / compat / ultrix / ultrix_syscall.h
blob5cd38e1c4edcf7a7f9a6221b6cc4c3bd50b48edc
1 /* $NetBSD$ */
3 /*
4 * System call numbers.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.50 2009/01/17 15:48:06 he Exp
8 */
10 #ifndef _ULTRIX_SYS_SYSCALL_H_
11 #define _ULTRIX_SYS_SYSCALL_H_
13 #define ULTRIX_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: */
16 #define ULTRIX_SYS_syscall 0
18 /* syscall: "exit" ret: "int" args: "int" */
19 #define ULTRIX_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define ULTRIX_SYS_fork 2
24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
25 #define ULTRIX_SYS_read 3
27 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
28 #define ULTRIX_SYS_write 4
30 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
31 #define ULTRIX_SYS_open 5
33 /* syscall: "close" ret: "int" args: "int" */
34 #define ULTRIX_SYS_close 6
36 /* syscall: "owait" ret: "int" args: */
37 #define ULTRIX_SYS_owait 7
39 /* syscall: "creat" ret: "int" args: "const char *" "int" */
40 #define ULTRIX_SYS_creat 8
42 /* syscall: "link" ret: "int" args: "char *" "char *" */
43 #define ULTRIX_SYS_link 9
45 /* syscall: "unlink" ret: "int" args: "char *" */
46 #define ULTRIX_SYS_unlink 10
48 /* syscall: "execv" ret: "int" args: "const char *" "char **" */
49 #define ULTRIX_SYS_execv 11
51 /* syscall: "chdir" ret: "int" args: "char *" */
52 #define ULTRIX_SYS_chdir 12
54 /* 13 is obsolete time */
55 /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
56 #define ULTRIX_SYS_mknod 14
58 /* syscall: "chmod" ret: "int" args: "char *" "int" */
59 #define ULTRIX_SYS_chmod 15
61 /* syscall: "__posix_chown" ret: "int" args: "char *" "int" "int" */
62 #define ULTRIX_SYS___posix_chown 16
64 /* syscall: "break" ret: "int" args: "char *" */
65 #define ULTRIX_SYS_break 17
67 /* 18 is obsolete stat */
68 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
69 #define ULTRIX_SYS_lseek 19
71 /* syscall: "getpid" ret: "pid_t" args: */
72 #define ULTRIX_SYS_getpid 20
74 /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "int" "void *" */
75 #define ULTRIX_SYS_mount 21
77 /* 22 is obsolete sysV_unmount */
78 /* syscall: "setuid" ret: "int" args: "uid_t" */
79 #define ULTRIX_SYS_setuid 23
81 /* syscall: "getuid" ret: "uid_t" args: */
82 #define ULTRIX_SYS_getuid 24
84 /* 25 is obsolete v7 stime */
85 /* 26 is obsolete v7 ptrace */
86 /* 27 is obsolete v7 alarm */
87 /* 28 is obsolete v7 fstat */
88 /* 29 is obsolete v7 pause */
89 /* 30 is obsolete v7 utime */
90 /* 31 is obsolete v7 stty */
91 /* 32 is obsolete v7 gtty */
92 /* syscall: "access" ret: "int" args: "const char *" "int" */
93 #define ULTRIX_SYS_access 33
95 /* 34 is obsolete v7 nice */
96 /* 35 is obsolete v7 ftime */
97 /* syscall: "sync" ret: "int" args: */
98 #define ULTRIX_SYS_sync 36
100 /* syscall: "kill" ret: "int" args: "int" "int" */
101 #define ULTRIX_SYS_kill 37
103 /* syscall: "stat43" ret: "int" args: "const char *" "struct stat43 *" */
104 #define ULTRIX_SYS_stat43 38
106 /* 39 is obsolete v7 setpgrp */
107 /* syscall: "lstat43" ret: "int" args: "const char *" "struct stat43 *" */
108 #define ULTRIX_SYS_lstat43 40
110 /* syscall: "dup" ret: "int" args: "u_int" */
111 #define ULTRIX_SYS_dup 41
113 /* syscall: "pipe" ret: "int" args: */
114 #define ULTRIX_SYS_pipe 42
116 /* 43 is obsolete v7 times */
117 /* syscall: "profil" ret: "int" args: "void *" "u_int" "u_int" "u_int" */
118 #define ULTRIX_SYS_profil 44
120 /* 46 is obsolete v7 setgid */
121 /* syscall: "getgid" ret: "gid_t" args: */
122 #define ULTRIX_SYS_getgid 47
124 /* syscall: "acct" ret: "int" args: "char *" */
125 #define ULTRIX_SYS_acct 51
127 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
128 #define ULTRIX_SYS_ioctl 54
130 /* syscall: "reboot" ret: "int" args: "int" */
131 #define ULTRIX_SYS_reboot 55
133 /* syscall: "symlink" ret: "int" args: "char *" "char *" */
134 #define ULTRIX_SYS_symlink 57
136 /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
137 #define ULTRIX_SYS_readlink 58
139 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
140 #define ULTRIX_SYS_execve 59
142 /* syscall: "umask" ret: "int" args: "int" */
143 #define ULTRIX_SYS_umask 60
145 /* syscall: "chroot" ret: "int" args: "char *" */
146 #define ULTRIX_SYS_chroot 61
148 /* syscall: "fstat" ret: "int" args: "int" "struct stat43 *" */
149 #define ULTRIX_SYS_fstat 62
151 /* syscall: "getpagesize" ret: "int" args: */
152 #define ULTRIX_SYS_getpagesize 64
154 /* syscall: "vfork" ret: "int" args: */
155 #define ULTRIX_SYS_vfork 66
157 /* 67 is obsolete vread */
158 /* 68 is obsolete vwrite */
159 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
160 #define ULTRIX_SYS_sbrk 69
162 /* syscall: "sstk" ret: "int" args: "int" */
163 #define ULTRIX_SYS_sstk 70
165 /* syscall: "mmap" ret: "int" args: "void *" "size_t" "int" "u_int" "int" "long" */
166 #define ULTRIX_SYS_mmap 71
168 /* syscall: "vadvise" ret: "int" args: "int" */
169 #define ULTRIX_SYS_vadvise 72
171 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
172 #define ULTRIX_SYS_munmap 73
174 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
175 #define ULTRIX_SYS_mprotect 74
177 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
178 #define ULTRIX_SYS_madvise 75
180 /* syscall: "vhangup" ret: "int" args: */
181 #define ULTRIX_SYS_vhangup 76
183 /* syscall: "mincore" ret: "int" args: "void *" "int" "char *" */
184 #define ULTRIX_SYS_mincore 78
186 /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
187 #define ULTRIX_SYS_getgroups 79
189 /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
190 #define ULTRIX_SYS_setgroups 80
192 /* syscall: "getpgrp" ret: "int" args: */
193 #define ULTRIX_SYS_getpgrp 81
195 /* syscall: "setpgrp" ret: "int" args: "int" "int" */
196 #define ULTRIX_SYS_setpgrp 82
198 /* syscall: "__setitimer50" ret: "int" args: "u_int" "struct itimerval50 *" "struct itimerval50 *" */
199 #define ULTRIX_SYS___setitimer50 83
201 /* syscall: "wait3" ret: "int" args: "int *" "int" "struct rusage50 *" */
202 #define ULTRIX_SYS_wait3 84
204 /* syscall: "swapon" ret: "int" args: "char *" */
205 #define ULTRIX_SYS_swapon 85
207 /* syscall: "__getitimer50" ret: "int" args: "u_int" "struct itimerval50 *" */
208 #define ULTRIX_SYS___getitimer50 86
210 /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
211 #define ULTRIX_SYS_gethostname 87
213 /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
214 #define ULTRIX_SYS_sethostname 88
216 /* syscall: "getdtablesize" ret: "int" args: */
217 #define ULTRIX_SYS_getdtablesize 89
219 /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
220 #define ULTRIX_SYS_dup2 90
222 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
223 #define ULTRIX_SYS_fcntl 92
225 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
226 #define ULTRIX_SYS_select 93
228 /* syscall: "fsync" ret: "int" args: "int" */
229 #define ULTRIX_SYS_fsync 95
231 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
232 #define ULTRIX_SYS_setpriority 96
234 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
235 #define ULTRIX_SYS_socket 97
237 /* syscall: "connect" ret: "int" args: "int" "void *" "int" */
238 #define ULTRIX_SYS_connect 98
240 /* syscall: "accept" ret: "int" args: "int" "void *" "int *" */
241 #define ULTRIX_SYS_accept 99
243 /* syscall: "getpriority" ret: "int" args: "int" "int" */
244 #define ULTRIX_SYS_getpriority 100
246 /* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */
247 #define ULTRIX_SYS_send 101
249 /* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
250 #define ULTRIX_SYS_recv 102
252 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
253 #define ULTRIX_SYS_sigreturn 103
255 /* syscall: "bind" ret: "int" args: "int" "void *" "int" */
256 #define ULTRIX_SYS_bind 104
258 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
259 #define ULTRIX_SYS_setsockopt 105
261 /* syscall: "listen" ret: "int" args: "int" "int" */
262 #define ULTRIX_SYS_listen 106
264 /* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
265 #define ULTRIX_SYS_sigvec 108
267 /* syscall: "sigblock" ret: "int" args: "int" */
268 #define ULTRIX_SYS_sigblock 109
270 /* syscall: "sigsetmask" ret: "int" args: "int" */
271 #define ULTRIX_SYS_sigsetmask 110
273 /* syscall: "sigsuspend" ret: "int" args: "int" */
274 #define ULTRIX_SYS_sigsuspend 111
276 /* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
277 #define ULTRIX_SYS_sigstack 112
279 /* syscall: "recvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
280 #define ULTRIX_SYS_recvmsg 113
282 /* syscall: "sendmsg" ret: "int" args: "int" "void *" "int" */
283 #define ULTRIX_SYS_sendmsg 114
285 /* 115 is obsolete vtrace */
286 /* syscall: "__gettimeofday50" ret: "int" args: "struct timeval50 *" "struct timezone *" */
287 #define ULTRIX_SYS___gettimeofday50 116
289 /* syscall: "__getrusage50" ret: "int" args: "int" "struct rusage50 *" */
290 #define ULTRIX_SYS___getrusage50 117
292 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
293 #define ULTRIX_SYS_getsockopt 118
295 /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
296 #define ULTRIX_SYS_readv 120
298 /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
299 #define ULTRIX_SYS_writev 121
301 /* syscall: "__settimeofday50" ret: "int" args: "struct timeval50 *" "struct timezone *" */
302 #define ULTRIX_SYS___settimeofday50 122
304 /* syscall: "__posix_fchown" ret: "int" args: "int" "int" "int" */
305 #define ULTRIX_SYS___posix_fchown 123
307 /* syscall: "fchmod" ret: "int" args: "int" "int" */
308 #define ULTRIX_SYS_fchmod 124
310 /* syscall: "recvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
311 #define ULTRIX_SYS_recvfrom 125
313 /* syscall: "setreuid" ret: "int" args: "int" "int" */
314 #define ULTRIX_SYS_setreuid 126
316 /* syscall: "setregid" ret: "int" args: "int" "int" */
317 #define ULTRIX_SYS_setregid 127
319 /* syscall: "rename" ret: "int" args: "char *" "char *" */
320 #define ULTRIX_SYS_rename 128
322 /* syscall: "truncate" ret: "int" args: "char *" "long" */
323 #define ULTRIX_SYS_truncate 129
325 /* syscall: "ftruncate" ret: "int" args: "int" "long" */
326 #define ULTRIX_SYS_ftruncate 130
328 /* syscall: "flock" ret: "int" args: "int" "int" */
329 #define ULTRIX_SYS_flock 131
331 /* syscall: "sendto" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int" */
332 #define ULTRIX_SYS_sendto 133
334 /* syscall: "shutdown" ret: "int" args: "int" "int" */
335 #define ULTRIX_SYS_shutdown 134
337 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
338 #define ULTRIX_SYS_socketpair 135
340 /* syscall: "mkdir" ret: "int" args: "char *" "int" */
341 #define ULTRIX_SYS_mkdir 136
343 /* syscall: "rmdir" ret: "int" args: "char *" */
344 #define ULTRIX_SYS_rmdir 137
346 /* syscall: "__utimes50" ret: "int" args: "char *" "struct timeval50 *" */
347 #define ULTRIX_SYS___utimes50 138
349 /* syscall: "sigcleanup" ret: "int" args: "struct sigcontext *" */
350 #define ULTRIX_SYS_sigcleanup 139
352 /* syscall: "__adjtime50" ret: "int" args: "struct timeval50 *" "struct timeval50 *" */
353 #define ULTRIX_SYS___adjtime50 140
355 /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */
356 #define ULTRIX_SYS_getpeername 141
358 /* syscall: "gethostid" ret: "int" args: */
359 #define ULTRIX_SYS_gethostid 142
361 /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
362 #define ULTRIX_SYS_getrlimit 144
364 /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
365 #define ULTRIX_SYS_setrlimit 145
367 /* syscall: "killpg" ret: "int" args: "int" "int" */
368 #define ULTRIX_SYS_killpg 146
370 /* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
371 #define ULTRIX_SYS_getsockname 150
373 #ifdef __mips
374 /* syscall: "cacheflush" ret: "int" args: "char *" "int" "int" */
375 #define ULTRIX_SYS_cacheflush 152
377 /* syscall: "cachectl" ret: "int" args: "char *" "int" "int" */
378 #define ULTRIX_SYS_cachectl 153
380 #else /* !mips */
381 #endif /* !mips */
382 /* syscall: "nfssvc" ret: "int" args: "int" */
383 #define ULTRIX_SYS_nfssvc 158
385 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
386 #define ULTRIX_SYS_getdirentries 159
388 /* syscall: "statfs" ret: "int" args: "const char *" "struct ultrix_statfs *" */
389 #define ULTRIX_SYS_statfs 160
391 /* syscall: "fstatfs" ret: "int" args: "int" "struct ultrix_statfs *" */
392 #define ULTRIX_SYS_fstatfs 161
394 #ifdef NFS
395 /* syscall: "async_daemon" ret: "int" args: */
396 #define ULTRIX_SYS_async_daemon 163
398 /* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */
399 #define ULTRIX_SYS_getfh 164
401 #else
402 #endif
403 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
404 #define ULTRIX_SYS_getdomainname 165
406 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
407 #define ULTRIX_SYS_setdomainname 166
409 /* syscall: "quotactl" ret: "int" args: "int" "char *" "int" "void *" */
410 #define ULTRIX_SYS_quotactl 168
412 /* syscall: "exportfs" ret: "int" args: "char *" "char *" */
413 #define ULTRIX_SYS_exportfs 169
415 /* syscall: "uname" ret: "int" args: "struct ultrix_utsname *" */
416 #define ULTRIX_SYS_uname 179
418 /* syscall: "shmsys" ret: "int" args: "u_int" "u_int" "u_int" "u_int" */
419 #define ULTRIX_SYS_shmsys 180
421 /* syscall: "ustat" ret: "int" args: "int" "struct ultrix_ustat *" */
422 #define ULTRIX_SYS_ustat 183
424 /* syscall: "getmnt" ret: "int" args: "int *" "struct ultrix_fs_data *" "int" "int" "char *" */
425 #define ULTRIX_SYS_getmnt 184
427 /* syscall: "sigpending" ret: "int" args: "int *" */
428 #define ULTRIX_SYS_sigpending 187
430 /* syscall: "setsid" ret: "int" args: */
431 #define ULTRIX_SYS_setsid 188
433 /* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */
434 #define ULTRIX_SYS_waitpid 189
436 /* syscall: "getsysinfo" ret: "int" args: "unsigned" "char *" "unsigned" "int *" "char *" */
437 #define ULTRIX_SYS_getsysinfo 256
439 /* syscall: "setsysinfo" ret: "int" args: "unsigned" "char *" "unsigned" "unsigned" "unsigned" */
440 #define ULTRIX_SYS_setsysinfo 257
442 #define ULTRIX_SYS_MAXSYSCALL 258
443 #define ULTRIX_SYS_NSYSENT 512
444 #endif /* _ULTRIX_SYS_SYSCALL_H_ */