Sync usage with man page.
[netbsd-mini2440.git] / sys / compat / ibcs2 / ibcs2_syscall.h
blobc7930038496d73435ee28e6638a1fc4a81cc6042
1 /* $NetBSD$ */
3 /*
4 * System call numbers.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.37 2009/01/13 22:27:43 pooka Exp
8 */
10 #ifndef _IBCS2_SYS_SYSCALL_H_
11 #define _IBCS2_SYS_SYSCALL_H_
13 #define IBCS2_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: */
16 #define IBCS2_SYS_syscall 0
18 /* syscall: "exit" ret: "int" args: "int" */
19 #define IBCS2_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define IBCS2_SYS_fork 2
24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
25 #define IBCS2_SYS_read 3
27 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
28 #define IBCS2_SYS_write 4
30 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
31 #define IBCS2_SYS_open 5
33 /* syscall: "close" ret: "int" args: "int" */
34 #define IBCS2_SYS_close 6
36 /* syscall: "waitsys" ret: "int" args: "int" "int" "int" */
37 #define IBCS2_SYS_waitsys 7
39 /* syscall: "creat" ret: "int" args: "const char *" "int" */
40 #define IBCS2_SYS_creat 8
42 /* syscall: "link" ret: "int" args: "char *" "char *" */
43 #define IBCS2_SYS_link 9
45 /* syscall: "unlink" ret: "int" args: "const char *" */
46 #define IBCS2_SYS_unlink 10
48 /* syscall: "execv" ret: "int" args: "const char *" "char **" */
49 #define IBCS2_SYS_execv 11
51 /* syscall: "chdir" ret: "int" args: "const char *" */
52 #define IBCS2_SYS_chdir 12
54 /* syscall: "time" ret: "int" args: "ibcs2_time_t *" */
55 #define IBCS2_SYS_time 13
57 /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
58 #define IBCS2_SYS_mknod 14
60 /* syscall: "chmod" ret: "int" args: "const char *" "int" */
61 #define IBCS2_SYS_chmod 15
63 /* syscall: "__posix_chown" ret: "int" args: "const char *" "int" "int" */
64 #define IBCS2_SYS___posix_chown 16
66 /* syscall: "obreak" ret: "int" args: "void *" */
67 #define IBCS2_SYS_obreak 17
69 /* syscall: "stat" ret: "int" args: "const char *" "struct ibcs2_stat *" */
70 #define IBCS2_SYS_stat 18
72 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
73 #define IBCS2_SYS_lseek 19
75 /* syscall: "getpid_with_ppid" ret: "pid_t" args: */
76 #define IBCS2_SYS_getpid_with_ppid 20
78 /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "int" "char *" "int" */
79 #define IBCS2_SYS_mount 21
81 /* syscall: "umount" ret: "int" args: "char *" */
82 #define IBCS2_SYS_umount 22
84 /* syscall: "setuid" ret: "int" args: "int" */
85 #define IBCS2_SYS_setuid 23
87 /* syscall: "getuid_with_euid" ret: "uid_t" args: */
88 #define IBCS2_SYS_getuid_with_euid 24
90 /* syscall: "stime" ret: "int" args: "long *" */
91 #define IBCS2_SYS_stime 25
93 /* syscall: "alarm" ret: "int" args: "unsigned" */
94 #define IBCS2_SYS_alarm 27
96 /* syscall: "fstat" ret: "int" args: "int" "struct ibcs2_stat *" */
97 #define IBCS2_SYS_fstat 28
99 /* syscall: "pause" ret: "int" args: */
100 #define IBCS2_SYS_pause 29
102 /* syscall: "utime" ret: "int" args: "const char *" "struct ibcs2_utimbuf *" */
103 #define IBCS2_SYS_utime 30
105 /* syscall: "gtty" ret: "int" args: "int" "struct ibcs2_sgttyb *" */
106 #define IBCS2_SYS_gtty 32
108 /* syscall: "access" ret: "int" args: "const char *" "int" */
109 #define IBCS2_SYS_access 33
111 /* syscall: "nice" ret: "int" args: "int" */
112 #define IBCS2_SYS_nice 34
114 /* syscall: "statfs" ret: "int" args: "const char *" "struct ibcs2_statfs *" "int" "int" */
115 #define IBCS2_SYS_statfs 35
117 /* syscall: "sync" ret: "int" args: */
118 #define IBCS2_SYS_sync 36
120 /* syscall: "kill" ret: "int" args: "int" "int" */
121 #define IBCS2_SYS_kill 37
123 /* syscall: "fstatfs" ret: "int" args: "int" "struct ibcs2_statfs *" "int" "int" */
124 #define IBCS2_SYS_fstatfs 38
126 /* syscall: "pgrpsys" ret: "int" args: "int" "void *" "int" "int" */
127 #define IBCS2_SYS_pgrpsys 39
129 /* syscall: "dup" ret: "int" args: "u_int" */
130 #define IBCS2_SYS_dup 41
132 /* syscall: "pipe" ret: "int" args: */
133 #define IBCS2_SYS_pipe 42
135 /* syscall: "times" ret: "int" args: "struct tms *" */
136 #define IBCS2_SYS_times 43
138 /* syscall: "plock" ret: "int" args: "int" */
139 #define IBCS2_SYS_plock 45
141 /* syscall: "setgid" ret: "int" args: "int" */
142 #define IBCS2_SYS_setgid 46
144 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
145 #define IBCS2_SYS_getgid_with_egid 47
147 /* syscall: "sigsys" ret: "int" args: "int" "ibcs2_sig_t" */
148 #define IBCS2_SYS_sigsys 48
150 #ifdef SYSVMSG
151 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
152 #define IBCS2_SYS_msgsys 49
154 #else
155 #endif
156 /* syscall: "sysmachine" ret: "int" args: "int" "int" */
157 #define IBCS2_SYS_sysmachine 50
159 #ifdef SYSVSHM
160 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
161 #define IBCS2_SYS_shmsys 52
163 #else
164 #endif
165 #ifdef SYSVSEM
166 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
167 #define IBCS2_SYS_semsys 53
169 #else
170 #endif
171 /* syscall: "ioctl" ret: "int" args: "int" "int" "void *" */
172 #define IBCS2_SYS_ioctl 54
174 /* syscall: "uadmin" ret: "int" args: "int" "int" "void *" */
175 #define IBCS2_SYS_uadmin 55
177 /* syscall: "utssys" ret: "int" args: "int" "int" "int" */
178 #define IBCS2_SYS_utssys 57
180 /* syscall: "fsync" ret: "int" args: "int" */
181 #define IBCS2_SYS_fsync 58
183 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
184 #define IBCS2_SYS_execve 59
186 /* syscall: "umask" ret: "int" args: "int" */
187 #define IBCS2_SYS_umask 60
189 /* syscall: "chroot" ret: "int" args: "char *" */
190 #define IBCS2_SYS_chroot 61
192 /* syscall: "fcntl" ret: "int" args: "int" "int" "char *" */
193 #define IBCS2_SYS_fcntl 62
195 /* syscall: "ulimit" ret: "long" args: "int" "int" */
196 #define IBCS2_SYS_ulimit 63
198 /* 70 is obsolete rfs_advfs */
199 /* 71 is obsolete rfs_unadvfs */
200 /* 72 is obsolete rfs_rmount */
201 /* 73 is obsolete rfs_rumount */
202 /* 74 is obsolete rfs_rfstart */
203 /* 75 is obsolete rfs_sigret */
204 /* 76 is obsolete rfs_rdebug */
205 /* 77 is obsolete rfs_rfstop */
206 /* syscall: "rmdir" ret: "int" args: "const char *" */
207 #define IBCS2_SYS_rmdir 79
209 /* syscall: "mkdir" ret: "int" args: "const char *" "int" */
210 #define IBCS2_SYS_mkdir 80
212 /* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
213 #define IBCS2_SYS_getdents 81
215 /* syscall: "sysfs" ret: "int" args: "int" "void *" "char *" */
216 #define IBCS2_SYS_sysfs 84
218 /* syscall: "getmsg" ret: "int" args: "int" "struct ibcs2_stropts *" "struct ibcs2_stropts *" "int *" */
219 #define IBCS2_SYS_getmsg 85
221 /* syscall: "putmsg" ret: "int" args: "int" "struct ibcs2_stropts *" "struct ibcs2_stropts *" "int" */
222 #define IBCS2_SYS_putmsg 86
224 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
225 #define IBCS2_SYS_poll 87
227 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
228 #define IBCS2_SYS_symlink 90
230 /* syscall: "lstat" ret: "int" args: "const char *" "struct ibcs2_stat *" */
231 #define IBCS2_SYS_lstat 91
233 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
234 #define IBCS2_SYS_readlink 92
236 /* syscall: "fchmod" ret: "int" args: "int" "int" */
237 #define IBCS2_SYS_fchmod 93
239 /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
240 #define IBCS2_SYS_fchown 94
242 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
243 #define IBCS2_SYS_sigreturn 96
245 /* syscall: "sigaltstack" ret: "int" args: "const struct ibcs2_sigaltstack *" "struct ibcs2_sigaltstack *" */
246 #define IBCS2_SYS_sigaltstack 97
248 /* syscall: "statvfs" ret: "int" args: "const char *" "struct ibcs2_statvfs *" */
249 #define IBCS2_SYS_statvfs 103
251 /* syscall: "fstatvfs" ret: "int" args: "int" "struct ibcs2_statvfs *" */
252 #define IBCS2_SYS_fstatvfs 104
254 /* syscall: "mmap" ret: "ibcs2_caddr_t" args: "ibcs2_caddr_t" "ibcs2_size_t" "int" "int" "int" "ibcs2_off_t" */
255 #define IBCS2_SYS_mmap 115
257 /* syscall: "mprotect" ret: "int" args: "void *" "int" "int" */
258 #define IBCS2_SYS_mprotect 116
260 /* syscall: "munmap" ret: "int" args: "void *" "int" */
261 #define IBCS2_SYS_munmap 117
263 /* syscall: "fchdir" ret: "int" args: "int" */
264 #define IBCS2_SYS_fchdir 120
266 /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
267 #define IBCS2_SYS_readv 121
269 /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
270 #define IBCS2_SYS_writev 122
272 /* syscall: "memcntl" ret: "int" args: "ibcs2_caddr_t" "ibcs2_size_t" "int" "ibcs2_caddr_t" "int" "int" */
273 #define IBCS2_SYS_memcntl 131
275 /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" */
276 #define IBCS2_SYS_gettimeofday 171
278 /* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" */
279 #define IBCS2_SYS_settimeofday 172
281 /* syscall: "truncate" ret: "int" args: "char *" "long" */
282 #define IBCS2_SYS_truncate 191
284 /* syscall: "ftruncate" ret: "int" args: "int" "long" */
285 #define IBCS2_SYS_ftruncate 192
287 /* syscall: "locking" ret: "int" args: "int" "int" "int" */
288 #define IBCS2_SYS_locking 201
290 /* syscall: "rdchk" ret: "int" args: "int" */
291 #define IBCS2_SYS_rdchk 207
293 /* syscall: "chsize" ret: "int" args: "int" "long" */
294 #define IBCS2_SYS_chsize 210
296 /* syscall: "ftime" ret: "int" args: "struct xenix_timeb *" */
297 #define IBCS2_SYS_ftime 211
299 /* syscall: "nap" ret: "int" args: "long" */
300 #define IBCS2_SYS_nap 212
302 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
303 #define IBCS2_SYS_select 236
305 /* syscall: "eaccess" ret: "int" args: "const char *" "int" */
306 #define IBCS2_SYS_eaccess 237
308 /* syscall: "sigaction" ret: "int" args: "int" "const struct ibcs2_sigaction *" "struct ibcs2_sigaction *" */
309 #define IBCS2_SYS_sigaction 239
311 /* syscall: "sigprocmask" ret: "int" args: "int" "const ibcs2_sigset_t *" "ibcs2_sigset_t *" */
312 #define IBCS2_SYS_sigprocmask 240
314 /* syscall: "sigpending" ret: "int" args: "ibcs2_sigset_t *" */
315 #define IBCS2_SYS_sigpending 241
317 /* syscall: "sigsuspend" ret: "int" args: "const ibcs2_sigset_t *" */
318 #define IBCS2_SYS_sigsuspend 242
320 /* syscall: "getgroups" ret: "int" args: "int" "ibcs2_gid_t *" */
321 #define IBCS2_SYS_getgroups 243
323 /* syscall: "setgroups" ret: "int" args: "int" "ibcs2_gid_t *" */
324 #define IBCS2_SYS_setgroups 244
326 /* syscall: "sysconf" ret: "int" args: "int" */
327 #define IBCS2_SYS_sysconf 245
329 /* syscall: "pathconf" ret: "int" args: "char *" "int" */
330 #define IBCS2_SYS_pathconf 246
332 /* syscall: "fpathconf" ret: "int" args: "int" "int" */
333 #define IBCS2_SYS_fpathconf 247
335 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
336 #define IBCS2_SYS___posix_rename 248
338 /* syscall: "scoinfo" ret: "int" args: "struct scoutsname *" "int" */
339 #define IBCS2_SYS_scoinfo 250
341 #define IBCS2_SYS_MAXSYSCALL 260
342 #define IBCS2_SYS_NSYSENT 512
343 #endif /* _IBCS2_SYS_SYSCALL_H_ */