1 $NetBSD: syscalls.master,v 1.54 2006/05/29 09:44:51 drochner Exp $
2
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4
5 ; NetBSD COMPAT_SVR4 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 #if defined(_KERNEL_OPT)
35 #include "opt_ntp.h"
36 #include "opt_sysv.h"
37 #endif
38
39 #include <sys/param.h>
40 #include <sys/systm.h>
41 #include <sys/signal.h>
42 #include <sys/mount.h>
43 #include <sys/poll.h>
44 #include <sys/sa.h>
45 #include <sys/syscallargs.h>
46
47 #include <compat/svr4/svr4_types.h>
48 #include <compat/svr4/svr4_time.h>
49 #include <compat/svr4/svr4_signal.h>
50 #include <compat/svr4/svr4_ucontext.h>
51 #include <compat/svr4/svr4_lwp.h>
52 #include <compat/svr4/svr4_syscallargs.h>
53 #include <compat/svr4/svr4_statvfs.h>
54 #include <compat/svr4/svr4_resource.h>
55 #include <compat/svr4/svr4_acl.h>
56 #include <compat/svr4/svr4_schedctl.h>
57 %%
58
59 0 NOARGS { int sys_nosys(void); } syscall
60 1 NOARGS { int sys_exit(int rval); }
61 2 NOARGS { int sys_fork(void); }
62 3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
63 4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
64 5 STD { int svr4_sys_open(const char *path, int flags, \
65 int mode); }
66 6 NOARGS { int sys_close(int fd); }
67 7 STD { int svr4_sys_wait(int *status); }
68 8 STD { int svr4_sys_creat(const char *path, int mode); }
69 9 NOARGS { int sys_link(char *path, char *link); }
70 10 NOARGS { int sys_unlink(char *path); }
71 11 STD { int svr4_sys_execv(const char *path, char **argp); }
72 12 NOARGS { int sys_chdir(char *path); }
73 13 STD { int svr4_sys_time(svr4_time_t *t); }
74 14 STD { int svr4_sys_mknod(const char* path, int mode, \
75 int dev); }
76 15 NOARGS { int sys_chmod(char *path, int mode); }
77 16 NOARGS { int sys___posix_chown(char *path, int uid, \
78 int gid); } chown
79 17 STD { int svr4_sys_break(caddr_t nsize); }
80 18 STD { int svr4_sys_stat(const char* path, \
81 struct svr4_stat* ub); }
82 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
83 int whence); }
84 20 NOARGS MPSAFE { pid_t sys_getpid(void); }
85 21 UNIMPL old_mount
86 22 UNIMPL System V umount
87 23 NOARGS { int sys_setuid(uid_t uid); }
88 24 NOARGS { uid_t sys_getuid_with_euid(void); }
89 25 UNIMPL stime
90 26 UNIMPL ptrace
91 27 STD { int svr4_sys_alarm(unsigned sec); }
92 28 STD { int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
93 29 STD { int svr4_sys_pause(void); }
94 30 STD { int svr4_sys_utime(const char *path, \
95 struct svr4_utimbuf *ubuf); }
96 31 UNIMPL was stty
97 32 UNIMPL was gtty
98 33 STD { int svr4_sys_access(const char *path, int flags); }
99 34 STD { int svr4_sys_nice(int prio); }
100 35 UNIMPL statfs
101 36 NOARGS { int sys_sync(void); }
102 37 STD { int svr4_sys_kill(int pid, int signum); }
103 38 UNIMPL fstatfs
104 39 STD { int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
105 40 UNIMPL xenix
106 41 NOARGS { int sys_dup(u_int fd); }
107 42 NOARGS { int sys_pipe(void); }
108 43 STD { int svr4_sys_times(struct tms *tp); }
109 44 UNIMPL profil
110 45 UNIMPL plock
111 46 NOARGS { int sys_setgid(gid_t gid); }
112 47 NOARGS { gid_t sys_getgid_with_egid(void); }
113 48 STD { int svr4_sys_signal(int signum, svr4_sig_t handler); }
114 #ifdef SYSVMSG
115 49 STD { int svr4_sys_msgsys(int what, int a2, int a3, \
116 int a4, int a5); }
117 #else
118 49 UNIMPL msgsys
119 #endif
120 50 STD { int svr4_sys_sysarch(int op, void *a1); }
121 51 UNIMPL acct
122 #ifdef SYSVSHM
123 52 STD { int svr4_sys_shmsys(int what, int a2, int a3, \
124 int a4); }
125 #else
126 52 UNIMPL shmsys
127 #endif
128 #ifdef SYSVSEM
129 53 STD { int svr4_sys_semsys(int what, int a2, int a3, \
130 int a4, int a5); }
131 #else
132 53 UNIMPL semsys
133 #endif
134 54 STD { int svr4_sys_ioctl(int fd, u_long com, \
135 caddr_t data); }
136 55 UNIMPL uadmin
137 56 UNIMPL exch
138 57 STD { int svr4_sys_utssys(void *a1, void *a2, int sel, \
139 void *a3); }
140 58 NOARGS { int sys_fsync(int fd); }
141 59 STD { int svr4_sys_execve(const char *path, char **argp, \
142 char **envp); }
143 60 NOARGS { int sys_umask(int newmask); }
144 61 NOARGS { int sys_chroot(char *path); }
145 62 STD { int svr4_sys_fcntl(int fd, int cmd, char *arg); }
146 63 STD { long svr4_sys_ulimit(int cmd, long newlimit); }
147 64 UNIMPL reserved for unix/pc
148 65 UNIMPL reserved for unix/pc
149 66 UNIMPL reserved for unix/pc
150 67 UNIMPL reserved for unix/pc
151 68 UNIMPL reserved for unix/pc
152 69 UNIMPL reserved for unix/pc
153 70 OBSOL advfs
154 71 OBSOL unadvfs
155 72 OBSOL rmount
156 73 OBSOL rumount
157 74 OBSOL rfstart
158 75 OBSOL sigret
159 76 OBSOL rdebug
160 77 OBSOL rfstop
161 78 UNIMPL rfsys
162 79 NOARGS { int sys_rmdir(char *path); }
163 80 NOARGS { int sys_mkdir(char *path, int mode); }
164 81 STD { int svr4_sys_getdents(int fd, char *buf, \
165 int nbytes); }
166 82 OBSOL libattach
167 83 OBSOL libdetach
168 84 UNIMPL sysfs
169 85 STD { int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
170 struct svr4_strbuf *dat, int *flags); }
171 86 STD { int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
172 struct svr4_strbuf *dat, int flags); }
173 87 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
174 int timeout); }
175 88 STD { int svr4_sys_lstat(const char *path, \
176 struct svr4_stat *ub); }
177 89 NOARGS { int sys_symlink(char *path, char *link); }
178 90 NOARGS { int sys_readlink(char *path, char *buf, int count); }
179 91 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
180 92 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
181 93 NOARGS { int sys_fchmod(int fd, int mode); }
182 94 NOARGS { int sys___posix_fchown(int fd, int uid, int gid); } \
183 fchown
184 95 STD { int svr4_sys_sigprocmask(int how, \
185 const svr4_sigset_t *set, \
186 svr4_sigset_t *oset); }
187 96 STD { int svr4_sys_sigsuspend( \
188 const svr4_sigset_t *set); }
189 97 STD { int svr4_sys_sigaltstack( \
190 const struct svr4_sigaltstack *nss, \
191 struct svr4_sigaltstack *oss); }
192 98 STD { int svr4_sys_sigaction(int signum, \
193 const struct svr4_sigaction *nsa, \
194 struct svr4_sigaction *osa); }
195 99 STD { int svr4_sys_sigpending(int what, \
196 svr4_sigset_t *set); }
197 100 STD { int svr4_sys_context(int func, \
198 struct svr4_ucontext *uc); }
199 101 UNIMPL evsys
200 102 UNIMPL evtrapret
201 103 STD { int svr4_sys_statvfs(const char *path, \
202 struct svr4_statvfs *fs); }
203 104 STD { int svr4_sys_fstatvfs(int fd, \
204 struct svr4_statvfs *fs); }
205 105 UNIMPL
206 106 UNIMPL nfssvc
207 107 STD { int svr4_sys_waitsys(int grp, int id, \
208 union svr4_siginfo *info, int options); }
209 108 UNIMPL sigsendsys
210 109 STD { int svr4_sys_hrtsys(int cmd, int fun, int sub, \
211 void *rv1, void *rv2); }
212 110 UNIMPL acancel
213 111 UNIMPL async
214 112 UNIMPL priocntlsys
215 113 STD { int svr4_sys_pathconf(const char *path, int name); }
216 114 UNIMPL mincore
217 115 STD { void *svr4_sys_mmap(void *addr, \
218 svr4_size_t len, int prot, int flags, int fd, \
219 svr4_off_t pos); }
220 116 NOARGS { int sys_mprotect(void *addr, int len, int prot); }
221 117 NOARGS { int sys_munmap(void *addr, int len); }
222 118 STD { int svr4_sys_fpathconf(int fd, int name); }
223 119 NOARGS { int sys_vfork(void); }
224 120 NOARGS { int sys_fchdir(int fd); }
225 121 NOARGS { int sys_readv(int fd, struct iovec *iovp, \
226 u_int iovcnt); }
227 122 NOARGS { int sys_writev(int fd, struct iovec *iovp, \
228 u_int iovcnt); }
229 123 STD { int svr4_sys_xstat(int two, const char *path, \
230 struct svr4_xstat *ub); }
231 124 STD { int svr4_sys_lxstat(int two, const char *path, \
232 struct svr4_xstat *ub); }
233 125 STD { int svr4_sys_fxstat(int two, int fd, \
234 struct svr4_xstat *sb); }
235 126 STD { int svr4_sys_xmknod(int two, char *path, \
236 svr4_mode_t mode, svr4_dev_t dev); }
237 127 UNIMPL clocal
238 128 STD { int svr4_sys_setrlimit(int which, \
239 const struct svr4_rlimit *rlp); }
240 129 STD { int svr4_sys_getrlimit(int which, \
241 struct svr4_rlimit *rlp); }
242 130 NOARGS { int sys___posix_lchown(char *path, int uid, \
243 int gid); } lchown
244 131 STD { int svr4_sys_memcntl(void * addr, \
245 svr4_size_t len, int cmd, void * arg, \
246 int attr, int mask); }
247 132 UNIMPL getpmsg
248 133 UNIMPL putpmsg
249 134 NOARGS { int sys___posix_rename(char *from, char *to); } \
250 rename
251 135 STD { int svr4_sys_uname(struct svr4_utsname* name, \
252 int dummy); }
253 136 NOARGS { int sys_setegid(gid_t egid); }
254 137 STD { int svr4_sys_sysconfig(int name); }
255 138 NOARGS { int sys_adjtime(struct timeval *delta, \
256 struct timeval *olddelta); }
257 139 STD { long svr4_sys_systeminfo(int what, char *buf, \
258 long len); }
259 140 UNIMPL
260 141 NOARGS { int sys_seteuid(uid_t euid); }
261 142 UNIMPL vtrace
262 143 NOARGS { int sys_fork(void); } fork1
263 144 UNIMPL sigtimedwait
264 145 STD { int svr4_sys__lwp_info(struct svr4_lwpinfo *lwpinfo);}
265 146 UNIMPL yield
266 147 UNIMPL lwp_sema_wait
267 148 UNIMPL lwp_sema_post
268 149 UNIMPL lwp_sema_trywait
269 150 UNIMPL
270 151 UNIMPL
271 152 UNIMPL modctl
272 153 NOARGS { int sys_fchroot(int fd); }
273 154 STD { int svr4_sys_utimes(const char *path, \
274 struct timeval *tptr); }
275 155 STD { int svr4_sys_vhangup(void); }
276 156 STD { int svr4_sys_gettimeofday(struct timeval *tp); }
277 157 NOARGS { int sys_getitimer(u_int which, \
278 struct itimerval *itv); }
279 158 NOARGS { int sys_setitimer(u_int which, \
280 struct itimerval *itv, struct itimerval *oitv); }
281 159 STD { int svr4_sys__lwp_create(svr4_ucontext_t *uc, \
282 unsigned long flags, svr4_lwpid_t *lwpid); }
283 160 STD { int svr4_sys__lwp_exit(void); }
284 161 STD { int svr4_sys__lwp_suspend(svr4_lwpid_t lwpid); }
285 162 STD { int svr4_sys__lwp_continue(svr4_lwpid_t lwpid); }
286 163 STD { int svr4_sys__lwp_kill(svr4_lwpid_t lwpid, \
287 int signum); }
288 164 STD { svr4_lwpid_t svr4_sys__lwp_self(void); }
289 165 STD { void *svr4_sys__lwp_getprivate(void); }
290 166 STD { int svr4_sys__lwp_setprivate(void *buffer); }
291 167 STD { int svr4_sys__lwp_wait(svr4_lwpid_t wait_for, \
292 svr4_lwpid_t *departed_lwp); }
293 168 UNIMPL lwp_mutex_unlock
294 169 UNIMPL lwp_mutex_lock
295 170 UNIMPL lwp_cond_wait
296 171 UNIMPL lwp_cond_signal
297 172 UNIMPL lwp_cond_broadcast
298 173 STD { ssize_t svr4_sys_pread(int fd, void *buf, \
299 size_t nbyte, svr4_off_t off); }
300 174 STD { ssize_t svr4_sys_pwrite(int fd, const void *buf, \
301 size_t nbyte, svr4_off_t off); }
302 175 STD { svr4_off64_t svr4_sys_llseek(int fd, \
303 long offset1, long offset2, int whence); }
304 176 UNIMPL inst_sync
305 177 UNIMPL
306 178 UNIMPL kaio
307 179 UNIMPL
308 180 UNIMPL
309 181 UNIMPL
310 182 UNIMPL
311 183 UNIMPL
312 184 UNIMPL tsolsys
313 185 STD { int svr4_sys_acl(char *path, int cmd, int num, \
314 struct svr4_aclent *buf); }
315 186 STD { int svr4_sys_auditsys(int code, int a1, int a2, \
316 int a3, int a4, int a5); }
317 187 UNIMPL processor_bind
318 188 UNIMPL processor_info
319 189 UNIMPL p_online
320 190 UNIMPL sigqueue
321 191 UNIMPL clock_gettime
322 192 UNIMPL clock_settime
323 193 UNIMPL clock_getres
324 194 UNIMPL timer_create
325 195 UNIMPL timer_delete
326 196 UNIMPL timer_settime
327 197 UNIMPL timer_gettime
328 198 UNIMPL timer_getoverrun
329 199 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \
330 struct timespec *rmtp); }
331 200 STD { int svr4_sys_facl(int fd, int cmd, int num, \
332 struct svr4_aclent *buf); }
333 201 UNIMPL door
334 202 NOARGS { int sys_setreuid(int ruid, int euid); }
335 203 NOARGS { int sys_setregid(int rgid, int egid); }
336 204 UNIMPL install_utrap
337 205 UNIMPL signotify
338 206 STD { int svr4_sys_schedctl(unsigned int x, int y, void **z); }
339 207 UNIMPL pset
340 208 UNIMPL
341 209 STD { int svr4_sys_resolvepath(const char *path, \
342 char *buf, size_t bufsiz); }
343 210 UNIMPL signotifywait
344 211 UNIMPL lwp_sigredirect
345 212 UNIMPL lwp_alarm
346 213 STD { int svr4_sys_getdents64(int fd, \
347 struct svr4_dirent64 *dp, \
348 int nbytes); }
349 214 STD { void *svr4_sys_mmap64(void *addr, \
350 svr4_size_t len, int prot, int flags, int fd, \
351 svr4_off64_t pos); }
352 215 STD { int svr4_sys_stat64(const char* path, \
353 struct svr4_stat64 *sb); }
354 216 STD { int svr4_sys_lstat64(const char* path, \
355 struct svr4_stat64 *sb); }
356 217 STD { int svr4_sys_fstat64(int fd, \
357 struct svr4_stat64 *sb); }
358 218 STD { int svr4_sys_statvfs64(const char *path, \
359 struct svr4_statvfs64 *fs); }
360 219 STD { int svr4_sys_fstatvfs64(int fd, \
361 struct svr4_statvfs64 *fs); }
362 220 STD { int svr4_sys_setrlimit64(int which, \
363 const struct svr4_rlimit64 *rlp); }
364 221 STD { int svr4_sys_getrlimit64(int which, \
365 struct svr4_rlimit64 *rlp); }
366 222 STD { ssize_t svr4_sys_pread64(int fd, void *buf, \
367 size_t nbyte, svr4_off64_t off); }
368 223 STD { ssize_t svr4_sys_pwrite64(int fd, \
369 const void *buf, size_t nbyte, svr4_off64_t off); }
370 224 STD { int svr4_sys_creat64(char *path, int mode); }
371 225 STD { int svr4_sys_open64(char *path, int flags, \
372 int mode); }
373 226 UNIMPL rpcsys
374 227 UNIMPL
375 228 UNIMPL
376 229 UNIMPL
377 230 STD { int svr4_sys_socket(int domain, int type, \
378 int protocol); }
379 231 NOARGS { int sys_socketpair(int domain, int type, \
380 int protocol, int *rsv); }
381 232 NOARGS { int sys_bind(int s, const struct sockaddr *name, \
382 int namelen); }
383 233 NOARGS { int sys_listen(int s, int backlog); }
384 234 NOARGS { int compat_43_sys_accept(int s, \
385 struct sockaddr *name, int *anamelen); }
386 235 NOARGS { int sys_connect(int s, const struct sockaddr *name, \
387 int namelen); }
388 236 NOARGS { int sys_shutdown(int s, int how); }
389 237 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
390 int flags); }
391 238 NOARGS { ssize_t compat_43_sys_recvfrom(int s, void *buf, \
392 size_t len, int flags, struct sockaddr *from, \
393 int *fromlenaddr); }
394 239 NOARGS { ssize_t compat_43_sys_recvmsg(int s, \
395 struct msghdr *msg, int flags); }
396 240 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
397 int flags); }
398 241 NOARGS { ssize_t compat_43_sys_sendmsg(int s, \
399 const struct msghdr *msg, int flags); }
400 242 NOARGS { ssize_t sys_sendto(int s, const void *buf, \
401 size_t len, int flags, const struct sockaddr *to, \
402 int tolen); }
403 243 NOARGS { int compat_43_sys_getpeername(int fdes, \
404 struct sockaddr *asa, int *alen); }
405 244 NOARGS { int compat_43_sys_getsockname(int fdes, \
406 struct sockaddr *asa, int *alen); }
407 245 NOARGS { int sys_getsockopt(int s, int level, int name, \
408 void *val, int *avalsize); }
409 246 NOARGS { int sys_setsockopt(int s, int level, int name, \
410 const void *val, int valsize); }
411 247 UNIMPL sockconfig
412 248 UNIMPL { int sys_ntp_gettime(struct ntptimeval *ntvp); }
413 #if defined(NTP) || !defined(_KERNEL)
414 249 NOARGS { int sys_ntp_adjtime(struct timex *tp); }
415 #else
416 249 EXCL ntp_adjtime
417 #endif
418 250 UNIMPL lwp_mutex_unlock
419 251 UNIMPL lwp_mutex_trylock
420 252 UNIMPL lwp_mutex_init
421 253 UNIMPL cladm
422 254 UNIMPL lwp_sigtimedwait
423 255 UNIMPL umount2
Cache object: 5c9c776a055977df3d872fdfe3ffd6c1
|