syscalls.master revision 1.44 1 1.44 christos $NetBSD: syscalls.master,v 1.44 2019/06/18 01:39:01 christos Exp $
2 1.1 scw
3 1.1 scw ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
4 1.1 scw
5 1.1 scw ; NetBSD system call name/number "master" file.
6 1.1 scw ; (See syscalls.conf to see what it is processed into.)
7 1.1 scw ;
8 1.1 scw ; Fields: number type [type-dependent ...]
9 1.1 scw ; number system call number, must be in order
10 1.1 scw ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11 1.1 scw ; the compatibility options defined in syscalls.conf.
12 1.1 scw ;
13 1.1 scw ; types:
14 1.1 scw ; STD always included
15 1.1 scw ; OBSOL obsolete, not included in system
16 1.1 scw ; UNIMPL unimplemented, not included in system
17 1.1 scw ; EXCL implemented, but not included in system
18 1.1 scw ; NODEF included, but don't define the syscall number
19 1.1 scw ; NOARGS included, but don't define the syscall args structure
20 1.1 scw ; INDIR included, but don't define the syscall args structure,
21 1.1 scw ; and allow it to be "really" varargs.
22 1.1 scw ;
23 1.1 scw ; The compat options are defined in the syscalls.conf file, and the
24 1.1 scw ; compat option name is prefixed to the syscall name. Other than
25 1.1 scw ; that, they're like NODEF (for 'compat' options), or STD (for
26 1.1 scw ; 'libcompat' options).
27 1.1 scw ;
28 1.1 scw ; The type-dependent arguments are as follows:
29 1.1 scw ; For STD, NODEF, NOARGS, and compat syscalls:
30 1.1 scw ; { pseudo-proto } [alias]
31 1.1 scw ; For other syscalls:
32 1.1 scw ; [comment]
33 1.1 scw ;
34 1.1 scw ; #ifdef's, etc. may be included, and are copied to the output files.
35 1.1 scw ; #include's are copied to the syscall names and switch definition files only.
36 1.1 scw
37 1.6 mrg #if defined(_KERNEL_OPT)
38 1.1 scw #include "opt_ktrace.h"
39 1.1 scw #include "opt_nfsserver.h"
40 1.1 scw #include "opt_ntp.h"
41 1.1 scw #include "opt_compat_netbsd.h"
42 1.1 scw #include "opt_sysv.h"
43 1.1 scw #include "opt_compat_43.h"
44 1.43 christos #include "opt_quota.h"
45 1.3 mycroft #endif
46 1.1 scw
47 1.1 scw #include <sys/param.h>
48 1.1 scw #include <sys/systm.h>
49 1.1 scw #include <sys/signal.h>
50 1.1 scw #include <sys/mount.h>
51 1.28 he #include <sys/sched.h>
52 1.1 scw #include <sys/syscallargs.h>
53 1.1 scw #include <compat/aoutm68k/aoutm68k_syscallargs.h>
54 1.3 mycroft
55 1.3 mycroft %%
56 1.1 scw
57 1.1 scw ; Reserved/unimplemented system calls in the range 0-150 inclusive
58 1.1 scw ; are reserved for use in future Berkeley releases.
59 1.1 scw ; Additional system calls implemented in vendor and other
60 1.1 scw ; redistributions should be placed in the reserved range at the end
61 1.1 scw ; of the current calls.
62 1.1 scw
63 1.33 pooka 0 NOARGS INDIR { int|sys||syscall(int code, \
64 1.25 dsl ... register32_t args[AOUTM68K_SYS_MAXSYSARGS]); }
65 1.33 pooka 1 NOARGS { void|sys||exit(int rval); }
66 1.33 pooka 2 NOARGS { int|sys||fork(void); }
67 1.33 pooka 3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
68 1.33 pooka 4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \
69 1.1 scw size_t nbyte); }
70 1.33 pooka 5 NOARGS { int|sys||open(const char *path, int flags, \
71 1.5 tsutsui ... mode_t mode); }
72 1.33 pooka 6 NOARGS { int|sys||close(int fd); }
73 1.33 pooka 7 NOARGS { int|compat_50_sys||wait4(int pid, int *status, \
74 1.31 tsutsui int options, struct rusage50 *rusage); }
75 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
76 1.33 pooka 8 NOARGS { int|compat_43_sys||creat(const char *path, \
77 1.1 scw mode_t mode); } ocreat
78 1.1 scw #else
79 1.1 scw 8 EXCL compat_43_sys_creat
80 1.1 scw #endif
81 1.33 pooka 9 NOARGS { int|sys||link(const char *path, const char *link); }
82 1.33 pooka 10 NOARGS { int|sys||unlink(const char *path); }
83 1.1 scw 11 OBSOL execv
84 1.33 pooka 12 NOARGS { int|sys||chdir(const char *path); }
85 1.33 pooka 13 NOARGS { int|sys||fchdir(int fd); }
86 1.33 pooka 14 NOARGS { int|compat_50_sys||mknod(const char *path, \
87 1.31 tsutsui mode_t mode, dev_t dev); }
88 1.33 pooka 15 NOARGS { int|sys||chmod(const char *path, mode_t mode); }
89 1.33 pooka 16 NOARGS { int|sys||chown(const char *path, uid_t uid, \
90 1.5 tsutsui gid_t gid); }
91 1.33 pooka 17 NOARGS { int|sys||obreak(char *nsize); } break
92 1.15 tsutsui #if defined(COMPAT_20) || !defined(_KERNEL)
93 1.33 pooka 18 NOARGS { int|compat_20_sys||getfsstat(struct statfs12 *buf, \
94 1.11 christos long bufsize, int flags); }
95 1.11 christos #else
96 1.11 christos 18 EXCL compat_20_sys_getfsstat
97 1.11 christos #endif
98 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
99 1.33 pooka 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \
100 1.1 scw int whence); } olseek
101 1.1 scw #else
102 1.1 scw 19 EXCL compat_43_sys_lseek
103 1.1 scw #endif
104 1.33 pooka 20 NOARGS { pid_t|sys||getpid(void); }
105 1.33 pooka 21 NOARGS { int|compat_40_sys||mount(const char *type, \
106 1.1 scw const char *path, int flags, void *data); }
107 1.33 pooka 22 NOARGS { int|sys||unmount(const char *path, int flags); }
108 1.33 pooka 23 NOARGS { int|sys||setuid(uid_t uid); }
109 1.33 pooka 24 NOARGS { uid_t|sys||getuid(void); }
110 1.33 pooka 25 NOARGS { uid_t|sys||geteuid(void); }
111 1.33 pooka 26 NOARGS { int|sys||ptrace(int req, pid_t pid, void *addr, \
112 1.1 scw int data); }
113 1.33 pooka 27 NOARGS { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
114 1.1 scw int flags); }
115 1.33 pooka 28 NOARGS { ssize_t|sys||sendmsg(int s, \
116 1.1 scw const struct msghdr *msg, int flags); }
117 1.33 pooka 29 NOARGS { ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
118 1.1 scw int flags, struct sockaddr *from, \
119 1.1 scw unsigned int *fromlenaddr); }
120 1.33 pooka 30 NOARGS { int|sys||accept(int s, struct sockaddr *name, \
121 1.1 scw unsigned int *anamelen); }
122 1.33 pooka 31 NOARGS { int|sys||getpeername(int fdes, struct sockaddr *asa, \
123 1.1 scw unsigned int *alen); }
124 1.33 pooka 32 NOARGS { int|sys||getsockname(int fdes, struct sockaddr *asa, \
125 1.1 scw unsigned int *alen); }
126 1.33 pooka 33 NOARGS { int|sys||access(const char *path, int flags); }
127 1.33 pooka 34 NOARGS { int|sys||chflags(const char *path, u_long flags); }
128 1.33 pooka 35 NOARGS { int|sys||fchflags(int fd, u_long flags); }
129 1.33 pooka 36 NOARGS { void|sys||sync(void); }
130 1.33 pooka 37 NOARGS { int|sys||kill(int pid, int signum); }
131 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
132 1.33 pooka 38 STD { int|aoutm68k_compat_43_sys||stat(const char *path, \
133 1.1 scw struct aoutm68k_stat43 *ub); } stat43
134 1.1 scw #else
135 1.1 scw 38 EXCL aoutm68k_compat_43_sys_stat
136 1.1 scw #endif
137 1.33 pooka 39 NOARGS { pid_t|sys||getppid(void); }
138 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
139 1.33 pooka 40 STD { int|aoutm68k_compat_43_sys||lstat(const char *path, \
140 1.1 scw struct aoutm68k_stat43 *ub); } lstat43
141 1.1 scw #else
142 1.1 scw 40 EXCL aoutm68k_compat_43_sys_lstat
143 1.1 scw #endif
144 1.33 pooka 41 NOARGS { int|sys||dup(int fd); }
145 1.33 pooka 42 NOARGS { int|sys||pipe(void); }
146 1.33 pooka 43 NOARGS { gid_t|sys||getegid(void); }
147 1.33 pooka 44 NOARGS { int|sys||profil(void *samples, size_t size, \
148 1.1 scw u_long offset, u_int scale); }
149 1.1 scw #if defined(KTRACE) || !defined(_KERNEL)
150 1.33 pooka 45 NOARGS { int|sys||ktrace(const char *fname, int ops, \
151 1.1 scw int facs, int pid); }
152 1.1 scw #else
153 1.1 scw 45 EXCL ktrace
154 1.1 scw #endif
155 1.15 tsutsui #if defined(COMPAT_13) || !defined(_KERNEL)
156 1.33 pooka 46 NOARGS { int|compat_13_sys||sigaction(int signum, \
157 1.1 scw const struct sigaction13 *nsa, \
158 1.1 scw struct sigaction13 *osa); } sigaction13
159 1.1 scw #else
160 1.1 scw 46 EXCL compat_13_sys_sigaction
161 1.1 scw #endif
162 1.33 pooka 47 NOARGS { gid_t|sys||getgid(void); }
163 1.15 tsutsui #if defined(COMPAT_13) || !defined(_KERNEL)
164 1.33 pooka 48 NOARGS { int|compat_13_sys||sigprocmask(int how, \
165 1.1 scw int mask); } sigprocmask13
166 1.1 scw #else
167 1.1 scw 48 EXCL compat_13_sys_sigprocmask
168 1.1 scw #endif
169 1.33 pooka 49 NOARGS { int|sys||__getlogin(char *namebuf, size_t namelen); }
170 1.33 pooka 50 NOARGS { int|sys||__setlogin(const char *namebuf); }
171 1.33 pooka 51 NOARGS { int|sys||acct(const char *path); }
172 1.15 tsutsui #if defined(COMPAT_13) || !defined(_KERNEL)
173 1.33 pooka 52 NOARGS { int|compat_13_sys||sigpending(void); } sigpending13
174 1.33 pooka 53 NOARGS { int|compat_13_sys||sigaltstack( \
175 1.1 scw const struct sigaltstack13 *nss, \
176 1.1 scw struct sigaltstack13 *oss); } sigaltstack13
177 1.1 scw #else
178 1.1 scw 52 EXCL compat_13_sys_sigpending
179 1.1 scw 53 EXCL compat_13_sys_sigaltstack
180 1.1 scw #endif
181 1.33 pooka 54 NOARGS { int|sys||ioctl(int fd, u_long com, ... void *data); }
182 1.15 tsutsui #if defined(COMPAT_12) || !defined(_KERNEL)
183 1.33 pooka 55 NOARGS { int|compat_12_sys||reboot(int opt); } oreboot
184 1.1 scw #else
185 1.1 scw 55 EXCL compat_12_sys_reboot
186 1.1 scw #endif
187 1.33 pooka 56 NOARGS { int|sys||revoke(const char *path); }
188 1.33 pooka 57 NOARGS { int|sys||symlink(const char *path, \
189 1.5 tsutsui const char *link); }
190 1.33 pooka 58 NOARGS { int|sys||readlink(const char *path, \
191 1.5 tsutsui char *buf, size_t count); }
192 1.33 pooka 59 NOARGS { int|sys||execve(const char *path, \
193 1.5 tsutsui char * const *argp, char * const *envp); }
194 1.33 pooka 60 NOARGS { mode_t|sys||umask(mode_t newmask); }
195 1.33 pooka 61 NOARGS { int|sys||chroot(const char *path); }
196 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
197 1.33 pooka 62 STD { int|aoutm68k_compat_43_sys||fstat(int fd, \
198 1.1 scw struct aoutm68k_stat43 *sb); } fstat43
199 1.33 pooka 63 NOARGS { int|compat_43_sys||getkerninfo(int op, char *where, \
200 1.1 scw int *size, int arg); } ogetkerninfo
201 1.33 pooka 64 NOARGS { int|compat_43_sys||getpagesize(void); } ogetpagesize
202 1.1 scw #else
203 1.1 scw 62 EXCL aoutm68k_compat_43_sys_fstat
204 1.1 scw 63 EXCL compat_43_sys_getkerninfo
205 1.1 scw 64 EXCL compat_43_sys_getpagesize
206 1.1 scw #endif
207 1.15 tsutsui #if defined(COMPAT_12) || !defined(_KERNEL)
208 1.33 pooka 65 NOARGS { int|compat_12_sys||msync(void *addr, size_t len); }
209 1.1 scw #else
210 1.1 scw 65 EXCL compat_12_sys_msync
211 1.1 scw #endif
212 1.1 scw ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
213 1.33 pooka 66 NOARGS { int|sys||vfork(void); }
214 1.1 scw 67 OBSOL vread
215 1.1 scw 68 OBSOL vwrite
216 1.39 kamil 69 OBSOL sbrk
217 1.38 kamil 70 OBSOL sstk
218 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
219 1.33 pooka 71 NOARGS { int|compat_43_sys||mmap(void *addr, size_t len, \
220 1.1 scw int prot, int flags, int fd, long pos); } ommap
221 1.1 scw #else
222 1.1 scw 71 EXCL compat_43_sys_mmap
223 1.1 scw #endif
224 1.41 kamil 72 NOARGS { int|sys||ovadvise(int anom); } vadvise
225 1.33 pooka 73 NOARGS { int|sys||munmap(void *addr, size_t len); }
226 1.33 pooka 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \
227 1.1 scw int prot); }
228 1.33 pooka 75 NOARGS { int|sys||madvise(void *addr, size_t len, \
229 1.1 scw int behav); }
230 1.1 scw 76 OBSOL vhangup
231 1.1 scw 77 OBSOL vlimit
232 1.33 pooka 78 NOARGS { int|sys||mincore(void *addr, size_t len, \
233 1.1 scw char *vec); }
234 1.33 pooka 79 NOARGS { int|sys||getgroups(int gidsetsize, \
235 1.1 scw gid_t *gidset); }
236 1.33 pooka 80 NOARGS { int|sys||setgroups(int gidsetsize, \
237 1.1 scw const gid_t *gidset); }
238 1.33 pooka 81 NOARGS { int|sys||getpgrp(void); }
239 1.33 pooka 82 NOARGS { int|sys||setpgid(int pid, int pgid); }
240 1.33 pooka 83 NOARGS { int|compat_50_sys||setitimer(int which, \
241 1.31 tsutsui const struct itimerval50 *itv, \
242 1.31 tsutsui struct itimerval50 *oitv); }
243 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
244 1.33 pooka 84 NOARGS { int|compat_43_sys||wait(void); } owait
245 1.1 scw #else
246 1.1 scw 84 EXCL compat_43_sys_wait
247 1.1 scw #endif
248 1.15 tsutsui #if defined(COMPAT_12) || !defined(_KERNEL)
249 1.33 pooka 85 NOARGS { int|compat_12_sys||swapon(const char *name); } oswapon
250 1.1 scw #else
251 1.1 scw 85 EXCL compat_12_sys_swapon
252 1.1 scw #endif
253 1.33 pooka 86 NOARGS { int|compat_50_sys||getitimer(int which, \
254 1.31 tsutsui struct itimerval50 *itv); }
255 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
256 1.33 pooka 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \
257 1.1 scw u_int len); } ogethostname
258 1.33 pooka 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \
259 1.1 scw u_int len); } osethostname
260 1.33 pooka 89 NOARGS { int|compat_43_sys||getdtablesize(void); } \
261 1.1 scw ogetdtablesize
262 1.1 scw #else
263 1.1 scw 87 EXCL compat_43_sys_gethostname
264 1.1 scw 88 EXCL compat_43_sys_sethostname
265 1.1 scw 89 EXCL compat_43_sys_getdtablesize
266 1.1 scw #endif
267 1.33 pooka 90 NOARGS { int|sys||dup2(int from, int to); }
268 1.1 scw 91 UNIMPL getdopt
269 1.33 pooka 92 NOARGS { int|sys||fcntl(int fd, int cmd, ... void *arg); }
270 1.33 pooka 93 NOARGS { int|compat_50_sys||select(int nd, fd_set *in, \
271 1.31 tsutsui fd_set *ou, fd_set *ex, struct timeval50 *tv); }
272 1.1 scw 94 UNIMPL setdopt
273 1.33 pooka 95 NOARGS { int|sys||fsync(int fd); }
274 1.33 pooka 96 NOARGS { int|sys||setpriority(int which, int who, int prio); }
275 1.42 pgoyette #if defined(COMPAT_30) || !defined(_KERNEL)
276 1.33 pooka 97 NOARGS { int|compat_30_sys||socket(int domain, int type, int protocol); }
277 1.42 pgoyette #else
278 1.42 pgoyette 97 EXCL compat_30_sys_socket
279 1.42 pgoyette #endif
280 1.33 pooka 98 NOARGS { int|sys||connect(int s, const struct sockaddr *name, \
281 1.1 scw int namelen); }
282 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
283 1.33 pooka 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \
284 1.1 scw int *anamelen); } oaccept
285 1.1 scw #else
286 1.1 scw 99 EXCL compat_43_sys_accept
287 1.1 scw #endif
288 1.33 pooka 100 NOARGS { int|sys||getpriority(int which, int who); }
289 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
290 1.33 pooka 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \
291 1.1 scw int flags); } osend
292 1.33 pooka 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \
293 1.1 scw int flags); } orecv
294 1.1 scw #else
295 1.1 scw 101 EXCL compat_43_sys_send
296 1.1 scw 102 EXCL compat_43_sys_recv
297 1.1 scw #endif
298 1.15 tsutsui #if defined(COMPAT_13) || !defined(_KERNEL)
299 1.33 pooka 103 NOARGS { int|compat_13_sys||sigreturn( \
300 1.1 scw struct sigcontext13 *sigcntxp); } sigreturn13
301 1.1 scw #else
302 1.1 scw 103 EXCL compat_13_sys_sigreturn
303 1.1 scw #endif
304 1.33 pooka 104 NOARGS { int|sys||bind(int s, const struct sockaddr *name, \
305 1.1 scw int namelen); }
306 1.33 pooka 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \
307 1.1 scw const void *val, int valsize); }
308 1.33 pooka 106 NOARGS { int|sys||listen(int s, int backlog); }
309 1.1 scw 107 OBSOL vtimes
310 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
311 1.33 pooka 108 NOARGS { int|compat_43_sys||sigvec(int signum, \
312 1.1 scw struct sigvec *nsv, struct sigvec *osv); } osigvec
313 1.33 pooka 109 NOARGS { int|compat_43_sys||sigblock(int mask); } osigblock
314 1.33 pooka 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); } osigsetmask
315 1.1 scw #else
316 1.1 scw 108 EXCL compat_43_sys_sigvec
317 1.1 scw 109 EXCL compat_43_sys_sigblock
318 1.1 scw 110 EXCL compat_43_sys_sigsetmask
319 1.1 scw #endif
320 1.15 tsutsui #if defined(COMPAT_13) || !defined(_KERNEL)
321 1.33 pooka 111 NOARGS { int|compat_13_sys||sigsuspend(int mask); } sigsuspend13
322 1.1 scw #else
323 1.1 scw 111 EXCL compat_13_sys_sigsuspend
324 1.1 scw #endif
325 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
326 1.33 pooka 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \
327 1.1 scw struct sigstack *oss); } osigstack
328 1.33 pooka 113 NOARGS { int|compat_43_sys||recvmsg(int s, \
329 1.1 scw struct omsghdr *msg, int flags); } orecvmsg
330 1.33 pooka 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \
331 1.1 scw int flags); } osendmsg
332 1.1 scw #else
333 1.1 scw 112 EXCL compat_43_sys_sigstack
334 1.1 scw 113 EXCL compat_43_sys_recvmesg
335 1.1 scw 114 EXCL compat_43_sys_sendmesg
336 1.1 scw #endif
337 1.1 scw 115 OBSOL vtrace
338 1.33 pooka 116 NOARGS { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \
339 1.1 scw struct timezone *tzp); }
340 1.33 pooka 117 NOARGS { int|compat_50_sys||getrusage(int who, \
341 1.31 tsutsui struct rusage50 *rusage); }
342 1.33 pooka 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \
343 1.1 scw void *val, int *avalsize); }
344 1.1 scw 119 OBSOL resuba
345 1.33 pooka 120 NOARGS { ssize_t|sys||readv(int fd, \
346 1.1 scw const struct iovec *iovp, int iovcnt); }
347 1.33 pooka 121 NOARGS { ssize_t|sys||writev(int fd, \
348 1.1 scw const struct iovec *iovp, int iovcnt); }
349 1.33 pooka 122 NOARGS { int|compat_50_sys||settimeofday( \
350 1.31 tsutsui const struct timeval50 *tv, \
351 1.1 scw const struct timezone *tzp); }
352 1.33 pooka 123 NOARGS { int|sys||fchown(int fd, uid_t uid, gid_t gid); }
353 1.33 pooka 124 NOARGS { int|sys||fchmod(int fd, mode_t mode); }
354 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
355 1.33 pooka 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \
356 1.23 christos size_t len, int flags, void *from, \
357 1.1 scw int *fromlenaddr); } orecvfrom
358 1.1 scw #else
359 1.1 scw 125 EXCL compat_43_sys_recvfrom
360 1.1 scw #endif
361 1.33 pooka 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); }
362 1.33 pooka 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); }
363 1.33 pooka 128 NOARGS { int|sys||rename(const char *from, const char *to); }
364 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
365 1.33 pooka 129 NOARGS { int|compat_43_sys||truncate(const char *path, \
366 1.5 tsutsui long length); } otruncate
367 1.33 pooka 130 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } \
368 1.1 scw oftruncate
369 1.1 scw #else
370 1.5 tsutsui 129 EXCL compat_43_sys_truncate
371 1.1 scw 130 EXCL compat_43_sys_ftruncate
372 1.1 scw #endif
373 1.33 pooka 131 NOARGS { int|sys||flock(int fd, int how); }
374 1.33 pooka 132 NOARGS { int|sys||mkfifo(const char *path, mode_t mode); }
375 1.33 pooka 133 NOARGS { ssize_t|sys||sendto(int s, const void *buf, \
376 1.1 scw size_t len, int flags, const struct sockaddr *to, \
377 1.1 scw int tolen); }
378 1.33 pooka 134 NOARGS { int|sys||shutdown(int s, int how); }
379 1.33 pooka 135 NOARGS { int|sys||socketpair(int domain, int type, \
380 1.1 scw int protocol, int *rsv); }
381 1.33 pooka 136 NOARGS { int|sys||mkdir(const char *path, mode_t mode); }
382 1.33 pooka 137 NOARGS { int|sys||rmdir(const char *path); }
383 1.33 pooka 138 NOARGS { int|compat_50_sys||utimes(const char *path, \
384 1.31 tsutsui const struct timeval50 *tptr); }
385 1.1 scw 139 OBSOL 4.2 sigreturn
386 1.33 pooka 140 NOARGS { int|compat_50_sys||adjtime( \
387 1.31 tsutsui const struct timeval50 *delta, \
388 1.31 tsutsui struct timeval50 *olddelta); }
389 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
390 1.33 pooka 141 NOARGS { int|compat_43_sys||getpeername(int fdes, void *asa, \
391 1.1 scw int *alen); } ogetpeername
392 1.33 pooka 142 NOARGS { int32_t|compat_43_sys||gethostid(void); } ogethostid
393 1.33 pooka 143 NOARGS { int|compat_43_sys||sethostid(int32_t hostid); } \
394 1.1 scw osethostid
395 1.33 pooka 144 NOARGS { int|compat_43_sys||getrlimit(int which, \
396 1.1 scw struct orlimit *rlp); } ogetrlimit
397 1.33 pooka 145 NOARGS { int|compat_43_sys||setrlimit(int which, \
398 1.1 scw const struct orlimit *rlp); } osetrlimit
399 1.33 pooka 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); } \
400 1.1 scw okillpg
401 1.1 scw #else
402 1.1 scw 141 EXCL compat_43_sys_getpeername
403 1.1 scw 142 EXCL compat_43_sys_gethostid
404 1.1 scw 143 EXCL compat_43_sys_sethostid
405 1.1 scw 144 EXCL compat_43_sys_getrlimit
406 1.1 scw 145 EXCL compat_43_sys_setrlimit
407 1.1 scw 146 EXCL compat_43_sys_killpg
408 1.1 scw #endif
409 1.33 pooka 147 NOARGS { int|sys||setsid(void); }
410 1.43 christos #if defined(QUOTA) || !defined(_KERNEL_OPT)
411 1.37 bouyer 148 NOARGS { int|compat_50_sys||quotactl(const char *path, \
412 1.23 christos int cmd, int uid, void *arg); }
413 1.43 christos #else
414 1.43 christos 148 EXCL compat_50_sys_quotactl
415 1.43 christos #endif
416 1.43 christos #if (defined(QUOTA) && defined(COMPAT_43)) || !defined(_KERNEL_OPT)
417 1.33 pooka 149 NOARGS { int|compat_43_sys||quota(void); } oquota
418 1.43 christos #else
419 1.43 christos 149 EXCL compat_43_sys_quota
420 1.43 christos #endif
421 1.43 christos #if defined(COMPAT_43) || !defined(_KERNEL_OPT)
422 1.33 pooka 150 NOARGS { int|compat_43_sys||getsockname(int fdec, void *asa, \
423 1.1 scw int *alen); } ogetsockname
424 1.1 scw #else
425 1.44 christos 150 EXCL compat_43_sys_getsockname
426 1.1 scw #endif
427 1.1 scw
428 1.1 scw ; Syscalls 151-180 inclusive are reserved for vendor-specific
429 1.1 scw ; system calls. (This includes various calls added for compatibity
430 1.1 scw ; with other Unix variants.)
431 1.1 scw ; Some of these calls are now supported by BSD...
432 1.1 scw 151 UNIMPL
433 1.1 scw 152 UNIMPL
434 1.1 scw 153 UNIMPL
435 1.1 scw 154 UNIMPL
436 1.1 scw 155 EXCL nfssvc
437 1.15 tsutsui #if defined(COMPAT_43) || !defined(_KERNEL)
438 1.33 pooka 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \
439 1.1 scw u_int count, long *basep); } ogetdirentries
440 1.1 scw #else
441 1.1 scw 156 EXCL compat_43_sys_getdirentries
442 1.1 scw #endif
443 1.15 tsutsui #if defined(COMPAT_20) || !defined(_KERNEL)
444 1.33 pooka 157 NOARGS { int|compat_20_sys||statfs(const char *path, \
445 1.11 christos struct statfs12 *buf); }
446 1.11 christos #else
447 1.11 christos 157 EXCL compat_20_sys_statfs
448 1.11 christos #endif
449 1.15 tsutsui #if defined(COMPAT_20) || !defined(_KERNEL)
450 1.33 pooka 158 NOARGS { int|compat_20_sys||fstatfs(int fd, \
451 1.11 christos struct statfs12 *buf); }
452 1.11 christos #else
453 1.11 christos 158 EXCL compat_20_sys_statfs
454 1.5 tsutsui #endif
455 1.1 scw 159 UNIMPL
456 1.1 scw 160 UNIMPL
457 1.42 pgoyette #if defined(COMPAT_30) || !defined(_KERNEL)
458 1.33 pooka 161 NOARGS { int|compat_30_sys||getfh(const char *fname, \
459 1.19 martin struct compat_30_fhandle *fhp); }
460 1.42 pgoyette #else
461 1.42 pgoyette 161 EXCL compat_30_sys_getfh
462 1.42 pgoyette #endif
463 1.15 tsutsui #if defined(COMPAT_09) || !defined(_KERNEL)
464 1.33 pooka 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \
465 1.1 scw int len); } ogetdomainname
466 1.33 pooka 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \
467 1.1 scw int len); } osetdomainname
468 1.33 pooka 164 NOARGS { int|compat_09_sys||uname(struct outsname *name); } \
469 1.1 scw ouname
470 1.1 scw #else
471 1.1 scw 162 EXCL compat_09_sys_getdomainname
472 1.1 scw 163 EXCL compat_09_sys_setdomainname
473 1.1 scw 164 EXCL compat_09_sys_uname
474 1.1 scw #endif
475 1.33 pooka 165 NOARGS { int|sys||sysarch(int op, void *parms); }
476 1.1 scw 166 UNIMPL
477 1.1 scw 167 UNIMPL
478 1.1 scw 168 UNIMPL
479 1.1 scw ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
480 1.7 eeh #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
481 1.33 pooka 169 NOARGS { int|compat_10_sys||semsys(int which, int a2, int a3, \
482 1.1 scw int a4, int a5); } osemsys
483 1.1 scw #else
484 1.1 scw 169 EXCL 1.0 semsys
485 1.1 scw #endif
486 1.1 scw ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
487 1.7 eeh #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
488 1.33 pooka 170 NOARGS { int|compat_10_sys||msgsys(int which, int a2, int a3, \
489 1.1 scw int a4, int a5, int a6); } omsgsys
490 1.1 scw #else
491 1.1 scw 170 EXCL 1.0 msgsys
492 1.1 scw #endif
493 1.1 scw ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
494 1.7 eeh #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
495 1.33 pooka 171 NOARGS { int|compat_10_sys||shmsys(int which, int a2, int a3, \
496 1.1 scw int a4); } oshmsys
497 1.1 scw #else
498 1.1 scw 171 EXCL 1.0 shmsys
499 1.1 scw #endif
500 1.1 scw 172 UNIMPL
501 1.33 pooka 173 NOARGS { ssize_t|sys||pread(int fd, void *buf, \
502 1.1 scw size_t nbyte, int pad, off_t offset); }
503 1.33 pooka 174 NOARGS { ssize_t|sys||pwrite(int fd, const void *buf, \
504 1.1 scw size_t nbyte, int pad, off_t offset); }
505 1.32 pooka 175 UNIMPL sys_ntp_gettime
506 1.1 scw #if defined(NTP) || !defined(_KERNEL)
507 1.33 pooka 176 NOARGS { int|sys||ntp_adjtime(struct timex *tp); }
508 1.1 scw #else
509 1.1 scw 176 EXCL ntp_adjtime
510 1.1 scw #endif
511 1.1 scw 177 UNIMPL
512 1.1 scw 178 UNIMPL
513 1.1 scw 179 UNIMPL
514 1.1 scw 180 UNIMPL
515 1.1 scw
516 1.1 scw ; Syscalls 180-199 are used by/reserved for BSD
517 1.33 pooka 181 NOARGS { int|sys||setgid(gid_t gid); }
518 1.33 pooka 182 NOARGS { int|sys||setegid(gid_t egid); }
519 1.33 pooka 183 NOARGS { int|sys||seteuid(uid_t euid); }
520 1.1 scw 184 EXCL lfs_bmapv
521 1.1 scw 185 EXCL lfs_markv
522 1.1 scw 186 EXCL lfs_segclean
523 1.1 scw 187 EXCL lfs_segwait
524 1.15 tsutsui #if defined(COMPAT_12) || !defined(_KERNEL)
525 1.33 pooka 188 STD { int|aoutm68k_compat_12_sys||stat(const char *path, \
526 1.1 scw struct aoutm68k_stat12 *ub); } stat12
527 1.33 pooka 189 STD { int|aoutm68k_compat_12_sys||fstat(int fd, \
528 1.1 scw struct aoutm68k_stat12 *sb); } fstat12
529 1.33 pooka 190 STD { int|aoutm68k_compat_12_sys||lstat(const char *path, \
530 1.1 scw struct aoutm68k_stat12 *ub); } lstat12
531 1.1 scw #else
532 1.1 scw 188 EXCL aoutm68k_compat_12_sys_stat
533 1.1 scw 189 EXCL aoutm68k_compat_12_sys_fstat
534 1.1 scw 190 EXCL aoutm68k_compat_12_sys_lstat
535 1.1 scw #endif
536 1.33 pooka 191 NOARGS { long|sys||pathconf(const char *path, int name); }
537 1.33 pooka 192 NOARGS { long|sys||fpathconf(int fd, int name); }
538 1.1 scw 193 UNIMPL
539 1.33 pooka 194 NOARGS { int|sys||getrlimit(int which, \
540 1.1 scw struct rlimit *rlp); }
541 1.33 pooka 195 NOARGS { int|sys||setrlimit(int which, \
542 1.1 scw const struct rlimit *rlp); }
543 1.15 tsutsui #if defined(COMPAT_12) || !defined(_KERNEL)
544 1.33 pooka 196 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \
545 1.1 scw u_int count, long *basep); }
546 1.1 scw #else
547 1.1 scw 196 EXCL compat_12_sys_getdirentries
548 1.1 scw #endif
549 1.33 pooka 197 NOARGS { void *|sys||mmap(void *addr, size_t len, int prot, \
550 1.1 scw int flags, int fd, long pad, off_t pos); }
551 1.33 pooka 198 NOARGS INDIR { quad_t|sys||__syscall(quad_t code, \
552 1.25 dsl ... register32_t args[AOUTM68K_SYS_MAXSYSARGS]); }
553 1.33 pooka 199 NOARGS { off_t|sys||lseek(int fd, int pad, off_t offset, \
554 1.1 scw int whence); }
555 1.33 pooka 200 NOARGS { int|sys||truncate(const char *path, int pad, \
556 1.5 tsutsui off_t length); }
557 1.33 pooka 201 NOARGS { int|sys||ftruncate(int fd, int pad, off_t length); }
558 1.33 pooka 202 NOARGS { int|sys||__sysctl(int *name, u_int namelen, \
559 1.1 scw void *old, size_t *oldlenp, void *new, \
560 1.1 scw size_t newlen); }
561 1.33 pooka 203 NOARGS { int|sys||mlock(const void *addr, size_t len); }
562 1.33 pooka 204 NOARGS { int|sys||munlock(const void *addr, size_t len); }
563 1.33 pooka 205 NOARGS { int|sys||undelete(const char *path); }
564 1.33 pooka 206 NOARGS { int|compat_50_sys||futimes(int fd, \
565 1.31 tsutsui const struct timeval50 *tptr); }
566 1.33 pooka 207 NOARGS { pid_t|sys||getpgid(pid_t pid); }
567 1.33 pooka 208 NOARGS { int|sys||reboot(int opt, char *bootstr); }
568 1.33 pooka 209 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \
569 1.1 scw int timeout); }
570 1.29 ad 210 UNIMPL
571 1.29 ad 211 UNIMPL
572 1.29 ad 212 UNIMPL
573 1.29 ad 213 UNIMPL
574 1.29 ad 214 UNIMPL
575 1.29 ad 215 UNIMPL
576 1.29 ad 216 UNIMPL
577 1.29 ad 217 UNIMPL
578 1.29 ad 218 UNIMPL
579 1.29 ad 219 UNIMPL
580 1.1 scw ; System calls 220-300 are reserved for use by NetBSD
581 1.1 scw #if defined(SYSVSEM) || !defined(_KERNEL)
582 1.15 tsutsui #if defined(COMPAT_14) || !defined(_KERNEL)
583 1.33 pooka 220 NOARGS { int|compat_14_sys||__semctl(int semid, \
584 1.1 scw int semnum, int cmd, union __semun *arg); }
585 1.1 scw #else
586 1.1 scw 220 EXCL compat_14_semctl
587 1.1 scw #endif
588 1.33 pooka 221 NOARGS { int|sys||semget(key_t key, int nsems, int semflg); }
589 1.33 pooka 222 NOARGS { int|sys||semop(int semid, struct sembuf *sops, \
590 1.1 scw size_t nsops); }
591 1.33 pooka 223 NOARGS { int|sys||semconfig(int flag); }
592 1.1 scw #else
593 1.1 scw 220 EXCL compat_14_semctl
594 1.1 scw 221 EXCL semget
595 1.1 scw 222 EXCL semop
596 1.1 scw 223 EXCL semconfig
597 1.1 scw #endif
598 1.1 scw #if defined(SYSVMSG) || !defined(_KERNEL)
599 1.15 tsutsui #if defined(COMPAT_14) || !defined(_KERNEL)
600 1.33 pooka 224 NOARGS { int|compat_14_sys||msgctl(int msqid, int cmd, \
601 1.1 scw struct msqid_ds14 *buf); }
602 1.1 scw #else
603 1.1 scw 224 EXCL compat_14_sys_msgctl
604 1.1 scw #endif
605 1.33 pooka 225 NOARGS { int|sys||msgget(key_t key, int msgflg); }
606 1.33 pooka 226 NOARGS { int|sys||msgsnd(int msqid, const void *msgp, \
607 1.1 scw size_t msgsz, int msgflg); }
608 1.33 pooka 227 NOARGS { ssize_t|sys||msgrcv(int msqid, void *msgp, \
609 1.1 scw size_t msgsz, long msgtyp, int msgflg); }
610 1.1 scw #else
611 1.1 scw 224 EXCL compat_14_msgctl
612 1.1 scw 225 EXCL msgget
613 1.1 scw 226 EXCL msgsnd
614 1.1 scw 227 EXCL msgrcv
615 1.1 scw #endif
616 1.1 scw #if defined(SYSVSHM) || !defined(_KERNEL)
617 1.33 pooka 228 NOARGS { void *|sys||shmat(int shmid, const void *shmaddr, \
618 1.1 scw int shmflg); }
619 1.15 tsutsui #if defined(COMPAT_14) || !defined(_KERNEL)
620 1.33 pooka 229 NOARGS { int|compat_14_sys||shmctl(int shmid, int cmd, \
621 1.1 scw struct shmid_ds14 *buf); }
622 1.1 scw #else
623 1.1 scw 229 EXCL compat_14_sys_shmctl
624 1.1 scw #endif
625 1.33 pooka 230 NOARGS { int|sys||shmdt(const void *shmaddr); }
626 1.33 pooka 231 NOARGS { int|sys||shmget(key_t key, size_t size, int shmflg); }
627 1.1 scw #else
628 1.1 scw 228 EXCL shmat
629 1.1 scw 229 EXCL compat_14_shmctl
630 1.1 scw 230 EXCL shmdt
631 1.1 scw 231 EXCL shmget
632 1.1 scw #endif
633 1.33 pooka 232 NOARGS { int|compat_50_sys||clock_gettime(clockid_t clock_id, \
634 1.31 tsutsui struct timespec50 *tp); }
635 1.33 pooka 233 NOARGS { int|compat_50_sys||clock_settime(clockid_t clock_id, \
636 1.31 tsutsui const struct timespec50 *tp); }
637 1.33 pooka 234 NOARGS { int|compat_50_sys||clock_getres(clockid_t clock_id, \
638 1.31 tsutsui struct timespec50 *tp); }
639 1.1 scw 235 UNIMPL timer_create
640 1.1 scw 236 UNIMPL timer_delete
641 1.1 scw 237 UNIMPL timer_settime
642 1.1 scw 238 UNIMPL timer_gettime
643 1.1 scw 239 UNIMPL timer_getoverrun
644 1.1 scw ;
645 1.1 scw ; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
646 1.1 scw ;
647 1.33 pooka 240 NOARGS { int|compat_50_sys||nanosleep( \
648 1.31 tsutsui const struct timespec50 *rqtp, \
649 1.31 tsutsui struct timespec50 *rmtp); }
650 1.33 pooka 241 NOARGS { int|sys||fdatasync(int fd); }
651 1.33 pooka 242 NOARGS { int|sys||mlockall(int flags); }
652 1.33 pooka 243 NOARGS { int|sys||munlockall(void); }
653 1.1 scw 244 UNIMPL
654 1.1 scw 245 UNIMPL
655 1.1 scw 246 UNIMPL
656 1.1 scw 247 UNIMPL
657 1.1 scw 248 UNIMPL
658 1.1 scw 249 UNIMPL
659 1.1 scw 250 UNIMPL
660 1.1 scw 251 UNIMPL
661 1.1 scw 252 UNIMPL
662 1.1 scw 253 UNIMPL
663 1.1 scw 254 UNIMPL
664 1.1 scw 255 UNIMPL
665 1.1 scw 256 UNIMPL
666 1.1 scw 257 UNIMPL
667 1.1 scw 258 UNIMPL
668 1.1 scw 259 UNIMPL
669 1.1 scw 260 UNIMPL
670 1.1 scw 261 UNIMPL
671 1.1 scw 262 UNIMPL
672 1.1 scw 263 UNIMPL
673 1.1 scw 264 UNIMPL
674 1.1 scw 265 UNIMPL
675 1.1 scw 266 UNIMPL
676 1.1 scw 267 UNIMPL
677 1.1 scw 268 UNIMPL
678 1.1 scw 269 UNIMPL
679 1.33 pooka 270 NOARGS { int|sys||__posix_rename(const char *from, \
680 1.5 tsutsui const char *to); }
681 1.33 pooka 271 NOARGS { int|sys||swapctl(int cmd, const void *arg, int misc); }
682 1.15 tsutsui #if defined(COMPAT_30) || !defined(_KERNEL)
683 1.33 pooka 272 NOARGS { int|compat_30_sys||getdents(int fd, char *buf, size_t count); }
684 1.14 christos #else
685 1.14 christos 272 EXCL compat_30_sys_getdents
686 1.14 christos #endif
687 1.33 pooka 273 NOARGS { int|sys||minherit(void *addr, size_t len, \
688 1.1 scw int inherit); }
689 1.33 pooka 274 NOARGS { int|sys||lchmod(const char *path, mode_t mode); }
690 1.33 pooka 275 NOARGS { int|sys||lchown(const char *path, uid_t uid, \
691 1.5 tsutsui gid_t gid); }
692 1.33 pooka 276 NOARGS { int|compat_50_sys||lutimes(const char *path, \
693 1.31 tsutsui const struct timeval50 *tptr); }
694 1.33 pooka 277 NOARGS { int|sys|13|msync(void *addr, size_t len, int flags); }
695 1.33 pooka 278 STD { int|aoutm68k_sys|13|stat(const char *path, \
696 1.1 scw struct aoutm68k_stat *ub); }
697 1.33 pooka 279 STD { int|aoutm68k_sys|13|fstat(int fd, \
698 1.1 scw struct aoutm68k_stat *sb); }
699 1.33 pooka 280 STD { int|aoutm68k_sys|13|lstat(const char *path, \
700 1.1 scw struct aoutm68k_stat *ub); }
701 1.33 pooka 281 NOARGS { int|sys|14|sigaltstack( \
702 1.1 scw const struct sigaltstack *nss, \
703 1.1 scw struct sigaltstack *oss); }
704 1.33 pooka 282 NOARGS { int|sys|14|vfork(void); }
705 1.33 pooka 283 NOARGS { int|sys||__posix_chown(const char *path, uid_t uid, \
706 1.5 tsutsui gid_t gid); }
707 1.33 pooka 284 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \
708 1.1 scw gid_t gid); }
709 1.33 pooka 285 NOARGS { int|sys||__posix_lchown(const char *path, uid_t uid, \
710 1.1 scw gid_t gid); }
711 1.33 pooka 286 NOARGS { pid_t|sys||getsid(pid_t pid); }
712 1.1 scw 287 UNIMPL
713 1.1 scw #if defined(KTRACE) || !defined(_KERNEL)
714 1.33 pooka 288 NOARGS { int|sys||fktrace(const int fd, int ops, \
715 1.1 scw int facs, int pid); }
716 1.1 scw #else
717 1.1 scw 288 EXCL ktrace
718 1.1 scw #endif
719 1.33 pooka 289 NOARGS { ssize_t|sys||preadv(int fd, \
720 1.1 scw const struct iovec *iovp, int iovcnt, \
721 1.1 scw int pad, off_t offset); }
722 1.33 pooka 290 NOARGS { ssize_t|sys||pwritev(int fd, \
723 1.1 scw const struct iovec *iovp, int iovcnt, \
724 1.1 scw int pad, off_t offset); }
725 1.15 tsutsui #if defined(COMPAT_16) || !defined(_KERNEL)
726 1.33 pooka 291 NOARGS { int|compat_16_sys|14|sigaction(int signum, \
727 1.1 scw const struct sigaction *nsa, \
728 1.1 scw struct sigaction *osa); }
729 1.10 cl #else
730 1.10 cl 291 EXCL compat_16_sys___sigaction14
731 1.10 cl #endif
732 1.33 pooka 292 NOARGS { int|sys|14|sigpending(sigset_t *set); }
733 1.33 pooka 293 NOARGS { int|sys|14|sigprocmask(int how, \
734 1.1 scw const sigset_t *set, \
735 1.1 scw sigset_t *oset); }
736 1.33 pooka 294 NOARGS { int|sys|14|sigsuspend(const sigset_t *set); }
737 1.15 tsutsui #if defined(COMPAT_16) || !defined(_KERNEL)
738 1.33 pooka 295 NOARGS { int|compat_16_sys|14|sigreturn(\
739 1.9 cl struct sigcontext *sigcntxp); }
740 1.9 cl #else
741 1.9 cl 295 EXCL compat_16_sys___sigreturn14
742 1.9 cl #endif
743 1.33 pooka 296 NOARGS { int|sys||__getcwd(char *bufp, size_t length); }
744 1.33 pooka 297 NOARGS { int|sys||fchroot(int fd); }
745 1.42 pgoyette #if defined(COMPAT_30) || ! defined(_KERNEL)
746 1.33 pooka 298 NOARGS { int|compat_30_sys||fhopen(const \
747 1.19 martin struct compat_30_fhandle *fhp, int flags); }
748 1.42 pgoyette #else
749 1.42 pgoyette 298 EXCL compat_30_sys_fhopen
750 1.42 pgoyette #endif
751 1.33 pooka 299 STD { int|aoutm68k_sys||fhstat(const struct \
752 1.19 martin compat_30_fhandle *fhp, \
753 1.1 scw struct aoutm68k_stat *sb); }
754 1.15 tsutsui #if defined(COMPAT_20) || !defined(_KERNEL)
755 1.33 pooka 300 NOARGS { int|compat_20_sys||fhstatfs(const struct \
756 1.19 martin compat_30-fhandle *fhp, \
757 1.11 christos struct statfs12 *buf); }
758 1.11 christos #else
759 1.11 christos 300 EXCL compat_20_sys_fhstatfs
760 1.11 christos #endif
761 1.1 scw #if defined(SYSVSEM) || !defined(_KERNEL)
762 1.33 pooka 301 NOARGS { int|compat_50_sys|13|__semctl(int semid, \
763 1.31 tsutsui int semnum, int cmd, ... union __semun *arg); }
764 1.1 scw #else
765 1.1 scw 301 EXCL ____semctl13
766 1.1 scw #endif
767 1.1 scw #if defined(SYSVMSG) || !defined(_KERNEL)
768 1.33 pooka 302 NOARGS { int|compat_50_sys|13|msgctl(int msqid, int cmd, \
769 1.1 scw struct msqid_ds *buf); }
770 1.1 scw #else
771 1.1 scw 302 EXCL __msgctl13
772 1.1 scw #endif
773 1.1 scw #if defined(SYSVSHM) || !defined(_KERNEL)
774 1.33 pooka 303 NOARGS { int|compat_50_sys|13|shmctl(int shmid, int cmd, \
775 1.1 scw struct shmid_ds *buf); }
776 1.1 scw #else
777 1.1 scw 303 EXCL __shmctl13
778 1.1 scw #endif
779 1.33 pooka 304 NOARGS { int|sys||lchflags(const char *path, u_long flags); }
780 1.33 pooka 305 NOARGS { int|sys||issetugid(void); }
781 1.33 pooka 306 NOARGS { int|sys||getcontext(struct __ucontext *ucp); }
782 1.33 pooka 307 NOARGS { int|sys||setcontext(const struct __ucontext *ucp); }
783