4d54359755
for svr4 compat, maybe these should be merged..
317 lines
8.9 KiB
Plaintext
317 lines
8.9 KiB
Plaintext
$NetBSD: syscalls.master,v 1.8 2001/12/08 18:08:04 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"
|
|
#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_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 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
|
|
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
|
|
78 UNIMPL rfsys
|
|
79 NOARGS { int sys_rmdir(char *path); }
|
|
80 NOARGS { int sys_mkdir(char *path, int mode); }
|
|
81 STD { int svr4_sys_getdents(int fd, char *buf, \
|
|
int nbytes); }
|
|
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); }
|
|
88 STD { int irix_sys_sigreturn(struct irix_sigframe *sf); }
|
|
89 UNIMPL accept
|
|
90 UNIMPL bind
|
|
91 UNIMPL connect
|
|
92 UNIMPL sys_gethostid
|
|
93 UNIMPL getpeername
|
|
94 UNIMPL getsockname
|
|
95 UNIMPL getsockopt
|
|
96 UNIMPL listen
|
|
97 UNIMPL recv
|
|
98 UNIMPL recvfrom
|
|
99 UNIMPL recvmsg
|
|
100 UNIMPL select
|
|
101 UNIMPL send
|
|
102 UNIMPL sendmsg
|
|
103 UNIMPL sendto
|
|
104 UNIMPL sys_sethostid
|
|
105 UNIMPL setsockopt
|
|
106 UNIMPL shutdown
|
|
107 UNIMPL socket
|
|
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
|
|
118 UNIMPL
|
|
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
|
|
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 vhangup
|
|
145 UNIMPL fsync
|
|
146 UNIMPL fchdir
|
|
147 UNIMPL getrlimit
|
|
148 UNIMPL setrlimit
|
|
149 UNIMPL
|
|
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 UNIMPL lxstat
|
|
160 UNIMPL fxstat
|
|
161 UNIMPL xmknod
|
|
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 UNIMPL getcontext
|
|
169 UNIMPL setcontext
|
|
170 UNIMPL waitsys
|
|
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 UNIMPL readv
|
|
182 UNIMPL writev
|
|
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 UNIMPL getmountid
|
|
204 UNIMPL nsproc
|
|
205 UNIMPL getdents64
|
|
206 UNIMPL dfs_XXX
|
|
207 UNIMPL ngetdents
|
|
208 UNIMPL ngetdents64
|
|
209 UNIMPL
|
|
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
|