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