2001-12-26 14:04:20 +03:00
|
|
|
$NetBSD: syscalls.master,v 1.16 2001/12/26 11:04:20 manu Exp $
|
2001-09-22 22:51:35 +04:00
|
|
|
|
|
|
|
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
|
|
|
|
|
|
|
; NetBSD COMPAT_IRIX system call name/number "master" file.
|
|
|
|
; (See syscalls.conf to see what it is processed into.)
|
|
|
|
;
|
|
|
|
; Fields: number type [type-dependent ...]
|
|
|
|
; number system call number, must be in order
|
|
|
|
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
|
|
|
|
; the compatibility options defined in syscalls.conf.
|
|
|
|
;
|
|
|
|
; types:
|
|
|
|
; STD always included
|
|
|
|
; OBSOL obsolete, not included in system
|
|
|
|
; UNIMPL unimplemented, not included in system
|
|
|
|
; NODEF included, but don't define the syscall number
|
|
|
|
; NOARGS included, but don't define the syscall args structure
|
|
|
|
;
|
|
|
|
; The compat options are defined in the syscalls.conf file, and the
|
|
|
|
; compat option name is prefixed to the syscall name. Other than
|
|
|
|
; that, they're like NODEF (for 'compat' options), or STD (for
|
|
|
|
; 'libcompat' options).
|
|
|
|
;
|
|
|
|
; The type-dependent arguments are as follows:
|
|
|
|
; For STD, NODEF, NOARGS, and compat syscalls:
|
|
|
|
; { pseudo-proto } [alias]
|
|
|
|
; For other syscalls:
|
|
|
|
; [comment]
|
|
|
|
;
|
|
|
|
; #ifdef's, etc. may be included, and are copied to the output files.
|
|
|
|
; #include's are copied to the syscall names and switch definition files only.
|
|
|
|
|
|
|
|
#if defined(_KERNEL_OPT)
|
|
|
|
#include "opt_ntp.h"
|
|
|
|
#include "opt_sysv.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/signal.h>
|
|
|
|
#include <sys/mount.h>
|
|
|
|
#include <sys/poll.h>
|
2001-11-28 15:00:53 +03:00
|
|
|
#include <sys/ioctl_compat.h>
|
2001-09-22 22:51:35 +04:00
|
|
|
#include <sys/syscallargs.h>
|
|
|
|
|
2001-11-28 15:00:53 +03:00
|
|
|
#include <compat/svr4/svr4_types.h>
|
|
|
|
|
|
|
|
#include <compat/irix/irix_types.h>
|
2001-12-25 22:04:18 +03:00
|
|
|
#include <compat/irix/irix_signal.h>
|
2001-11-28 15:00:53 +03:00
|
|
|
#include <compat/irix/irix_syscallargs.h>
|
|
|
|
|
2001-09-22 22:51:35 +04:00
|
|
|
%%
|
|
|
|
|
2001-11-28 15:00:53 +03:00
|
|
|
0 NOARGS { int sys_nosys(void); } syscall
|
|
|
|
1 NOARGS { int sys_exit(int rval); }
|
|
|
|
2 NOARGS { int sys_fork(void); }
|
|
|
|
3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
|
|
|
|
4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
|
|
|
|
5 STD { int svr4_sys_open(const char *path, int flags, \
|
|
|
|
int mode); }
|
|
|
|
6 NOARGS { int sys_close(int fd); }
|
|
|
|
7 OBSOL wait
|
|
|
|
8 STD { int svr4_sys_creat(const char *path, int mode); }
|
|
|
|
9 NOARGS { int sys_link(char *path, char *link); }
|
|
|
|
10 NOARGS { int sys_unlink(char *path); }
|
|
|
|
11 STD { int svr4_sys_execv(const char *path, char **argp); }
|
|
|
|
12 NOARGS { int sys_chdir(char *path); }
|
|
|
|
13 STD { int svr4_sys_time(svr4_time_t *t); }
|
|
|
|
14 OBSOL mknod
|
|
|
|
15 NOARGS { int sys_chmod(char *path, int mode); }
|
|
|
|
16 NOARGS { int sys___posix_chown(char *path, int uid, \
|
|
|
|
int gid); } chown
|
|
|
|
17 STD { int svr4_sys_break(caddr_t nsize); }
|
|
|
|
18 OBSOL stat
|
|
|
|
19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
|
|
|
|
int whence); }
|
|
|
|
20 NOARGS MPSAFE { pid_t sys_getpid(void); }
|
|
|
|
21 UNIMPL old_mount
|
|
|
|
22 UNIMPL System V umount
|
|
|
|
23 NOARGS { int sys_setuid(uid_t uid); }
|
|
|
|
24 NOARGS { uid_t sys_getuid_with_euid(void); }
|
|
|
|
25 UNIMPL stime
|
|
|
|
26 UNIMPL ptrace
|
|
|
|
27 OBSOL alarm
|
|
|
|
28 STD { int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
|
|
|
|
29 STD { int svr4_sys_pause(void); }
|
|
|
|
30 STD { int svr4_sys_utime(const char *path, \
|
|
|
|
struct svr4_utimbuf *ubuf); }
|
|
|
|
31 UNIMPL was stty
|
|
|
|
32 UNIMPL was gtty
|
|
|
|
33 STD { int svr4_sys_access(const char *path, int flags); }
|
|
|
|
34 STD { int svr4_sys_nice(int prio); }
|
|
|
|
35 UNIMPL statfs
|
|
|
|
36 NOARGS { int sys_sync(void); }
|
|
|
|
37 STD { int svr4_sys_kill(int pid, int signum); }
|
|
|
|
38 UNIMPL fstatfs
|
|
|
|
39 STD { int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
|
|
|
|
40 STD { ptrdiff_t irix_sys_syssgi(int request, void *arg1, \
|
|
|
|
void *arg2, void *arg3, void *arg4, void *arg5); }
|
|
|
|
41 NOARGS { int sys_dup(u_int fd); }
|
|
|
|
42 NOARGS { int sys_pipe(void); }
|
|
|
|
43 STD { int svr4_sys_times(struct tms *tp); }
|
|
|
|
44 UNIMPL profil
|
|
|
|
45 UNIMPL plock
|
|
|
|
46 NOARGS { int sys_setgid(gid_t gid); }
|
|
|
|
47 NOARGS { gid_t sys_getgid_with_egid(void); }
|
|
|
|
48 OBSOL ssig
|
|
|
|
#ifdef SYSVMSG
|
|
|
|
49 STD { int svr4_sys_msgsys(int what, int a2, int a3, \
|
|
|
|
int a4, int a5); }
|
|
|
|
#else
|
|
|
|
49 UNIMPL msgsys
|
|
|
|
#endif
|
|
|
|
50 UNIMPL sysmips
|
|
|
|
51 UNIMPL acct
|
|
|
|
#ifdef SYSVSHM
|
|
|
|
52 STD { int svr4_sys_shmsys(int what, int a2, int a3, \
|
|
|
|
int a4); }
|
|
|
|
#else
|
|
|
|
52 UNIMPL shmsys
|
|
|
|
#endif
|
|
|
|
#ifdef SYSVSEM
|
|
|
|
53 STD { int svr4_sys_semsys(int what, int a2, int a3, \
|
|
|
|
int a4, int a5); }
|
|
|
|
#else
|
|
|
|
53 UNIMPL semsys
|
|
|
|
#endif
|
|
|
|
54 STD { int svr4_sys_ioctl(int fd, u_long com, \
|
|
|
|
caddr_t data); }
|
|
|
|
55 UNIMPL uadmin
|
2001-12-02 11:30:10 +03:00
|
|
|
56 STD { int irix_sys_sysmp(int cmd, void *arg1, void *arg2, \
|
|
|
|
void *arg3, void *arg4); }
|
2001-11-28 15:00:53 +03:00
|
|
|
57 STD { int svr4_sys_utssys(void *a1, void *a2, int sel, \
|
|
|
|
void *a3); }
|
2001-09-22 22:51:35 +04:00
|
|
|
58 UNIMPL
|
2001-11-28 15:00:53 +03:00
|
|
|
59 STD { int svr4_sys_execve(const char *path, char **argp, \
|
|
|
|
char **envp); }
|
|
|
|
60 NOARGS { int sys_umask(int newmask); }
|
|
|
|
61 NOARGS { int sys_chroot(char *path); }
|
|
|
|
62 STD { int svr4_sys_fcntl(int fd, int cmd, char *arg); }
|
|
|
|
63 STD { long svr4_sys_ulimit(int cmd, long newlimit); }
|
|
|
|
64 UNIMPL reserved for unix/pc
|
|
|
|
65 UNIMPL reserved for unix/pc
|
|
|
|
66 UNIMPL reserved for unix/pc
|
|
|
|
67 UNIMPL reserved for unix/pc
|
|
|
|
68 UNIMPL reserved for unix/pc
|
|
|
|
69 UNIMPL reserved for unix/pc
|
|
|
|
70 OBSOL advfs
|
|
|
|
71 OBSOL unadvfs
|
|
|
|
72 OBSOL rmount
|
|
|
|
73 OBSOL rumount
|
|
|
|
74 OBSOL rfstart
|
|
|
|
75 OBSOL sigret
|
|
|
|
76 OBSOL rdebug
|
|
|
|
77 OBSOL rfstop
|
2001-12-25 19:40:48 +03:00
|
|
|
78 STD { irix_off64_t irix_sys_lseek64(int fd, int pad1, \
|
|
|
|
irix_off64_t offset, int whence, \
|
|
|
|
int pad2, int pad3, int pad4); }
|
2001-11-28 15:00:53 +03:00
|
|
|
79 NOARGS { int sys_rmdir(char *path); }
|
|
|
|
80 NOARGS { int sys_mkdir(char *path, int mode); }
|
2001-12-23 23:15:03 +03:00
|
|
|
81 STD { int irix_sys_getdents(int fildes, \
|
|
|
|
irix_dirent_t *buf, int nbytes); }
|
2001-12-08 14:17:37 +03:00
|
|
|
82 STD { long irix_sys_sginap (long ticks); }
|
2001-11-28 15:00:53 +03:00
|
|
|
83 UNIMPL sgikopt
|
|
|
|
84 UNIMPL sysfs
|
|
|
|
85 STD { int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
|
|
|
|
struct svr4_strbuf *dat, int *flags); }
|
|
|
|
86 STD { int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
|
|
|
|
struct svr4_strbuf *dat, int flags); }
|
|
|
|
87 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
|
|
|
|
int timeout); }
|
2001-12-08 14:17:37 +03:00
|
|
|
88 STD { int irix_sys_sigreturn(struct irix_sigframe *sf); }
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
89 NOARGS { int compat_43_sys_accept(int s, \
|
|
|
|
struct sockaddr *name, int *anamelen); }
|
|
|
|
90 NOARGS { int sys_bind(int s, const struct sockaddr *name, \
|
|
|
|
int namelen); }
|
|
|
|
91 NOARGS { int sys_connect(int s, const struct sockaddr *name, \
|
|
|
|
int namelen); }
|
2001-11-28 15:00:53 +03:00
|
|
|
92 UNIMPL sys_gethostid
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
93 NOARGS { int compat_43_sys_getpeername(int fdes, \
|
|
|
|
struct sockaddr *asa, int *alen); }
|
|
|
|
94 NOARGS { int compat_43_sys_getsockname(int fdes, \
|
|
|
|
struct sockaddr *asa, int *alen); }
|
|
|
|
95 NOARGS { int sys_getsockopt(int s, int level, int name, \
|
|
|
|
void *val, int *avalsize); }
|
|
|
|
96 NOARGS { int sys_listen(int s, int backlog); }
|
|
|
|
97 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
|
|
|
|
int flags); }
|
|
|
|
98 NOARGS { ssize_t compat_43_sys_recvfrom(int s, void *buf, \
|
|
|
|
size_t len, int flags, struct sockaddr *from, \
|
|
|
|
int *fromlenaddr); }
|
|
|
|
99 NOARGS { ssize_t compat_43_sys_recvmsg(int s, \
|
|
|
|
struct msghdr *msg, int flags); }
|
|
|
|
100 NOARGS { int sys_select(int nd, fd_set *in, fd_set *ou, \
|
|
|
|
fd_set *ex, struct timeval *tv); }
|
|
|
|
101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
|
|
|
|
int flags); }
|
|
|
|
102 NOARGS { ssize_t compat_43_sys_sendmsg(int s, \
|
|
|
|
const struct msghdr *msg, int flags); }
|
|
|
|
103 NOARGS { ssize_t sys_sendto(int s, const void *buf, \
|
|
|
|
size_t len, int flags, const struct sockaddr *to, \
|
|
|
|
int tolen); }
|
2001-11-28 15:00:53 +03:00
|
|
|
104 UNIMPL sys_sethostid
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
105 NOARGS { int sys_setsockopt(int s, int level, int name, \
|
|
|
|
const void *val, int valsize); }
|
|
|
|
106 NOARGS { int sys_shutdown(int s, int how); }
|
|
|
|
107 STD { int svr4_sys_socket(int domain, int type, \
|
|
|
|
int protocol); }
|
2001-11-28 15:00:53 +03:00
|
|
|
108 UNIMPL sys_gethostname
|
|
|
|
109 UNIMPL sethostname
|
|
|
|
110 UNIMPL sys_getdomainname
|
|
|
|
111 UNIMPL setdomainname
|
|
|
|
112 UNIMPL truncate
|
|
|
|
113 UNIMPL ftruncate
|
|
|
|
114 UNIMPL rename
|
|
|
|
115 UNIMPL symlink
|
|
|
|
116 UNIMPL readlink
|
|
|
|
117 UNIMPL lstat
|
2001-09-22 22:51:35 +04:00
|
|
|
118 UNIMPL
|
2001-11-28 15:00:53 +03:00
|
|
|
119 UNIMPL nfs_svc
|
|
|
|
120 UNIMPL nfs_getfh
|
|
|
|
121 UNIMPL async_daemon
|
|
|
|
122 UNIMPL exportfs
|
|
|
|
123 UNIMPL setregid
|
|
|
|
124 UNIMPL setreuid
|
|
|
|
125 UNIMPL getitimer
|
|
|
|
126 UNIMPL setitimer
|
|
|
|
127 UNIMPL adjtime
|
|
|
|
128 UNIMPL gettimeofday
|
|
|
|
129 UNIMPL sproc
|
2001-12-02 12:23:58 +03:00
|
|
|
130 STD { ptrdiff_t irix_sys_prctl(unsigned int option, \
|
|
|
|
void *arg1); }
|
2001-11-28 15:00:53 +03:00
|
|
|
131 UNIMPL procblk
|
|
|
|
132 UNIMPL sprocsp
|
|
|
|
133 UNIMPL sgigsc
|
2001-12-02 11:47:17 +03:00
|
|
|
134 STD { void *svr4_sys_mmap(void *addr, svr4_size_t len, \
|
|
|
|
int prot, int flags, int fd, svr4_off_t pos); }
|
2001-11-28 15:00:53 +03:00
|
|
|
135 UNIMPL munmap
|
|
|
|
136 UNIMPL mprotect
|
|
|
|
137 UNIMPL msync
|
|
|
|
138 UNIMPL madvise
|
|
|
|
139 UNIMPL pagelock
|
|
|
|
140 UNIMPL getpagesize
|
|
|
|
141 UNIMPL quotactl
|
|
|
|
142 UNIMPL
|
|
|
|
143 UNIMPL getpgrp
|
2001-12-23 23:57:30 +03:00
|
|
|
144 UNIMPL setpgrp
|
|
|
|
145 UNIMPL vhangup
|
|
|
|
146 UNIMPL fsync
|
|
|
|
147 UNIMPL fchdir
|
|
|
|
148 UNIMPL getrlimit
|
|
|
|
149 UNIMPL setrlimit
|
2001-11-28 15:00:53 +03:00
|
|
|
150 UNIMPL cacheflush
|
|
|
|
151 UNIMPL cachectl
|
|
|
|
152 UNIMPL fchown
|
|
|
|
153 UNIMPL fchmod
|
|
|
|
154 UNIMPL wait3
|
|
|
|
155 UNIMPL socketpair
|
|
|
|
156 UNIMPL systeminfo
|
|
|
|
157 UNIMPL uname
|
2001-12-08 21:08:04 +03:00
|
|
|
158 STD { int irix_sys_xstat(const int version, \
|
|
|
|
const char *path, struct stat *buf); }
|
2001-12-22 15:09:20 +03:00
|
|
|
159 STD { int irix_sys_lxstat(const int version, \
|
|
|
|
const char *path, struct stat *buf); }
|
|
|
|
160 STD { int irix_sys_fxstat(const int version, \
|
|
|
|
const int fd, struct stat *buf); }
|
2001-11-28 15:00:53 +03:00
|
|
|
161 UNIMPL xmknod
|
2001-12-08 14:17:37 +03:00
|
|
|
162 STD { int svr4_sys_sigaction(int signum, \
|
|
|
|
const struct svr4_sigaction *nsa, \
|
|
|
|
struct svr4_sigaction *osa); }
|
|
|
|
163 STD { int svr4_sys_sigpending(int what, \
|
|
|
|
svr4_sigset_t *set); }
|
|
|
|
164 STD { int svr4_sys_sigprocmask(int how, \
|
|
|
|
const svr4_sigset_t *set, \
|
|
|
|
svr4_sigset_t *oset); }
|
|
|
|
165 STD { int svr4_sys_sigsuspend( \
|
|
|
|
const svr4_sigset_t *set); }
|
2001-11-28 15:00:53 +03:00
|
|
|
166 UNIMPL sigpoll_sys
|
|
|
|
167 UNIMPL swapctl
|
2001-12-25 22:04:18 +03:00
|
|
|
168 STD { int irix_sys_getcontext(irix_ucontext_t *ucp); }
|
|
|
|
169 STD { int irix_sys_setcontext(const irix_ucontext_t *ucp); }
|
2001-12-26 14:04:20 +03:00
|
|
|
170 STD { int irix_sys_waitsys(int type, int pid, \
|
|
|
|
struct irix_irix5_siginfo *info, int options, \
|
|
|
|
struct rusage *ru); }
|
2001-11-28 15:00:53 +03:00
|
|
|
171 UNIMPL sigstack
|
|
|
|
172 UNIMPL sigaltstack
|
|
|
|
173 UNIMPL sigsendset
|
|
|
|
174 UNIMPL statvfs
|
|
|
|
175 UNIMPL fstatvfs
|
|
|
|
176 UNIMPL getpmsg
|
|
|
|
177 UNIMPL putpmsg
|
|
|
|
178 UNIMPL lchown
|
|
|
|
179 UNIMPL priocntl
|
|
|
|
180 UNIMPL sigqueue
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
181 NOARGS { ssize_t sys_readv(int fd, \
|
|
|
|
const struct iovec *iovp, int iovcnt); }
|
|
|
|
182 NOARGS { ssize_t sys_writev(int fd, \
|
|
|
|
const struct iovec *iovp, int iovcnt); }
|
2001-11-28 15:00:53 +03:00
|
|
|
183 UNIMPL truncate64
|
|
|
|
184 UNIMPL ftruncate64
|
|
|
|
185 UNIMPL mmap64
|
|
|
|
186 UNIMPL dmi
|
|
|
|
187 UNIMPL pread
|
|
|
|
188 UNIMPL pwrite
|
|
|
|
189 UNIMPL fdatasync
|
|
|
|
190 UNIMPL sgifastpath
|
|
|
|
191 UNIMPL attr_get
|
|
|
|
192 UNIMPL attr_getf
|
|
|
|
193 UNIMPL attr_set
|
|
|
|
194 UNIMPL attr_setf
|
|
|
|
195 UNIMPL attr_remove
|
|
|
|
196 UNIMPL attr_removef
|
|
|
|
197 UNIMPL attr_list
|
|
|
|
198 UNIMPL attr_listf
|
|
|
|
199 UNIMPL attr_multi
|
|
|
|
200 UNIMPL attr_multif
|
|
|
|
201 UNIMPL statvfs64
|
|
|
|
202 UNIMPL fstatvfs64
|
2001-12-22 17:43:43 +03:00
|
|
|
203 STD { int irix_sys_getmountid(const char *path, \
|
|
|
|
irix_mountid_t *buf); }
|
2001-11-28 15:00:53 +03:00
|
|
|
204 UNIMPL nsproc
|
|
|
|
205 UNIMPL getdents64
|
2001-12-23 23:57:30 +03:00
|
|
|
206 UNIMPL afs_syscall
|
2001-12-23 23:15:03 +03:00
|
|
|
207 STD { int irix_sys_ngetdents(int fildes, \
|
|
|
|
irix_dirent_t *buf, unsigned short nbyte, \
|
|
|
|
int *eof); }
|
2001-11-28 15:00:53 +03:00
|
|
|
208 UNIMPL ngetdents64
|
2001-12-23 23:57:30 +03:00
|
|
|
209 UNIMPL sgi_sesmgr
|
2001-11-28 15:00:53 +03:00
|
|
|
210 UNIMPL pidsprocsp
|
|
|
|
211 UNIMPL rexec
|
|
|
|
212 UNIMPL timer_create
|
|
|
|
213 UNIMPL timer_delete
|
|
|
|
214 UNIMPL timer_settime
|
|
|
|
215 UNIMPL timer_gettime
|
|
|
|
216 UNIMPL timer_setoverrun
|
|
|
|
217 UNIMPL sched_rr_get_interval
|
|
|
|
218 UNIMPL sched_yield
|
|
|
|
219 UNIMPL sched_getscheduler
|
|
|
|
220 UNIMPL sched_setscheduler
|
|
|
|
221 UNIMPL sched_getparam
|
|
|
|
222 UNIMPL sched_setparam
|
|
|
|
223 UNIMPL usync_cntl
|
|
|
|
224 UNIMPL psema_cntl
|
|
|
|
225 UNIMPL restartreturn
|
2001-12-23 23:57:30 +03:00
|
|
|
226 UNIMPL sysget
|
|
|
|
227 UNIMPL xpg4_recvmsg
|
|
|
|
228 UNIMPL umfscall
|
|
|
|
229 UNIMPL nsproctid
|
|
|
|
230 UNIMPL rexec_complete
|
|
|
|
231 UNIMPL xpg4_sigaltstack
|
|
|
|
232 UNIMPL xpg4_sigaltstack
|
|
|
|
233 UNIMPL xpg4_setregid
|
|
|
|
234 UNIMPL linkfollow
|
|
|
|
235 UNIMPL utimets
|