NetBSD/sys/compat/irix/syscalls.master

369 lines
12 KiB
Plaintext
Raw Normal View History

$NetBSD: syscalls.master,v 1.20 2002/02/04 20:26:34 manu Exp $
; @(#)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"
#include "opt_compat_43.h"
#endif
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/ioctl_compat.h>
#include <sys/syscallargs.h>
#include <compat/svr4/svr4_types.h>
#include <compat/irix/irix_types.h>
#include <compat/irix/irix_signal.h>
#include <compat/irix/irix_syscallargs.h>
%%
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 STD { int svr4_sys_alarm(unsigned sec); }
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
56 STD { int irix_sys_sysmp(int cmd, void *arg1, void *arg2, \
void *arg3, void *arg4); }
57 STD { int svr4_sys_utssys(void *a1, void *a2, int sel, \
void *a3); }
58 UNIMPL
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); }
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); }
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); }
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); }
92 UNIMPL sys_gethostid
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); }
104 UNIMPL sys_sethostid
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); }
108 NOARGS { int compat_43_sys_gethostname(char *hostname, \
u_int len); }
109 NOARGS { int compat_43_sys_sethostname(const char *hostname, \
u_int len); }
110 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
int len); }
111 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
int len); }
112 UNIMPL truncate
113 UNIMPL ftruncate
2001-12-27 14:07:23 +03:00
114 NOARGS { int sys_rename(const char *from, const char *to); }
115 NOARGS { int sys_symlink(const char *path, \
const char *link); }
116 NOARGS { int sys_readlink(const char *path, char *buf, \
size_t count); }
117 UNIMPL lstat
118 UNIMPL
119 UNIMPL nfs_svc
120 UNIMPL nfs_getfh
121 UNIMPL async_daemon
122 UNIMPL exportfs
123 UNIMPL setregid
124 UNIMPL setreuid
125 NOARGS { int sys_getitimer(u_int which, \
struct itimerval *itv); }
126 NOARGS { int sys_setitimer(u_int which, \
struct itimerval *itv, struct itimerval *oitv); }
127 NOARGS { int sys_adjtime(struct timeval *delta, \
struct timeval *olddelta); }
128 STD { int svr4_sys_gettimeofday(struct timeval *tp); }
129 UNIMPL sproc
130 STD { ptrdiff_t irix_sys_prctl(unsigned int option, \
void *arg1); }
131 UNIMPL procblk
132 UNIMPL sprocsp
133 UNIMPL sgigsc
134 STD { void *svr4_sys_mmap(void *addr, svr4_size_t len, \
int prot, int flags, int fd, svr4_off_t pos); }
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
144 UNIMPL setpgrp
145 UNIMPL vhangup
146 UNIMPL fsync
147 UNIMPL fchdir
148 UNIMPL getrlimit
149 UNIMPL setrlimit
150 UNIMPL cacheflush
151 UNIMPL cachectl
152 UNIMPL fchown
153 UNIMPL fchmod
154 UNIMPL wait3
155 UNIMPL socketpair
156 UNIMPL systeminfo
157 UNIMPL uname
158 STD { int irix_sys_xstat(const int version, \
const char *path, struct stat *buf); }
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); }
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); }
166 UNIMPL sigpoll_sys
167 UNIMPL swapctl
168 STD { int irix_sys_getcontext(irix_ucontext_t *ucp); }
169 STD { int irix_sys_setcontext(const irix_ucontext_t *ucp); }
170 STD { int irix_sys_waitsys(int type, int pid, \
struct irix_irix5_siginfo *info, int options, \
struct rusage *ru); }
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
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); }
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
203 STD { int irix_sys_getmountid(const char *path, \
irix_mountid_t *buf); }
204 UNIMPL nsproc
205 STD { int irix_sys_getdents64(int fildes, \
irix_dirent64_t *buf, int nbytes); }
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); }
208 STD { int irix_sys_ngetdents64(int fildes, \
irix_dirent64_t *buf, unsigned short nbyte, \
int *eof); }
209 UNIMPL sgi_sesmgr
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
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