1 $NetBSD: syscalls.master,v 1.73 2009/01/13 21:57:55 pooka Exp $
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
5 ; NetBSD COMPAT_SUNOS 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)
38 #include <sys/param.h>
39 #include <sys/systm.h>
40 #include <sys/signal.h>
41 #include <sys/mount.h>
43 #include <sys/sched.h>
44 #include <sys/syscallargs.h>
46 #include <compat/sunos/sunos.h>
47 #include <compat/sunos/sunos_syscallargs.h>
51 0 NOARGS { int|sys||nosys(void); } syscall
52 1 NOARGS { int|sys||exit(int rval); }
53 2 NOARGS { int|sys||fork(void); }
54 3 NOARGS { int|sys||read(int fd, char *buf, u_int nbyte); }
55 4 NOARGS { int|sys||write(int fd, char *buf, u_int nbyte); }
56 5 STD { int|sunos_sys||open(const char *path, int flags, \
58 6 NOARGS { int|sys||close(int fd); }
59 7 STD { int|sunos_sys||wait4(int pid, int *status, \
60 int options, struct rusage50 *rusage); }
61 8 STD { int|sunos_sys||creat(const char *path, int mode); }
62 9 NOARGS { int|sys||link(char *path, char *link); }
63 10 NOARGS { int|sys||unlink(char *path); }
64 11 STD { int|sunos_sys||execv(const char *path, char **argp); }
65 12 NOARGS { int|sys||chdir(char *path); }
67 14 STD { int|sunos_sys||mknod(const char *path, int mode, \
69 15 NOARGS { int|sys||chmod(char *path, int mode); }
70 16 NOARGS { int|sys||chown(char *path, int uid, int gid); }
71 17 NOARGS { int|sys||obreak(char *nsize); } break
73 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, int whence); }
74 20 NOARGS { pid_t|sys||getpid_with_ppid(void); }
75 21 OBSOL sunos_old_mount
76 22 UNIMPL System V umount
77 23 NOARGS { int|sys||setuid(uid_t uid); }
78 24 NOARGS { uid_t|sys||getuid_with_euid(void); }
79 25 STD { int|sunos_sys||stime(sunos_time_t *tp); }
80 26 STD { long|sunos_sys||ptrace(int req, pid_t pid, \
81 void *addr, int data, char *addr2); }
82 27 UNIMPL old_sunos_alarm
83 28 UNIMPL old_sunos_fstat
84 29 UNIMPL old_sunos_pause
85 30 UNIMPL old_sunos_utime
86 31 UNIMPL old_sunos_stty
87 32 UNIMPL old_sunos_gtty
88 33 NOARGS { int|sys||access(const char *path, int flags); }
89 34 UNIMPL old_sunos_nice
90 35 UNIMPL old_sunos_ftime
91 36 NOARGS { int|sys||sync(void); }
92 37 NOARGS { int|sys||kill(int pid, int signum); }
93 38 NOARGS { int|compat_43_sys||stat(const char *path, \
95 39 UNIMPL sunos_setpgrp
96 40 NOARGS { int|compat_43_sys||lstat(const char *path, \
98 41 NOARGS { int|sys||dup(u_int fd); }
99 42 NOARGS { int|sys||pipe(void); }
100 43 UNIMPL sunos_times
101 44 NOARGS { int|sys||profil(void *samples, u_int size, \
102 u_int offset, u_int scale); }
104 46 NOARGS { int|sys||setgid(uid_t gid); }
105 47 NOARGS { gid_t|sys||getgid_with_egid(void); }
107 49 UNIMPL reserved for USG
108 50 UNIMPL reserved for USG
109 51 NOARGS { int|sys||acct(char *path); }
111 53 STD { int|sunos_sys||mctl(void *addr, int len, int func, \
113 54 STD { int|sunos_sys||ioctl(int fd, u_long com, \
115 55 STD { int|sunos_sys||reboot(int howto, char *bootstr); }
116 56 OBSOL sunos_owait3
117 57 NOARGS { int|sys||symlink(char *path, char *link); }
118 58 NOARGS { int|sys||readlink(char *path, char *buf, int count); }
119 59 STD { int|sunos_sys||execve(const char *path, char **argp, \
121 60 NOARGS { int|sys||umask(int newmask); }
122 61 NOARGS { int|sys||chroot(char *path); }
123 62 NOARGS { int|compat_43_sys||fstat(int fd, struct stat43 *sb); }
125 64 NOARGS { int|compat_43_sys||getpagesize(void); }
126 65 STD { int|sunos_sys||omsync(void *addr, size_t len, \
128 66 NOARGS { int|sys||vfork(void); }
131 69 NOARGS { int|sys||sbrk(intptr_t incr); }
132 70 NOARGS { int|sys||sstk(int incr); }
133 71 STD { void *|sunos_sys||mmap(void *addr, size_t len, \
134 int prot, int flags, int fd, long pos); }
135 72 NOARGS { int|sys||ovadvise(int anom); } vadvise
136 73 NOARGS { int|sys||munmap(void *addr, size_t len); }
137 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \
139 75 NOARGS { int|sys||madvise(void *addr, size_t len, \
141 76 STD { int|sunos_sys||vhangup(void); }
143 78 NOARGS { int|sys||mincore(void *addr, size_t len, \
145 79 NOARGS { int|sys||getgroups(u_int gidsetsize, gid_t *gidset); }
146 80 NOARGS { int|sys||setgroups(u_int gidsetsize, gid_t *gidset); }
147 81 NOARGS { int|sys||getpgrp(void); }
148 82 STD { int|sunos_sys||setpgrp(int pid, int pgid); }
149 83 NOARGS { int|compat_50_sys||setitimer(u_int which, \
150 struct itimerval50 *itv, \
151 struct itimerval50 *oitv); }
152 84 UNIMPL sunos_sys_wait
153 85 NOARGS { int|compat_12_sys||swapon(char *name); }
154 86 NOARGS { int|compat_50_sys||getitimer(u_int which, \
155 struct itimerval50 *itv); }
156 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \
158 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \
160 89 NOARGS { int|compat_43_sys||getdtablesize(void); }
161 90 NOARGS { int|sys||dup2(u_int from, u_int to); }
163 92 STD { int|sunos_sys||fcntl(int fd, int cmd, void *arg); }
164 93 NOARGS { int|compat_50_sys||select(u_int nd, fd_set *in, \
165 fd_set *ou, fd_set *ex, struct timeval50 *tv); }
167 95 NOARGS { int|sys||fsync(int fd); }
168 96 NOARGS { int|sys||setpriority(int which, int who, int prio); }
169 97 STD { int|sunos_sys||socket(int domain, int type, int protocol); }
170 98 NOARGS { int|sys||connect(int s, void *name, int namelen); }
171 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \
173 100 NOARGS { int|sys||getpriority(int which, int who); }
174 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \
176 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \
178 103 UNIMPL old socketaddr
179 104 NOARGS { int|sys||bind(int s, void *name, int namelen); }
180 105 STD { int|sunos_sys||setsockopt(int s, int level, int name, \
181 void *val, int valsize); }
182 106 NOARGS { int|sys||listen(int s, int backlog); }
184 108 STD { int|sunos_sys||sigvec(int signum, struct sigvec *nsv, \
185 struct sigvec *osv); }
186 109 NOARGS { int|compat_43_sys||sigblock(int mask); }
187 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); }
188 111 STD { int|sunos_sys||sigsuspend(int mask); }
189 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \
190 struct sigstack *oss); }
191 113 NOARGS { int|compat_43_sys||recvmsg(int s, \
192 struct omsghdr *msg, int flags); }
193 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \
196 116 NOARGS { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \
197 struct timezone *tzp); }
198 117 NOARGS { int|compat_50_sys||getrusage(int who, \
199 struct rusage50 *rusage); }
200 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \
201 void *val, int *avalsize); }
203 120 NOARGS { int|sys||readv(int fd, struct iovec *iovp, \
205 121 NOARGS { int|sys||writev(int fd, struct iovec *iovp, \
207 122 NOARGS { int|compat_50_sys||settimeofday(struct timeval50 *tv, \
208 struct timezone *tzp); }
209 123 NOARGS { int|sys||fchown(int fd, int uid, int gid); }
210 124 NOARGS { int|sys||fchmod(int fd, int mode); }
211 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \
212 size_t len, int flags, void *from, \
214 126 NOARGS { int|sys||setreuid(int ruid, int euid); }
215 127 NOARGS { int|sys||setregid(int rgid, int egid); }
216 128 NOARGS { int|sys||rename(char *from, char *to); }
217 129 NOARGS { int|compat_43_sys||truncate(char *path, long length); }
218 130 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); }
219 131 NOARGS { int|sys||flock(int fd, int how); }
221 133 NOARGS { int|sys||sendto(int s, void *buf, size_t len, \
222 int flags, void *to, int tolen); }
223 134 NOARGS { int|sys||shutdown(int s, int how); }
224 135 STD { int|sunos_sys||socketpair(int domain, int type, \
225 int protocol, int *rsv); }
226 136 NOARGS { int|sys||mkdir(char *path, int mode); }
227 137 NOARGS { int|sys||rmdir(char *path); }
228 138 NOARGS { int|compat_50_sys||utimes(char *path, \
229 struct timeval50 *tptr); }
230 139 STD { int|sunos_sys||sigreturn(struct sigcontext *sigcntxp); }
231 140 NOARGS { int|compat_50_sys||adjtime(struct timeval50 *delta, \
232 struct timeval50 *olddelta); }
233 141 NOARGS { int|compat_43_sys||getpeername(int fdes, void *asa, \
235 142 NOARGS { int|compat_43_sys||gethostid(void); }
236 143 UNIMPL old sethostid
237 144 STD { int|sunos_sys||getrlimit(u_int which, \
238 struct orlimit *rlp); }
239 145 STD { int|sunos_sys||setrlimit(u_int which, \
240 struct orlimit *rlp); }
241 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); }
245 150 NOARGS { int|compat_43_sys||getsockname(int fdes, void *asa, \
249 153 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \
252 155 STD { int|sunos_sys||nfssvc(int fd); }
253 156 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \
254 u_int count, long *basep); }
255 157 STD { int|sunos_sys||statfs(const char *path, \
256 struct sunos_statfs *buf); }
257 158 STD { int|sunos_sys||fstatfs(int fd, \
258 struct sunos_statfs *buf); }
259 159 STD { int|sunos_sys||unmount(char *path); }
260 160 NOARGS { int|async||daemon(void); }
261 161 NOARGS { int|compat_30_sys||getfh(char *fname, fhandle_t *fhp); }
262 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \
264 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \
266 164 UNIMPL rtschedule
267 165 STD { int|sunos_sys||quotactl(int cmd, char *special, \
268 int uid, void *addr); }
269 166 STD { int|sunos_sys||exportfs(char *path, char *ex); }
270 167 STD { int|sunos_sys||mount(char *type, char *dir, \
271 int flags, void *data); }
272 168 STD { int|sunos_sys||ustat(int dev, \
273 struct sunos_ustat *buf); }
275 169 NOARGS { int|compat_10_sys||semsys(int which, int a2, int a3, \
281 170 NOARGS { int|compat_10_sys||msgsys(int which, int a2, int a3, \
282 int a4, int a5, int a6); }
287 171 NOARGS { int|compat_10_sys||shmsys(int which, int a2, int a3, \
292 172 STD { int|sunos_sys||auditsys(char *record); }
294 174 STD { int|sunos_sys||getdents(int fd, char *buf, \
296 175 NOARGS { int|sys||setsid(void); }
297 176 NOARGS { int|sys||fchdir(int fd); }
298 177 NOARGS { int|sys||fchroot(int fd); }
304 183 STD { int|sunos_sys||sigpending(int *mask); }
306 185 NOARGS { int|sys||setpgid(int pid, int pgid); }
307 186 NOARGS { long|sys||pathconf(char *path, int name); }
308 187 NOARGS { long|sys||fpathconf(int fd, int name); }
309 188 STD { int|sunos_sys||sysconf(int name); }
310 189 STD { int|sunos_sys||uname(struct sunos_utsname *name); }