1 $NetBSD: syscalls.master,v 1.53 2009/01/11 20:00:06 rumble Exp $
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
5 ; NetBSD COMPAT_IRIX system call name/number "master" file.
6 ; (See syscalls.conf to see what it is processed into.)
8 ; Fields: number type [type-dependent ...]
9 ; number system call number, must be in order
10 ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11 ; the compatibility options defined in syscalls.conf.
15 ; OBSOL obsolete, not included in system
16 ; UNIMPL unimplemented, not included in system
17 ; NODEF included, but don't define the syscall number
18 ; NOARGS included, but don't define the syscall args structure
20 ; The compat options are defined in the syscalls.conf file, and the
21 ; compat option name is prefixed to the syscall name. Other than
22 ; that, they're like NODEF (for 'compat' options), or STD (for
23 ; 'libcompat' options).
25 ; The type-dependent arguments are as follows:
26 ; For STD, NODEF, NOARGS, and compat syscalls:
27 ; { pseudo-proto } [alias]
31 ; #ifdef's, etc. may be included, and are copied to the output files.
32 ; #include's are copied to the syscall names and switch definition files only.
34 #if defined(_KERNEL_OPT)
37 #include "opt_compat_43.h"
40 #include <sys/param.h>
41 #include <sys/systm.h>
42 #include <sys/signal.h>
43 #include <sys/mount.h>
45 #include <sys/ioctl_compat.h>
46 #include <sys/syscallargs.h>
48 #include <compat/svr4/svr4_types.h>
49 #include <compat/svr4/svr4_signal.h>
50 #include <compat/svr4/svr4_ucontext.h>
51 #include <compat/svr4/svr4_lwp.h>
52 #include <compat/svr4/svr4_statvfs.h>
53 #include <compat/svr4/svr4_syscallargs.h>
55 #include <compat/irix/irix_types.h>
56 #include <compat/irix/irix_signal.h>
57 #include <compat/irix/irix_syscallargs.h>
61 0 NOARGS { int|sys||nosys(void); } syscall
62 1 NOARGS { int|sys||exit(int rval); }
63 2 NOARGS { int|sys||fork(void); }
64 3 NOARGS { int|sys||read(int fd, char *buf, u_int nbyte); }
65 4 NOARGS { int|sys||write(int fd, char *buf, u_int nbyte); }
66 5 STD { int|irix_sys||open(const char *path, int flags, \
68 6 NOARGS { int|sys||close(int fd); }
70 8 NOARGS { int|svr4_sys||creat(const char *path, int mode); }
71 9 NOARGS { int|sys||link(char *path, char *link); }
72 10 NOARGS { int|sys||unlink(char *path); }
73 11 NOARGS { int|svr4_sys||execv(const char *path, char **argp); }
74 12 NOARGS { int|sys||chdir(char *path); }
75 13 NOARGS { int|svr4_sys||time(svr4_time_t *t); }
77 15 NOARGS { int|sys||chmod(char *path, int mode); }
78 16 NOARGS { int|sys||__posix_chown(char *path, int uid, \
80 17 STD { int|irix_sys||break(void *nsize); }
82 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \
84 20 NOARGS { pid_t|sys||getpid(void); }
86 22 UNIMPL System V umount
87 23 NOARGS { int|sys||setuid(uid_t uid); }
88 24 NOARGS { uid_t|sys||getuid_with_euid(void); }
91 27 NOARGS { int|svr4_sys||alarm(unsigned sec); }
92 28 NOARGS { int|svr4_sys||fstat(int fd, struct svr4_stat *sb); }
93 29 NOARGS { int|svr4_sys||pause(void); }
94 30 NOARGS { int|svr4_sys||utime(const char *path, \
95 struct svr4_utimbuf *ubuf); }
98 33 NOARGS { int|svr4_sys||access(const char *path, int flags); }
99 34 NOARGS { int|svr4_sys||nice(int prio); }
101 36 NOARGS { int|sys||sync(void); }
102 37 NOARGS { int|svr4_sys||kill(int pid, int signum); }
104 39 NOARGS { int|svr4_sys||pgrpsys(int cmd, int pid, int pgid); }
105 40 STD { ptrdiff_t|irix_sys||syssgi(int request, void *arg1, \
106 void *arg2, void *arg3, void *arg4, void *arg5); }
107 41 NOARGS { int|sys||dup(u_int fd); }
108 42 NOARGS { int|sys||pipe(void); }
109 43 NOARGS { int|svr4_sys||times(struct tms *tp); }
112 46 NOARGS { int|sys||setgid(gid_t gid); }
113 47 NOARGS { gid_t|sys||getgid_with_egid(void); }
116 49 NOARGS { int|svr4_sys||msgsys(int what, int a2, int a3, \
124 52 STD { int|irix_sys||shmsys(int what, int a2, int a3, \
130 53 NOARGS { int|svr4_sys||semsys(int what, int a2, int a3, \
135 54 STD { int|irix_sys||ioctl(int fd, u_long com, \
138 56 STD { int|irix_sys||sysmp(int cmd, void *arg1, void *arg2, \
139 void *arg3, void *arg4); }
140 57 STD { int|irix_sys||utssys(void *a1, void *a2, int sel, \
143 59 NOARGS { int|svr4_sys||execve(const char *path, char **argp, \
145 60 NOARGS { int|sys||umask(int newmask); }
146 61 NOARGS { int|sys||chroot(char *path); }
147 62 STD { int|irix_sys||fcntl(int fd, int cmd, char *arg); }
148 63 NOARGS { long|svr4_sys||ulimit(int cmd, long newlimit); }
149 64 UNIMPL reserved for unix/pc
150 65 UNIMPL reserved for unix/pc
151 66 UNIMPL reserved for unix/pc
152 67 UNIMPL reserved for unix/pc
153 68 UNIMPL reserved for unix/pc
154 69 UNIMPL reserved for unix/pc
160 75 STD { int|irix_sys||getrlimit64(int resource, \
161 struct irix_rlimit64 *rlp); }
162 76 STD { int|irix_sys||setrlimit64(int resource, \
163 const struct irix_rlimit64 *rlp); }
164 77 NOARGS { int|compat_50_sys||nanosleep(const struct timespec50 *rqtp, \
165 struct timespec50 *rmtp); }
166 78 STD { irix_off64_t|irix_sys||lseek64(int fd, int pad1, \
167 irix_off64_t offset, int whence, \
168 int pad2, int pad3, int pad4); }
169 79 NOARGS { int|sys||rmdir(char *path); }
170 80 NOARGS { int|sys||mkdir(char *path, int mode); }
171 81 STD { int|irix_sys||getdents(int fildes, \
172 irix_dirent_t *buf, int nbytes); }
173 82 STD { long|irix_sys||sginap (long ticks); }
176 85 NOARGS { int|svr4_sys||getmsg(int fd, struct svr4_strbuf *ctl, \
177 struct svr4_strbuf *dat, int *flags); }
178 86 NOARGS { int|svr4_sys||putmsg(int fd, struct svr4_strbuf *ctl, \
179 struct svr4_strbuf *dat, int flags); }
180 87 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \
182 88 STD { int|irix_sys||sigreturn(struct irix_sigcontext *scp, \
183 struct irix_ucontext *ucp, int signo); }
184 89 NOARGS { int|compat_43_sys||accept(int s, \
185 struct sockaddr *name, int *anamelen); }
186 90 NOARGS { int|sys||bind(int s, const struct sockaddr *name, \
188 91 NOARGS { int|sys||connect(int s, const struct sockaddr *name, \
190 92 NOARGS { int32_t|compat_43_sys||gethostid(void); }
191 93 NOARGS { int|compat_43_sys||getpeername(int fdes, \
192 struct sockaddr *asa, int *alen); }
193 94 NOARGS { int|compat_43_sys||getsockname(int fdes, \
194 struct sockaddr *asa, int *alen); }
195 95 NOARGS { int|sys||getsockopt(int s, int level, int name, \
196 void *val, int *avalsize); }
197 96 NOARGS { int|sys||listen(int s, int backlog); }
198 97 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \
200 98 NOARGS { ssize_t|compat_43_sys||recvfrom(int s, void *buf, \
201 size_t len, int flags, struct sockaddr *from, \
203 99 NOARGS { ssize_t|compat_43_sys||recvmsg(int s, \
204 struct msghdr *msg, int flags); }
205 100 NOARGS { int|compat_50_sys||select(int nd, fd_set *in, fd_set *ou, \
206 fd_set *ex, struct timeval50 *tv); }
207 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \
209 102 NOARGS { ssize_t|compat_43_sys||sendmsg(int s, \
210 const struct msghdr *msg, int flags); }
211 103 NOARGS { ssize_t|sys||sendto(int s, const void *buf, \
212 size_t len, int flags, const struct sockaddr *to, \
214 104 NOARGS { int|compat_43_sys||sethostid(int32_t hostid); }
215 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \
216 const void *val, int valsize); }
217 106 NOARGS { int|sys||shutdown(int s, int how); }
218 107 NOARGS { int|svr4_sys||socket(int domain, int type, \
220 108 NOARGS { int|compat_43_sys||gethostname(char *hostname, \
222 109 NOARGS { int|compat_43_sys||sethostname(const char *hostname, \
224 110 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \
226 111 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \
228 112 NOARGS { int|sys||truncate(const char *path, long length); }
229 113 NOARGS { int|sys||ftruncate(int fd, long length); }
230 114 NOARGS { int|sys||rename(const char *from, const char *to); }
231 115 NOARGS { int|sys||symlink(const char *path, \
233 116 NOARGS { int|sys||readlink(const char *path, char *buf, \
239 121 UNIMPL async_daemon
241 123 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); }
242 124 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); }
243 125 NOARGS { int|compat_50_sys||getitimer(u_int which, \
244 struct itimerval *itv); }
245 126 NOARGS { int|compat_50_sys||setitimer(u_int which, \
246 struct itimerval *itv, struct itimerval *oitv); }
247 127 NOARGS { int|compat_50_sys||adjtime(struct timeval50 *delta, \
248 struct timeval50 *olddelta); }
249 128 NOARGS { int|svr4_sys||gettimeofday(struct timeval50 *tp); }
250 129 STD { irix_pid_t|irix_sys||sproc(void *entry, \
251 unsigned int inh, void *arg); }
252 130 STD { ptrdiff_t|irix_sys||prctl(unsigned int option, \
254 131 STD { int|irix_sys||procblk(int cmd, pid_t pid, int count); }
255 132 STD { irix_pid_t|irix_sys||sprocsp(void *entry, \
256 unsigned int inh, void *arg, void *sp, \
259 134 STD { void *|irix_sys||mmap(void *addr, irix_size_t len, \
260 int prot, int flags, int fd, irix_off_t pos); }
261 135 STD { int|irix_sys||munmap(void *addr, int len); }
262 136 STD { int|irix_sys||mprotect(void *addr, \
263 int len, int prot); }
264 137 NOARGS { int|sys|13|msync(void *addr, \
265 size_t len, int flags); }
268 140 UNIMPL getpagesize
271 143 NOARGS { int|sys||getpgrp(void); }
272 144 STD { int|irix_sys||setpgrp(int pid, int pgid); }
274 146 NOARGS { int|sys||fsync(int fd); }
275 147 NOARGS { int|sys||fchdir(int fd); }
276 148 STD { int|irix_sys||getrlimit(int resource, \
277 struct irix_rlimit *rlp); }
278 149 STD { int|irix_sys||setrlimit(int resource, \
279 const struct irix_rlimit *rlp); }
280 150 UNIMPL cacheflush
282 152 NOARGS { int|sys||__posix_fchown(int fd, int uid, int gid); } \
284 153 NOARGS { int|sys||fchmod(int fd, int mode); }
286 155 UNIMPL socketpair
287 156 STD { long|irix_sys||systeminfo(int what, char *buf, \
289 157 STD { int|irix_sys||uname(struct irix_utsname *name); }
290 158 STD { int|irix_sys||xstat(const int version, \
291 const char *path, struct stat *buf); }
292 159 STD { int|irix_sys||lxstat(const int version, \
293 const char *path, struct stat *buf); }
294 160 STD { int|irix_sys||fxstat(const int version, \
295 const int fd, struct stat *buf); }
297 162 STD { int|irix_sys||sigaction(int signum, \
298 const struct svr4_sigaction *nsa, \
299 struct svr4_sigaction *osa, void *sigtramp); }
300 163 NOARGS { int|svr4_sys||sigpending(int what, \
301 svr4_sigset_t *set); }
302 164 STD { int|irix_sys||sigprocmask(int how, \
303 const irix_sigset_t *set, \
304 irix_sigset_t *oset); }
305 165 NOARGS { int|svr4_sys||sigsuspend( \
306 const svr4_sigset_t *set); }
307 166 UNIMPL sigpoll_sys
308 167 STD { int|irix_sys||swapctl(int cmd, void *arg); }
309 168 STD { int|irix_sys||getcontext(irix_ucontext_t *ucp); }
310 169 STD { int|irix_sys||setcontext(const irix_ucontext_t *ucp); }
311 170 STD { int|irix_sys||waitsys(int type, int pid, \
312 struct irix_irix5_siginfo *info, int options, \
313 struct rusage *ru); }
315 172 UNIMPL sigaltstack
316 173 UNIMPL sigsendset
317 174 NOARGS { int|svr4_sys||statvfs(const char *path, \
318 struct svr4_statvfs *fs); }
319 175 NOARGS { int|svr4_sys||fstatvfs(int fd, \
320 struct svr4_statvfs *fs); }
326 181 NOARGS { ssize_t|sys||readv(int fd, \
327 const struct iovec *iovp, int iovcnt); }
328 182 NOARGS { ssize_t|sys||writev(int fd, \
329 const struct iovec *iovp, int iovcnt); }
330 183 NOARGS { int|sys||truncate(const char *path, int pad, \
331 off_t length); } truncate64
332 184 NOARGS { int|sys||ftruncate(int fd, int pad, off_t length); } \
334 185 STD { void *|irix_sys||mmap64(void *addr, irix_size_t len, \
335 int prot, int flags, int fd, int pad1, \
338 187 NOARGS { ssize_t|svr4_sys||pread(int fd, void *buf, \
339 size_t nbyte, svr4_off_t off); }
340 188 NOARGS { ssize_t|svr4_sys||pwrite(int fd, const void *buf, \
341 size_t nbyte, svr4_off_t off); }
343 190 UNIMPL sgifastpath
348 195 UNIMPL attr_remove
349 196 UNIMPL attr_removef
351 198 UNIMPL attr_listf
352 199 UNIMPL attr_multi
353 200 UNIMPL attr_multif
355 202 UNIMPL fstatvfs64
356 203 STD { int|irix_sys||getmountid(const char *path, \
357 irix_mountid_t *buf); }
359 205 STD { int|irix_sys||getdents64(int fildes, \
360 irix_dirent64_t *buf, int nbytes); }
361 206 UNIMPL afs_syscall
362 207 STD { int|irix_sys||ngetdents(int fildes, \
363 irix_dirent_t *buf, unsigned short nbyte, \
365 208 STD { int|irix_sys||ngetdents64(int fildes, \
366 irix_dirent64_t *buf, unsigned short nbyte, \
368 209 UNIMPL sgi_sesmgr
369 210 STD { irix_pid_t|irix_sys||pidsprocsp(void *entry, \
370 unsigned int inh, void *arg, void *sp, \
371 irix_size_t len, irix_pid_t pid); }
373 212 UNIMPL timer_create
374 213 UNIMPL timer_delete
375 214 UNIMPL timer_settime
376 215 UNIMPL timer_gettime
377 216 UNIMPL timer_setoverrun
378 217 UNIMPL sched_rr_get_interval
379 218 UNIMPL sched_yield
380 219 UNIMPL sched_getscheduler
381 220 UNIMPL sched_setscheduler
382 221 UNIMPL sched_getparam
383 222 UNIMPL sched_setparam
384 223 STD { int|irix_sys||usync_cntl(int cmd, void *arg); }
385 224 UNIMPL psema_cntl
386 225 UNIMPL restartreturn
388 227 UNIMPL xpg4_recvmsg
391 230 UNIMPL rexec_complete
392 231 UNIMPL xpg4_sigaltstack
393 232 UNIMPL xpg4_sigaltstack
394 233 UNIMPL xpg4_setregid
395 234 UNIMPL linkfollow