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