1 $NetBSD: syscalls.master,v 1.69 2008/06/21 13:20:46 tsutsui Exp $
2
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4
5 ; NetBSD COMPAT_SUNOS system call name/number "master" file.
6 ; (See syscalls.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/sched.h>
47 #include <sys/syscallargs.h>
48
49 #include <compat/sunos/sunos.h>
50 #include <compat/sunos/sunos_syscallargs.h>
51
52 %%
53
54 0 NOARGS { int sys_nosys(void); } syscall
55 1 NOARGS { int sys_exit(int rval); }
56 2 NOARGS { int sys_fork(void); }
57 3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
58 4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
59 5 STD { int sunos_sys_open(const char *path, int flags, \
60 int mode); }
61 6 NOARGS { int sys_close(int fd); }
62 7 STD { int sunos_sys_wait4(int pid, int *status, \
63 int options, struct rusage *rusage); }
64 8 STD { int sunos_sys_creat(const char *path, int mode); }
65 9 NOARGS { int sys_link(char *path, char *link); }
66 10 NOARGS { int sys_unlink(char *path); }
67 11 STD { int sunos_sys_execv(const char *path, char **argp); }
68 12 NOARGS { int sys_chdir(char *path); }
69 13 OBSOL old_time
70 14 STD { int sunos_sys_mknod(const char *path, int mode, \
71 int dev); }
72 15 NOARGS { int sys_chmod(char *path, int mode); }
73 16 NOARGS { int sys_chown(char *path, int uid, int gid); }
74 17 NOARGS { int sys_obreak(char *nsize); } break
75 18 OBSOL old_stat
76 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); }
77 20 NOARGS { pid_t sys_getpid_with_ppid(void); }
78 21 OBSOL sunos_old_mount
79 22 UNIMPL System V umount
80 23 NOARGS { int sys_setuid(uid_t uid); }
81 24 NOARGS { uid_t sys_getuid_with_euid(void); }
82 25 STD { int sunos_sys_stime(time_t *tp); }
83 26 STD { long sunos_sys_ptrace(int req, pid_t pid, \
84 void *addr, int data, char *addr2); }
85 27 UNIMPL old_sunos_alarm
86 28 UNIMPL old_sunos_fstat
87 29 UNIMPL old_sunos_pause
88 30 UNIMPL old_sunos_utime
89 31 UNIMPL old_sunos_stty
90 32 UNIMPL old_sunos_gtty
91 33 NOARGS { int sys_access(const char *path, int flags); }
92 34 UNIMPL old_sunos_nice
93 35 UNIMPL old_sunos_ftime
94 36 NOARGS { int sys_sync(void); }
95 37 NOARGS { int sys_kill(int pid, int signum); }
96 38 NOARGS { int compat_43_sys_stat(const char *path, \
97 struct stat43 *ub); }
98 39 UNIMPL sunos_setpgrp
99 40 NOARGS { int compat_43_sys_lstat(const char *path, \
100 struct stat43 *ub); }
101 41 NOARGS { int sys_dup(u_int fd); }
102 42 NOARGS { int sys_pipe(void); }
103 43 UNIMPL sunos_times
104 44 NOARGS { int sys_profil(void *samples, u_int size, \
105 u_int offset, u_int scale); }
106 45 UNIMPL
107 46 NOARGS { int sys_setgid(uid_t gid); }
108 47 NOARGS { gid_t sys_getgid_with_egid(void); }
109 48 UNIMPL sunos_ssig
110 49 UNIMPL reserved for USG
111 50 UNIMPL reserved for USG
112 51 NOARGS { int sys_acct(char *path); }
113 52 UNIMPL
114 53 STD { int sunos_sys_mctl(void *addr, int len, int func, \
115 void *arg); }
116 54 STD { int sunos_sys_ioctl(int fd, u_long com, \
117 void *data); }
118 55 STD { int sunos_sys_reboot(int howto, char *bootstr); }
119 56 OBSOL sunos_owait3
120 57 NOARGS { int sys_symlink(char *path, char *link); }
121 58 NOARGS { int sys_readlink(char *path, char *buf, int count); }
122 59 STD { int sunos_sys_execve(const char *path, char **argp, \
123 char **envp); }
124 60 NOARGS { int sys_umask(int newmask); }
125 61 NOARGS { int sys_chroot(char *path); }
126 62 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); }
127 63 UNIMPL
128 64 NOARGS { int compat_43_sys_getpagesize(void); }
129 65 STD { int sunos_sys_omsync(void *addr, size_t len, \
130 int flags); }
131 66 NOARGS { int sys_vfork(void); }
132 67 OBSOL vread
133 68 OBSOL vwrite
134 69 NOARGS { int sys_sbrk(intptr_t incr); }
135 70 NOARGS { int sys_sstk(int incr); }
136 71 STD { void *sunos_sys_mmap(void *addr, size_t len, \
137 int prot, int flags, int fd, long pos); }
138 72 NOARGS { int sys_ovadvise(int anom); } vadvise
139 73 NOARGS { int sys_munmap(void *addr, size_t len); }
140 74 NOARGS { int sys_mprotect(void *addr, size_t len, \
141 int prot); }
142 75 NOARGS { int sys_madvise(void *addr, size_t len, \
143 int behav); }
144 76 STD { int sunos_sys_vhangup(void); }
145 77 UNIMPL vlimit
146 78 NOARGS { int sys_mincore(void *addr, size_t len, \
147 char *vec); }
148 79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
149 80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
150 81 NOARGS { int sys_getpgrp(void); }
151 82 STD { int sunos_sys_setpgrp(int pid, int pgid); }
152 83 NOARGS { int sys_setitimer(u_int which, \
153 struct itimerval *itv, struct itimerval *oitv); }
154 84 UNIMPL { int sunos_sys_wait(void); }
155 85 NOARGS { int compat_12_sys_swapon(char *name); }
156 86 NOARGS { int sys_getitimer(u_int which, \
157 struct itimerval *itv); }
158 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
159 u_int len); }
160 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
161 u_int len); }
162 89 NOARGS { int compat_43_sys_getdtablesize(void); }
163 90 NOARGS { int sys_dup2(u_int from, u_int to); }
164 91 UNIMPL getdopt
165 92 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); }
166 93 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \
167 fd_set *ex, struct timeval *tv); }
168 94 UNIMPL setdopt
169 95 NOARGS { int sys_fsync(int fd); }
170 96 NOARGS { int sys_setpriority(int which, int who, int prio); }
171 97 STD { int sunos_sys_socket(int domain, int type, int protocol); }
172 98 NOARGS { int sys_connect(int s, void *name, int namelen); }
173 99 NOARGS { int compat_43_sys_accept(int s, void *name, \
174 int *anamelen); }
175 100 NOARGS { int sys_getpriority(int which, int who); }
176 101 NOARGS { int compat_43_sys_send(int s, void *buf, int len, \
177 int flags); }
178 102 NOARGS { int compat_43_sys_recv(int s, void *buf, int len, \
179 int flags); }
180 103 UNIMPL old socketaddr
181 104 NOARGS { int sys_bind(int s, void *name, int namelen); }
182 105 STD { int sunos_sys_setsockopt(int s, int level, int name, \
183 void *val, int valsize); }
184 106 NOARGS { int sys_listen(int s, int backlog); }
185 107 UNIMPL vtimes
186 108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \
187 struct sigvec *osv); }
188 109 NOARGS { int compat_43_sys_sigblock(int mask); }
189 110 NOARGS { int compat_43_sys_sigsetmask(int mask); }
190 111 STD { int sunos_sys_sigsuspend(int mask); }
191 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
192 struct sigstack *oss); }
193 113 NOARGS { int compat_43_sys_recvmsg(int s, \
194 struct omsghdr *msg, int flags); }
195 114 NOARGS { int compat_43_sys_sendmsg(int s, void *msg, \
196 int flags); }
197 115 OBSOL vtrace
198 116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
199 struct timezone *tzp); }
200 117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
201 118 NOARGS { int sys_getsockopt(int s, int level, int name, \
202 void *val, int *avalsize); }
203 119 UNIMPL
204 120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \
205 u_int iovcnt); }
206 121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \
207 u_int iovcnt); }
208 122 NOARGS { int sys_settimeofday(struct timeval *tv, \
209 struct timezone *tzp); }
210 123 NOARGS { int sys_fchown(int fd, int uid, int gid); }
211 124 NOARGS { int sys_fchmod(int fd, int mode); }
212 125 NOARGS { int compat_43_sys_recvfrom(int s, void *buf, \
213 size_t len, int flags, void *from, \
214 int *fromlenaddr); }
215 126 NOARGS { int sys_setreuid(int ruid, int euid); }
216 127 NOARGS { int sys_setregid(int rgid, int egid); }
217 128 NOARGS { int sys_rename(char *from, char *to); }
218 129 NOARGS { int compat_43_sys_truncate(char *path, long length); }
219 130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
220 131 NOARGS { int sys_flock(int fd, int how); }
221 132 UNIMPL
222 133 NOARGS { int sys_sendto(int s, void *buf, size_t len, \
223 int flags, void *to, int tolen); }
224 134 NOARGS { int sys_shutdown(int s, int how); }
225 135 STD { int sunos_sys_socketpair(int domain, int type, \
226 int protocol, int *rsv); }
227 136 NOARGS { int sys_mkdir(char *path, int mode); }
228 137 NOARGS { int sys_rmdir(char *path); }
229 138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); }
230 139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); }
231 140 NOARGS { int sys_adjtime(struct timeval *delta, \
232 struct timeval *olddelta); }
233 141 NOARGS { int compat_43_sys_getpeername(int fdes, void *asa, \
234 int *alen); }
235 142 NOARGS { int compat_43_sys_gethostid(void); }
236 143 UNIMPL old sethostid
237 144 STD { int sunos_sys_getrlimit(u_int which, \
238 struct orlimit *rlp); }
239 145 STD { int sunos_sys_setrlimit(u_int which, \
240 struct orlimit *rlp); }
241 146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); }
242 147 UNIMPL
243 148 UNIMPL
244 149 UNIMPL
245 150 NOARGS { int compat_43_sys_getsockname(int fdes, void *asa, \
246 int *alen); }
247 151 UNIMPL getmsg
248 152 UNIMPL putmsg
249 153 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
250 int timeout); }
251 154 UNIMPL
252 #ifdef NFSSERVER
253 155 STD { int sunos_sys_nfssvc(int fd); }
254 #else
255 155 UNIMPL
256 #endif
257 156 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \
258 u_int count, long *basep); }
259 157 STD { int sunos_sys_statfs(const char *path, \
260 struct sunos_statfs *buf); }
261 158 STD { int sunos_sys_fstatfs(int fd, \
262 struct sunos_statfs *buf); }
263 159 STD { int sunos_sys_unmount(char *path); }
264 #ifdef NFS
265 160 NOARGS { int async_daemon(void); }
266 161 NOARGS { int compat_30_sys_getfh(char *fname, fhandle_t *fhp); }
267 #else
268 160 UNIMPL
269 161 UNIMPL
270 #endif
271 162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
272 int len); }
273 163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
274 int len); }
275 164 UNIMPL rtschedule
276 165 STD { int sunos_sys_quotactl(int cmd, char *special, \
277 int uid, void *addr); }
278 166 STD { int sunos_sys_exportfs(char *path, char *ex); }
279 167 STD { int sunos_sys_mount(char *type, char *dir, \
280 int flags, void *data); }
281 168 STD { int sunos_sys_ustat(int dev, \
282 struct sunos_ustat *buf); }
283 #ifdef SYSVSEM
284 169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \
285 int a4, int a5); }
286 #else
287 169 UNIMPL semsys
288 #endif
289 #ifdef SYSVMSG
290 170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \
291 int a4, int a5, int a6); }
292 #else
293 170 UNIMPL msgsys
294 #endif
295 #ifdef SYSVSHM
296 171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \
297 int a4); }
298 #else
299 171 UNIMPL shmsys
300 #endif
301 172 STD { int sunos_sys_auditsys(char *record); }
302 173 UNIMPL rfssys
303 174 STD { int sunos_sys_getdents(int fd, char *buf, \
304 int nbytes); }
305 175 NOARGS { int sys_setsid(void); }
306 176 NOARGS { int sys_fchdir(int fd); }
307 177 NOARGS { int sys_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 sunos_sys_sigpending(int *mask); }
314 184 UNIMPL
315 185 NOARGS { int sys_setpgid(int pid, int pgid); }
316 186 NOARGS { long sys_pathconf(char *path, int name); }
317 187 NOARGS { long sys_fpathconf(int fd, int name); }
318 188 STD { int sunos_sys_sysconf(int name); }
319 189 STD { int sunos_sys_uname(struct sunos_utsname *name); }
Cache object: 4f9594945961e1bdcec3dc088ea3292d
|