No empty .Rs/.Re
[netbsd-mini2440.git] / sys / compat / osf1 / osf1_syscall.h
blob5af47d9485e5d007a94fff39f7b26ee2caba7e0c
1 /* $NetBSD$ */
3 /*
4 * System call numbers.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.48 2009/01/13 22:27:43 pooka Exp
8 */
10 #ifndef _OSF1_SYS_SYSCALL_H_
11 #define _OSF1_SYS_SYSCALL_H_
13 #define OSF1_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: */
16 #define OSF1_SYS_syscall 0
18 /* syscall: "exit" ret: "int" args: "int" */
19 #define OSF1_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define OSF1_SYS_fork 2
24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
25 #define OSF1_SYS_read 3
27 /* syscall: "write" ret: "int" args: "int" "const char *" "u_int" */
28 #define OSF1_SYS_write 4
30 /* syscall: "close" ret: "int" args: "int" */
31 #define OSF1_SYS_close 6
33 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct osf1_rusage *" */
34 #define OSF1_SYS_wait4 7
36 /* syscall: "link" ret: "int" args: "const char *" "const char *" */
37 #define OSF1_SYS_link 9
39 /* syscall: "unlink" ret: "int" args: "const char *" */
40 #define OSF1_SYS_unlink 10
42 /* syscall: "chdir" ret: "int" args: "const char *" */
43 #define OSF1_SYS_chdir 12
45 /* syscall: "fchdir" ret: "int" args: "int" */
46 #define OSF1_SYS_fchdir 13
48 /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
49 #define OSF1_SYS_mknod 14
51 /* syscall: "chmod" ret: "int" args: "const char *" "int" */
52 #define OSF1_SYS_chmod 15
54 /* syscall: "__posix_chown" ret: "int" args: "const char *" "int" "int" */
55 #define OSF1_SYS___posix_chown 16
57 /* syscall: "obreak" ret: "int" args: "char *" */
58 #define OSF1_SYS_obreak 17
60 /* syscall: "getfsstat" ret: "int" args: "struct osf1_statfs *" "long" "int" */
61 #define OSF1_SYS_getfsstat 18
63 /* syscall: "lseek" ret: "off_t" args: "int" "off_t" "int" */
64 #define OSF1_SYS_lseek 19
66 /* syscall: "getpid_with_ppid" ret: "pid_t" args: */
67 #define OSF1_SYS_getpid_with_ppid 20
69 /* syscall: "mount" ret: "int" args: "int" "const char *" "int" "void *" */
70 #define OSF1_SYS_mount 21
72 /* syscall: "unmount" ret: "int" args: "const char *" "int" */
73 #define OSF1_SYS_unmount 22
75 /* syscall: "setuid" ret: "int" args: "uid_t" */
76 #define OSF1_SYS_setuid 23
78 /* syscall: "getuid_with_euid" ret: "uid_t" args: */
79 #define OSF1_SYS_getuid_with_euid 24
81 /* syscall: "recvmsg_xopen" ret: "int" args: "int" "struct osf1_msghdr_xopen *" "int" */
82 #define OSF1_SYS_recvmsg_xopen 27
84 /* syscall: "sendmsg_xopen" ret: "int" args: "int" "const struct osf1_msghdr_xopen *" "int" */
85 #define OSF1_SYS_sendmsg_xopen 28
87 /* syscall: "access" ret: "int" args: "const char *" "int" */
88 #define OSF1_SYS_access 33
90 /* syscall: "sync" ret: "int" args: */
91 #define OSF1_SYS_sync 36
93 /* syscall: "kill" ret: "int" args: "int" "int" */
94 #define OSF1_SYS_kill 37
96 /* syscall: "setpgid" ret: "int" args: "int" "int" */
97 #define OSF1_SYS_setpgid 39
99 /* syscall: "dup" ret: "int" args: "u_int" */
100 #define OSF1_SYS_dup 41
102 /* syscall: "pipe" ret: "int" args: */
103 #define OSF1_SYS_pipe 42
105 /* syscall: "set_program_attributes" ret: "int" args: "void *" "unsigned long" "void *" "unsigned long" */
106 #define OSF1_SYS_set_program_attributes 43
108 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
109 #define OSF1_SYS_open 45
111 /* 46 is obsolete sigaction */
112 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
113 #define OSF1_SYS_getgid_with_egid 47
115 /* syscall: "sigprocmask" ret: "int" args: "int" "sigset13_t" */
116 #define OSF1_SYS_sigprocmask 48
118 /* syscall: "__getlogin" ret: "int" args: "char *" "u_int" */
119 #define OSF1_SYS___getlogin 49
121 /* syscall: "__setlogin" ret: "int" args: "const char *" */
122 #define OSF1_SYS___setlogin 50
124 /* syscall: "acct" ret: "int" args: "const char *" */
125 #define OSF1_SYS_acct 51
127 /* syscall: "classcntl" ret: "int" args: "int" "int" "int" "int" */
128 #define OSF1_SYS_classcntl 53
130 /* syscall: "ioctl" ret: "int" args: "int" "int" "void *" */
131 #define OSF1_SYS_ioctl 54
133 /* syscall: "reboot" ret: "int" args: "int" */
134 #define OSF1_SYS_reboot 55
136 /* syscall: "revoke" ret: "int" args: "const char *" */
137 #define OSF1_SYS_revoke 56
139 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
140 #define OSF1_SYS_symlink 57
142 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
143 #define OSF1_SYS_readlink 58
145 /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
146 #define OSF1_SYS_execve 59
148 /* syscall: "umask" ret: "int" args: "int" */
149 #define OSF1_SYS_umask 60
151 /* syscall: "chroot" ret: "int" args: "const char *" */
152 #define OSF1_SYS_chroot 61
154 /* syscall: "getpgrp" ret: "int" args: */
155 #define OSF1_SYS_getpgrp 63
157 /* syscall: "getpagesize" ret: "int" args: */
158 #define OSF1_SYS_getpagesize 64
160 /* syscall: "vfork" ret: "int" args: */
161 #define OSF1_SYS_vfork 66
163 /* syscall: "stat" ret: "int" args: "const char *" "struct osf1_stat *" */
164 #define OSF1_SYS_stat 67
166 /* syscall: "lstat" ret: "int" args: "const char *" "struct osf1_stat *" */
167 #define OSF1_SYS_lstat 68
169 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "off_t" */
170 #define OSF1_SYS_mmap 71
172 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
173 #define OSF1_SYS_munmap 73
175 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
176 #define OSF1_SYS_mprotect 74
178 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
179 #define OSF1_SYS_madvise 75
181 /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
182 #define OSF1_SYS_getgroups 79
184 /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
185 #define OSF1_SYS_setgroups 80
187 /* syscall: "setpgrp" ret: "int" args: "int" "int" */
188 #define OSF1_SYS_setpgrp 82
190 /* syscall: "setitimer" ret: "int" args: "u_int" "struct osf1_itimerval *" "struct osf1_itimerval *" */
191 #define OSF1_SYS_setitimer 83
193 /* syscall: "getitimer" ret: "int" args: "u_int" "struct osf1_itimerval *" */
194 #define OSF1_SYS_getitimer 86
196 /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
197 #define OSF1_SYS_gethostname 87
199 /* syscall: "sethostname" ret: "int" args: "const char *" "u_int" */
200 #define OSF1_SYS_sethostname 88
202 /* syscall: "getdtablesize" ret: "int" args: */
203 #define OSF1_SYS_getdtablesize 89
205 /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
206 #define OSF1_SYS_dup2 90
208 /* syscall: "fstat" ret: "int" args: "int" "void *" */
209 #define OSF1_SYS_fstat 91
211 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
212 #define OSF1_SYS_fcntl 92
214 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct osf1_timeval *" */
215 #define OSF1_SYS_select 93
217 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
218 #define OSF1_SYS_poll 94
220 /* syscall: "fsync" ret: "int" args: "int" */
221 #define OSF1_SYS_fsync 95
223 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
224 #define OSF1_SYS_setpriority 96
226 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
227 #define OSF1_SYS_socket 97
229 /* syscall: "connect" ret: "int" args: "int" "void *" "int" */
230 #define OSF1_SYS_connect 98
232 /* syscall: "accept" ret: "int" args: "int" "void *" "int *" */
233 #define OSF1_SYS_accept 99
235 /* syscall: "getpriority" ret: "int" args: "int" "int" */
236 #define OSF1_SYS_getpriority 100
238 /* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */
239 #define OSF1_SYS_send 101
241 /* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
242 #define OSF1_SYS_recv 102
244 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext13 *" */
245 #define OSF1_SYS_sigreturn 103
247 /* syscall: "bind" ret: "int" args: "int" "void *" "int" */
248 #define OSF1_SYS_bind 104
250 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
251 #define OSF1_SYS_setsockopt 105
253 /* syscall: "listen" ret: "int" args: "int" "int" */
254 #define OSF1_SYS_listen 106
256 /* syscall: "sigsuspend" ret: "int" args: "int" */
257 #define OSF1_SYS_sigsuspend 111
259 /* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
260 #define OSF1_SYS_sigstack 112
262 /* 115 is obsolete vtrace */
263 /* syscall: "gettimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */
264 #define OSF1_SYS_gettimeofday 116
266 /* syscall: "getrusage" ret: "int" args: "int" "struct osf1_rusage *" */
267 #define OSF1_SYS_getrusage 117
269 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
270 #define OSF1_SYS_getsockopt 118
272 /* syscall: "readv" ret: "int" args: "int" "struct osf1_iovec *" "u_int" */
273 #define OSF1_SYS_readv 120
275 /* syscall: "writev" ret: "int" args: "int" "struct osf1_iovec *" "u_int" */
276 #define OSF1_SYS_writev 121
278 /* syscall: "settimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */
279 #define OSF1_SYS_settimeofday 122
281 /* syscall: "__posix_fchown" ret: "int" args: "int" "int" "int" */
282 #define OSF1_SYS___posix_fchown 123
284 /* syscall: "fchmod" ret: "int" args: "int" "int" */
285 #define OSF1_SYS_fchmod 124
287 /* syscall: "recvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
288 #define OSF1_SYS_recvfrom 125
290 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
291 #define OSF1_SYS_setreuid 126
293 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
294 #define OSF1_SYS_setregid 127
296 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
297 #define OSF1_SYS___posix_rename 128
299 /* syscall: "truncate" ret: "int" args: "const char *" "off_t" */
300 #define OSF1_SYS_truncate 129
302 /* syscall: "ftruncate" ret: "int" args: "int" "off_t" */
303 #define OSF1_SYS_ftruncate 130
305 /* syscall: "flock" ret: "int" args: "int" "int" */
306 #define OSF1_SYS_flock 131
308 /* syscall: "setgid" ret: "int" args: "gid_t" */
309 #define OSF1_SYS_setgid 132
311 /* syscall: "sendto" ret: "int" args: "int" "void *" "size_t" "int" "struct sockaddr *" "int" */
312 #define OSF1_SYS_sendto 133
314 /* syscall: "shutdown" ret: "int" args: "int" "int" */
315 #define OSF1_SYS_shutdown 134
317 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
318 #define OSF1_SYS_socketpair 135
320 /* syscall: "mkdir" ret: "int" args: "const char *" "int" */
321 #define OSF1_SYS_mkdir 136
323 /* syscall: "rmdir" ret: "int" args: "const char *" */
324 #define OSF1_SYS_rmdir 137
326 /* syscall: "utimes" ret: "int" args: "const char *" "const struct osf1_timeval *" */
327 #define OSF1_SYS_utimes 138
329 /* 139 is obsolete 4.2 sigreturn */
330 /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */
331 #define OSF1_SYS_getpeername 141
333 /* syscall: "gethostid" ret: "int32_t" args: */
334 #define OSF1_SYS_gethostid 142
336 /* syscall: "sethostid" ret: "int" args: "int32_t" */
337 #define OSF1_SYS_sethostid 143
339 /* syscall: "getrlimit" ret: "int" args: "u_int" "struct rlimit *" */
340 #define OSF1_SYS_getrlimit 144
342 /* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */
343 #define OSF1_SYS_setrlimit 145
345 /* syscall: "setsid" ret: "int" args: */
346 #define OSF1_SYS_setsid 147
348 /* syscall: "quota" ret: "int" args: */
349 #define OSF1_SYS_quota 149
351 /* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
352 #define OSF1_SYS_getsockname 150
354 /* syscall: "sigaction" ret: "int" args: "int" "struct osf1_sigaction *" "struct osf1_sigaction *" */
355 #define OSF1_SYS_sigaction 156
357 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "int" "long *" */
358 #define OSF1_SYS_getdirentries 159
360 /* syscall: "statfs" ret: "int" args: "const char *" "struct osf1_statfs *" "int" */
361 #define OSF1_SYS_statfs 160
363 /* syscall: "fstatfs" ret: "int" args: "int" "struct osf1_statfs *" "int" */
364 #define OSF1_SYS_fstatfs 161
366 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
367 #define OSF1_SYS_getdomainname 165
369 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
370 #define OSF1_SYS_setdomainname 166
372 /* syscall: "uname" ret: "int" args: "struct osf1_uname *" */
373 #define OSF1_SYS_uname 207
375 /* syscall: "__posix_lchown" ret: "int" args: "const char *" "int" "int" */
376 #define OSF1_SYS___posix_lchown 208
378 /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
379 #define OSF1_SYS_shmat 209
381 /* syscall: "shmctl" ret: "int" args: "int" "int" "struct osf1_shmid_ds *" */
382 #define OSF1_SYS_shmctl 210
384 /* syscall: "shmdt" ret: "int" args: "const void *" */
385 #define OSF1_SYS_shmdt 211
387 /* syscall: "shmget" ret: "int" args: "osf1_key_t" "size_t" "int" */
388 #define OSF1_SYS_shmget 212
390 /* syscall: "stat2" ret: "int" args: "const char *" "struct osf1_stat2 *" */
391 #define OSF1_SYS_stat2 224
393 /* syscall: "lstat2" ret: "int" args: "const char *" "struct osf1_stat2 *" */
394 #define OSF1_SYS_lstat2 225
396 /* syscall: "fstat2" ret: "int" args: "int" "struct osf1_stat2 *" */
397 #define OSF1_SYS_fstat2 226
399 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
400 #define OSF1_SYS_getpgid 233
402 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
403 #define OSF1_SYS_getsid 234
405 /* syscall: "sigaltstack" ret: "int" args: "struct osf1_sigaltstack *" "struct osf1_sigaltstack *" */
406 #define OSF1_SYS_sigaltstack 235
408 /* syscall: "sysinfo" ret: "int" args: "int" "char *" "long" */
409 #define OSF1_SYS_sysinfo 241
411 /* syscall: "pathconf" ret: "long" args: "const char *" "int" */
412 #define OSF1_SYS_pathconf 247
414 /* syscall: "fpathconf" ret: "long" args: "int" "int" */
415 #define OSF1_SYS_fpathconf 248
417 /* syscall: "usleep_thread" ret: "int" args: "struct osf1_timeval *" "struct osf1_timeval *" */
418 #define OSF1_SYS_usleep_thread 251
420 /* syscall: "getsysinfo" ret: "int" args: "u_long" "void *" "u_long" "void *" "u_long" */
421 #define OSF1_SYS_getsysinfo 256
423 /* syscall: "setsysinfo" ret: "int" args: "u_long" "void *" "u_long" "void *" "u_long" */
424 #define OSF1_SYS_setsysinfo 257
426 #define OSF1_SYS_MAXSYSCALL 267
427 #define OSF1_SYS_NSYSENT 512
428 #endif /* _OSF1_SYS_SYSCALL_H_ */