6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.54 2009/01/13 22:27:43 pooka Exp
10 #ifndef _IRIX_SYS_SYSCALL_H_
11 #define _IRIX_SYS_SYSCALL_H_
13 #define IRIX_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: */
16 #define IRIX_SYS_syscall 0
18 /* syscall: "exit" ret: "int" args: "int" */
19 #define IRIX_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define IRIX_SYS_fork 2
24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
25 #define IRIX_SYS_read 3
27 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
28 #define IRIX_SYS_write 4
30 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
31 #define IRIX_SYS_open 5
33 /* syscall: "close" ret: "int" args: "int" */
34 #define IRIX_SYS_close 6
36 /* 7 is obsolete wait */
37 /* syscall: "creat" ret: "int" args: "const char *" "int" */
38 #define IRIX_SYS_creat 8
40 /* syscall: "link" ret: "int" args: "char *" "char *" */
41 #define IRIX_SYS_link 9
43 /* syscall: "unlink" ret: "int" args: "char *" */
44 #define IRIX_SYS_unlink 10
46 /* syscall: "execv" ret: "int" args: "const char *" "char **" */
47 #define IRIX_SYS_execv 11
49 /* syscall: "chdir" ret: "int" args: "char *" */
50 #define IRIX_SYS_chdir 12
52 /* syscall: "time" ret: "int" args: "svr4_time_t *" */
53 #define IRIX_SYS_time 13
55 /* 14 is obsolete mknod */
56 /* syscall: "chmod" ret: "int" args: "char *" "int" */
57 #define IRIX_SYS_chmod 15
59 /* syscall: "chown" ret: "int" args: "char *" "int" "int" */
60 #define IRIX_SYS_chown 16
62 /* syscall: "break" ret: "int" args: "void *" */
63 #define IRIX_SYS_break 17
65 /* 18 is obsolete stat */
66 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
67 #define IRIX_SYS_lseek 19
69 /* syscall: "getpid" ret: "pid_t" args: */
70 #define IRIX_SYS_getpid 20
72 /* syscall: "setuid" ret: "int" args: "uid_t" */
73 #define IRIX_SYS_setuid 23
75 /* syscall: "getuid_with_euid" ret: "uid_t" args: */
76 #define IRIX_SYS_getuid_with_euid 24
78 /* syscall: "alarm" ret: "int" args: "unsigned" */
79 #define IRIX_SYS_alarm 27
81 /* syscall: "fstat" ret: "int" args: "int" "struct svr4_stat *" */
82 #define IRIX_SYS_fstat 28
84 /* syscall: "pause" ret: "int" args: */
85 #define IRIX_SYS_pause 29
87 /* syscall: "utime" ret: "int" args: "const char *" "struct svr4_utimbuf *" */
88 #define IRIX_SYS_utime 30
90 /* syscall: "access" ret: "int" args: "const char *" "int" */
91 #define IRIX_SYS_access 33
93 /* syscall: "nice" ret: "int" args: "int" */
94 #define IRIX_SYS_nice 34
96 /* syscall: "sync" ret: "int" args: */
97 #define IRIX_SYS_sync 36
99 /* syscall: "kill" ret: "int" args: "int" "int" */
100 #define IRIX_SYS_kill 37
102 /* syscall: "pgrpsys" ret: "int" args: "int" "int" "int" */
103 #define IRIX_SYS_pgrpsys 39
105 /* syscall: "syssgi" ret: "ptrdiff_t" args: "int" "void *" "void *" "void *" "void *" "void *" */
106 #define IRIX_SYS_syssgi 40
108 /* syscall: "dup" ret: "int" args: "u_int" */
109 #define IRIX_SYS_dup 41
111 /* syscall: "pipe" ret: "int" args: */
112 #define IRIX_SYS_pipe 42
114 /* syscall: "times" ret: "int" args: "struct tms *" */
115 #define IRIX_SYS_times 43
117 /* syscall: "setgid" ret: "int" args: "gid_t" */
118 #define IRIX_SYS_setgid 46
120 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
121 #define IRIX_SYS_getgid_with_egid 47
123 /* 48 is obsolete ssig */
125 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" */
126 #define IRIX_SYS_msgsys 49
131 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
132 #define IRIX_SYS_shmsys 52
137 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
138 #define IRIX_SYS_semsys 53
142 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
143 #define IRIX_SYS_ioctl 54
145 /* syscall: "sysmp" ret: "int" args: "int" "void *" "void *" "void *" "void *" */
146 #define IRIX_SYS_sysmp 56
148 /* syscall: "utssys" ret: "int" args: "void *" "void *" "int" "void *" */
149 #define IRIX_SYS_utssys 57
151 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
152 #define IRIX_SYS_execve 59
154 /* syscall: "umask" ret: "int" args: "int" */
155 #define IRIX_SYS_umask 60
157 /* syscall: "chroot" ret: "int" args: "char *" */
158 #define IRIX_SYS_chroot 61
160 /* syscall: "fcntl" ret: "int" args: "int" "int" "char *" */
161 #define IRIX_SYS_fcntl 62
163 /* syscall: "ulimit" ret: "long" args: "int" "long" */
164 #define IRIX_SYS_ulimit 63
166 /* 70 is obsolete advfs */
167 /* 71 is obsolete unadvfs */
168 /* 72 is obsolete rmount */
169 /* 73 is obsolete rumount */
170 /* 74 is obsolete rfstart */
171 /* syscall: "getrlimit64" ret: "int" args: "int" "struct irix_rlimit64 *" */
172 #define IRIX_SYS_getrlimit64 75
174 /* syscall: "setrlimit64" ret: "int" args: "int" "const struct irix_rlimit64 *" */
175 #define IRIX_SYS_setrlimit64 76
177 /* syscall: "nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */
178 #define IRIX_SYS_nanosleep 77
180 /* syscall: "lseek64" ret: "irix_off64_t" args: "int" "int" "irix_off64_t" "int" "int" "int" "int" */
181 #define IRIX_SYS_lseek64 78
183 /* syscall: "rmdir" ret: "int" args: "char *" */
184 #define IRIX_SYS_rmdir 79
186 /* syscall: "mkdir" ret: "int" args: "char *" "int" */
187 #define IRIX_SYS_mkdir 80
189 /* syscall: "getdents" ret: "int" args: "int" "irix_dirent_t *" "int" */
190 #define IRIX_SYS_getdents 81
192 /* syscall: "sginap" ret: "long" args: "long" */
193 #define IRIX_SYS_sginap 82
195 /* syscall: "getmsg" ret: "int" args: "int" "struct svr4_strbuf *" "struct svr4_strbuf *" "int *" */
196 #define IRIX_SYS_getmsg 85
198 /* syscall: "putmsg" ret: "int" args: "int" "struct svr4_strbuf *" "struct svr4_strbuf *" "int" */
199 #define IRIX_SYS_putmsg 86
201 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
202 #define IRIX_SYS_poll 87
204 /* syscall: "sigreturn" ret: "int" args: "struct irix_sigcontext *" "struct irix_ucontext *" "int" */
205 #define IRIX_SYS_sigreturn 88
207 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "int *" */
208 #define IRIX_SYS_accept 89
210 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
211 #define IRIX_SYS_bind 90
213 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
214 #define IRIX_SYS_connect 91
216 /* syscall: "gethostid" ret: "int32_t" args: */
217 #define IRIX_SYS_gethostid 92
219 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "int *" */
220 #define IRIX_SYS_getpeername 93
222 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "int *" */
223 #define IRIX_SYS_getsockname 94
225 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
226 #define IRIX_SYS_getsockopt 95
228 /* syscall: "listen" ret: "int" args: "int" "int" */
229 #define IRIX_SYS_listen 96
231 /* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
232 #define IRIX_SYS_recv 97
234 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "int *" */
235 #define IRIX_SYS_recvfrom 98
237 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
238 #define IRIX_SYS_recvmsg 99
240 /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
241 #define IRIX_SYS_select 100
243 /* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */
244 #define IRIX_SYS_send 101
246 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
247 #define IRIX_SYS_sendmsg 102
249 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */
250 #define IRIX_SYS_sendto 103
252 /* syscall: "sethostid" ret: "int" args: "int32_t" */
253 #define IRIX_SYS_sethostid 104
255 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */
256 #define IRIX_SYS_setsockopt 105
258 /* syscall: "shutdown" ret: "int" args: "int" "int" */
259 #define IRIX_SYS_shutdown 106
261 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
262 #define IRIX_SYS_socket 107
264 /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
265 #define IRIX_SYS_gethostname 108
267 /* syscall: "sethostname" ret: "int" args: "const char *" "u_int" */
268 #define IRIX_SYS_sethostname 109
270 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
271 #define IRIX_SYS_getdomainname 110
273 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
274 #define IRIX_SYS_setdomainname 111
276 /* syscall: "truncate" ret: "int" args: "const char *" "long" */
277 #define IRIX_SYS_truncate 112
279 /* syscall: "ftruncate" ret: "int" args: "int" "long" */
280 #define IRIX_SYS_ftruncate 113
282 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */
283 #define IRIX_SYS_rename 114
285 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
286 #define IRIX_SYS_symlink 115
288 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */
289 #define IRIX_SYS_readlink 116
291 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
292 #define IRIX_SYS_setregid 123
294 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
295 #define IRIX_SYS_setreuid 124
297 /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
298 #define IRIX_SYS_getitimer 125
300 /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
301 #define IRIX_SYS_setitimer 126
303 /* syscall: "adjtime" ret: "int" args: "struct timeval50 *" "struct timeval50 *" */
304 #define IRIX_SYS_adjtime 127
306 /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" */
307 #define IRIX_SYS_gettimeofday 128
309 /* syscall: "sproc" ret: "irix_pid_t" args: "void *" "unsigned int" "void *" */
310 #define IRIX_SYS_sproc 129
312 /* syscall: "prctl" ret: "ptrdiff_t" args: "unsigned int" "void *" */
313 #define IRIX_SYS_prctl 130
315 /* syscall: "procblk" ret: "int" args: "int" "pid_t" "int" */
316 #define IRIX_SYS_procblk 131
318 /* syscall: "sprocsp" ret: "irix_pid_t" args: "void *" "unsigned int" "void *" "void *" "irix_size_t" */
319 #define IRIX_SYS_sprocsp 132
321 /* syscall: "mmap" ret: "void *" args: "void *" "irix_size_t" "int" "int" "int" "irix_off_t" */
322 #define IRIX_SYS_mmap 134
324 /* syscall: "munmap" ret: "int" args: "void *" "int" */
325 #define IRIX_SYS_munmap 135
327 /* syscall: "mprotect" ret: "int" args: "void *" "int" "int" */
328 #define IRIX_SYS_mprotect 136
330 /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
331 #define IRIX_SYS___msync13 137
333 /* syscall: "getpgrp" ret: "int" args: */
334 #define IRIX_SYS_getpgrp 143
336 /* syscall: "setpgrp" ret: "int" args: "int" "int" */
337 #define IRIX_SYS_setpgrp 144
339 /* syscall: "fsync" ret: "int" args: "int" */
340 #define IRIX_SYS_fsync 146
342 /* syscall: "fchdir" ret: "int" args: "int" */
343 #define IRIX_SYS_fchdir 147
345 /* syscall: "getrlimit" ret: "int" args: "int" "struct irix_rlimit *" */
346 #define IRIX_SYS_getrlimit 148
348 /* syscall: "setrlimit" ret: "int" args: "int" "const struct irix_rlimit *" */
349 #define IRIX_SYS_setrlimit 149
351 /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
352 #define IRIX_SYS_fchown 152
354 /* syscall: "fchmod" ret: "int" args: "int" "int" */
355 #define IRIX_SYS_fchmod 153
357 /* syscall: "systeminfo" ret: "long" args: "int" "char *" "long" */
358 #define IRIX_SYS_systeminfo 156
360 /* syscall: "uname" ret: "int" args: "struct irix_utsname *" */
361 #define IRIX_SYS_uname 157
363 /* syscall: "xstat" ret: "int" args: "const int" "const char *" "struct stat *" */
364 #define IRIX_SYS_xstat 158
366 /* syscall: "lxstat" ret: "int" args: "const int" "const char *" "struct stat *" */
367 #define IRIX_SYS_lxstat 159
369 /* syscall: "fxstat" ret: "int" args: "const int" "const int" "struct stat *" */
370 #define IRIX_SYS_fxstat 160
372 /* syscall: "sigaction" ret: "int" args: "int" "const struct svr4_sigaction *" "struct svr4_sigaction *" "void *" */
373 #define IRIX_SYS_sigaction 162
375 /* syscall: "sigpending" ret: "int" args: "int" "svr4_sigset_t *" */
376 #define IRIX_SYS_sigpending 163
378 /* syscall: "sigprocmask" ret: "int" args: "int" "const irix_sigset_t *" "irix_sigset_t *" */
379 #define IRIX_SYS_sigprocmask 164
381 /* syscall: "sigsuspend" ret: "int" args: "const svr4_sigset_t *" */
382 #define IRIX_SYS_sigsuspend 165
384 /* syscall: "swapctl" ret: "int" args: "int" "void *" */
385 #define IRIX_SYS_swapctl 167
387 /* syscall: "getcontext" ret: "int" args: "irix_ucontext_t *" */
388 #define IRIX_SYS_getcontext 168
390 /* syscall: "setcontext" ret: "int" args: "const irix_ucontext_t *" */
391 #define IRIX_SYS_setcontext 169
393 /* syscall: "waitsys" ret: "int" args: "int" "int" "struct irix_irix5_siginfo *" "int" "struct rusage *" */
394 #define IRIX_SYS_waitsys 170
396 /* syscall: "statvfs" ret: "int" args: "const char *" "struct svr4_statvfs *" */
397 #define IRIX_SYS_statvfs 174
399 /* syscall: "fstatvfs" ret: "int" args: "int" "struct svr4_statvfs *" */
400 #define IRIX_SYS_fstatvfs 175
402 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
403 #define IRIX_SYS_readv 181
405 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
406 #define IRIX_SYS_writev 182
408 /* syscall: "truncate64" ret: "int" args: "const char *" "int" "off_t" */
409 #define IRIX_SYS_truncate64 183
411 /* syscall: "ftruncate64" ret: "int" args: "int" "int" "off_t" */
412 #define IRIX_SYS_ftruncate64 184
414 /* syscall: "mmap64" ret: "void *" args: "void *" "irix_size_t" "int" "int" "int" "int" "irix_off_t" */
415 #define IRIX_SYS_mmap64 185
417 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off_t" */
418 #define IRIX_SYS_pread 187
420 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "svr4_off_t" */
421 #define IRIX_SYS_pwrite 188
423 /* syscall: "getmountid" ret: "int" args: "const char *" "irix_mountid_t *" */
424 #define IRIX_SYS_getmountid 203
426 /* syscall: "getdents64" ret: "int" args: "int" "irix_dirent64_t *" "int" */
427 #define IRIX_SYS_getdents64 205
429 /* syscall: "ngetdents" ret: "int" args: "int" "irix_dirent_t *" "unsigned short" "int *" */
430 #define IRIX_SYS_ngetdents 207
432 /* syscall: "ngetdents64" ret: "int" args: "int" "irix_dirent64_t *" "unsigned short" "int *" */
433 #define IRIX_SYS_ngetdents64 208
435 /* syscall: "pidsprocsp" ret: "irix_pid_t" args: "void *" "unsigned int" "void *" "void *" "irix_size_t" "irix_pid_t" */
436 #define IRIX_SYS_pidsprocsp 210
438 /* syscall: "usync_cntl" ret: "int" args: "int" "void *" */
439 #define IRIX_SYS_usync_cntl 223
441 #define IRIX_SYS_MAXSYSCALL 236
442 #define IRIX_SYS_NSYSENT 256
443 #endif /* _IRIX_SYS_SYSCALL_H_ */