syscalls.master revision 1.52 1 1.52 njoly $NetBSD: syscalls.master,v 1.52 2013/11/07 19:37:19 njoly 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.24 thorpej ; #include's are copied to the syscall names and switch definition files only.
33 1.25 thorpej
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.46 hans #include <sys/sched.h>
39 1.6 dean #include <sys/syscallargs.h>
40 1.6 dean #include <compat/ultrix/ultrix_syscallargs.h>
41 1.35 mycroft
42 1.35 mycroft %%
43 1.6 dean
44 1.49 pooka 0 NOARGS { int|sys||nosys(void); } syscall
45 1.49 pooka 1 NOARGS { int|sys||exit(int rval); }
46 1.49 pooka 2 NOARGS { int|sys||fork(void); }
47 1.49 pooka 3 NOARGS { int|sys||read(int fd, char *buf, u_int nbyte); }
48 1.49 pooka 4 NOARGS { int|sys||write(int fd, char *buf, u_int nbyte); }
49 1.49 pooka 5 STD { int|ultrix_sys||open(const char *path, int flags, \
50 1.11 mycroft int mode); }
51 1.49 pooka 6 NOARGS { int|sys||close(int fd); }
52 1.49 pooka 7 NOARGS { int|compat_43_sys||wait(void); } owait
53 1.49 pooka 8 STD { int|ultrix_sys||creat(const char *path, int mode); }
54 1.49 pooka 9 NOARGS { int|sys||link(char *path, char *link); }
55 1.49 pooka 10 NOARGS { int|sys||unlink(char *path); }
56 1.49 pooka 11 STD { int|ultrix_sys||execv(const char *path, char **argp); }
57 1.49 pooka 12 NOARGS { int|sys||chdir(char *path); }
58 1.11 mycroft 13 OBSOL time
59 1.49 pooka 14 STD { int|ultrix_sys||mknod(const char *path, int mode, \
60 1.30 christos int dev); }
61 1.49 pooka 15 NOARGS { int|sys||chmod(char *path, int mode); }
62 1.49 pooka 16 NOARGS { int|sys||__posix_chown(char *path, int uid, int gid); }
63 1.49 pooka 17 NOARGS { int|sys||obreak(char *nsize); } break
64 1.11 mycroft 18 OBSOL stat
65 1.49 pooka 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \
66 1.11 mycroft int whence); }
67 1.49 pooka 20 NOARGS { pid_t|sys||getpid(void); }
68 1.49 pooka 21 STD { int|ultrix_sys||mount(char *special, char *dir, \
69 1.44 christos int rdonly, int type, void *data); }
70 1.11 mycroft 22 OBSOL sysV_unmount
71 1.49 pooka 23 NOARGS { int|sys||setuid(uid_t uid); }
72 1.49 pooka 24 NOARGS { uid_t|sys||getuid(void); }
73 1.6 dean 25 OBSOL v7 stime
74 1.6 dean 26 OBSOL v7 ptrace
75 1.6 dean 27 OBSOL v7 alarm
76 1.6 dean 28 OBSOL v7 fstat
77 1.6 dean 29 OBSOL v7 pause
78 1.6 dean 30 OBSOL v7 utime
79 1.6 dean 31 OBSOL v7 stty
80 1.6 dean 32 OBSOL v7 gtty
81 1.49 pooka 33 STD { int|ultrix_sys||access(const char *path, int flags); }
82 1.6 dean 34 OBSOL v7 nice
83 1.6 dean 35 OBSOL v7 ftime
84 1.49 pooka 36 NOARGS { int|sys||sync(void); }
85 1.49 pooka 37 NOARGS { int|sys||kill(int pid, int signum); }
86 1.49 pooka 38 STD { int|ultrix_sys||stat(const char *path, \
87 1.22 christos struct stat43 *ub); } stat43
88 1.6 dean 39 OBSOL v7 setpgrp
89 1.49 pooka 40 STD { int|ultrix_sys||lstat(const char *path, \
90 1.22 christos struct stat43 *ub); } lstat43
91 1.52 njoly 41 NOARGS { int|sys||dup(int fd); }
92 1.49 pooka 42 NOARGS { int|sys||pipe(void); }
93 1.6 dean 43 OBSOL v7 times
94 1.49 pooka 44 NOARGS { int|sys||profil(void *samples, u_int size, \
95 1.6 dean u_int offset, u_int scale); }
96 1.11 mycroft 45 UNIMPL
97 1.6 dean 46 OBSOL v7 setgid
98 1.49 pooka 47 NOARGS { gid_t|sys||getgid(void); }
99 1.11 mycroft 48 UNIMPL ssig
100 1.6 dean 49 UNIMPL reserved for USG
101 1.6 dean 50 UNIMPL reserved for USG
102 1.49 pooka 51 NOARGS { int|sys||acct(char *path); }
103 1.11 mycroft 52 UNIMPL
104 1.9 mellon 53 UNIMPL syslock
105 1.49 pooka 54 STD { int|ultrix_sys||ioctl(int fd, u_long com, void *data); }
106 1.49 pooka 55 NOARGS { int|sys||reboot(int opt); }
107 1.9 mellon 56 UNIMPL v7 mpxchan
108 1.49 pooka 57 NOARGS { int|sys||symlink(char *path, char *link); }
109 1.49 pooka 58 NOARGS { int|sys||readlink(char *path, char *buf, int count); }
110 1.49 pooka 59 STD { int|ultrix_sys||execve(const char *path, char **argp, \
111 1.11 mycroft char **envp); }
112 1.49 pooka 60 NOARGS { int|sys||umask(int newmask); }
113 1.49 pooka 61 NOARGS { int|sys||chroot(char *path); }
114 1.49 pooka 62 NOARGS { int|compat_43_sys||fstat(int fd, struct stat43 *sb); }
115 1.11 mycroft 63 UNIMPL
116 1.49 pooka 64 NOARGS { int|compat_43_sys||getpagesize(void); }
117 1.6 dean 65 UNIMPL mremap
118 1.49 pooka 66 NOARGS { int|sys||vfork(void); }
119 1.6 dean 67 OBSOL vread
120 1.6 dean 68 OBSOL vwrite
121 1.49 pooka 69 NOARGS { int|sys||sbrk(intptr_t incr); }
122 1.49 pooka 70 NOARGS { int|sys||sstk(int incr); }
123 1.49 pooka 71 STD { int|ultrix_sys||mmap(void *addr, size_t len, \
124 1.11 mycroft int prot, u_int flags, int fd, long pos); }
125 1.49 pooka 72 NOARGS { int|sys||ovadvise(int anom); } vadvise
126 1.49 pooka 73 NOARGS { int|sys||munmap(void *addr, size_t len); }
127 1.49 pooka 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \
128 1.11 mycroft int prot); }
129 1.49 pooka 75 NOARGS { int|sys||madvise(void *addr, size_t len, \
130 1.11 mycroft int behav); }
131 1.49 pooka 76 STD { int|ultrix_sys||vhangup(void); }
132 1.6 dean 77 UNIMPL old vlimit
133 1.49 pooka 78 NOARGS { int|sys||mincore(void *addr, int len, char *vec); }
134 1.49 pooka 79 NOARGS { int|sys||getgroups(u_int gidsetsize, gid_t *gidset); }
135 1.49 pooka 80 NOARGS { int|sys||setgroups(u_int gidsetsize, gid_t *gidset); }
136 1.49 pooka 81 NOARGS { int|sys||getpgrp(void); }
137 1.49 pooka 82 STD { int|ultrix_sys||setpgrp(int pid, int pgid); }
138 1.50 he 83 NOARGS { int|sys|50|setitimer(u_int which, \
139 1.50 he struct itimerval50 *itv, struct itimerval50 *oitv); }
140 1.49 pooka 84 STD { int|ultrix_sys||wait3(int *status, int options, \
141 1.50 he struct rusage50 *rusage);}
142 1.49 pooka 85 NOARGS { int|compat_12_sys||swapon(char *name); }
143 1.50 he 86 NOARGS { int|sys|50|getitimer(u_int which, \
144 1.50 he struct itimerval50 *itv); }
145 1.49 pooka 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \
146 1.11 mycroft u_int len); }
147 1.49 pooka 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \
148 1.11 mycroft u_int len); }
149 1.49 pooka 89 NOARGS { int|compat_43_sys||getdtablesize(void); }
150 1.52 njoly 90 NOARGS { int|sys||dup2(int from, int to); }
151 1.6 dean 91 UNIMPL getdopt
152 1.49 pooka 92 STD { int|ultrix_sys||fcntl(int fd, int cmd, void *arg); }
153 1.49 pooka 93 STD { int|ultrix_sys||select(u_int nd, fd_set *in, fd_set *ou, \
154 1.50 he fd_set *ex, struct timeval50 *tv); }
155 1.6 dean 94 UNIMPL setdopt
156 1.49 pooka 95 NOARGS { int|sys||fsync(int fd); }
157 1.49 pooka 96 NOARGS { int|sys||setpriority(int which, int who, int prio); }
158 1.49 pooka 97 NOARGS { int|compat_30_sys||socket(int domain, int type, int protocol); }
159 1.49 pooka 98 NOARGS { int|sys||connect(int s, void *name, int namelen); }
160 1.49 pooka 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \
161 1.11 mycroft int *anamelen); }
162 1.49 pooka 100 NOARGS { int|sys||getpriority(int which, int who); }
163 1.49 pooka 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \
164 1.11 mycroft int flags); }
165 1.49 pooka 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \
166 1.11 mycroft int flags); }
167 1.49 pooka 103 STD { int|ultrix_sys||sigreturn(struct sigcontext * \
168 1.26 drochner sigcntxp); }
169 1.49 pooka 104 NOARGS { int|sys||bind(int s, void *name, int namelen); }
170 1.49 pooka 105 STD { int|ultrix_sys||setsockopt(int s, int level, \
171 1.44 christos int name, void *val, int valsize); }
172 1.49 pooka 106 NOARGS { int|sys||listen(int s, int backlog); }
173 1.6 dean 107 UNIMPL vtimes
174 1.49 pooka 108 STD { int|ultrix_sys||sigvec(int signum, \
175 1.11 mycroft struct sigvec *nsv, struct sigvec *osv); }
176 1.49 pooka 109 NOARGS { int|compat_43_sys||sigblock(int mask); }
177 1.49 pooka 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); }
178 1.49 pooka 111 STD { int|ultrix_sys||sigsuspend(int mask); }
179 1.49 pooka 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \
180 1.6 dean struct sigstack *oss); }
181 1.49 pooka 113 NOARGS { int|compat_43_sys||recvmsg(int s, \
182 1.11 mycroft struct omsghdr *msg, int flags); }
183 1.49 pooka 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \
184 1.11 mycroft int flags); }
185 1.6 dean 115 OBSOL vtrace
186 1.50 he 116 NOARGS { int|sys|50|gettimeofday(struct timeval50 *tp, \
187 1.6 dean struct timezone *tzp); }
188 1.50 he 117 NOARGS { int|sys|50|getrusage(int who, struct rusage50 *rusage); }
189 1.49 pooka 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \
190 1.44 christos void *val, int *avalsize); }
191 1.6 dean 119 UNIMPL resuba
192 1.49 pooka 120 NOARGS { int|sys||readv(int fd, struct iovec *iovp, \
193 1.6 dean u_int iovcnt); }
194 1.49 pooka 121 NOARGS { int|sys||writev(int fd, struct iovec *iovp, \
195 1.11 mycroft u_int iovcnt); }
196 1.50 he 122 NOARGS { int|sys|50|settimeofday(struct timeval50 *tv, \
197 1.6 dean struct timezone *tzp); }
198 1.49 pooka 123 NOARGS { int|sys||__posix_fchown(int fd, int uid, int gid); }
199 1.49 pooka 124 NOARGS { int|sys||fchmod(int fd, int mode); }
200 1.49 pooka 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \
201 1.44 christos size_t len, int flags, void *from, \
202 1.11 mycroft int *fromlenaddr); }
203 1.49 pooka 126 NOARGS { int|sys||setreuid(int ruid, int euid); }
204 1.49 pooka 127 NOARGS { int|sys||setregid(int rgid, int egid); }
205 1.49 pooka 128 NOARGS { int|sys||rename(char *from, char *to); }
206 1.49 pooka 129 NOARGS { int|compat_43_sys||truncate(char *path, long length); }
207 1.49 pooka 130 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); }
208 1.49 pooka 131 NOARGS { int|sys||flock(int fd, int how); }
209 1.11 mycroft 132 UNIMPL
210 1.49 pooka 133 NOARGS { int|sys||sendto(int s, void *buf, size_t len, \
211 1.44 christos int flags, void *to, int tolen); }
212 1.49 pooka 134 NOARGS { int|sys||shutdown(int s, int how); }
213 1.49 pooka 135 NOARGS { int|sys||socketpair(int domain, int type, \
214 1.11 mycroft int protocol, int *rsv); }
215 1.49 pooka 136 NOARGS { int|sys||mkdir(char *path, int mode); }
216 1.49 pooka 137 NOARGS { int|sys||rmdir(char *path); }
217 1.50 he 138 NOARGS { int|sys|50|utimes(char *path, struct timeval50 *tptr); }
218 1.49 pooka 139 STD { int|ultrix_sys||sigcleanup(struct sigcontext *sigcntxp); }
219 1.50 he 140 NOARGS { int|sys|50|adjtime(struct timeval50 *delta, \
220 1.50 he struct timeval50 *olddelta); }
221 1.49 pooka 141 NOARGS { int|compat_43_sys||getpeername(int fdes, void *asa, \
222 1.11 mycroft int *alen); }
223 1.49 pooka 142 NOARGS { int|compat_43_sys||gethostid(void); }
224 1.6 dean 143 UNIMPL old sethostid
225 1.49 pooka 144 NOARGS { int|compat_43_sys||getrlimit(u_int which, \
226 1.11 mycroft struct orlimit *rlp); }
227 1.49 pooka 145 NOARGS { int|compat_43_sys||setrlimit(u_int which, \
228 1.11 mycroft struct orlimit *rlp); }
229 1.49 pooka 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); }
230 1.11 mycroft 147 UNIMPL
231 1.6 dean 148 UNIMPL setquota
232 1.6 dean 149 UNIMPL quota /* needs to be nullop to boot on Ultrix root partition*/
233 1.49 pooka 150 NOARGS { int|compat_43_sys||getsockname(int fdes, void *asa, \
234 1.11 mycroft int *alen); }
235 1.6 dean 151 UNIMPL sysmips /* 4 args */
236 1.20 jonathan #ifdef __mips
237 1.49 pooka 152 STD { int|ultrix_sys||cacheflush(char *addr, int nbytes, \
238 1.20 jonathan int whichcache); }
239 1.49 pooka 153 STD { int|ultrix_sys||cachectl(char *addr, int nbytes, int cacheop); }
240 1.20 jonathan #else /* !mips */
241 1.20 jonathan 152 UNIMPL
242 1.20 jonathan 153 UNIMPL
243 1.20 jonathan #endif /* !mips */
244 1.11 mycroft 154 UNIMPL
245 1.6 dean 155 UNIMPL atomic_op
246 1.11 mycroft 156 UNIMPL
247 1.11 mycroft 157 UNIMPL
248 1.51 pooka 158 UNIMPL ultrix_sys_nfssvc
249 1.49 pooka 159 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \
250 1.11 mycroft u_int count, long *basep); }
251 1.49 pooka 160 STD { int|ultrix_sys||statfs(const char *path, \
252 1.11 mycroft struct ultrix_statfs *buf); }
253 1.49 pooka 161 STD { int|ultrix_sys||fstatfs(int fd, \
254 1.11 mycroft struct ultrix_statfs *buf); }
255 1.11 mycroft 162 UNIMPL umount
256 1.51 pooka 163 UNIMPL async_daemon
257 1.49 pooka 164 NOARGS { int|compat_30_sys||getfh(char *fname, fhandle_t *fhp); }
258 1.49 pooka 165 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \
259 1.11 mycroft int len); }
260 1.49 pooka 166 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \
261 1.11 mycroft int len); }
262 1.39 perry 167 UNIMPL
263 1.49 pooka 168 STD { int|ultrix_sys||quotactl(int cmd, char *special, \
264 1.44 christos int uid, void *addr); }
265 1.49 pooka 169 STD { int|ultrix_sys||exportfs(char *path, char *ex); }
266 1.48 pooka 170 UNIMPL ultrix_sys_mount
267 1.1 glass 171 UNIMPL 4 hdwconf
268 1.11 mycroft 172 UNIMPL msgctl
269 1.11 mycroft 173 UNIMPL msgget
270 1.11 mycroft 174 UNIMPL msgrcv
271 1.11 mycroft 175 UNIMPL msgsnd
272 1.11 mycroft 176 UNIMPL semctl
273 1.11 mycroft 177 UNIMPL semget
274 1.11 mycroft 178 UNIMPL semop
275 1.49 pooka 179 STD { int|ultrix_sys||uname(struct ultrix_utsname *name); }
276 1.49 pooka 180 STD { int|ultrix_sys||shmsys(u_int shmop, \
277 1.19 jonathan u_int a2, u_int a3, u_int a4); }
278 1.1 glass 181 UNIMPL 0 plock
279 1.1 glass 182 UNIMPL 0 lockf
280 1.49 pooka 183 STD { int|ultrix_sys||ustat(int dev, \
281 1.11 mycroft struct ultrix_ustat *buf); }
282 1.49 pooka 184 STD { int|ultrix_sys||getmnt(int *start, \
283 1.12 jonathan struct ultrix_fs_data *buf, \
284 1.12 jonathan int bufsize, int mode, char *path); }
285 1.9 mellon 185 UNIMPL notdef
286 1.9 mellon 186 UNIMPL notdef
287 1.49 pooka 187 STD { int|ultrix_sys||sigpending(int *mask); }
288 1.49 pooka 188 NOARGS { int|sys||setsid(void); }
289 1.49 pooka 189 STD { int|ultrix_sys||waitpid(int pid, int *status, \
290 1.11 mycroft int options); }
291 1.11 mycroft 190 UNIMPL
292 1.11 mycroft 191 UNIMPL
293 1.11 mycroft 192 UNIMPL
294 1.11 mycroft 193 UNIMPL
295 1.11 mycroft 194 UNIMPL
296 1.11 mycroft 195 UNIMPL
297 1.11 mycroft 196 UNIMPL
298 1.11 mycroft 197 UNIMPL
299 1.11 mycroft 198 UNIMPL
300 1.11 mycroft 199 UNIMPL
301 1.11 mycroft 200 UNIMPL
302 1.11 mycroft 201 UNIMPL
303 1.11 mycroft 202 UNIMPL
304 1.11 mycroft 203 UNIMPL
305 1.11 mycroft 204 UNIMPL
306 1.11 mycroft 205 UNIMPL
307 1.11 mycroft 206 UNIMPL
308 1.11 mycroft 207 UNIMPL
309 1.11 mycroft 208 UNIMPL
310 1.11 mycroft 209 UNIMPL
311 1.11 mycroft 210 UNIMPL
312 1.11 mycroft 211 UNIMPL
313 1.11 mycroft 212 UNIMPL
314 1.11 mycroft 213 UNIMPL
315 1.11 mycroft 214 UNIMPL
316 1.11 mycroft 215 UNIMPL
317 1.11 mycroft 216 UNIMPL
318 1.11 mycroft 217 UNIMPL
319 1.11 mycroft 218 UNIMPL
320 1.11 mycroft 219 UNIMPL
321 1.11 mycroft 220 UNIMPL
322 1.11 mycroft 221 UNIMPL
323 1.11 mycroft 222 UNIMPL
324 1.11 mycroft 223 UNIMPL
325 1.11 mycroft 224 UNIMPL
326 1.11 mycroft 225 UNIMPL
327 1.11 mycroft 226 UNIMPL
328 1.11 mycroft 227 UNIMPL
329 1.11 mycroft 228 UNIMPL
330 1.11 mycroft 229 UNIMPL
331 1.11 mycroft 230 UNIMPL
332 1.11 mycroft 231 UNIMPL
333 1.11 mycroft 232 UNIMPL
334 1.6 dean 233 UNIMPL 1 utc_gettime
335 1.6 dean 234 UNIMPL 2 utc_adjtime
336 1.11 mycroft 235 UNIMPL
337 1.11 mycroft 236 UNIMPL
338 1.11 mycroft 237 UNIMPL
339 1.11 mycroft 238 UNIMPL
340 1.11 mycroft 239 UNIMPL
341 1.11 mycroft 240 UNIMPL
342 1.11 mycroft 241 UNIMPL
343 1.11 mycroft 242 UNIMPL
344 1.11 mycroft 243 UNIMPL
345 1.11 mycroft 244 UNIMPL
346 1.11 mycroft 245 UNIMPL
347 1.11 mycroft 246 UNIMPL
348 1.11 mycroft 247 UNIMPL
349 1.11 mycroft 248 UNIMPL
350 1.11 mycroft 249 UNIMPL
351 1.11 mycroft 250 UNIMPL
352 1.11 mycroft 251 UNIMPL
353 1.6 dean 252 UNIMPL audctl /*Make no-op for installation on Ultrix rootpartition?*/
354 1.6 dean 253 UNIMPL audgen /*Make no-op for installation on Ultrix rootpartition?*/
355 1.6 dean 254 UNIMPL startcpu
356 1.6 dean 255 UNIMPL stopcpu
357 1.49 pooka 256 STD { int|ultrix_sys||getsysinfo(unsigned op, char *buffer, \
358 1.11 mycroft unsigned nbytes, int *start, char *arg); }
359 1.49 pooka 257 STD { int|ultrix_sys||setsysinfo(unsigned op, char *buffer, \
360 1.11 mycroft unsigned nbytes, unsigned arg, unsigned flag); }
361 1.6 dean
362