Sync usage with man page.
[netbsd-mini2440.git] / sys / compat / sunos / sunos_syscall.h
blobfece8cc92077277851dd80a9d3e3695d52ba80ef
1 /* $NetBSD$ */
3 /*
4 * System call numbers.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.74 2009/01/13 22:27:43 pooka Exp
8 */
10 #ifndef _SUNOS_SYS_SYSCALL_H_
11 #define _SUNOS_SYS_SYSCALL_H_
13 #define SUNOS_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: */
16 #define SUNOS_SYS_syscall 0
18 /* syscall: "exit" ret: "int" args: "int" */
19 #define SUNOS_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define SUNOS_SYS_fork 2
24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
25 #define SUNOS_SYS_read 3
27 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
28 #define SUNOS_SYS_write 4
30 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
31 #define SUNOS_SYS_open 5
33 /* syscall: "close" ret: "int" args: "int" */
34 #define SUNOS_SYS_close 6
36 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
37 #define SUNOS_SYS_wait4 7
39 /* syscall: "creat" ret: "int" args: "const char *" "int" */
40 #define SUNOS_SYS_creat 8
42 /* syscall: "link" ret: "int" args: "char *" "char *" */
43 #define SUNOS_SYS_link 9
45 /* syscall: "unlink" ret: "int" args: "char *" */
46 #define SUNOS_SYS_unlink 10
48 /* syscall: "execv" ret: "int" args: "const char *" "char **" */
49 #define SUNOS_SYS_execv 11
51 /* syscall: "chdir" ret: "int" args: "char *" */
52 #define SUNOS_SYS_chdir 12
54 /* 13 is obsolete old_time */
55 /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
56 #define SUNOS_SYS_mknod 14
58 /* syscall: "chmod" ret: "int" args: "char *" "int" */
59 #define SUNOS_SYS_chmod 15
61 /* syscall: "chown" ret: "int" args: "char *" "int" "int" */
62 #define SUNOS_SYS_chown 16
64 /* syscall: "break" ret: "int" args: "char *" */
65 #define SUNOS_SYS_break 17
67 /* 18 is obsolete old_stat */
68 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
69 #define SUNOS_SYS_lseek 19
71 /* syscall: "getpid_with_ppid" ret: "pid_t" args: */
72 #define SUNOS_SYS_getpid_with_ppid 20
74 /* 21 is obsolete sunos_old_mount */
75 /* syscall: "setuid" ret: "int" args: "uid_t" */
76 #define SUNOS_SYS_setuid 23
78 /* syscall: "getuid_with_euid" ret: "uid_t" args: */
79 #define SUNOS_SYS_getuid_with_euid 24
81 /* syscall: "stime" ret: "int" args: "sunos_time_t *" */
82 #define SUNOS_SYS_stime 25
84 /* syscall: "ptrace" ret: "long" args: "int" "pid_t" "void *" "int" "char *" */
85 #define SUNOS_SYS_ptrace 26
87 /* syscall: "access" ret: "int" args: "const char *" "int" */
88 #define SUNOS_SYS_access 33
90 /* syscall: "sync" ret: "int" args: */
91 #define SUNOS_SYS_sync 36
93 /* syscall: "kill" ret: "int" args: "int" "int" */
94 #define SUNOS_SYS_kill 37
96 /* syscall: "stat" ret: "int" args: "const char *" "struct stat43 *" */
97 #define SUNOS_SYS_stat 38
99 /* syscall: "lstat" ret: "int" args: "const char *" "struct stat43 *" */
100 #define SUNOS_SYS_lstat 40
102 /* syscall: "dup" ret: "int" args: "u_int" */
103 #define SUNOS_SYS_dup 41
105 /* syscall: "pipe" ret: "int" args: */
106 #define SUNOS_SYS_pipe 42
108 /* syscall: "profil" ret: "int" args: "void *" "u_int" "u_int" "u_int" */
109 #define SUNOS_SYS_profil 44
111 /* syscall: "setgid" ret: "int" args: "uid_t" */
112 #define SUNOS_SYS_setgid 46
114 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
115 #define SUNOS_SYS_getgid_with_egid 47
117 /* syscall: "acct" ret: "int" args: "char *" */
118 #define SUNOS_SYS_acct 51
120 /* syscall: "mctl" ret: "int" args: "void *" "int" "int" "void *" */
121 #define SUNOS_SYS_mctl 53
123 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
124 #define SUNOS_SYS_ioctl 54
126 /* syscall: "reboot" ret: "int" args: "int" "char *" */
127 #define SUNOS_SYS_reboot 55
129 /* 56 is obsolete sunos_owait3 */
130 /* syscall: "symlink" ret: "int" args: "char *" "char *" */
131 #define SUNOS_SYS_symlink 57
133 /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
134 #define SUNOS_SYS_readlink 58
136 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
137 #define SUNOS_SYS_execve 59
139 /* syscall: "umask" ret: "int" args: "int" */
140 #define SUNOS_SYS_umask 60
142 /* syscall: "chroot" ret: "int" args: "char *" */
143 #define SUNOS_SYS_chroot 61
145 /* syscall: "fstat" ret: "int" args: "int" "struct stat43 *" */
146 #define SUNOS_SYS_fstat 62
148 /* syscall: "getpagesize" ret: "int" args: */
149 #define SUNOS_SYS_getpagesize 64
151 /* syscall: "omsync" ret: "int" args: "void *" "size_t" "int" */
152 #define SUNOS_SYS_omsync 65
154 /* syscall: "vfork" ret: "int" args: */
155 #define SUNOS_SYS_vfork 66
157 /* 67 is obsolete vread */
158 /* 68 is obsolete vwrite */
159 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
160 #define SUNOS_SYS_sbrk 69
162 /* syscall: "sstk" ret: "int" args: "int" */
163 #define SUNOS_SYS_sstk 70
165 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
166 #define SUNOS_SYS_mmap 71
168 /* syscall: "vadvise" ret: "int" args: "int" */
169 #define SUNOS_SYS_vadvise 72
171 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
172 #define SUNOS_SYS_munmap 73
174 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
175 #define SUNOS_SYS_mprotect 74
177 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
178 #define SUNOS_SYS_madvise 75
180 /* syscall: "vhangup" ret: "int" args: */
181 #define SUNOS_SYS_vhangup 76
183 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
184 #define SUNOS_SYS_mincore 78
186 /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
187 #define SUNOS_SYS_getgroups 79
189 /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
190 #define SUNOS_SYS_setgroups 80
192 /* syscall: "getpgrp" ret: "int" args: */
193 #define SUNOS_SYS_getpgrp 81
195 /* syscall: "setpgrp" ret: "int" args: "int" "int" */
196 #define SUNOS_SYS_setpgrp 82
198 /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval50 *" "struct itimerval50 *" */
199 #define SUNOS_SYS_setitimer 83
201 /* syscall: "swapon" ret: "int" args: "char *" */
202 #define SUNOS_SYS_swapon 85
204 /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval50 *" */
205 #define SUNOS_SYS_getitimer 86
207 /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
208 #define SUNOS_SYS_gethostname 87
210 /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
211 #define SUNOS_SYS_sethostname 88
213 /* syscall: "getdtablesize" ret: "int" args: */
214 #define SUNOS_SYS_getdtablesize 89
216 /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
217 #define SUNOS_SYS_dup2 90
219 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
220 #define SUNOS_SYS_fcntl 92
222 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
223 #define SUNOS_SYS_select 93
225 /* syscall: "fsync" ret: "int" args: "int" */
226 #define SUNOS_SYS_fsync 95
228 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
229 #define SUNOS_SYS_setpriority 96
231 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
232 #define SUNOS_SYS_socket 97
234 /* syscall: "connect" ret: "int" args: "int" "void *" "int" */
235 #define SUNOS_SYS_connect 98
237 /* syscall: "accept" ret: "int" args: "int" "void *" "int *" */
238 #define SUNOS_SYS_accept 99
240 /* syscall: "getpriority" ret: "int" args: "int" "int" */
241 #define SUNOS_SYS_getpriority 100
243 /* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */
244 #define SUNOS_SYS_send 101
246 /* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
247 #define SUNOS_SYS_recv 102
249 /* syscall: "bind" ret: "int" args: "int" "void *" "int" */
250 #define SUNOS_SYS_bind 104
252 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
253 #define SUNOS_SYS_setsockopt 105
255 /* syscall: "listen" ret: "int" args: "int" "int" */
256 #define SUNOS_SYS_listen 106
258 /* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
259 #define SUNOS_SYS_sigvec 108
261 /* syscall: "sigblock" ret: "int" args: "int" */
262 #define SUNOS_SYS_sigblock 109
264 /* syscall: "sigsetmask" ret: "int" args: "int" */
265 #define SUNOS_SYS_sigsetmask 110
267 /* syscall: "sigsuspend" ret: "int" args: "int" */
268 #define SUNOS_SYS_sigsuspend 111
270 /* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
271 #define SUNOS_SYS_sigstack 112
273 /* syscall: "recvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
274 #define SUNOS_SYS_recvmsg 113
276 /* syscall: "sendmsg" ret: "int" args: "int" "void *" "int" */
277 #define SUNOS_SYS_sendmsg 114
279 /* 115 is obsolete vtrace */
280 /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
281 #define SUNOS_SYS_gettimeofday 116
283 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
284 #define SUNOS_SYS_getrusage 117
286 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
287 #define SUNOS_SYS_getsockopt 118
289 /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
290 #define SUNOS_SYS_readv 120
292 /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
293 #define SUNOS_SYS_writev 121
295 /* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
296 #define SUNOS_SYS_settimeofday 122
298 /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
299 #define SUNOS_SYS_fchown 123
301 /* syscall: "fchmod" ret: "int" args: "int" "int" */
302 #define SUNOS_SYS_fchmod 124
304 /* syscall: "recvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
305 #define SUNOS_SYS_recvfrom 125
307 /* syscall: "setreuid" ret: "int" args: "int" "int" */
308 #define SUNOS_SYS_setreuid 126
310 /* syscall: "setregid" ret: "int" args: "int" "int" */
311 #define SUNOS_SYS_setregid 127
313 /* syscall: "rename" ret: "int" args: "char *" "char *" */
314 #define SUNOS_SYS_rename 128
316 /* syscall: "truncate" ret: "int" args: "char *" "long" */
317 #define SUNOS_SYS_truncate 129
319 /* syscall: "ftruncate" ret: "int" args: "int" "long" */
320 #define SUNOS_SYS_ftruncate 130
322 /* syscall: "flock" ret: "int" args: "int" "int" */
323 #define SUNOS_SYS_flock 131
325 /* syscall: "sendto" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int" */
326 #define SUNOS_SYS_sendto 133
328 /* syscall: "shutdown" ret: "int" args: "int" "int" */
329 #define SUNOS_SYS_shutdown 134
331 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
332 #define SUNOS_SYS_socketpair 135
334 /* syscall: "mkdir" ret: "int" args: "char *" "int" */
335 #define SUNOS_SYS_mkdir 136
337 /* syscall: "rmdir" ret: "int" args: "char *" */
338 #define SUNOS_SYS_rmdir 137
340 /* syscall: "utimes" ret: "int" args: "char *" "struct timeval50 *" */
341 #define SUNOS_SYS_utimes 138
343 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
344 #define SUNOS_SYS_sigreturn 139
346 /* syscall: "adjtime" ret: "int" args: "struct timeval50 *" "struct timeval50 *" */
347 #define SUNOS_SYS_adjtime 140
349 /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */
350 #define SUNOS_SYS_getpeername 141
352 /* syscall: "gethostid" ret: "int" args: */
353 #define SUNOS_SYS_gethostid 142
355 /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
356 #define SUNOS_SYS_getrlimit 144
358 /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
359 #define SUNOS_SYS_setrlimit 145
361 /* syscall: "killpg" ret: "int" args: "int" "int" */
362 #define SUNOS_SYS_killpg 146
364 /* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
365 #define SUNOS_SYS_getsockname 150
367 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
368 #define SUNOS_SYS_poll 153
370 /* syscall: "nfssvc" ret: "int" args: "int" */
371 #define SUNOS_SYS_nfssvc 155
373 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
374 #define SUNOS_SYS_getdirentries 156
376 /* syscall: "statfs" ret: "int" args: "const char *" "struct sunos_statfs *" */
377 #define SUNOS_SYS_statfs 157
379 /* syscall: "fstatfs" ret: "int" args: "int" "struct sunos_statfs *" */
380 #define SUNOS_SYS_fstatfs 158
382 /* syscall: "unmount" ret: "int" args: "char *" */
383 #define SUNOS_SYS_unmount 159
385 /* syscall: "async_daemon" ret: "int" args: */
386 #define SUNOS_SYS_async_daemon 160
388 /* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */
389 #define SUNOS_SYS_getfh 161
391 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
392 #define SUNOS_SYS_getdomainname 162
394 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
395 #define SUNOS_SYS_setdomainname 163
397 /* syscall: "quotactl" ret: "int" args: "int" "char *" "int" "void *" */
398 #define SUNOS_SYS_quotactl 165
400 /* syscall: "exportfs" ret: "int" args: "char *" "char *" */
401 #define SUNOS_SYS_exportfs 166
403 /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "void *" */
404 #define SUNOS_SYS_mount 167
406 /* syscall: "ustat" ret: "int" args: "int" "struct sunos_ustat *" */
407 #define SUNOS_SYS_ustat 168
409 #ifdef SYSVSEM
410 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
411 #define SUNOS_SYS_semsys 169
413 #else
414 #endif
415 #ifdef SYSVMSG
416 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
417 #define SUNOS_SYS_msgsys 170
419 #else
420 #endif
421 #ifdef SYSVSHM
422 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
423 #define SUNOS_SYS_shmsys 171
425 #else
426 #endif
427 /* syscall: "auditsys" ret: "int" args: "char *" */
428 #define SUNOS_SYS_auditsys 172
430 /* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
431 #define SUNOS_SYS_getdents 174
433 /* syscall: "setsid" ret: "int" args: */
434 #define SUNOS_SYS_setsid 175
436 /* syscall: "fchdir" ret: "int" args: "int" */
437 #define SUNOS_SYS_fchdir 176
439 /* syscall: "fchroot" ret: "int" args: "int" */
440 #define SUNOS_SYS_fchroot 177
442 /* syscall: "sigpending" ret: "int" args: "int *" */
443 #define SUNOS_SYS_sigpending 183
445 /* syscall: "setpgid" ret: "int" args: "int" "int" */
446 #define SUNOS_SYS_setpgid 185
448 /* syscall: "pathconf" ret: "long" args: "char *" "int" */
449 #define SUNOS_SYS_pathconf 186
451 /* syscall: "fpathconf" ret: "long" args: "int" "int" */
452 #define SUNOS_SYS_fpathconf 187
454 /* syscall: "sysconf" ret: "int" args: "int" */
455 #define SUNOS_SYS_sysconf 188
457 /* syscall: "uname" ret: "int" args: "struct sunos_utsname *" */
458 #define SUNOS_SYS_uname 189
460 #define SUNOS_SYS_MAXSYSCALL 190
461 #define SUNOS_SYS_NSYSENT 256
462 #endif /* _SUNOS_SYS_SYSCALL_H_ */