No empty .Rs/.Re
[netbsd-mini2440.git] / sys / compat / svr4 / svr4_syscall.h
blob2664ffb8d398dd01b5b5896bc85366bf79f47ab1
1 /* $NetBSD$ */
3 /*
4 * System call numbers.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.61 2009/01/13 22:27:44 pooka Exp
8 */
10 #ifndef _SVR4_SYS_SYSCALL_H_
11 #define _SVR4_SYS_SYSCALL_H_
13 #define SVR4_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: */
16 #define SVR4_SYS_syscall 0
18 /* syscall: "exit" ret: "int" args: "int" */
19 #define SVR4_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define SVR4_SYS_fork 2
24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
25 #define SVR4_SYS_read 3
27 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
28 #define SVR4_SYS_write 4
30 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
31 #define SVR4_SYS_open 5
33 /* syscall: "close" ret: "int" args: "int" */
34 #define SVR4_SYS_close 6
36 /* syscall: "wait" ret: "int" args: "int *" */
37 #define SVR4_SYS_wait 7
39 /* syscall: "creat" ret: "int" args: "const char *" "int" */
40 #define SVR4_SYS_creat 8
42 /* syscall: "link" ret: "int" args: "char *" "char *" */
43 #define SVR4_SYS_link 9
45 /* syscall: "unlink" ret: "int" args: "char *" */
46 #define SVR4_SYS_unlink 10
48 /* syscall: "execv" ret: "int" args: "const char *" "char **" */
49 #define SVR4_SYS_execv 11
51 /* syscall: "chdir" ret: "int" args: "char *" */
52 #define SVR4_SYS_chdir 12
54 /* syscall: "time" ret: "int" args: "svr4_time_t *" */
55 #define SVR4_SYS_time 13
57 /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
58 #define SVR4_SYS_mknod 14
60 /* syscall: "chmod" ret: "int" args: "char *" "int" */
61 #define SVR4_SYS_chmod 15
63 /* syscall: "chown" ret: "int" args: "char *" "int" "int" */
64 #define SVR4_SYS_chown 16
66 /* syscall: "break" ret: "int" args: "void *" */
67 #define SVR4_SYS_break 17
69 /* syscall: "stat" ret: "int" args: "const char *" "struct svr4_stat *" */
70 #define SVR4_SYS_stat 18
72 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
73 #define SVR4_SYS_lseek 19
75 /* syscall: "getpid" ret: "pid_t" args: */
76 #define SVR4_SYS_getpid 20
78 /* syscall: "setuid" ret: "int" args: "uid_t" */
79 #define SVR4_SYS_setuid 23
81 /* syscall: "getuid_with_euid" ret: "uid_t" args: */
82 #define SVR4_SYS_getuid_with_euid 24
84 /* syscall: "alarm" ret: "int" args: "unsigned" */
85 #define SVR4_SYS_alarm 27
87 /* syscall: "fstat" ret: "int" args: "int" "struct svr4_stat *" */
88 #define SVR4_SYS_fstat 28
90 /* syscall: "pause" ret: "int" args: */
91 #define SVR4_SYS_pause 29
93 /* syscall: "utime" ret: "int" args: "const char *" "struct svr4_utimbuf *" */
94 #define SVR4_SYS_utime 30
96 /* syscall: "access" ret: "int" args: "const char *" "int" */
97 #define SVR4_SYS_access 33
99 /* syscall: "nice" ret: "int" args: "int" */
100 #define SVR4_SYS_nice 34
102 /* syscall: "sync" ret: "int" args: */
103 #define SVR4_SYS_sync 36
105 /* syscall: "kill" ret: "int" args: "int" "int" */
106 #define SVR4_SYS_kill 37
108 /* syscall: "pgrpsys" ret: "int" args: "int" "int" "int" */
109 #define SVR4_SYS_pgrpsys 39
111 /* syscall: "dup" ret: "int" args: "u_int" */
112 #define SVR4_SYS_dup 41
114 /* syscall: "pipe" ret: "int" args: */
115 #define SVR4_SYS_pipe 42
117 /* syscall: "times" ret: "int" args: "struct tms *" */
118 #define SVR4_SYS_times 43
120 /* syscall: "setgid" ret: "int" args: "gid_t" */
121 #define SVR4_SYS_setgid 46
123 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
124 #define SVR4_SYS_getgid_with_egid 47
126 /* syscall: "signal" ret: "int" args: "int" "svr4_sig_t" */
127 #define SVR4_SYS_signal 48
129 #ifdef SYSVMSG
130 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" */
131 #define SVR4_SYS_msgsys 49
133 #else
134 #endif
135 /* syscall: "sysarch" ret: "int" args: "int" "void *" */
136 #define SVR4_SYS_sysarch 50
138 #ifdef SYSVSHM
139 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
140 #define SVR4_SYS_shmsys 52
142 #else
143 #endif
144 #ifdef SYSVSEM
145 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
146 #define SVR4_SYS_semsys 53
148 #else
149 #endif
150 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
151 #define SVR4_SYS_ioctl 54
153 /* syscall: "utssys" ret: "int" args: "void *" "void *" "int" "void *" */
154 #define SVR4_SYS_utssys 57
156 /* syscall: "fsync" ret: "int" args: "int" */
157 #define SVR4_SYS_fsync 58
159 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
160 #define SVR4_SYS_execve 59
162 /* syscall: "umask" ret: "int" args: "int" */
163 #define SVR4_SYS_umask 60
165 /* syscall: "chroot" ret: "int" args: "char *" */
166 #define SVR4_SYS_chroot 61
168 /* syscall: "fcntl" ret: "int" args: "int" "int" "char *" */
169 #define SVR4_SYS_fcntl 62
171 /* syscall: "ulimit" ret: "long" args: "int" "long" */
172 #define SVR4_SYS_ulimit 63
174 /* 70 is obsolete advfs */
175 /* 71 is obsolete unadvfs */
176 /* 72 is obsolete rmount */
177 /* 73 is obsolete rumount */
178 /* 74 is obsolete rfstart */
179 /* 75 is obsolete sigret */
180 /* 76 is obsolete rdebug */
181 /* 77 is obsolete rfstop */
182 /* syscall: "rmdir" ret: "int" args: "char *" */
183 #define SVR4_SYS_rmdir 79
185 /* syscall: "mkdir" ret: "int" args: "char *" "int" */
186 #define SVR4_SYS_mkdir 80
188 /* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
189 #define SVR4_SYS_getdents 81
191 /* 82 is obsolete libattach */
192 /* 83 is obsolete libdetach */
193 /* syscall: "getmsg" ret: "int" args: "int" "struct svr4_strbuf *" "struct svr4_strbuf *" "int *" */
194 #define SVR4_SYS_getmsg 85
196 /* syscall: "putmsg" ret: "int" args: "int" "struct svr4_strbuf *" "struct svr4_strbuf *" "int" */
197 #define SVR4_SYS_putmsg 86
199 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
200 #define SVR4_SYS_poll 87
202 /* syscall: "lstat" ret: "int" args: "const char *" "struct svr4_stat *" */
203 #define SVR4_SYS_lstat 88
205 /* syscall: "symlink" ret: "int" args: "char *" "char *" */
206 #define SVR4_SYS_symlink 89
208 /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
209 #define SVR4_SYS_readlink 90
211 /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
212 #define SVR4_SYS_getgroups 91
214 /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
215 #define SVR4_SYS_setgroups 92
217 /* syscall: "fchmod" ret: "int" args: "int" "int" */
218 #define SVR4_SYS_fchmod 93
220 /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
221 #define SVR4_SYS_fchown 94
223 /* syscall: "sigprocmask" ret: "int" args: "int" "const svr4_sigset_t *" "svr4_sigset_t *" */
224 #define SVR4_SYS_sigprocmask 95
226 /* syscall: "sigsuspend" ret: "int" args: "const svr4_sigset_t *" */
227 #define SVR4_SYS_sigsuspend 96
229 /* syscall: "sigaltstack" ret: "int" args: "const struct svr4_sigaltstack *" "struct svr4_sigaltstack *" */
230 #define SVR4_SYS_sigaltstack 97
232 /* syscall: "sigaction" ret: "int" args: "int" "const struct svr4_sigaction *" "struct svr4_sigaction *" */
233 #define SVR4_SYS_sigaction 98
235 /* syscall: "sigpending" ret: "int" args: "int" "svr4_sigset_t *" */
236 #define SVR4_SYS_sigpending 99
238 /* syscall: "context" ret: "int" args: "int" "struct svr4_ucontext *" */
239 #define SVR4_SYS_context 100
241 /* syscall: "statvfs" ret: "int" args: "const char *" "struct svr4_statvfs *" */
242 #define SVR4_SYS_statvfs 103
244 /* syscall: "fstatvfs" ret: "int" args: "int" "struct svr4_statvfs *" */
245 #define SVR4_SYS_fstatvfs 104
247 /* syscall: "waitsys" ret: "int" args: "int" "int" "union svr4_siginfo *" "int" */
248 #define SVR4_SYS_waitsys 107
250 /* syscall: "hrtsys" ret: "int" args: "int" "int" "int" "void *" "void *" */
251 #define SVR4_SYS_hrtsys 109
253 /* syscall: "pathconf" ret: "int" args: "const char *" "int" */
254 #define SVR4_SYS_pathconf 113
256 /* syscall: "mmap" ret: "void *" args: "void *" "svr4_size_t" "int" "int" "int" "svr4_off_t" */
257 #define SVR4_SYS_mmap 115
259 /* syscall: "mprotect" ret: "int" args: "void *" "int" "int" */
260 #define SVR4_SYS_mprotect 116
262 /* syscall: "munmap" ret: "int" args: "void *" "int" */
263 #define SVR4_SYS_munmap 117
265 /* syscall: "fpathconf" ret: "int" args: "int" "int" */
266 #define SVR4_SYS_fpathconf 118
268 /* syscall: "vfork" ret: "int" args: */
269 #define SVR4_SYS_vfork 119
271 /* syscall: "fchdir" ret: "int" args: "int" */
272 #define SVR4_SYS_fchdir 120
274 /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
275 #define SVR4_SYS_readv 121
277 /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
278 #define SVR4_SYS_writev 122
280 /* syscall: "xstat" ret: "int" args: "int" "const char *" "struct svr4_xstat *" */
281 #define SVR4_SYS_xstat 123
283 /* syscall: "lxstat" ret: "int" args: "int" "const char *" "struct svr4_xstat *" */
284 #define SVR4_SYS_lxstat 124
286 /* syscall: "fxstat" ret: "int" args: "int" "int" "struct svr4_xstat *" */
287 #define SVR4_SYS_fxstat 125
289 /* syscall: "xmknod" ret: "int" args: "int" "char *" "svr4_mode_t" "svr4_dev_t" */
290 #define SVR4_SYS_xmknod 126
292 /* syscall: "setrlimit" ret: "int" args: "int" "const struct svr4_rlimit *" */
293 #define SVR4_SYS_setrlimit 128
295 /* syscall: "getrlimit" ret: "int" args: "int" "struct svr4_rlimit *" */
296 #define SVR4_SYS_getrlimit 129
298 /* syscall: "lchown" ret: "int" args: "char *" "int" "int" */
299 #define SVR4_SYS_lchown 130
301 /* syscall: "memcntl" ret: "int" args: "void *" "svr4_size_t" "int" "void *" "int" "int" */
302 #define SVR4_SYS_memcntl 131
304 /* syscall: "rename" ret: "int" args: "char *" "char *" */
305 #define SVR4_SYS_rename 134
307 /* syscall: "uname" ret: "int" args: "struct svr4_utsname *" "int" */
308 #define SVR4_SYS_uname 135
310 /* syscall: "setegid" ret: "int" args: "gid_t" */
311 #define SVR4_SYS_setegid 136
313 /* syscall: "sysconfig" ret: "int" args: "int" */
314 #define SVR4_SYS_sysconfig 137
316 /* syscall: "adjtime" ret: "int" args: "struct timeval50 *" "struct timeval50 *" */
317 #define SVR4_SYS_adjtime 138
319 /* syscall: "systeminfo" ret: "long" args: "int" "char *" "long" */
320 #define SVR4_SYS_systeminfo 139
322 /* syscall: "seteuid" ret: "int" args: "uid_t" */
323 #define SVR4_SYS_seteuid 141
325 /* syscall: "fork1" ret: "int" args: */
326 #define SVR4_SYS_fork1 143
328 /* syscall: "_lwp_info" ret: "int" args: "struct svr4_lwpinfo *" */
329 #define SVR4_SYS__lwp_info 145
331 /* syscall: "fchroot" ret: "int" args: "int" */
332 #define SVR4_SYS_fchroot 153
334 /* syscall: "utimes" ret: "int" args: "const char *" "struct timeval50 *" */
335 #define SVR4_SYS_utimes 154
337 /* syscall: "vhangup" ret: "int" args: */
338 #define SVR4_SYS_vhangup 155
340 /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" */
341 #define SVR4_SYS_gettimeofday 156
343 /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval50 *" */
344 #define SVR4_SYS_getitimer 157
346 /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval50 *" "struct itimerval50 *" */
347 #define SVR4_SYS_setitimer 158
349 /* syscall: "_lwp_create" ret: "int" args: "svr4_ucontext_t *" "unsigned long" "svr4_lwpid_t *" */
350 #define SVR4_SYS__lwp_create 159
352 /* syscall: "_lwp_exit" ret: "int" args: */
353 #define SVR4_SYS__lwp_exit 160
355 /* syscall: "_lwp_suspend" ret: "int" args: "svr4_lwpid_t" */
356 #define SVR4_SYS__lwp_suspend 161
358 /* syscall: "_lwp_continue" ret: "int" args: "svr4_lwpid_t" */
359 #define SVR4_SYS__lwp_continue 162
361 /* syscall: "_lwp_kill" ret: "int" args: "svr4_lwpid_t" "int" */
362 #define SVR4_SYS__lwp_kill 163
364 /* syscall: "_lwp_self" ret: "svr4_lwpid_t" args: */
365 #define SVR4_SYS__lwp_self 164
367 /* syscall: "_lwp_getprivate" ret: "void *" args: */
368 #define SVR4_SYS__lwp_getprivate 165
370 /* syscall: "_lwp_setprivate" ret: "int" args: "void *" */
371 #define SVR4_SYS__lwp_setprivate 166
373 /* syscall: "_lwp_wait" ret: "int" args: "svr4_lwpid_t" "svr4_lwpid_t *" */
374 #define SVR4_SYS__lwp_wait 167
376 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off_t" */
377 #define SVR4_SYS_pread 173
379 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "svr4_off_t" */
380 #define SVR4_SYS_pwrite 174
382 /* syscall: "llseek" ret: "svr4_off64_t" args: "int" "long" "long" "int" */
383 #define SVR4_SYS_llseek 175
385 /* syscall: "acl" ret: "int" args: "char *" "int" "int" "struct svr4_aclent *" */
386 #define SVR4_SYS_acl 185
388 /* syscall: "auditsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
389 #define SVR4_SYS_auditsys 186
391 /* syscall: "nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */
392 #define SVR4_SYS_nanosleep 199
394 /* syscall: "facl" ret: "int" args: "int" "int" "int" "struct svr4_aclent *" */
395 #define SVR4_SYS_facl 200
397 /* syscall: "setreuid" ret: "int" args: "int" "int" */
398 #define SVR4_SYS_setreuid 202
400 /* syscall: "setregid" ret: "int" args: "int" "int" */
401 #define SVR4_SYS_setregid 203
403 /* syscall: "schedctl" ret: "int" args: "unsigned int" "int" "void **" */
404 #define SVR4_SYS_schedctl 206
406 /* syscall: "resolvepath" ret: "int" args: "const char *" "char *" "size_t" */
407 #define SVR4_SYS_resolvepath 209
409 /* syscall: "getdents64" ret: "int" args: "int" "struct svr4_dirent64 *" "int" */
410 #define SVR4_SYS_getdents64 213
412 /* syscall: "mmap64" ret: "void *" args: "void *" "svr4_size_t" "int" "int" "int" "svr4_off64_t" */
413 #define SVR4_SYS_mmap64 214
415 /* syscall: "stat64" ret: "int" args: "const char *" "struct svr4_stat64 *" */
416 #define SVR4_SYS_stat64 215
418 /* syscall: "lstat64" ret: "int" args: "const char *" "struct svr4_stat64 *" */
419 #define SVR4_SYS_lstat64 216
421 /* syscall: "fstat64" ret: "int" args: "int" "struct svr4_stat64 *" */
422 #define SVR4_SYS_fstat64 217
424 /* syscall: "statvfs64" ret: "int" args: "const char *" "struct svr4_statvfs64 *" */
425 #define SVR4_SYS_statvfs64 218
427 /* syscall: "fstatvfs64" ret: "int" args: "int" "struct svr4_statvfs64 *" */
428 #define SVR4_SYS_fstatvfs64 219
430 /* syscall: "setrlimit64" ret: "int" args: "int" "const struct svr4_rlimit64 *" */
431 #define SVR4_SYS_setrlimit64 220
433 /* syscall: "getrlimit64" ret: "int" args: "int" "struct svr4_rlimit64 *" */
434 #define SVR4_SYS_getrlimit64 221
436 /* syscall: "pread64" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off64_t" */
437 #define SVR4_SYS_pread64 222
439 /* syscall: "pwrite64" ret: "ssize_t" args: "int" "const void *" "size_t" "svr4_off64_t" */
440 #define SVR4_SYS_pwrite64 223
442 /* syscall: "creat64" ret: "int" args: "char *" "int" */
443 #define SVR4_SYS_creat64 224
445 /* syscall: "open64" ret: "int" args: "char *" "int" "int" */
446 #define SVR4_SYS_open64 225
448 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
449 #define SVR4_SYS_socket 230
451 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
452 #define SVR4_SYS_socketpair 231
454 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
455 #define SVR4_SYS_bind 232
457 /* syscall: "listen" ret: "int" args: "int" "int" */
458 #define SVR4_SYS_listen 233
460 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "int *" */
461 #define SVR4_SYS_accept 234
463 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
464 #define SVR4_SYS_connect 235
466 /* syscall: "shutdown" ret: "int" args: "int" "int" */
467 #define SVR4_SYS_shutdown 236
469 /* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
470 #define SVR4_SYS_recv 237
472 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "int *" */
473 #define SVR4_SYS_recvfrom 238
475 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
476 #define SVR4_SYS_recvmsg 239
478 /* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */
479 #define SVR4_SYS_send 240
481 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
482 #define SVR4_SYS_sendmsg 241
484 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */
485 #define SVR4_SYS_sendto 242
487 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "int *" */
488 #define SVR4_SYS_getpeername 243
490 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "int *" */
491 #define SVR4_SYS_getsockname 244
493 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
494 #define SVR4_SYS_getsockopt 245
496 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */
497 #define SVR4_SYS_setsockopt 246
499 #if defined(NTP) || !defined(_KERNEL)
500 /* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */
501 #define SVR4_SYS_ntp_adjtime 249
503 #else
504 /* 249 is excluded ntp_adjtime */
505 #endif
506 #define SVR4_SYS_MAXSYSCALL 256
507 #define SVR4_SYS_NSYSENT 256
508 #endif /* _SVR4_SYS_SYSCALL_H_ */