syscalls.master revision 1.9 1 ; $NetBSD: syscalls.master,v 1.9 2003/01/18 08:38:15 thorpej Exp $
2
3 ; from :NetBSD: syscalls.master,v 1.57 2000/12/09 07:10:36 mycroft Exp
4
5 ; NetBSD COMPAT_SUNOS, 32 bit mode for sparc64 system call name/number "master" file.
6 ; (See syscalls32.conf to see what it is processed into.)
7 ;
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.
12 ;
13 ; types:
14 ; STD always included
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
19 ;
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).
24 ;
25 ; The type-dependent arguments are as follows:
26 ; For STD, NODEF, NOARGS, and compat syscalls:
27 ; { pseudo-proto } [alias]
28 ; For other syscalls:
29 ; [comment]
30 ;
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.
33
34 #if defined(_KERNEL_OPT)
35 #include "opt_nfsserver.h"
36 #include "opt_sysv.h"
37
38 #include "fs_nfs.h"
39 #endif
40
41 #include <sys/param.h>
42 #include <sys/systm.h>
43 #include <sys/signal.h>
44 #include <sys/mount.h>
45 #include <sys/poll.h>
46 #include <sys/sa.h>
47 #include <sys/syscallargs.h>
48
49 #include <compat/sunos/sunos.h>
50 #include <compat/sunos/sunos_syscallargs.h>
51
52 #include <compat/netbsd32/netbsd32.h>
53 #include <compat/netbsd32/netbsd32_syscallargs.h>
54
55 #include <compat/sunos32/sunos32.h>
56 #include <compat/sunos32/sunos32_syscallargs.h>
57
58 %%
59
60 0 NOARGS { int sys_nosys(void); } syscall
61 1 NOARGS { int netbsd32_exit(int rval); }
62 2 NOARGS { int sys_fork(void); }
63 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
64 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
65 5 STD { int sunos32_sys_open(const netbsd32_charp path, int flags, \
66 int mode); }
67 6 NOARGS { int netbsd32_close(int fd); }
68 7 STD { int sunos32_sys_wait4(int pid, netbsd32_intp status, \
69 int options, netbsd32_rusagep_t rusage); }
70 8 STD { int sunos32_sys_creat(const netbsd32_charp path, int mode); }
71 9 NOARGS { int netbsd32_link(netbsd32_charp path, netbsd32_charp link); }
72 10 NOARGS { int netbsd32_unlink(netbsd32_charp path); }
73 11 STD { int sunos32_sys_execv(const netbsd32_charp path, netbsd32_charpp argp); }
74 12 NOARGS { int netbsd32_chdir(netbsd32_charp path); }
75 13 OBSOL old_time
76 14 STD { int sunos32_sys_mknod(const netbsd32_charp path, int mode, \
77 int dev); }
78 15 NOARGS { int netbsd32_chmod(netbsd32_charp path, int mode); }
79 16 NOARGS { int netbsd32_chown(netbsd32_charp path, int uid, int gid); }
80 17 NOARGS { int netbsd32_break(netbsd32_charp nsize); }
81 18 OBSOL old_stat
82 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
83 20 NOARGS { pid_t sys_getpid_with_ppid(void); }
84 21 OBSOL sunos_old_mount
85 22 UNIMPL System V umount
86 23 NOARGS { int netbsd32_setuid(uid_t uid); }
87 24 NOARGS { uid_t sys_getuid_with_euid(void); }
88 25 STD { int sunos32_sys_stime(sunos32_time_tp tp); }
89 26 STD { netbsd32_long sunos32_sys_ptrace(int req, pid_t pid, \
90 netbsd32_caddr_t addr, int data, netbsd32_charp addr2); }
91 27 UNIMPL old_sunos_alarm
92 28 UNIMPL old_sunos_fstat
93 29 UNIMPL old_sunos_pause
94 30 UNIMPL old_sunos_utime
95 31 UNIMPL old_sunos_stty
96 32 UNIMPL old_sunos_gtty
97 33 STD { int sunos32_sys_access(const netbsd32_charp path, int flags); }
98 34 UNIMPL old_sunos_nice
99 35 UNIMPL old_sunos_ftime
100 36 NOARGS { int sys_sync(void); }
101 37 NOARGS { int netbsd32_kill(int pid, int signum); }
102 38 STD { int sunos32_sys_stat(const netbsd32_charp path, \
103 netbsd32_stat43p_t ub); }
104 39 UNIMPL sunos_setpgrp
105 40 STD { int sunos32_sys_lstat(const netbsd32_charp path, \
106 netbsd32_stat43p_t ub); }
107 41 NOARGS { int netbsd32_dup(u_int fd); }
108 42 NOARGS { int sys_pipe(void); }
109 43 UNIMPL sunos_times
110 44 NOARGS { int netbsd32_profil(netbsd32_caddr_t samples, u_int size, \
111 u_int offset, u_int scale); }
112 45 UNIMPL
113 46 NOARGS { int netbsd32_setgid(uid_t gid); }
114 47 NOARGS { gid_t sys_getgid_with_egid(void); }
115 48 UNIMPL sunos_ssig
116 49 UNIMPL reserved for USG
117 50 UNIMPL reserved for USG
118 51 NOARGS { int netbsd32_acct(netbsd32_charp path); }
119 52 UNIMPL
120 53 STD { int sunos32_sys_mctl(netbsd32_voidp addr, int len, int func, \
121 netbsd32_voidp arg); }
122 54 STD { int sunos32_sys_ioctl(int fd, netbsd32_u_long com, \
123 netbsd32_caddr_t data); }
124 55 STD { int sunos32_sys_reboot(int howto, netbsd32_charp bootstr); }
125 56 OBSOL sunos_owait3
126 57 NOARGS { int netbsd32_symlink(netbsd32_charp path, netbsd32_charp link); }
127 58 NOARGS { int netbsd32_readlink(netbsd32_charp path, netbsd32_charp buf, int count); }
128 59 STD { int sunos32_sys_execve(const netbsd32_charp path, netbsd32_charpp argp, \
129 netbsd32_charpp envp); }
130 60 NOARGS { int netbsd32_umask(int newmask); }
131 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); }
132 62 NOARGS { int compat_43_netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
133 63 UNIMPL
134 64 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize
135 65 STD { int sunos32_sys_omsync(netbsd32_caddr_t addr, netbsd32_size_t len, \
136 int flags); }
137 66 NOARGS { int sys_vfork(void); }
138 67 OBSOL vread
139 68 OBSOL vwrite
140 69 NOARGS { int netbsd32_sbrk(netbsd32_intptr_t incr); }
141 70 NOARGS { int netbsd32_sstk(int incr); }
142 71 STD { netbsd32_voidp sunos32_sys_mmap(netbsd32_voidp addr, netbsd32_size_t len, \
143 int prot, int flags, int fd, netbsd32_long pos); }
144 72 NOARGS { int netbsd32_ovadvise(int anom); } vadvise
145 73 NOARGS { int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
146 74 NOARGS { int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, \
147 int prot); }
148 75 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, \
149 int behav); }
150 76 STD { int sunos32_sys_vhangup(void); }
151 77 UNIMPL vlimit
152 78 NOARGS { int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
153 79 NOARGS { int netbsd32_getgroups(u_int gidsetsize, netbsd32_gid_tp gidset); }
154 80 NOARGS { int netbsd32_setgroups(u_int gidsetsize, netbsd32_gid_tp gidset); }
155 81 NOARGS { int sys_getpgrp(void); }
156 82 STD { int sunos32_sys_setpgrp(int pid, int pgid); }
157 83 NOARGS { int netbsd32_setitimer(u_int which, netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
158 84 UNIMPL { int sunos32_sys_wait(void); }
159 85 NOARGS { int compat_12_netbsd32_oswapon(netbsd32_charp name); }
160 86 NOARGS { int netbsd32_getitimer(u_int which, netbsd32_itimervalp_t itv); }
161 87 NOARGS { int compat_43_netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
162 88 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
163 89 NOARGS { int compat_43_sys_getdtablesize(void); } ogetdtablesize
164 90 NOARGS { int netbsd32_dup2(u_int from, u_int to); }
165 91 UNIMPL getdopt
166 92 STD { int sunos32_sys_fcntl(int fd, int cmd, netbsd32_voidp arg); }
167 93 NOARGS { int netbsd32_select(u_int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \
168 netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
169 94 UNIMPL setdopt
170 95 NOARGS { int netbsd32_fsync(int fd); }
171 96 NOARGS { int netbsd32_setpriority(int which, int who, int prio); }
172 97 STD { int sunos32_sys_socket(int domain, int type, int protocol); }
173 98 NOARGS { int netbsd32_connect(int s, netbsd32_caddr_t name, int namelen); }
174 99 NOARGS { int compat_43_netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
175 100 NOARGS { int netbsd32_getpriority(int which, int who); }
176 101 NOARGS { int compat_43_netbsd32_osend(int s, netbsd32_caddr_t buf, int len, \
177 int flags); }
178 102 NOARGS { int compat_43_netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, \
179 int flags); }
180 103 UNIMPL old socketaddr
181 104 NOARGS { int netbsd32_bind(int s, netbsd32_caddr_t name, int namelen); }
182 105 STD { int sunos32_sys_setsockopt(int s, int level, int name, \
183 netbsd32_caddr_t val, int valsize); }
184 106 NOARGS { int netbsd32_listen(int s, int backlog); }
185 107 UNIMPL vtimes
186 108 STD { int sunos32_sys_sigvec(int signum, netbsd32_sigvecp_t nsv, \
187 netbsd32_sigvecp_t osv); }
188 109 NOARGS { int compat_43_netbsd32_sigblock(int mask); }
189 110 NOARGS { int compat_43_netbsd32_sigsetmask(int mask); }
190 111 STD { int sunos32_sys_sigsuspend(int mask); }
191 112 NOARGS { int compat_43_netbsd32_osigstack(netbsd32_sigstackp_t nss, \
192 netbsd32_sigstackp_t oss); }
193 113 NOARGS { int compat_43_netbsd32_orecvmsg(int s, \
194 netbsd32_omsghdrp_t msg, int flags); }
195 114 NOARGS { int compat_43_netbsd32_osendmsg(int s, netbsd32_caddr_t msg, \
196 int flags); }
197 115 OBSOL vtrace
198 116 NOARGS { int netbsd32_gettimeofday(netbsd32_timevalp_t tp, \
199 netbsd32_timezonep_t tzp); }
200 117 NOARGS { int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
201 118 NOARGS { int netbsd32_getsockopt(int s, int level, int name, \
202 netbsd32_caddr_t val, netbsd32_intp avalsize); }
203 119 UNIMPL
204 120 NOARGS { int netbsd32_readv(int fd, netbsd32_iovecp_t iovp, \
205 u_int iovcnt); }
206 121 NOARGS { int netbsd32_writev(int fd, netbsd32_iovecp_t iovp, \
207 u_int iovcnt); }
208 122 NOARGS { int netbsd32_settimeofday(netbsd32_timevalp_t tv, \
209 netbsd32_timezonep_t tzp); }
210 123 NOARGS { int netbsd32_fchown(int fd, int uid, int gid); }
211 124 NOARGS { int netbsd32_fchmod(int fd, int mode); }
212 125 NOARGS { int compat_43_netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, \
213 netbsd32_size_t len, int flags, netbsd32_caddr_t from, \
214 netbsd32_intp fromlenaddr); }
215 126 NOARGS { int netbsd32_setreuid(int ruid, int euid); }
216 127 NOARGS { int netbsd32_setregid(int rgid, int egid); }
217 128 NOARGS { int netbsd32_rename(netbsd32_charp from, netbsd32_charp to); }
218 129 NOARGS { int compat_43_netbsd32_otruncate(netbsd32_charp path, netbsd32_long length); }
219 130 NOARGS { int compat_43_netbsd32_oftruncate(int fd, netbsd32_long length); }
220 131 NOARGS { int netbsd32_flock(int fd, int how); }
221 132 UNIMPL
222 133 NOARGS { int netbsd32_sendto(int s, netbsd32_caddr_t buf, netbsd32_size_t len, \
223 int flags, netbsd32_caddr_t to, int tolen); }
224 134 NOARGS { int netbsd32_shutdown(int s, int how); }
225 135 STD { int sunos32_sys_socketpair(int domain, int type, \
226 int protocol, netbsd32_intp rsv); }
227 136 NOARGS { int netbsd32_mkdir(netbsd32_charp path, int mode); }
228 137 NOARGS { int netbsd32_rmdir(netbsd32_charp path); }
229 138 NOARGS { int netbsd32_utimes(netbsd32_charp path, netbsd32_timevalp_t tptr); }
230 139 STD { int sunos32_sys_sigreturn(netbsd32_sigcontextp_t sigcntxp); }
231 140 NOARGS { int netbsd32_adjtime(netbsd32_timevalp_t delta, \
232 netbsd32_timevalp_t olddelta); }
233 141 NOARGS { int compat_43_netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, \
234 netbsd32_intp alen); }
235 142 NOARGS { int compat_43_sys_gethostid(void); }
236 143 UNIMPL old sethostid
237 144 STD { int sunos32_sys_getrlimit(u_int which, \
238 netbsd32_orlimitp_t rlp); }
239 145 STD { int sunos32_sys_setrlimit(u_int which, \
240 netbsd32_orlimitp_t rlp); }
241 146 NOARGS { int compat_43_netbsd32_killpg(int pgid, int signum); }
242 147 UNIMPL
243 148 UNIMPL
244 149 UNIMPL
245 150 NOARGS { int compat_43_netbsd32_ogetsockname(int fdes, netbsd32_caddr_t asa, \
246 netbsd32_intp alen); }
247 151 UNIMPL getmsg
248 152 UNIMPL putmsg
249 153 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \
250 int timeout); }
251 154 UNIMPL
252 #ifdef NFSSERVER
253 155 STD { int sunos32_sys_nfssvc(int fd); }
254 #else
255 155 UNIMPL
256 #endif
257 156 NOARGS { int compat_43_netbsd32_ogetdirentries(int fd, netbsd32_charp buf, \
258 u_int count, netbsd32_longp basep); }
259 157 STD { int sunos32_sys_statfs(const netbsd32_charp path, \
260 sunos32_statfsp_t buf); }
261 158 STD { int sunos32_sys_fstatfs(int fd, \
262 sunos32_statfsp_t buf); }
263 159 STD { int sunos32_sys_unmount(netbsd32_charp path); }
264 #ifdef NFS
265 160 NOARGS { int async_daemon(void); }
266 161 NOARGS { int sys_getfh(netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
267 #else
268 160 UNIMPL
269 161 UNIMPL
270 #endif
271 162 NOARGS { int compat_09_netbsd32_ogetdomainname(netbsd32_charp domainname, \
272 int len); }
273 163 NOARGS { int compat_09_netbsd32_osetdomainname(netbsd32_charp domainname, \
274 int len); }
275 164 UNIMPL rtschedule
276 165 STD { int sunos32_sys_quotactl(int cmd, netbsd32_charp special, \
277 int uid, netbsd32_caddr_t addr); }
278 166 STD { int sunos32_sys_exportfs(netbsd32_charp path, netbsd32_charp ex); }
279 167 STD { int sunos32_sys_mount(netbsd32_charp type, netbsd32_charp path, \
280 int flags, netbsd32_caddr_t data); }
281 168 STD { int sunos32_sys_ustat(int dev, \
282 sunos32_ustatp_t buf); }
283 #ifdef SYSVSEM
284 169 NOARGS { int compat_10_netbsd32_sys_semsys(int which, int a2, int a3, \
285 int a4, int a5); } osemsys
286 #else
287 169 UNIMPL semsys
288 #endif
289 #ifdef SYSVMSG
290 170 NOARGS { int compat_10_netbsd32_sys_msgsys(int which, int a2, int a3, \
291 int a4, int a5, int a6); } omsgsys
292 #else
293 170 UNIMPL msgsys
294 #endif
295 #ifdef SYSVSHM
296 171 NOARGS { int compat_10_netbsd32_sys_shmsys(int which, int a2, int a3, \
297 int a4); } oshmsys
298 #else
299 171 UNIMPL shmsys
300 #endif
301 172 STD { int sunos32_sys_auditsys(netbsd32_charp record); }
302 173 UNIMPL rfssys
303 174 STD { int sunos32_sys_getdents(int fd, netbsd32_charp buf, \
304 int nbytes); }
305 175 NOARGS { int sys_setsid(void); }
306 176 NOARGS { int netbsd32_fchdir(int fd); }
307 177 NOARGS { int netbsd32_fchroot(int fd); }
308 178 UNIMPL vpixsys
309 179 UNIMPL aioread
310 180 UNIMPL aiowrite
311 181 UNIMPL aiowait
312 182 UNIMPL aiocancel
313 183 STD { int sunos32_sys_sigpending(netbsd32_intp mask); }
314 184 UNIMPL
315 185 NOARGS { int netbsd32_setpgid(int pid, int pgid); }
316 186 NOARGS { netbsd32_long netbsd32_pathconf(netbsd32_charp path, int name); }
317 187 NOARGS { netbsd32_long netbsd32_fpathconf(int fd, int name); }
318 188 STD { int sunos32_sys_sysconf(int name); }
319 189 STD { int sunos32_sys_uname(sunos32_utsnamep_t name); }
320