syscalls.master revision 1.25 1 $NetBSD: syscalls.master,v 1.25 1998/06/25 22:19:50 thorpej Exp $
2
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4
5 ; NetBSD COMPAT_ULTRIX 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 #include "opt_nfsserver.h"
35
36 #include "fs_nfs.h"
37
38 #include <sys/param.h>
39 #include <sys/systm.h>
40 #include <sys/signal.h>
41 #include <sys/mount.h>
42 #include <sys/syscallargs.h>
43 #include <compat/ultrix/ultrix_syscallargs.h>
44
45 0 NOARGS { int sys_nosys(void); } syscall
46 1 NOARGS { int sys_exit(int rval); }
47 2 NOARGS { int sys_fork(void); }
48 3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
49 4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
50 5 STD { int ultrix_sys_open(char *path, int flags, \
51 int mode); }
52 6 NOARGS { int sys_close(int fd); }
53 7 NOARGS { int compat_43_sys_wait(void); } owait
54 8 STD { int ultrix_sys_creat(char *path, int mode); }
55 9 NOARGS { int sys_link(char *path, char *link); }
56 10 NOARGS { int sys_unlink(char *path); }
57 11 STD { int ultrix_sys_execv(char *path, char **argp); }
58 12 NOARGS { int sys_chdir(char *path); }
59 13 OBSOL time
60 14 STD { int ultrix_sys_mknod(char *path, int mode, int dev); }
61 15 NOARGS { int sys_chmod(char *path, int mode); }
62 16 NOARGS { int sys___posix_chown(char *path, int uid, int gid); }
63 17 NOARGS { int sys_obreak(char *nsize); } break
64 18 OBSOL stat
65 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
66 int whence); }
67 20 NOARGS { pid_t sys_getpid(void); }
68 21 STD { int ultrix_sys_mount(char *special, char *dir, \
69 int rdonly, int type, caddr_t data); }
70 22 OBSOL sysV_unmount
71 23 NOARGS { int sys_setuid(uid_t uid); }
72 24 NOARGS { uid_t sys_getuid(void); }
73 25 OBSOL v7 stime
74 26 OBSOL v7 ptrace
75 27 OBSOL v7 alarm
76 28 OBSOL v7 fstat
77 29 OBSOL v7 pause
78 30 OBSOL v7 utime
79 31 OBSOL v7 stty
80 32 OBSOL v7 gtty
81 33 STD { int ultrix_sys_access(char *path, int flags); }
82 34 OBSOL v7 nice
83 35 OBSOL v7 ftime
84 36 NOARGS { int sys_sync(void); }
85 37 NOARGS { int sys_kill(int pid, int signum); }
86 38 STD { int ultrix_sys_stat(char *path, \
87 struct stat43 *ub); } stat43
88 39 OBSOL v7 setpgrp
89 40 STD { int ultrix_sys_lstat(char *path, \
90 struct stat43 *ub); } lstat43
91 41 NOARGS { int sys_dup(u_int fd); }
92 42 NOARGS { int sys_pipe(void); }
93 43 OBSOL v7 times
94 44 NOARGS { int sys_profil(caddr_t samples, u_int size, \
95 u_int offset, u_int scale); }
96 45 UNIMPL
97 46 OBSOL v7 setgid
98 47 NOARGS { gid_t sys_getgid(void); }
99 48 UNIMPL ssig
100 49 UNIMPL reserved for USG
101 50 UNIMPL reserved for USG
102 51 NOARGS { int sys_acct(char *path); }
103 52 UNIMPL
104 53 UNIMPL syslock
105 54 STD { int ultrix_sys_ioctl(int fd, u_long com, caddr_t data); }
106 55 NOARGS { int sys_reboot(int opt); }
107 56 UNIMPL v7 mpxchan
108 57 NOARGS { int sys_symlink(char *path, char *link); }
109 58 NOARGS { int sys_readlink(char *path, char *buf, int count); }
110 59 STD { int ultrix_sys_execve(char *path, char **argp, \
111 char **envp); }
112 60 NOARGS { int sys_umask(int newmask); }
113 61 NOARGS { int sys_chroot(char *path); }
114 62 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); }
115 63 UNIMPL
116 64 NOARGS { int compat_43_sys_getpagesize(void); }
117 65 UNIMPL mremap
118 66 NOARGS { int sys_vfork(void); }
119 67 OBSOL vread
120 68 OBSOL vwrite
121 69 NOARGS { int sys_sbrk(int incr); }
122 70 NOARGS { int sys_sstk(int incr); }
123 71 STD { int ultrix_sys_mmap(caddr_t addr, size_t len, \
124 int prot, u_int flags, int fd, long pos); }
125 72 NOARGS { int sys_ovadvise(int anom); } vadvise
126 73 NOARGS { int sys_munmap(caddr_t addr, size_t len); }
127 74 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \
128 int prot); }
129 75 NOARGS { int sys_madvise(caddr_t addr, size_t len, \
130 int behav); }
131 76 STD { int ultrix_sys_vhangup(void); }
132 77 UNIMPL old vlimit
133 78 NOARGS { int sys_mincore(caddr_t addr, int len, char *vec); }
134 79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
135 80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
136 81 NOARGS { int sys_getpgrp(void); }
137 82 STD { int ultrix_sys_setpgrp(int pid, int pgid); }
138 83 NOARGS { int sys_setitimer(u_int which, \
139 struct itimerval *itv, struct itimerval *oitv); }
140 84 STD { int ultrix_sys_wait3(int *status, int options, \
141 struct rusage *rusage);}
142 85 NOARGS { int compat_12_sys_swapon(char *name); }
143 86 NOARGS { int sys_getitimer(u_int which, \
144 struct itimerval *itv); }
145 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
146 u_int len); }
147 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
148 u_int len); }
149 89 NOARGS { int compat_43_sys_getdtablesize(void); }
150 90 NOARGS { int sys_dup2(u_int from, u_int to); }
151 91 UNIMPL getdopt
152 92 NOARGS { int sys_fcntl(int fd, int cmd, void *arg); }
153 93 STD { int ultrix_sys_select(u_int nd, fd_set *in, fd_set *ou, \
154 fd_set *ex, struct timeval *tv); }
155 94 UNIMPL setdopt
156 95 NOARGS { int sys_fsync(int fd); }
157 96 NOARGS { int sys_setpriority(int which, int who, int prio); }
158 97 NOARGS { int sys_socket(int domain, int type, int protocol); }
159 98 NOARGS { int sys_connect(int s, caddr_t name, int namelen); }
160 99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \
161 int *anamelen); }
162 100 NOARGS { int sys_getpriority(int which, int who); }
163 101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
164 int flags); }
165 102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
166 int flags); }
167 103 NOARGS { int sys_sigreturn(struct sigcontext *sigcntxp); }
168 104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); }
169 105 STD { int ultrix_sys_setsockopt(int s, int level, \
170 int name, caddr_t val, int valsize); }
171 106 NOARGS { int sys_listen(int s, int backlog); }
172 107 UNIMPL vtimes
173 108 NOARGS { int compat_43_sys_sigvec(int signum, \
174 struct sigvec *nsv, struct sigvec *osv); }
175 109 NOARGS { int compat_43_sys_sigblock(int mask); }
176 110 NOARGS { int compat_43_sys_sigsetmask(int mask); }
177 111 NOARGS { int sys_sigsuspend(int mask); }
178 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
179 struct sigstack *oss); }
180 113 NOARGS { int compat_43_sys_recvmsg(int s, \
181 struct omsghdr *msg, int flags); }
182 114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \
183 int flags); }
184 115 OBSOL vtrace
185 116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
186 struct timezone *tzp); }
187 117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
188 118 NOARGS { int sys_getsockopt(int s, int level, int name, \
189 caddr_t val, int *avalsize); }
190 119 UNIMPL resuba
191 120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \
192 u_int iovcnt); }
193 121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \
194 u_int iovcnt); }
195 122 NOARGS { int sys_settimeofday(struct timeval *tv, \
196 struct timezone *tzp); }
197 123 NOARGS { int sys___posix_fchown(int fd, int uid, int gid); }
198 124 NOARGS { int sys_fchmod(int fd, int mode); }
199 125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
200 size_t len, int flags, caddr_t from, \
201 int *fromlenaddr); }
202 126 NOARGS { int sys_setreuid(int ruid, int euid); }
203 127 NOARGS { int sys_setregid(int rgid, int egid); }
204 128 NOARGS { int sys_rename(char *from, char *to); }
205 129 NOARGS { int compat_43_sys_truncate(char *path, long length); }
206 130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
207 131 NOARGS { int sys_flock(int fd, int how); }
208 132 UNIMPL
209 133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \
210 int flags, caddr_t to, int tolen); }
211 134 NOARGS { int sys_shutdown(int s, int how); }
212 135 NOARGS { int sys_socketpair(int domain, int type, \
213 int protocol, int *rsv); }
214 136 NOARGS { int sys_mkdir(char *path, int mode); }
215 137 NOARGS { int sys_rmdir(char *path); }
216 138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); }
217 139 STD { int ultrix_sys_sigcleanup(struct sigcontext *sigcntxp); }
218 140 NOARGS { int sys_adjtime(struct timeval *delta, \
219 struct timeval *olddelta); }
220 141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \
221 int *alen); }
222 142 NOARGS { int compat_43_sys_gethostid(void); }
223 143 UNIMPL old sethostid
224 144 NOARGS { int compat_43_sys_getrlimit(u_int which, \
225 struct orlimit *rlp); }
226 145 NOARGS { int compat_43_sys_setrlimit(u_int which, \
227 struct orlimit *rlp); }
228 146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); }
229 147 UNIMPL
230 148 UNIMPL setquota
231 149 UNIMPL quota /* needs to be nullop to boot on Ultrix root partition*/
232 150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \
233 int *alen); }
234 151 UNIMPL sysmips /* 4 args */
235 #ifdef __mips
236 152 STD { int ultrix_sys_cacheflush(char *addr, int nbytes, \
237 int whichcache); }
238 153 STD { int ultrix_sys_cachectl(char *addr, int nbytes, int cacheop); }
239 #else /* !mips */
240 152 UNIMPL
241 153 UNIMPL
242 #endif /* !mips */
243 154 UNIMPL
244 155 UNIMPL atomic_op
245 156 UNIMPL
246 157 UNIMPL
247 #ifdef NFSSERVER
248 158 STD { int ultrix_sys_nfssvc(int fd); }
249 #else
250 158 UNIMPL
251 #endif
252 159 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \
253 u_int count, long *basep); }
254 160 STD { int ultrix_sys_statfs(char *path, \
255 struct ultrix_statfs *buf); }
256 161 STD { int ultrix_sys_fstatfs(int fd, \
257 struct ultrix_statfs *buf); }
258 162 UNIMPL umount
259 #ifdef NFS
260 163 NOARGS { int async_daemon(void); }
261 164 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); }
262 #else
263 163 UNIMPL async_daemon
264 164 UNIMPL getfh
265 #endif
266 165 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
267 int len); }
268 166 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
269 int len); }
270 167 UNIMPL
271 168 STD { int ultrix_sys_quotactl(int cmd, char *special, \
272 int uid, caddr_t addr); }
273 169 STD { int ultrix_sys_exportfs(char *path, char *ex); }
274 170 UNIMPL { int ultrix_sys_mount(char *special, char *dir, \
275 int rdonly, int type, caddr_t data); }
276 171 UNIMPL 4 hdwconf
277 172 UNIMPL msgctl
278 173 UNIMPL msgget
279 174 UNIMPL msgrcv
280 175 UNIMPL msgsnd
281 176 UNIMPL semctl
282 177 UNIMPL semget
283 178 UNIMPL semop
284 179 STD { int ultrix_sys_uname(struct ultrix_utsname *name); }
285 180 STD { int ultrix_sys_shmsys(u_int shmop, \
286 u_int a2, u_int a3, u_int a4); }
287 181 UNIMPL 0 plock
288 182 UNIMPL 0 lockf
289 183 STD { int ultrix_sys_ustat(int dev, \
290 struct ultrix_ustat *buf); }
291 184 STD { int ultrix_sys_getmnt(int *start, \
292 struct ultrix_fs_data *buf, \
293 int bufsize, int mode, char *path); }
294 185 UNIMPL notdef
295 186 UNIMPL notdef
296 187 STD { int ultrix_sys_sigpending(int *mask); }
297 188 NOARGS { int sys_setsid(void); }
298 189 STD { int ultrix_sys_waitpid(int pid, int *status, \
299 int options); }
300 190 UNIMPL
301 191 UNIMPL
302 192 UNIMPL
303 193 UNIMPL
304 194 UNIMPL
305 195 UNIMPL
306 196 UNIMPL
307 197 UNIMPL
308 198 UNIMPL
309 199 UNIMPL
310 200 UNIMPL
311 201 UNIMPL
312 202 UNIMPL
313 203 UNIMPL
314 204 UNIMPL
315 205 UNIMPL
316 206 UNIMPL
317 207 UNIMPL
318 208 UNIMPL
319 209 UNIMPL
320 210 UNIMPL
321 211 UNIMPL
322 212 UNIMPL
323 213 UNIMPL
324 214 UNIMPL
325 215 UNIMPL
326 216 UNIMPL
327 217 UNIMPL
328 218 UNIMPL
329 219 UNIMPL
330 220 UNIMPL
331 221 UNIMPL
332 222 UNIMPL
333 223 UNIMPL
334 224 UNIMPL
335 225 UNIMPL
336 226 UNIMPL
337 227 UNIMPL
338 228 UNIMPL
339 229 UNIMPL
340 230 UNIMPL
341 231 UNIMPL
342 232 UNIMPL
343 233 UNIMPL 1 utc_gettime
344 234 UNIMPL 2 utc_adjtime
345 235 UNIMPL
346 236 UNIMPL
347 237 UNIMPL
348 238 UNIMPL
349 239 UNIMPL
350 240 UNIMPL
351 241 UNIMPL
352 242 UNIMPL
353 243 UNIMPL
354 244 UNIMPL
355 245 UNIMPL
356 246 UNIMPL
357 247 UNIMPL
358 248 UNIMPL
359 249 UNIMPL
360 250 UNIMPL
361 251 UNIMPL
362 252 UNIMPL audctl /*Make no-op for installation on Ultrix rootpartition?*/
363 253 UNIMPL audgen /*Make no-op for installation on Ultrix rootpartition?*/
364 254 UNIMPL startcpu
365 255 UNIMPL stopcpu
366 256 STD { int ultrix_sys_getsysinfo(unsigned op, char *buffer, \
367 unsigned nbytes, int *start, char *arg); }
368 257 STD { int ultrix_sys_setsysinfo(unsigned op, char *buffer, \
369 unsigned nbytes, unsigned arg, unsigned flag); }
370
371