1 $NetBSD: syscalls.master,v 1.47 2008/12/02 13:45:02 njoly Exp $
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
5 ; NetBSD COMPAT_OSF1 system call name/number "master" file.
6 ; (See syscalls.conf to see what it is processed into.)
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.
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
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).
25 ; The type-dependent arguments are as follows:
26 ; For STD, NODEF, NOARGS, and compat syscalls:
27 ; { pseudo-proto } [alias]
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.
34 #if defined(_KERNEL_OPT)
35 #include "opt_compat_43.h"
38 #include <sys/param.h>
39 #include <sys/systm.h>
40 #include <sys/signal.h>
41 #include <sys/mount.h>
43 #include <sys/syscallargs.h>
45 #include <compat/osf1/osf1.h>
46 #include <compat/osf1/osf1_syscallargs.h>
50 0 NOARGS { int|sys||nosys(void); } syscall
51 1 NOARGS { int|sys||exit(int rval); }
52 2 NOARGS { int|sys||fork(void); }
53 3 NOARGS { int|sys||read(int fd, char *buf, u_int nbyte); }
54 4 NOARGS { int|sys||write(int fd, const char *buf, \
57 6 NOARGS { int|sys||close(int fd); }
58 7 STD { int|osf1_sys||wait4(int pid, int *status, \
59 int options, struct osf1_rusage *rusage); }
61 9 NOARGS { int|sys||link(const char *path, const char *link); }
62 10 NOARGS { int|sys||unlink(const char *path); }
64 12 NOARGS { int|sys||chdir(const char *path); }
65 13 NOARGS { int|sys||fchdir(int fd); }
66 14 STD { int|osf1_sys||mknod(const char *path, int mode, \
68 15 NOARGS { int|sys||chmod(const char *path, int mode); }
69 16 NOARGS { int|sys||__posix_chown(const char *path, int uid, \
71 17 NOARGS { int|sys||obreak(char *nsize); }
72 18 STD { int|osf1_sys||getfsstat(struct osf1_statfs *buf, \
73 long bufsize, int flags); }
74 19 STD { off_t|osf1_sys||lseek(int fd, off_t offset, \
76 20 NOARGS { pid_t|sys||getpid_with_ppid(void); }
77 21 STD { int|osf1_sys||mount(int type, const char *path, \
78 int flags, void *data); }
79 22 STD { int|osf1_sys||unmount(const char *path, int flags); }
80 23 STD { int|osf1_sys||setuid(uid_t uid); }
81 24 NOARGS { uid_t|sys||getuid_with_euid(void); }
82 25 UNIMPL exec_with_loader
84 27 STD { int|osf1_sys||recvmsg_xopen(int s, \
85 struct osf1_msghdr_xopen *msg, int flags); }
86 28 STD { int|osf1_sys||sendmsg_xopen(int s, \
87 const struct osf1_msghdr_xopen *msg, int flags); }
92 33 STD { int|osf1_sys||access(const char *path, int flags); }
95 36 NOARGS { int|sys||sync(void); }
96 37 NOARGS { int|sys||kill(int pid, int signum); }
98 39 NOARGS { int|sys||setpgid(int pid, int pgid); }
100 41 NOARGS { int|sys||dup(u_int fd); }
101 42 NOARGS { int|sys||pipe(void); }
102 43 STD { int|osf1_sys||set_program_attributes( \
103 void *taddr, unsigned long tsize, \
104 void *daddr, unsigned long dsize); }
106 45 STD { int|osf1_sys||open(const char *path, int flags, \
109 47 NOARGS { gid_t|sys||getgid_with_egid(void); }
111 48 NOARGS { int|compat_13_sys||sigprocmask(int how, \
113 49 NOARGS { int|sys||__getlogin(char *namebuf, u_int namelen); }
114 50 NOARGS { int|sys||__setlogin(const char *namebuf); }
115 51 NOARGS { int|sys||acct(const char *path); }
117 53 STD { int|osf1_sys||classcntl(int opcode, int arg1, \
118 int arg2, int arg3); }
119 54 STD { int|osf1_sys||ioctl(int fd, int com, void *data); }
120 55 STD { int|osf1_sys||reboot(int opt); }
121 56 NOARGS { int|sys||revoke(const char *path); }
122 57 NOARGS { int|sys||symlink(const char *path, \
124 58 NOARGS { int|sys||readlink(const char *path, char *buf, \
126 59 STD { int|osf1_sys||execve(const char *path, \
127 char * const *argp, char * const *envp); }
128 60 NOARGS { int|sys||umask(int newmask); }
129 61 NOARGS { int|sys||chroot(const char *path); }
131 63 NOARGS { int|sys||getpgrp(void); }
132 64 NOARGS { int|compat_43_sys||getpagesize(void); }
134 66 NOARGS { int|sys||vfork(void); }
135 67 STD { int|osf1_sys||stat(const char *path, \
136 struct osf1_stat *ub); }
137 68 STD { int|osf1_sys||lstat(const char *path, \
138 struct osf1_stat *ub); }
141 71 STD { void *|osf1_sys||mmap(void *addr, size_t len, \
142 int prot, int flags, int fd, off_t pos); }
144 73 NOARGS { int|sys||munmap(void *addr, size_t len); }
145 74 STD { int|osf1_sys||mprotect(void *addr, size_t len, \
147 75 STD { int|osf1_sys||madvise(void *addr, size_t len, \
149 76 UNIMPL old vhangup
152 79 NOARGS { int|sys||getgroups(u_int gidsetsize, gid_t *gidset); }
153 80 NOARGS { int|sys||setgroups(u_int gidsetsize, gid_t *gidset); }
154 81 UNIMPL old getpgrp
155 ; OSF/1 setpgrp(); identical in function to setpgid(). XXX
156 82 NOARGS { int|sys||setpgid(int pid, int pgid); } setpgrp
157 83 STD { int|osf1_sys||setitimer(u_int which, \
158 struct osf1_itimerval *itv, \
159 struct osf1_itimerval *oitv); }
162 86 STD { int|osf1_sys||getitimer(u_int which, struct osf1_itimerval *itv); }
163 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \
165 88 NOARGS { int|compat_43_sys||sethostname(const char *hostname, \
167 89 NOARGS { int|compat_43_sys||getdtablesize(void); }
168 90 NOARGS { int|sys||dup2(u_int from, u_int to); }
169 91 STD { int|osf1_sys||fstat(int fd, void *sb); }
170 92 STD { int|osf1_sys||fcntl(int fd, int cmd, void *arg); }
171 93 STD { int|osf1_sys||select(u_int nd, fd_set *in, \
172 fd_set *ou, fd_set *ex, struct osf1_timeval *tv); }
174 94 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \
176 95 NOARGS { int|sys||fsync(int fd); }
177 96 NOARGS { int|sys||setpriority(int which, int who, int prio); }
178 97 STD { int|osf1_sys||socket(int domain, int type, \
180 98 NOARGS { int|sys||connect(int s, void *name, int namelen); }
181 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \
183 100 NOARGS { int|sys||getpriority(int which, int who); }
184 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \
186 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \
188 103 NOARGS { int|compat_13_sys||sigreturn(\
189 struct sigcontext13 *sigcntxp); }
190 104 NOARGS { int|sys||bind(int s, void *name, int namelen); }
191 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \
192 void *val, int valsize); }
193 106 NOARGS { int|sys||listen(int s, int backlog); }
195 108 UNIMPL old sigvec
196 109 UNIMPL old sigblock
197 110 UNIMPL old sigsetmask
198 111 NOARGS { int|compat_13_sys||sigsuspend(int mask); }
199 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \
200 struct sigstack *oss); }
201 113 UNIMPL old recvmsg
202 114 UNIMPL old sendmsg
204 116 STD { int|osf1_sys||gettimeofday(struct osf1_timeval *tp, \
205 struct osf1_timezone *tzp); }
206 117 STD { int|osf1_sys||getrusage(int who, \
207 struct osf1_rusage *rusage); }
209 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \
210 void *val, int *avalsize); }
212 120 STD { int|osf1_sys||readv(int fd, \
213 struct osf1_iovec *iovp, u_int iovcnt); }
214 121 STD { int|osf1_sys||writev(int fd, \
215 struct osf1_iovec *iovp, u_int iovcnt); }
216 122 STD { int|osf1_sys||settimeofday(struct osf1_timeval *tv, \
217 struct osf1_timezone *tzp); }
218 123 NOARGS { int|sys||__posix_fchown(int fd, int uid, int gid); }
219 124 NOARGS { int|sys||fchmod(int fd, int mode); }
220 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \
221 size_t len, int flags, void *from, \
223 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); }
224 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); }
225 128 NOARGS { int|sys||__posix_rename(const char *from, \
227 129 STD { int|osf1_sys||truncate(const char *path, \
229 130 STD { int|osf1_sys||ftruncate(int fd, off_t length); }
230 131 NOARGS { int|sys||flock(int fd, int operation); }
231 132 STD { int|osf1_sys||setgid(gid_t gid); }
232 133 STD { int|osf1_sys||sendto(int s, void *buf, size_t len, \
233 int flags, struct sockaddr *to, int tolen); }
234 134 NOARGS { int|sys||shutdown(int s, int how); }
235 135 STD { int|osf1_sys||socketpair(int domain, int type, \
236 int protocol, int *rsv); }
237 136 NOARGS { int|sys||mkdir(const char *path, int mode); }
238 137 NOARGS { int|sys||rmdir(const char *path); }
239 138 STD { int|osf1_sys||utimes(const char *path, \
240 const struct osf1_timeval *tptr); }
241 139 OBSOL 4.2 sigreturn
243 141 NOARGS { int|compat_43_sys||getpeername(int fdes, \
244 void *asa, int *alen); }
245 142 NOARGS { int32_t|compat_43_sys||gethostid(void); }
246 143 NOARGS { int|compat_43_sys||sethostid(int32_t hostid); }
248 144 STD { int|osf1_sys||getrlimit(u_int which, \
249 struct rlimit *rlp); }
251 145 STD { int|osf1_sys||setrlimit(u_int which, \
252 struct rlimit *rlp); }
253 146 UNIMPL old killpg
254 147 NOARGS { int|sys||setsid(void); }
256 149 NOARGS { int|compat_43_sys||quota(void); }
257 150 NOARGS { int|compat_43_sys||getsockname(int fdec, \
258 void *asa, int *alen); }
262 154 UNIMPL pid_unblock
263 155 UNIMPL signal_urti
264 156 STD { int|osf1_sys||sigaction(int signum, \
265 struct osf1_sigaction *nsa, \
266 struct osf1_sigaction *osa); }
267 157 UNIMPL sigwaitprim
269 159 STD { int|osf1_sys||getdirentries(int fd, char *buf, \
270 int nbytes, long *basep); }
271 160 STD { int|osf1_sys||statfs(const char *path, \
272 struct osf1_statfs *buf, int len); }
273 161 STD { int|osf1_sys||fstatfs(int fd, \
274 struct osf1_statfs *buf, int len); }
276 163 UNIMPL async_daemon
278 165 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \
280 166 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \
287 172 UNIMPL alt msgctl
288 173 UNIMPL alt msgget
289 174 UNIMPL alt msgrcv
290 175 UNIMPL alt msgsnd
291 176 UNIMPL alt semctl
292 177 UNIMPL alt semget
302 187 UNIMPL alt sigpending
303 188 UNIMPL alt setsid
322 207 STD { int|osf1_sys||uname(struct osf1_uname *name); }
323 208 NOARGS { int|sys||__posix_lchown(const char *path, int uid, \
325 209 STD { void *|osf1_sys||shmat(int shmid, \
326 const void *shmaddr, int shmflg); }
327 210 STD { int|osf1_sys||shmctl(int shmid, int cmd, \
328 struct osf1_shmid_ds *buf); }
329 211 STD { int|osf1_sys||shmdt(const void *shmaddr); }
330 212 STD { int|osf1_sys||shmget(osf1_key_t key, size_t size, \
333 214 UNIMPL getaddressconf
338 219 UNIMPL utc gettime
339 220 UNIMPL utc adjtime
343 224 STD { int|osf1_sys||stat2(const char *path, \
344 struct osf1_stat2 *ub); }
345 225 STD { int|osf1_sys||lstat2(const char *path, \
346 struct osf1_stat2 *ub); }
347 226 STD { int|osf1_sys||fstat2(int fd, \
348 struct osf1_stat2 *sb); }
351 229 UNIMPL getfsstat2
355 233 NOARGS { pid_t|sys||getpgid(pid_t pid); }
356 234 NOARGS { pid_t|sys||getsid(pid_t pid); }
357 235 STD { int|osf1_sys||sigaltstack( \
358 struct osf1_sigaltstack *nss, \
359 struct osf1_sigaltstack *oss); }
361 237 UNIMPL priocntlset
362 238 UNIMPL sigsendset
363 239 UNIMPL set_speculative
364 240 UNIMPL msfs_syscall
365 241 STD { int|osf1_sys||sysinfo(int cmd, char *buf, long len); }
368 244 UNIMPL proplist_syscall
369 245 UNIMPL ntp_adjtime
370 246 UNIMPL ntp_gettime
371 247 STD { long|osf1_sys||pathconf(const char *path, int name); }
372 248 STD { long|osf1_sys||fpathconf(int fd, int name); }
375 251 STD { int|osf1_sys||usleep_thread( \
376 struct osf1_timeval *sleep, \
377 struct osf1_timeval *slept); }
381 255 UNIMPL subsys_info
382 256 STD { int|osf1_sys||getsysinfo(u_long op, void *buffer, \
383 u_long nbytes, void *arg, u_long flag); }
384 257 STD { int|osf1_sys||setsysinfo(u_long op, void *buffer, \
385 u_long nbytes, void *arg, u_long flag); }
386 258 UNIMPL afs_syscall
391 263 UNIMPL _F64_readv
392 264 UNIMPL _F64_writev