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