syscalls.master revision 1.62.12.1 1 1.62.12.1 skrll $NetBSD: syscalls.master,v 1.62.12.1 2009/01/19 13:17:23 skrll Exp $
2 1.16 erh ;
3 1.1 erh ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4 1.1 erh
5 1.1 erh ; NetBSD alpha COMPAT_LINUX system call name/number "master" file.
6 1.1 erh ; (See syscalls.conf to see what it is processed into.)
7 1.1 erh ;
8 1.1 erh ; Fields: number type [type-dependent ...]
9 1.1 erh ; number system call number, must be in order
10 1.1 erh ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11 1.1 erh ; the compatibility options defined in syscalls.conf.
12 1.1 erh ;
13 1.1 erh ; types:
14 1.1 erh ; STD always included
15 1.1 erh ; OBSOL obsolete, not included in system
16 1.1 erh ; UNIMPL unimplemented, not included in system
17 1.1 erh ; NODEF included, but don't define the syscall number
18 1.1 erh ; NOARGS included, but don't define the syscall args structure
19 1.1 erh ; INDIR included, but don't define the syscall args structure
20 1.1 erh ; and allow it to be "really" varargs.
21 1.1 erh ;
22 1.1 erh ; The compat options are defined in the syscalls.conf file, and the
23 1.1 erh ; compat option name is prefixed to the syscall name. Other than
24 1.1 erh ; that, they're like NODEF (for 'compat' options), or STD (for
25 1.1 erh ; 'libcompat' options).
26 1.1 erh ;
27 1.1 erh ; The type-dependent arguments are as follows:
28 1.1 erh ; For STD, NODEF, NOARGS, and compat syscalls:
29 1.1 erh ; { pseudo-proto } [alias]
30 1.1 erh ; For other syscalls:
31 1.1 erh ; [comment]
32 1.1 erh ;
33 1.1 erh ; #ifdef's, etc. may be included, and are copied to the output files.
34 1.1 erh ; #include's are copied to the syscall names and switch definition files only.
35 1.1 erh ;
36 1.16 erh ; (ERH: 3/18/00)
37 1.1 erh ;
38 1.16 erh ; XXX XAX things to do:
39 1.16 erh ; make sure non-linux_foo() matches real linux syscalls.
40 1.16 erh ; create new linux_foo functions otherwise
41 1.16 erh ; (i.e. reboot, msgrcv? )
42 1.16 erh ; make sure linux_foo() matches expected prototypes in .c files.
43 1.1 erh ; kill not used functions. (ifdef the actual code)
44 1.18 erh ; make linux_sys_sigreturn in linux_machdep.c use frame.extramask
45 1.1 erh ;
46 1.1 erh ; NOT USED = This syscall is not really used in Linux, except in its
47 1.1 erh ; osf compat mode. Since Linux binaries shouldn't ever
48 1.1 erh ; call it and osf binaries run under a different emulation,
49 1.1 erh ; it shouldn't matter that the linux version of the
50 1.1 erh ; function might not DTRT. Define it anyway so we
51 1.1 erh ; don't have to split off or ifdef the associated function.
52 1.1 erh ; A bit better might be to have makesyscalls identify this
53 1.1 erh ; as "define but don't include in table" so it doesn't actually
54 1.1 erh ; ever get called.
55 1.1 erh ; UNIMPL <blank> = not implemented here nor in linux source
56 1.1 erh ; UNIMPL osf_* = osf functions implemented in linux, not here.
57 1.1 erh ;
58 1.4 tron
59 1.34 mrg #if defined(_KERNEL_OPT)
60 1.4 tron #include "opt_sysv.h"
61 1.25 mycroft #endif
62 1.1 erh
63 1.1 erh #include <sys/param.h>
64 1.9 tron #include <sys/poll.h>
65 1.1 erh #include <sys/systm.h>
66 1.1 erh #include <sys/signal.h>
67 1.1 erh #include <sys/mount.h>
68 1.1 erh #include <sys/syscallargs.h>
69 1.1 erh
70 1.2 christos #include <compat/linux/common/linux_types.h>
71 1.2 christos #include <compat/linux/common/linux_signal.h>
72 1.2 christos #include <compat/linux/common/linux_siginfo.h>
73 1.2 christos #include <compat/linux/common/linux_ipc.h>
74 1.2 christos #include <compat/linux/common/linux_msg.h>
75 1.2 christos #include <compat/linux/common/linux_sem.h>
76 1.2 christos #include <compat/linux/common/linux_shm.h>
77 1.5 erh #include <compat/linux/common/linux_mmap.h>
78 1.2 christos ;#include <compat/linux/common/linux_machdep.h>
79 1.2 christos
80 1.2 christos #include <compat/linux/linux_syscallargs.h>
81 1.25 mycroft
82 1.25 mycroft %%
83 1.1 erh
84 1.62.12.1 skrll 0 NOARGS { int|linux_sys||nosys(void); } syscall
85 1.62.12.1 skrll 1 NOARGS { int|sys||exit(int rval); }
86 1.62.12.1 skrll 2 NOARGS { int|sys||fork(void); }
87 1.62.12.1 skrll 3 NOARGS { int|sys||read(int fd, void *buf, size_t nbyte); }
88 1.62.12.1 skrll 4 NOARGS { int|sys||write(int fd, const void *buf, size_t nbyte); }
89 1.1 erh 5 UNIMPL
90 1.62.12.1 skrll 6 NOARGS { int|sys||close(int fd); }
91 1.62.12.1 skrll 7 NODEF { int|osf1_sys||wait4(int pid, int *status, \
92 1.22 erh int options, struct osf1_rusage *rusage); }
93 1.22 erh ;8 ALIAS osf1_sys_old_creat, NOT USED
94 1.62.12.1 skrll 8 STD { int|linux_sys||creat(const char *path, mode_t mode); }
95 1.62.12.1 skrll 9 NOARGS { int|sys||link(const char *path, const char *link); }
96 1.62.12.1 skrll 10 STD { int|linux_sys||unlink(const char *path); }
97 1.1 erh 11 UNIMPL
98 1.62.12.1 skrll 12 NOARGS { int|sys||chdir(const char *path); }
99 1.62.12.1 skrll 13 NOARGS { int|sys||fchdir(int fd); }
100 1.62.12.1 skrll 14 STD { int|linux_sys||mknod(const char *path, int mode, int dev); }
101 1.62.12.1 skrll 15 NOARGS { int|sys||chmod(const char *path, int mode); }
102 1.62.12.1 skrll 16 NOARGS { int|sys||__posix_chown(const char *path, int uid, int gid); }
103 1.22 erh ;17 ALIAS osf1_sys_brk
104 1.62.12.1 skrll 17 STD { int|linux_sys||brk(char *nsize); }
105 1.1 erh 18 UNIMPL
106 1.62.12.1 skrll 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \
107 1.1 erh int whence); }
108 1.62.12.1 skrll 20 NOARGS { pid_t|sys||getpid_with_ppid(void); }
109 1.62.12.1 skrll 21 NODEF { int|osf1_sys||mount(int type, const char *path, \
110 1.57 christos int flags, void *data); }
111 1.21 erh 22 UNIMPL umount
112 1.62.12.1 skrll 23 NOARGS { int|sys||setuid(uid_t uid); }
113 1.62.12.1 skrll 24 NOARGS { uid_t|sys||getuid_with_euid(void); }
114 1.1 erh 25 UNIMPL
115 1.62.12.1 skrll 26 STD { int|linux_sys||ptrace(long request, long pid, \
116 1.16 erh long addr, long data); }
117 1.1 erh 27 UNIMPL
118 1.1 erh 28 UNIMPL
119 1.1 erh 29 UNIMPL
120 1.1 erh 30 UNIMPL
121 1.1 erh 31 UNIMPL
122 1.1 erh 32 UNIMPL
123 1.62.12.1 skrll 33 NOARGS { int|sys||access(const char *path, int flags); }
124 1.1 erh 34 UNIMPL
125 1.1 erh 35 UNIMPL
126 1.62.12.1 skrll 36 NOARGS { int|sys||sync(void); }
127 1.62.12.1 skrll 37 STD { int|linux_sys||kill(int pid, int signum); }
128 1.1 erh 38 UNIMPL
129 1.62.12.1 skrll 39 NOARGS { int|sys||setpgid(int pid, int pgid); }
130 1.1 erh 40 UNIMPL
131 1.62.12.1 skrll 41 NOARGS { int|sys||dup(int fd); }
132 1.62.12.1 skrll 42 NOARGS { int|linux_sys||pipe(void); }
133 1.62.12.1 skrll 43 NODEF { int|osf1_sys||set_program_attributes( \
134 1.57 christos void *taddr, unsigned long tsize, \
135 1.57 christos void *daddr, unsigned long dsize); }
136 1.1 erh 44 UNIMPL
137 1.62.12.1 skrll 45 STD { int|linux_sys||open(const char *path, int flags, int mode); }
138 1.1 erh 46 UNIMPL
139 1.62.12.1 skrll 47 NOARGS { gid_t|sys||getgid_with_egid(void); }
140 1.22 erh ; ALIAS osf1_sys_sigprocmask(int how, unsigned long mask);
141 1.22 erh ; XXX <- copied from osf1/syscalls.master
142 1.62.12.1 skrll 48 NOARGS { int|compat_13_sys||sigprocmask(int how, \
143 1.22 erh sigset13_t mask); }
144 1.1 erh 49 UNIMPL
145 1.1 erh 50 UNIMPL
146 1.62.12.1 skrll 51 NOARGS { int|sys||acct(const char *path); }
147 1.62.12.1 skrll 52 STD { int|linux_sys||sigpending(linux_old_sigset_t *set); }
148 1.1 erh 53 UNIMPL
149 1.62.12.1 skrll 54 STD { int|linux_sys||ioctl(int fd, u_long com, \
150 1.57 christos void *data); }
151 1.1 erh 55 UNIMPL
152 1.1 erh 56 UNIMPL
153 1.62.12.1 skrll 57 NOARGS { int|sys||symlink(const char *path, const char *to); }
154 1.62.12.1 skrll 58 NOARGS { int|sys||readlink(const char *name, char *buf, \
155 1.1 erh int count); }
156 1.62.12.1 skrll 59 NOARGS { int|sys||execve(const char *path, char **argp, \
157 1.1 erh char **envp); }
158 1.62.12.1 skrll 60 NOARGS { mode_t|sys||umask(mode_t newmask); }
159 1.62.12.1 skrll 61 NOARGS { int|sys||chroot(const char *path); }
160 1.1 erh 62 UNIMPL
161 1.62.12.1 skrll 63 NOARGS { int|sys||getpgrp(void); }
162 1.62.12.1 skrll 64 NOARGS { int|compat_43_sys||getpagesize(void); }
163 1.1 erh 65 UNIMPL
164 1.62.12.1 skrll 66 NOARGS { int|sys|14|vfork(void); }
165 1.62.12.1 skrll 67 STD { int|linux_sys||stat(const char *path, \
166 1.1 erh struct linux_stat *sp); }
167 1.62.12.1 skrll 68 STD { int|linux_sys||lstat(const char *path, \
168 1.1 erh struct linux_stat *sp); }
169 1.49 perry 69 UNIMPL
170 1.1 erh 70 UNIMPL
171 1.22 erh ;71 ALIAS osf1_sys_mmap
172 1.62.12.1 skrll 71 NOARGS { int|linux_sys||mmap(unsigned long addr, size_t len, \
173 1.36 manu int prot, int flags, int fd, linux_off_t offset); }
174 1.1 erh 72 UNIMPL
175 1.62.12.1 skrll 73 NOARGS { int|sys||munmap(void *addr, size_t len); }
176 1.62.12.1 skrll 74 STD { int|linux_sys||mprotect(const void *start, \
177 1.40 christos unsigned long len, int prot); }
178 1.62.12.1 skrll 75 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); }
179 1.1 erh 76 UNIMPL vhangup
180 1.1 erh 77 UNIMPL
181 1.1 erh 78 UNIMPL
182 1.62.12.1 skrll 79 NOARGS { int|sys||getgroups(int gidsetsize, gid_t *gidset); }
183 1.62.12.1 skrll 80 NOARGS { int|sys||setgroups(int gidsetsize, const gid_t *gidset); }
184 1.1 erh 81 UNIMPL
185 1.1 erh 82 UNIMPL setpgrp
186 1.62.12.1 skrll 83 NODEF { int|osf1_sys||setitimer(u_int which, \
187 1.22 erh struct osf1_itimerval *itv, \
188 1.22 erh struct osf1_itimerval *oitv); }
189 1.1 erh 84 UNIMPL
190 1.49 perry 85 UNIMPL
191 1.22 erh 86 UNIMPL osf1_sys_getitimer
192 1.62.12.1 skrll 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \
193 1.1 erh u_int len); }
194 1.62.12.1 skrll 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \
195 1.1 erh u_int len); }
196 1.1 erh 89 UNIMPL getdtablesize
197 1.62.12.1 skrll 90 NOARGS { int|sys||dup2(int from, int to); }
198 1.62.12.1 skrll 91 STD { int|linux_sys||fstat(int fd, struct linux_stat *sp); }
199 1.62.12.1 skrll 92 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); }
200 1.62.12.1 skrll 93 NODEF { int|osf1_sys||select(u_int nd, fd_set *in, \
201 1.22 erh fd_set *ou, fd_set *ex, struct osf1_timeval *tv); }
202 1.62.12.1 skrll 94 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \
203 1.9 tron int timeout); }
204 1.62.12.1 skrll 95 NOARGS { int|sys||fsync(int fd); }
205 1.62.12.1 skrll 96 NOARGS { int|sys||setpriority(int which, int who, int prio); }
206 1.62.12.1 skrll 97 STD { int|linux_sys||socket(int domain, int type, \
207 1.1 erh int protocol); }
208 1.62.12.1 skrll 98 STD { int|linux_sys||connect(int s, \
209 1.35 jdolecek const struct osockaddr *name, \
210 1.16 erh unsigned int namelen); }
211 1.62.12.1 skrll 99 STD { int|linux_sys||accept(int s, \
212 1.35 jdolecek struct osockaddr *name, int *anamelen); }
213 1.22 erh ;100 ALIAS osf1_sys_getpriority
214 1.62.12.1 skrll 100 STD { int|linux_sys||getpriority(int which, int who); }
215 1.62.12.1 skrll 101 STD { int|linux_sys||send(int s, void *buf, int len, \
216 1.1 erh int flags); }
217 1.62.12.1 skrll 102 STD { int|linux_sys||recv(int s, void *buf, int len, \
218 1.1 erh int flags); }
219 1.62.12.1 skrll 103 STD { int|linux_sys||sigreturn(struct linux_sigframe *sfp); }
220 1.62.12.1 skrll 104 STD { int|linux_sys||bind(int s, \
221 1.35 jdolecek const struct osockaddr *name, \
222 1.35 jdolecek unsigned int namelen); }
223 1.62.12.1 skrll 105 STD { int|linux_sys||setsockopt(int s, int level, \
224 1.1 erh int optname, void *optval, int optlen); }
225 1.62.12.1 skrll 106 NOARGS { int|sys||listen(int s, int backlog); }
226 1.1 erh 107 UNIMPL
227 1.1 erh 108 UNIMPL
228 1.1 erh 109 UNIMPL
229 1.1 erh 110 UNIMPL
230 1.1 erh
231 1.62.12.1 skrll 111 STD { int|linux_sys||sigsuspend(void *restart, \
232 1.1 erh int oldmask, int mask); }
233 1.22 erh ;112 ALIAS osf1_sys_sigstack
234 1.62.12.1 skrll 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \
235 1.22 erh struct sigstack *oss); }
236 1.62.12.1 skrll 113 STD { ssize_t|linux_sys||recvmsg(int s, struct msghdr *msg, \
237 1.16 erh int flags); }
238 1.62.12.1 skrll 114 STD { ssize_t|linux_sys||sendmsg(int s, \
239 1.16 erh const struct msghdr *msg, int flags); }
240 1.1 erh 115 UNIMPL
241 1.62.12.1 skrll 116 NODEF { int|osf1_sys||gettimeofday(struct osf1_timeval *tv, \
242 1.22 erh struct osf1_timezone *tzp); }
243 1.62.12.1 skrll 117 NODEF { int|osf1_sys||getrusage(int who, \
244 1.22 erh struct osf1_rusage *rusage); }
245 1.62.12.1 skrll 118 STD { int|linux_sys||getsockopt(int s, int level, \
246 1.1 erh int optname, void *optval, int *optlen); }
247 1.1 erh 119 UNIMPL
248 1.62.12.1 skrll 120 NOARGS { ssize_t|sys||readv(int fd, const struct iovec *iovp, \
249 1.16 erh int iovcnt); }
250 1.62.12.1 skrll 121 NOARGS { ssize_t|sys||writev(int fd, const struct iovec *iovp, \
251 1.16 erh int iovcnt); }
252 1.62.12.1 skrll 122 NODEF { int|osf1_sys||settimeofday(struct osf1_timeval *tv, \
253 1.22 erh struct osf1_timezone *tzp); }
254 1.62.12.1 skrll 123 NOARGS { int|sys||__posix_fchown(int fd, int uid, int gid); }
255 1.62.12.1 skrll 124 NOARGS { int|sys||fchmod(int fd, mode_t mode); }
256 1.62.12.1 skrll 125 STD { int|linux_sys||recvfrom(int s, void *buf, int len, \
257 1.35 jdolecek int flags, struct osockaddr *from, \
258 1.35 jdolecek int *fromlenaddr); }
259 1.62.12.1 skrll 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); }
260 1.62.12.1 skrll 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); }
261 1.62.12.1 skrll 128 NOARGS { int|sys||__posix_rename(const char *from, const char *to); }
262 1.62.12.1 skrll 129 NOARGS { int|compat_43_sys||truncate(const char *path, \
263 1.58 njoly long length); }
264 1.62.12.1 skrll 130 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); }
265 1.62.12.1 skrll 131 NOARGS { int|sys||flock(int fd, int how); }
266 1.62.12.1 skrll 132 NOARGS { int|sys||setgid(gid_t gid); }
267 1.62.12.1 skrll 133 STD { int|linux_sys||sendto(int s, void *msg, int len, \
268 1.35 jdolecek int flags, struct osockaddr *to, int tolen); }
269 1.62.12.1 skrll 134 NOARGS { int|sys||shutdown(int s, int how); }
270 1.62.12.1 skrll 135 STD { int|linux_sys||socketpair(int domain, int type, \
271 1.1 erh int protocol, int *rsv); }
272 1.62.12.1 skrll 136 NOARGS { int|sys||mkdir(const char *path, int mode); }
273 1.62.12.1 skrll 137 NOARGS { int|sys||rmdir(const char *path); }
274 1.62.12.1 skrll 138 NODEF { int|osf1_sys||utimes(const char *path, \
275 1.22 erh const struct osf1_timeval *tptr); }
276 1.1 erh 139 UNIMPL
277 1.1 erh 140 UNIMPL
278 1.62.12.1 skrll 141 STD { int|linux_sys||getpeername(int fdes, \
279 1.57 christos void *asa, int *alen); }
280 1.1 erh 142 UNIMPL
281 1.1 erh 143 UNIMPL
282 1.62.12.1 skrll 144 STD { int|linux_sys||getrlimit(int which, \
283 1.1 erh struct orlimit *rlp); }
284 1.62.12.1 skrll 145 STD { int|linux_sys||setrlimit(int which, \
285 1.16 erh const struct orlimit *rlp); }
286 1.1 erh 146 UNIMPL
287 1.62.12.1 skrll 147 NOARGS { int|sys||setsid(void); }
288 1.1 erh 148 UNIMPL quotactl
289 1.1 erh 149 UNIMPL
290 1.62.12.1 skrll 150 STD { int|linux_sys||getsockname(int fdec, \
291 1.57 christos void *asa, int *alen); }
292 1.1 erh 151 UNIMPL
293 1.1 erh 152 UNIMPL
294 1.1 erh 153 UNIMPL
295 1.1 erh 154 UNIMPL
296 1.1 erh 155 UNIMPL
297 1.22 erh ;156 ALIAS osf1_sys_sigaction
298 1.62.12.1 skrll 156 STD { int|linux_sys||sigaction(int signum, \
299 1.1 erh const struct linux_old_sigaction *nsa, \
300 1.1 erh struct linux_old_sigaction *osa); }
301 1.1 erh 157 UNIMPL
302 1.1 erh 158 UNIMPL
303 1.22 erh ;159 ALIAS osf1_sys_getdirentries
304 1.62.12.1 skrll 159 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \
305 1.22 erh u_int count, long *basep); }
306 1.62.12.1 skrll 160 NODEF { int|osf1_sys||statfs(const char *path, \
307 1.22 erh struct osf1_statfs *buf, int len); }
308 1.62.12.1 skrll 161 NODEF { int|osf1_sys||fstatfs(int fd, \
309 1.22 erh struct osf1_statfs *buf, int len); }
310 1.1 erh 162 UNIMPL
311 1.1 erh 163 UNIMPL
312 1.1 erh 164 UNIMPL
313 1.22 erh ;165 ALIAS osf1_sys_getdomainname
314 1.62.12.1 skrll 165 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \
315 1.22 erh int len); }
316 1.62.12.1 skrll 166 STD { int|linux_sys||setdomainname(char *domainname, \
317 1.23 jdolecek int len); }
318 1.1 erh 167 UNIMPL
319 1.1 erh 168 UNIMPL
320 1.1 erh 169 UNIMPL
321 1.1 erh 170 UNIMPL
322 1.1 erh 171 UNIMPL
323 1.1 erh 172 UNIMPL
324 1.1 erh 173 UNIMPL
325 1.1 erh 174 UNIMPL
326 1.1 erh 175 UNIMPL
327 1.1 erh 176 UNIMPL
328 1.1 erh 177 UNIMPL
329 1.1 erh 178 UNIMPL
330 1.1 erh 179 UNIMPL
331 1.1 erh 180 UNIMPL
332 1.1 erh 181 UNIMPL
333 1.1 erh 182 UNIMPL
334 1.1 erh 183 UNIMPL
335 1.1 erh 184 UNIMPL
336 1.1 erh 185 UNIMPL
337 1.1 erh 186 UNIMPL
338 1.1 erh 187 UNIMPL
339 1.1 erh 188 UNIMPL
340 1.1 erh 189 UNIMPL
341 1.1 erh 190 UNIMPL
342 1.38 christos ; XXX: Dunno
343 1.62.12.1 skrll 191 STD { int|linux_sys||ugetrlimit(int which, \
344 1.37 christos struct rlimit *rlp); }
345 1.40 christos 192 UNIMPL mmap2
346 1.1 erh 193 UNIMPL
347 1.1 erh 194 UNIMPL
348 1.1 erh 195 UNIMPL
349 1.1 erh 196 UNIMPL
350 1.1 erh 197 UNIMPL
351 1.1 erh 198 UNIMPL
352 1.22 erh 199 UNIMPL osf1_sys_swapon
353 1.1 erh #ifdef SYSVMSG
354 1.62.12.1 skrll 200 NOARGS { int|linux_sys||msgctl(int msqid, int cmd, \
355 1.1 erh struct linux_msqid_ds *buf); }
356 1.62.12.1 skrll 201 NOARGS { int|sys||msgget(key_t key, int msgflg); }
357 1.62.12.1 skrll 202 NOARGS { ssize_t|sys||msgrcv(int msqid, void *msgp, \
358 1.18 erh size_t msgsz, long msgtyp, int msgflg); }
359 1.62.12.1 skrll 203 NOARGS { int|sys||msgsnd(int msqid, void *msgp, size_t msgsz, \
360 1.1 erh int msgflg); }
361 1.1 erh #else
362 1.1 erh 200 UNIMPL msgctl
363 1.1 erh 201 UNIMPL msgget
364 1.1 erh 202 UNIMPL msgrcv
365 1.1 erh 203 UNIMPL msgsnd
366 1.1 erh #endif
367 1.1 erh #ifdef SYSVSEM
368 1.62.12.1 skrll 204 NOARGS { int|linux_sys||semctl(int semid, int semnum, \
369 1.1 erh int cmd, union linux_semun arg); }
370 1.62.12.1 skrll 205 NOARGS { int|sys||semget(key_t key, int nsems, int semflg); }
371 1.62.12.1 skrll 206 NOARGS { int|sys||semop(int semid, struct sembuf *sops, \
372 1.16 erh size_t nsops); }
373 1.1 erh #else
374 1.1 erh 204 UNIMPL semctl
375 1.1 erh 205 UNIMPL semget
376 1.1 erh 206 UNIMPL semop
377 1.1 erh #endif
378 1.22 erh ;207 ALIAS osf1_sys_utsname
379 1.62.12.1 skrll 207 STD { int|linux_sys||olduname(struct linux_old_utsname *up); }
380 1.62.12.1 skrll 208 NOARGS { int|sys||__posix_lchown(const char *path, int uid, int gid); }
381 1.1 erh #ifdef SYSVSHM
382 1.62.12.1 skrll 209 NOARGS { int|linux_sys||shmat(int shmid, void *shmaddr, \
383 1.1 erh int shmflg, u_long *raddr); }
384 1.62.12.1 skrll 210 NOARGS { int|linux_sys||shmctl(int shmid, int cmd, \
385 1.1 erh struct linux_shmid_ds *buf); }
386 1.62.12.1 skrll 211 NOARGS { int|sys||shmdt(const void *shmaddr); }
387 1.62.12.1 skrll 212 NOARGS { int|linux_sys||shmget(key_t key, size_t size, int shmflg); }
388 1.1 erh #else
389 1.1 erh 209 UNIMPL shmat
390 1.1 erh 210 UNIMPL shmctl
391 1.1 erh 211 UNIMPL shmdt
392 1.1 erh 212 UNIMPL shmget
393 1.1 erh #endif
394 1.1 erh 213 UNIMPL
395 1.1 erh 214 UNIMPL
396 1.1 erh 215 UNIMPL
397 1.1 erh 216 UNIMPL
398 1.62.12.1 skrll 217 NOARGS { int|sys|13|msync(void *addr, size_t len, int flags); }
399 1.21 erh 218 UNIMPL
400 1.1 erh 219 UNIMPL
401 1.1 erh 220 UNIMPL
402 1.1 erh 221 UNIMPL
403 1.1 erh 222 UNIMPL
404 1.1 erh 223 UNIMPL
405 1.1 erh 224 UNIMPL
406 1.1 erh 225 UNIMPL
407 1.1 erh 226 UNIMPL
408 1.1 erh 227 UNIMPL
409 1.1 erh 228 UNIMPL
410 1.1 erh 229 UNIMPL
411 1.1 erh 230 UNIMPL
412 1.1 erh 231 UNIMPL
413 1.1 erh 232 UNIMPL
414 1.62.12.1 skrll 233 NOARGS { pid_t|sys||getpgid(pid_t pid); }
415 1.62.12.1 skrll 234 NOARGS { pid_t|sys||getsid(pid_t pid); }
416 1.21 erh 235 UNIMPL sigaltstack
417 1.1 erh 236 UNIMPL
418 1.1 erh 237 UNIMPL
419 1.1 erh 238 UNIMPL
420 1.1 erh 239 UNIMPL
421 1.1 erh 240 UNIMPL
422 1.62.12.1 skrll 241 NODEF { int|osf1_sys||sysinfo(int cmd, char buf, long len); }
423 1.1 erh 242 UNIMPL
424 1.1 erh 243 UNIMPL
425 1.22 erh 244 UNIMPL osf1_sys_proplist_syscall
426 1.1 erh 245 UNIMPL
427 1.1 erh 246 UNIMPL
428 1.1 erh 247 UNIMPL
429 1.1 erh 248 UNIMPL
430 1.1 erh 249 UNIMPL
431 1.1 erh 250 UNIMPL
432 1.62.12.1 skrll 251 NODEF { int|osf1_sys||usleep_thread( \
433 1.22 erh struct osf1_timeval *sleep, \
434 1.22 erh struct osf1_timeval *slept); }
435 1.1 erh 252 UNIMPL
436 1.1 erh 253 UNIMPL
437 1.22 erh 254 UNIMPL
438 1.22 erh 255 UNIMPL sysfs
439 1.62.12.1 skrll 256 NODEF { int|osf1_sys||getsysinfo(u_long op, void *buffer, \
440 1.57 christos u_long nbytes, void *arg, u_long flag); }
441 1.62.12.1 skrll 257 NODEF { int|osf1_sys||setsysinfo(u_long op, void *buffer, \
442 1.57 christos u_long nbytes, void *arg, u_long flag); }
443 1.1 erh 258 UNIMPL
444 1.1 erh 259 UNIMPL
445 1.1 erh 260 UNIMPL
446 1.21 erh ; This entry doesn't exist in the Alpha linux syscall table but the function is
447 1.21 erh ; implemented and used on other ports.
448 1.62.12.1 skrll 261 STD { int|linux_sys||fdatasync(int fd); }
449 1.1 erh 262 UNIMPL
450 1.1 erh 263 UNIMPL
451 1.1 erh 264 UNIMPL
452 1.1 erh 265 UNIMPL
453 1.1 erh 266 UNIMPL
454 1.1 erh 267 UNIMPL
455 1.1 erh 268 UNIMPL
456 1.1 erh 269 UNIMPL
457 1.1 erh 270 UNIMPL
458 1.1 erh 271 UNIMPL
459 1.1 erh 272 UNIMPL
460 1.1 erh 273 UNIMPL
461 1.1 erh 274 UNIMPL
462 1.1 erh 275 UNIMPL
463 1.1 erh 276 UNIMPL
464 1.1 erh 277 UNIMPL
465 1.1 erh 278 UNIMPL
466 1.1 erh 279 UNIMPL
467 1.1 erh 280 UNIMPL
468 1.1 erh 281 UNIMPL
469 1.1 erh 282 UNIMPL
470 1.1 erh 283 UNIMPL
471 1.1 erh 284 UNIMPL
472 1.1 erh 285 UNIMPL
473 1.1 erh 286 UNIMPL
474 1.1 erh 287 UNIMPL
475 1.1 erh 288 UNIMPL
476 1.1 erh 289 UNIMPL
477 1.1 erh 290 UNIMPL
478 1.1 erh 291 UNIMPL
479 1.1 erh 292 UNIMPL
480 1.1 erh 293 UNIMPL
481 1.1 erh 294 UNIMPL
482 1.1 erh 295 UNIMPL
483 1.1 erh 296 UNIMPL
484 1.1 erh 297 UNIMPL
485 1.1 erh 298 UNIMPL
486 1.1 erh 299 UNIMPL
487 1.1 erh 300 UNIMPL bdflush
488 1.1 erh 301 UNIMPL sethae
489 1.1 erh 302 UNIMPL mount
490 1.1 erh 303 UNIMPL old_adjtimex
491 1.62.12.1 skrll 304 STD { int|linux_sys||swapoff(const char *path); }
492 1.62.12.1 skrll 305 STD { int|linux_sys||getdents(int fd, \
493 1.1 erh struct linux_dirent *dent, unsigned int count); }
494 1.21 erh 306 UNIMPL alpha_create_module
495 1.1 erh 307 UNIMPL init_module
496 1.1 erh 308 UNIMPL delete_module
497 1.1 erh 309 UNIMPL get_kernel_syms
498 1.1 erh 310 UNIMPL syslog
499 1.62.12.1 skrll 311 STD { int|linux_sys||reboot(int magic1, int magic2, \
500 1.17 erh int cmd, void *arg); }
501 1.62.12.1 skrll 312 STD { int|linux_sys||clone(int flags, void *stack); }
502 1.1 erh #ifdef EXEC_AOUT
503 1.62.12.1 skrll 313 STD { int|linux_sys||uselib(const char *path); }
504 1.1 erh #else
505 1.1 erh 313 UNIMPL sys_uselib
506 1.1 erh #endif
507 1.62.12.1 skrll 314 NOARGS { int|sys||mlock(const void *addr, size_t len); }
508 1.62.12.1 skrll 315 NOARGS { int|sys||munlock(const void *addr, size_t len); }
509 1.62.12.1 skrll 316 NOARGS { int|sys||mlockall(int flags); }
510 1.62.12.1 skrll 317 NOARGS { int|sys||munlockall(void); }
511 1.62.12.1 skrll 318 STD { int|linux_sys||sysinfo(struct linux_sysinfo *arg); }
512 1.62.12.1 skrll 319 STD { int|linux_sys||__sysctl(struct linux___sysctl *lsp); }
513 1.1 erh 320 UNIMPL idle
514 1.21 erh 321 UNIMPL oldumount
515 1.62.12.1 skrll 322 STD { int|linux_sys||swapon(const char *name); }
516 1.62.12.1 skrll 323 STD { int|linux_sys||times(struct times *tms); }
517 1.62.12.1 skrll 324 STD { int|linux_sys||personality(int per); }
518 1.62.12.1 skrll 325 STD { int|linux_sys||setfsuid(uid_t uid); }
519 1.62.12.1 skrll 326 STD { int|linux_sys||setfsgid(gid_t gid); }
520 1.1 erh 327 UNIMPL ustat
521 1.62.12.1 skrll 328 STD { int|linux_sys||statfs(const char *path, \
522 1.1 erh struct linux_statfs *sp); }
523 1.62.12.1 skrll 329 STD { int|linux_sys||fstatfs(int fd, \
524 1.1 erh struct linux_statfs *sp); }
525 1.62.12.1 skrll 330 STD { int|linux_sys||sched_setparam(pid_t pid, \
526 1.12 tron const struct linux_sched_param *sp); }
527 1.62.12.1 skrll 331 STD { int|linux_sys||sched_getparam(pid_t pid, \
528 1.12 tron struct linux_sched_param *sp); }
529 1.62.12.1 skrll 332 STD { int|linux_sys||sched_setscheduler(pid_t pid, \
530 1.12 tron int policy, const struct linux_sched_param *sp); }
531 1.62.12.1 skrll 333 STD { int|linux_sys||sched_getscheduler(pid_t pid); }
532 1.62.12.1 skrll 334 STD { int|linux_sys||sched_yield(void); }
533 1.62.12.1 skrll 335 STD { int|linux_sys||sched_get_priority_max(int policy); }
534 1.62.12.1 skrll 336 STD { int|linux_sys||sched_get_priority_min(int policy); }
535 1.1 erh 337 UNIMPL sched_rr_get_interval
536 1.1 erh 338 UNIMPL afs_syscall
537 1.62.12.1 skrll 339 STD { int|linux_sys||uname(struct linux_utsname *up); }
538 1.62.12.1 skrll 340 STD { int|linux_sys||nanosleep( \
539 1.62.12.1 skrll const struct linux_timespec *rqtp, \
540 1.62.12.1 skrll struct linux_timespec *rmtp); }
541 1.62.12.1 skrll 341 STD { void *|linux_sys||mremap(void *old_address, \
542 1.1 erh size_t old_size, size_t new_size, u_long flags); }
543 1.1 erh 342 UNIMPL nfsservctl
544 1.62.12.1 skrll 343 STD { int|linux_sys||setresuid(uid_t ruid, uid_t euid, \
545 1.11 thorpej uid_t suid); }
546 1.62.12.1 skrll 344 STD { int|linux_sys||getresuid(uid_t *ruid, uid_t *euid, \
547 1.11 thorpej uid_t *suid); }
548 1.1 erh 345 UNIMPL pciconfig_read
549 1.1 erh 346 UNIMPL pciconfig_write
550 1.1 erh 347 UNIMPL query_module
551 1.1 erh 348 UNIMPL prctl
552 1.62.12.1 skrll 349 STD { int|linux_sys||pread(int fd, char *buf, \
553 1.13 tron size_t nbyte, linux_off_t offset); }
554 1.62.12.1 skrll 350 STD { int|linux_sys||pwrite(int fd, char *buf, \
555 1.13 tron size_t nbyte, linux_off_t offset); }
556 1.62.12.1 skrll 351 STD { int|linux_sys||rt_sigreturn( \
557 1.1 erh struct linux_rt_sigframe *sfp); }
558 1.62.12.1 skrll 352 STD { int|linux_sys||rt_sigaction(int signum, \
559 1.1 erh const struct linux_sigaction *nsa, \
560 1.1 erh struct linux_sigaction *osa, \
561 1.1 erh size_t sigsetsize); }
562 1.62.12.1 skrll 353 STD { int|linux_sys||rt_sigprocmask(int how, \
563 1.1 erh const linux_sigset_t *set, \
564 1.1 erh linux_sigset_t *oset, \
565 1.1 erh size_t sigsetsize); }
566 1.62.12.1 skrll 354 STD { int|linux_sys||rt_sigpending( \
567 1.1 erh linux_sigset_t *set, \
568 1.1 erh size_t sigsetsize); }
569 1.1 erh 355 UNIMPL rt_sigtimedwait
570 1.49 perry ; XXX XAX int here? sigset_t here?
571 1.62.12.1 skrll 356 STD { int|linux_sys||rt_queueinfo(int pid, int signum, \
572 1.3 erh linux_siginfo_t *uinfo); }
573 1.62.12.1 skrll 357 STD { int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \
574 1.1 erh size_t sigsetsize); }
575 1.62.12.1 skrll 358 STD { int|linux_sys||select(int nfds, fd_set *readfds, \
576 1.1 erh fd_set *writefds, fd_set *exceptfds, \
577 1.62.12.1 skrll struct timeval50 *timeout); }
578 1.62.12.1 skrll 359 NOARGS { int|compat_50_sys||gettimeofday( \
579 1.62.12.1 skrll struct timeval50 *tp, struct timezone *tzp); }
580 1.62.12.1 skrll 360 NOARGS { int|compat_50_sys||settimeofday( \
581 1.62.12.1 skrll const struct timeval50 *tp, \
582 1.16 erh const struct timezone *tzp); }
583 1.62.12.1 skrll 361 NOARGS { int|compat_50_sys||getitimer(int which, \
584 1.62.12.1 skrll struct itimerval50 *itv); }
585 1.62.12.1 skrll 362 NOARGS { int|compat_50_sys||setitimer(int which, \
586 1.62.12.1 skrll const struct itimerval50 *itv, \
587 1.62.12.1 skrll struct itimerval50 *oitv); }
588 1.62.12.1 skrll 363 NOARGS { int|compat_50_sys||utimes(char *path, \
589 1.62.12.1 skrll struct timeval50 *times); }
590 1.62.12.1 skrll 364 NOARGS { int|compat_50_sys||getrusage(int who, \
591 1.62.12.1 skrll struct rusage50 *rusage); }
592 1.62.12.1 skrll 365 STD { int|linux_sys||wait4(int pid, int *status, \
593 1.62.12.1 skrll int options, struct rusage50 *rusage); }
594 1.1 erh 366 UNIMPL adjtimex
595 1.62.12.1 skrll 367 NOARGS { int|sys||__getcwd(char *bufp, size_t length); }
596 1.8 tron 368 UNIMPL capget
597 1.8 tron 369 UNIMPL capset
598 1.8 tron 370 UNIMPL sendfile
599 1.26 jdolecek 371 UNIMPL setresgid
600 1.26 jdolecek 372 UNIMPL getresgid
601 1.26 jdolecek 373 UNIMPL sys_dipc
602 1.33 jdolecek 374 UNIMPL pivot_root
603 1.62.12.1 skrll 375 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); }
604 1.33 jdolecek 376 UNIMPL pciconfig_iobase
605 1.62.12.1 skrll 377 STD { int|linux_sys||getdents64(int fd, \
606 1.41 christos struct linux_dirent64 *dent, unsigned int count); }
607 1.44 jdolecek 378 UNIMPL gettid
608 1.44 jdolecek 379 UNIMPL readahead
609 1.44 jdolecek 380 UNIMPL /* unused */
610 1.44 jdolecek 381 UNIMPL tkill
611 1.62.12.1 skrll 382 STD { int|linux_sys||setxattr(char *path, char *name, \
612 1.50 fvdl void *value, size_t size, int flags); }
613 1.62.12.1 skrll 383 STD { int|linux_sys||lsetxattr(char *path, char *name, \
614 1.50 fvdl void *value, size_t size, int flags); }
615 1.62.12.1 skrll 384 STD { int|linux_sys||fsetxattr(int fd, char *name, \
616 1.50 fvdl void *value, size_t size, int flags); }
617 1.62.12.1 skrll 385 STD { ssize_t|linux_sys||getxattr(char *path, char *name, \
618 1.50 fvdl void *value, size_t size); }
619 1.62.12.1 skrll 386 STD { ssize_t|linux_sys||lgetxattr(char *path, char *name, \
620 1.50 fvdl void *value, size_t size); }
621 1.62.12.1 skrll 387 STD { ssize_t|linux_sys||fgetxattr(int fd, char *name, \
622 1.50 fvdl void *value, size_t size); }
623 1.62.12.1 skrll 388 STD { ssize_t|linux_sys||listxattr(char *path, char *list, \
624 1.50 fvdl size_t size); }
625 1.62.12.1 skrll 389 STD { ssize_t|linux_sys||llistxattr(char *path, char *list, \
626 1.50 fvdl size_t size); }
627 1.62.12.1 skrll 390 STD { ssize_t|linux_sys||flistxattr(int fd, char *list, \
628 1.50 fvdl size_t size); }
629 1.62.12.1 skrll 391 STD { int|linux_sys||removexattr(char *path, char *name); }
630 1.62.12.1 skrll 392 STD { int|linux_sys||lremovexattr(char *path, char *name); }
631 1.62.12.1 skrll 393 STD { int|linux_sys||fremovexattr(int fd, char *name); }
632 1.44 jdolecek 394 UNIMPL futex
633 1.44 jdolecek 395 UNIMPL sched_setaffinity
634 1.44 jdolecek 396 UNIMPL sched_getaffinity
635 1.44 jdolecek 397 UNIMPL tuxcall
636 1.44 jdolecek 398 UNIMPL io_setup
637 1.44 jdolecek 399 UNIMPL io_destroy
638 1.44 jdolecek 400 UNIMPL io_getevents
639 1.44 jdolecek 401 UNIMPL io_submit
640 1.44 jdolecek 402 UNIMPL io_cancel
641 1.45 jdolecek 403 UNIMPL /* unused */
642 1.45 jdolecek 404 UNIMPL /* unused */
643 1.62.12.1 skrll 405 STD { int|linux_sys||exit_group(int error_code); }
644 1.44 jdolecek 406 UNIMPL lookup_dcookie
645 1.44 jdolecek 407 UNIMPL sys_epoll_create
646 1.44 jdolecek 408 UNIMPL sys_epoll_ctl
647 1.44 jdolecek 409 UNIMPL sys_epoll_wait
648 1.44 jdolecek 410 UNIMPL remap_file_pages
649 1.44 jdolecek 411 UNIMPL set_tid_address
650 1.44 jdolecek 412 UNIMPL restart_syscall
651 1.44 jdolecek 413 UNIMPL fadvise64
652 1.44 jdolecek 414 UNIMPL timer_create
653 1.44 jdolecek 415 UNIMPL timer_settime
654 1.44 jdolecek 416 UNIMPL timer_gettime
655 1.44 jdolecek 417 UNIMPL timer_getoverrun
656 1.44 jdolecek 418 UNIMPL timer_delete
657 1.62.12.1 skrll 419 STD { int|linux_sys||clock_settime(clockid_t which, \
658 1.51 fvdl struct linux_timespec *tp); }
659 1.62.12.1 skrll 420 STD { int|linux_sys||clock_gettime(clockid_t which, \
660 1.51 fvdl struct linux_timespec *tp); }
661 1.62.12.1 skrll 421 STD { int|linux_sys||clock_getres(clockid_t which, \
662 1.51 fvdl struct linux_timespec *tp); }
663 1.62.12.1 skrll 422 STD { int|linux_sys||clock_nanosleep(clockid_t which, \
664 1.51 fvdl int flags, struct linux_timespec *rqtp, \
665 1.51 fvdl struct linux_timespec *rmtp); }
666 1.44 jdolecek 423 UNIMPL semtimedop
667 1.44 jdolecek 424 UNIMPL tgkill
668 1.44 jdolecek 425 UNIMPL stat64
669 1.44 jdolecek 426 UNIMPL lstat64
670 1.44 jdolecek 427 UNIMPL fstat64
671 1.44 jdolecek 428 UNIMPL vserver
672 1.44 jdolecek 429 UNIMPL mbind
673 1.44 jdolecek 430 UNIMPL get_mempolicy
674 1.44 jdolecek 431 UNIMPL set_mempolicy
675 1.44 jdolecek 432 UNIMPL mq_open
676 1.44 jdolecek 433 UNIMPL mq_unlink
677 1.44 jdolecek 434 UNIMPL mq_timedsend
678 1.44 jdolecek 435 UNIMPL mq_timedreceive
679 1.44 jdolecek 436 UNIMPL mq_notify
680 1.44 jdolecek 437 UNIMPL mq_getsetattr
681