syscalls.master revision 1.132 1 1.132 christos $NetBSD: syscalls.master,v 1.132 2023/07/29 15:04:28 christos Exp $
2 1.1 fvdl
3 1.1 fvdl ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4 1.1 fvdl
5 1.26 erh ; NetBSD i386 COMPAT_LINUX system call name/number "master" file.
6 1.1 fvdl ; (See syscalls.conf to see what it is processed into.)
7 1.1 fvdl ;
8 1.1 fvdl ; Fields: number type [type-dependent ...]
9 1.1 fvdl ; number system call number, must be in order
10 1.1 fvdl ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11 1.1 fvdl ; the compatibility options defined in syscalls.conf.
12 1.1 fvdl ;
13 1.1 fvdl ; types:
14 1.1 fvdl ; STD always included
15 1.1 fvdl ; OBSOL obsolete, not included in system
16 1.1 fvdl ; UNIMPL unimplemented, not included in system
17 1.1 fvdl ; NODEF included, but don't define the syscall number
18 1.1 fvdl ; NOARGS included, but don't define the syscall args structure
19 1.26 erh ; INDIR included, but don't define the syscall args structure
20 1.26 erh ; and allow it to be "really" varargs.
21 1.1 fvdl ;
22 1.1 fvdl ; The compat options are defined in the syscalls.conf file, and the
23 1.1 fvdl ; compat option name is prefixed to the syscall name. Other than
24 1.1 fvdl ; that, they're like NODEF (for 'compat' options), or STD (for
25 1.1 fvdl ; 'libcompat' options).
26 1.1 fvdl ;
27 1.1 fvdl ; The type-dependent arguments are as follows:
28 1.1 fvdl ; For STD, NODEF, NOARGS, and compat syscalls:
29 1.1 fvdl ; { pseudo-proto } [alias]
30 1.1 fvdl ; For other syscalls:
31 1.1 fvdl ; [comment]
32 1.1 fvdl ;
33 1.1 fvdl ; #ifdef's, etc. may be included, and are copied to the output files.
34 1.22 thorpej ; #include's are copied to the syscall names and switch definition files only.
35 1.28 christos
36 1.1 fvdl #include <sys/param.h>
37 1.32 abs #include <sys/poll.h>
38 1.1 fvdl #include <sys/systm.h>
39 1.1 fvdl #include <sys/signal.h>
40 1.1 fvdl #include <sys/mount.h>
41 1.1 fvdl #include <sys/syscallargs.h>
42 1.13 mycroft
43 1.97 christos #include <compat/sys/time.h>
44 1.97 christos
45 1.27 christos #include <compat/linux/common/linux_types.h>
46 1.62 christos #include <compat/linux/common/linux_mmap.h>
47 1.27 christos #include <compat/linux/common/linux_signal.h>
48 1.27 christos #include <compat/linux/common/linux_siginfo.h>
49 1.27 christos #include <compat/linux/common/linux_machdep.h>
50 1.27 christos
51 1.27 christos #include <compat/linux/linux_syscallargs.h>
52 1.13 mycroft
53 1.46 mycroft %%
54 1.1 fvdl
55 1.98 pooka 0 NOARGS { int|linux_sys||nosys(void); } syscall
56 1.103 chs 1 STD { int|linux_sys||exit(int rval); }
57 1.98 pooka 2 NOARGS { int|sys||fork(void); }
58 1.113 njoly 3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
59 1.113 njoly 4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \
60 1.113 njoly size_t nbyte); }
61 1.98 pooka 5 STD { int|linux_sys||open(const char *path, int flags, \
62 1.112 chs linux_umode_t mode); }
63 1.98 pooka 6 NOARGS { int|sys||close(int fd); }
64 1.98 pooka 7 STD { int|linux_sys||waitpid(int pid, int *status, \
65 1.13 mycroft int options);}
66 1.112 chs 8 STD { int|linux_sys||creat(const char *path, linux_umode_t mode); }
67 1.98 pooka 9 NOARGS { int|sys||link(const char *path, const char *link); }
68 1.98 pooka 10 STD { int|linux_sys||unlink(const char *path); }
69 1.98 pooka 11 NOARGS { int|sys||execve(const char *path, char **argp, \
70 1.13 mycroft char **envp); }
71 1.98 pooka 12 NOARGS { int|sys||chdir(const char *path); }
72 1.98 pooka 13 STD { int|linux_sys||time(linux_time_t *t); }
73 1.112 chs 14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \
74 1.112 chs unsigned dev); }
75 1.112 chs 15 NOARGS { int|sys||chmod(const char *path, linux_umode_t mode); }
76 1.98 pooka 16 STD { int|linux_sys||lchown16(const char *path, \
77 1.89 njoly linux_uid16_t uid, linux_gid16_t gid); }
78 1.26 erh ;17 - no longer in linux source.
79 1.98 pooka 17 STD { int|linux_sys||break(char *nsize); }
80 1.13 mycroft 18 OBSOL ostat
81 1.98 pooka 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \
82 1.13 mycroft int whence); }
83 1.98 pooka 20 NOARGS { pid_t|sys||getpid(void); }
84 1.13 mycroft 21 UNIMPL mount
85 1.13 mycroft 22 UNIMPL umount
86 1.98 pooka 23 NOARGS linux_setuid16 { int|sys||setuid(uid_t uid); }
87 1.98 pooka 24 NOARGS linux_getuid16 { uid_t|sys||getuid(void); }
88 1.98 pooka 25 STD { int|linux_sys||stime(linux_time_t *t); }
89 1.98 pooka 26 STD { int|linux_sys||ptrace(int request, int pid, \
90 1.39 tron int addr, int data); }
91 1.98 pooka 27 STD { int|linux_sys||alarm(unsigned int secs); }
92 1.13 mycroft 28 OBSOL ofstat
93 1.103 chs 29 NOARGS { int|linux_sys||pause(void); }
94 1.98 pooka 30 STD { int|linux_sys||utime(const char *path, \
95 1.13 mycroft struct linux_utimbuf *times); }
96 1.26 erh 31 OBSOL stty
97 1.26 erh 32 OBSOL gtty
98 1.98 pooka 33 NOARGS { int|sys||access(const char *path, int flags); }
99 1.98 pooka 34 STD { int|linux_sys||nice(int incr); }
100 1.26 erh 35 OBSOL ftime
101 1.98 pooka 36 NOARGS { int|sys||sync(void); }
102 1.98 pooka 37 STD { int|linux_sys||kill(int pid, int signum); }
103 1.98 pooka 38 NOARGS { int|sys||__posix_rename(const char *from, \
104 1.29 christos const char *to); }
105 1.112 chs 39 NOARGS { int|sys||mkdir(const char *path, linux_umode_t mode); }
106 1.98 pooka 40 NOARGS { int|sys||rmdir(const char *path); }
107 1.111 njoly 41 NOARGS { int|sys||dup(int fd); }
108 1.98 pooka 42 STD { int|linux_sys||pipe(int *pfds); }
109 1.98 pooka 43 STD { int|linux_sys||times(struct times *tms); }
110 1.26 erh 44 OBSOL prof
111 1.98 pooka 45 STD { int|linux_sys||brk(char *nsize); }
112 1.98 pooka 46 NOARGS linux_setgid16 { int|sys||setgid(gid_t gid); }
113 1.98 pooka 47 NOARGS linux_getgid16 { gid_t|sys||getgid(void); }
114 1.98 pooka 48 STD { int|linux_sys||signal(int signum, \
115 1.13 mycroft linux_handler_t handler); }
116 1.98 pooka 49 NOARGS linux_geteuid16 { uid_t|sys||geteuid(void); }
117 1.98 pooka 50 NOARGS linux_getegid16 { gid_t|sys||getegid(void); }
118 1.98 pooka 51 NOARGS { int|sys||acct(char *path); }
119 1.26 erh 52 OBSOL phys
120 1.26 erh 53 OBSOL lock
121 1.98 pooka 54 STD { int|linux_sys||ioctl(int fd, u_long com, \
122 1.82 christos void *data); }
123 1.98 pooka 55 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); }
124 1.26 erh 56 OBSOL mpx
125 1.98 pooka 57 NOARGS { int|sys||setpgid(int pid, int pgid); }
126 1.26 erh 58 OBSOL ulimit
127 1.98 pooka 59 STD { int|linux_sys||oldolduname( \
128 1.62 christos struct linux_oldold_utsname *up); }
129 1.98 pooka 60 NOARGS { int|sys||umask(int newmask); }
130 1.98 pooka 61 NOARGS { int|sys||chroot(char *path); }
131 1.13 mycroft 62 UNIMPL ustat
132 1.111 njoly 63 NOARGS { int|sys||dup2(int from, int to); }
133 1.98 pooka 64 NOARGS { pid_t|sys||getppid(void); }
134 1.98 pooka 65 NOARGS { int|sys||getpgrp(void); }
135 1.98 pooka 66 NOARGS { int|sys||setsid(void); }
136 1.98 pooka 67 STD { int|linux_sys||sigaction(int signum, \
137 1.26 erh const struct linux_old_sigaction *nsa, \
138 1.26 erh struct linux_old_sigaction *osa); }
139 1.103 chs 68 NOARGS { int|linux_sys||siggetmask(void); }
140 1.98 pooka 69 STD { int|linux_sys||sigsetmask(linux_old_sigset_t mask); }
141 1.98 pooka 70 STD { int|linux_sys||setreuid16(linux_uid16_t ruid, \
142 1.89 njoly linux_uid16_t euid); }
143 1.98 pooka 71 STD { int|linux_sys||setregid16(linux_gid16_t rgid, \
144 1.89 njoly linux_gid16_t egid); }
145 1.98 pooka 72 STD { int|linux_sys||sigsuspend(void *restart, \
146 1.13 mycroft int oldmask, int mask); }
147 1.98 pooka 73 STD { int|linux_sys||sigpending(linux_old_sigset_t *set); }
148 1.98 pooka 74 NOARGS { int|compat_43_sys||sethostname(char *hostname, \
149 1.13 mycroft u_int len);}
150 1.98 pooka 75 STD { int|linux_sys||setrlimit(u_int which, \
151 1.20 mycroft struct orlimit *rlp); }
152 1.98 pooka 76 STD { int|linux_sys||getrlimit(u_int which, \
153 1.20 mycroft struct orlimit *rlp); }
154 1.98 pooka 77 NOARGS { int|compat_50_sys||getrusage(int who, \
155 1.97 christos struct rusage50 *rusage); }
156 1.98 pooka 78 STD { int|linux_sys||gettimeofday(struct timeval50 *tp, \
157 1.13 mycroft struct timezone *tzp); }
158 1.98 pooka 79 STD { int|linux_sys||settimeofday(struct timeval50 *tp, \
159 1.13 mycroft struct timezone *tzp); }
160 1.98 pooka 80 STD { int|linux_sys||getgroups16(int gidsetsize, \
161 1.89 njoly linux_gid16_t *gidset); }
162 1.98 pooka 81 STD { int|linux_sys||setgroups16(int gidsetsize, \
163 1.89 njoly linux_gid16_t *gidset); }
164 1.98 pooka 82 STD { int|linux_sys||oldselect(struct linux_oldselect *lsp); }
165 1.120 ozaki 83 NOARGS { int|sys||symlink(const char *path, const char *link); }
166 1.98 pooka 84 NOARGS { int|compat_43_sys||lstat(const char *path, \
167 1.120 ozaki struct stat43 *ub); } oolstat
168 1.121 njoly 85 NOARGS { ssize_t|sys||readlink(const char *path, char *buf, \
169 1.13 mycroft int count); }
170 1.74 joerg #ifdef EXEC_AOUT
171 1.98 pooka 86 STD { int|linux_sys||uselib(const char *path); }
172 1.74 joerg #else
173 1.74 joerg 86 UNIMPL sys_uselib
174 1.74 joerg #endif
175 1.98 pooka 87 STD { int|linux_sys||swapon(char *name); }
176 1.98 pooka 88 STD { int|linux_sys||reboot(int magic1, int magic2, \
177 1.41 erh int cmd, void *arg); }
178 1.98 pooka 89 STD { int|linux_sys||readdir(int fd, void *dent, \
179 1.1 fvdl unsigned int count); }
180 1.98 pooka 90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); }
181 1.118 njoly 91 NOARGS { int|sys||munmap(void *addr, size_t len); }
182 1.98 pooka 92 NOARGS { int|compat_43_sys||truncate(const char *path, \
183 1.29 christos long length); }
184 1.98 pooka 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); }
185 1.112 chs 94 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); }
186 1.98 pooka 95 STD { int|linux_sys||fchown16(int fd, linux_uid16_t uid, \
187 1.89 njoly linux_gid16_t gid); }
188 1.98 pooka 96 STD { int|linux_sys||getpriority(int which, int who); }
189 1.98 pooka 97 NOARGS { int|sys||setpriority(int which, int who, int prio); }
190 1.98 pooka 98 NOARGS { int|sys||profil(void *samples, u_int size, \
191 1.13 mycroft u_int offset, u_int scale); }
192 1.98 pooka 99 STD { int|linux_sys||statfs(const char *path, \
193 1.13 mycroft struct linux_statfs *sp); }
194 1.98 pooka 100 STD { int|linux_sys||fstatfs(int fd, \
195 1.13 mycroft struct linux_statfs *sp); }
196 1.98 pooka 101 STD { int|linux_sys||ioperm(unsigned int lo, \
197 1.13 mycroft unsigned int hi, int val); }
198 1.98 pooka 102 STD { int|linux_sys||socketcall(int what, void *args); }
199 1.26 erh 103 UNIMPL syslog
200 1.106 christos 104 NOARGS { int|compat_50_sys||setitimer(int which, \
201 1.97 christos struct itimerval50 *itv, struct itimerval50 *oitv); }
202 1.106 christos 105 NOARGS { int|compat_50_sys||getitimer(int which, \
203 1.97 christos struct itimerval50 *itv); }
204 1.98 pooka 106 STD { int|linux_sys||stat(const char *path, \
205 1.13 mycroft struct linux_stat *sp); }
206 1.98 pooka 107 STD { int|linux_sys||lstat(const char *path, \
207 1.13 mycroft struct linux_stat *sp); }
208 1.98 pooka 108 STD { int|linux_sys||fstat(int fd, struct linux_stat *sp); }
209 1.98 pooka 109 STD { int|linux_sys||olduname(struct linux_old_utsname *up); }
210 1.98 pooka 110 STD { int|linux_sys||iopl(int level); }
211 1.13 mycroft 111 UNIMPL vhangup
212 1.13 mycroft 112 UNIMPL idle
213 1.26 erh 113 UNIMPL vm86old
214 1.98 pooka 114 STD { int|linux_sys||wait4(int pid, int *status, \
215 1.99 njoly int options, struct rusage50 *rusage); }
216 1.98 pooka 115 STD { int|linux_sys||swapoff(const char *path); }
217 1.98 pooka 116 STD { int|linux_sys||sysinfo(struct linux_sysinfo *arg); }
218 1.98 pooka 117 STD { int|linux_sys||ipc(int what, int a1, int a2, int a3, \
219 1.82 christos void *ptr); }
220 1.98 pooka 118 NOARGS { int|sys||fsync(int fd); }
221 1.98 pooka 119 STD { int|linux_sys||sigreturn(struct linux_sigcontext *scp); }
222 1.98 pooka 120 STD { int|linux_sys||clone(int flags, void *stack, \
223 1.102 chs void *parent_tidptr, void *tls, void *child_tidptr); }
224 1.98 pooka 121 STD { int|linux_sys||setdomainname(char *domainname, \
225 1.13 mycroft int len); }
226 1.98 pooka 122 STD { int|linux_sys||uname(struct linux_utsname *up); }
227 1.98 pooka 123 STD { int|linux_sys||modify_ldt(int func, void *ptr, \
228 1.13 mycroft size_t bytecount); }
229 1.13 mycroft 124 UNIMPL adjtimex
230 1.98 pooka 125 STD { int|linux_sys||mprotect(const void *start, \
231 1.62 christos unsigned long len, int prot); }
232 1.98 pooka 126 STD { int|linux_sys||sigprocmask(int how, \
233 1.26 erh const linux_old_sigset_t *set, \
234 1.26 erh linux_old_sigset_t *oset); }
235 1.13 mycroft 127 UNIMPL create_module
236 1.13 mycroft 128 UNIMPL init_module
237 1.13 mycroft 129 UNIMPL delete_module
238 1.13 mycroft 130 UNIMPL get_kernel_syms
239 1.13 mycroft 131 UNIMPL quotactl
240 1.98 pooka 132 NOARGS { pid_t|sys||getpgid(pid_t pid); }
241 1.98 pooka 133 NOARGS { int|sys||fchdir(int fd); }
242 1.13 mycroft 134 UNIMPL bdflush
243 1.13 mycroft 135 UNIMPL sysfs
244 1.101 njoly 136 STD { int|linux_sys||personality(unsigned long per); }
245 1.13 mycroft 137 UNIMPL afs_syscall
246 1.98 pooka 138 NOARGS linux_setfsuid16 { int|linux_sys||setfsuid(uid_t uid); }
247 1.98 pooka 139 NOARGS linux_setfsgid16 { int|linux_sys||setfsgid(gid_t gid); }
248 1.98 pooka 140 STD { int|linux_sys||llseek(int fd, u_int32_t ohigh, \
249 1.82 christos u_int32_t olow, void *res, int whence); }
250 1.98 pooka 141 STD { int|linux_sys||getdents(int fd, \
251 1.26 erh struct linux_dirent *dent, unsigned int count); }
252 1.98 pooka 142 STD { int|linux_sys||select(int nfds, fd_set *readfds, \
253 1.13 mycroft fd_set *writefds, fd_set *exceptfds, \
254 1.97 christos struct timeval50 *timeout); }
255 1.98 pooka 143 NOARGS { int|sys||flock(int fd, int how); }
256 1.98 pooka 144 NOARGS { int|sys|13|msync(void *addr, size_t len, int flags); }
257 1.113 njoly 145 NOARGS { ssize_t|sys||readv(int fd, \
258 1.113 njoly const struct iovec *iovp, int iovcnt); }
259 1.113 njoly 146 NOARGS { ssize_t|sys||writev(int fd, \
260 1.113 njoly const struct iovec *iovp, int iovcnt); }
261 1.98 pooka 147 NOARGS { pid_t|sys||getsid(pid_t pid); }
262 1.98 pooka 148 STD { int|linux_sys||fdatasync(int fd); }
263 1.98 pooka 149 STD { int|linux_sys||__sysctl(struct linux___sysctl *lsp); }
264 1.98 pooka 150 NOARGS { int|sys||mlock(void *addr, size_t len); }
265 1.98 pooka 151 NOARGS { int|sys||munlock(void *addr, size_t len); }
266 1.98 pooka 152 NOARGS { int|sys||mlockall(int flags); }
267 1.98 pooka 153 NOARGS { int|sys||munlockall(void); }
268 1.98 pooka 154 STD { int|linux_sys||sched_setparam(pid_t pid, \
269 1.36 tron const struct linux_sched_param *sp); }
270 1.98 pooka 155 STD { int|linux_sys||sched_getparam(pid_t pid, \
271 1.36 tron struct linux_sched_param *sp); }
272 1.98 pooka 156 STD { int|linux_sys||sched_setscheduler(pid_t pid, \
273 1.36 tron int policy, const struct linux_sched_param *sp); }
274 1.98 pooka 157 STD { int|linux_sys||sched_getscheduler(pid_t pid); }
275 1.98 pooka 158 STD { int|linux_sys||sched_yield(void); }
276 1.98 pooka 159 STD { int|linux_sys||sched_get_priority_max(int policy); }
277 1.98 pooka 160 STD { int|linux_sys||sched_get_priority_min(int policy); }
278 1.36 tron 161 UNIMPL sys_sched_rr_get_interval
279 1.98 pooka 162 STD { int|linux_sys||nanosleep( \
280 1.94 njoly const struct linux_timespec *rqtp, \
281 1.94 njoly struct linux_timespec *rmtp); }
282 1.98 pooka 163 STD { void *|linux_sys||mremap(void *old_address, \
283 1.19 mycroft size_t old_size, size_t new_size, u_long flags); }
284 1.98 pooka 164 STD { int|linux_sys||setresuid16(linux_uid16_t ruid, \
285 1.89 njoly linux_uid16_t euid, linux_uid16_t suid); }
286 1.98 pooka 165 STD { int|linux_sys||getresuid16(linux_uid16_t *ruid, \
287 1.89 njoly linux_uid16_t *euid, linux_uid16_t *suid); }
288 1.26 erh 166 UNIMPL vm86
289 1.26 erh 167 UNIMPL query_module
290 1.98 pooka 168 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \
291 1.32 abs int timeout); }
292 1.26 erh 169 UNIMPL nfsservctl
293 1.98 pooka 170 STD { int|linux_sys||setresgid16(linux_gid16_t rgid, \
294 1.89 njoly linux_gid16_t egid, linux_gid16_t sgid); }
295 1.98 pooka 171 STD { int|linux_sys||getresgid16(linux_gid16_t *rgid, \
296 1.89 njoly linux_gid16_t *egid, linux_gid16_t *sgid); }
297 1.26 erh 172 UNIMPL prctl
298 1.98 pooka 173 STD { int|linux_sys||rt_sigreturn( \
299 1.66 christos struct linux_ucontext *ucp); }
300 1.98 pooka 174 STD { int|linux_sys||rt_sigaction(int signum, \
301 1.26 erh const struct linux_sigaction *nsa, \
302 1.26 erh struct linux_sigaction *osa, \
303 1.26 erh size_t sigsetsize); }
304 1.98 pooka 175 STD { int|linux_sys||rt_sigprocmask(int how, \
305 1.26 erh const linux_sigset_t *set, \
306 1.26 erh linux_sigset_t *oset, \
307 1.26 erh size_t sigsetsize); }
308 1.98 pooka 176 STD { int|linux_sys||rt_sigpending( \
309 1.26 erh linux_sigset_t *set, \
310 1.26 erh size_t sigsetsize); }
311 1.107 christos 177 STD { int|linux_sys||rt_sigtimedwait( \
312 1.107 christos const linux_sigset_t *set, \
313 1.107 christos linux_siginfo_t *info, \
314 1.107 christos const struct linux_timespec *timeout); }
315 1.98 pooka 178 STD { int|linux_sys||rt_queueinfo(int pid, int signum, \
316 1.100 njoly linux_siginfo_t *uinfo); }
317 1.98 pooka 179 STD { int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \
318 1.26 erh size_t sigsetsize); }
319 1.98 pooka 180 STD { int|linux_sys||pread(int fd, char *buf, \
320 1.114 njoly size_t nbyte, off_t offset); }
321 1.98 pooka 181 STD { int|linux_sys||pwrite(int fd, char *buf, \
322 1.114 njoly size_t nbyte, off_t offset); }
323 1.98 pooka 182 STD { int|linux_sys||chown16(const char *path, \
324 1.89 njoly linux_uid16_t uid, linux_gid16_t gid); }
325 1.98 pooka 183 NOARGS { int|sys||__getcwd(char *bufp, size_t length); }
326 1.26 erh 184 UNIMPL capget
327 1.26 erh 185 UNIMPL capset
328 1.98 pooka 186 STD { int|linux_sys||sigaltstack( \
329 1.42 christos const struct linux_sigaltstack *ss, \
330 1.42 christos struct linux_sigaltstack *oss); }
331 1.34 thorpej 187 UNIMPL sendfile
332 1.34 thorpej 188 UNIMPL getpmsg
333 1.34 thorpej 189 UNIMPL putpmsg
334 1.98 pooka 190 NOARGS { int|sys|14|vfork(void); }
335 1.98 pooka 191 STD { int|linux_sys||ugetrlimit(int which, \
336 1.61 christos struct orlimit *rlp); }
337 1.86 dsl #define linux_sys_mmap2_args linux_sys_mmap_args
338 1.98 pooka 192 NOARGS { linux_off_t|linux_sys||mmap2(unsigned long addr, \
339 1.62 christos size_t len, int prot, int flags, int fd, \
340 1.62 christos linux_off_t offset); }
341 1.98 pooka 193 STD { int|linux_sys||truncate64(const char *path, \
342 1.61 christos off_t length); }
343 1.98 pooka 194 STD { int|linux_sys||ftruncate64(unsigned int fd, \
344 1.62 christos off_t length); }
345 1.98 pooka 195 STD { int|linux_sys||stat64(const char *path, \
346 1.61 christos struct linux_stat64 *sp); }
347 1.98 pooka 196 STD { int|linux_sys||lstat64(const char *path, \
348 1.61 christos struct linux_stat64 *sp); }
349 1.98 pooka 197 STD { int|linux_sys||fstat64(int fd, \
350 1.61 christos struct linux_stat64 *sp); }
351 1.98 pooka 198 NOARGS { int|sys||__posix_lchown(const char *path, uid_t uid, \
352 1.61 christos gid_t gid); }
353 1.98 pooka 199 NOARGS { uid_t|sys||getuid(void); }
354 1.98 pooka 200 NOARGS { gid_t|sys||getgid(void); }
355 1.98 pooka 201 NOARGS { uid_t|sys||geteuid(void); }
356 1.98 pooka 202 NOARGS { gid_t|sys||getegid(void); }
357 1.98 pooka 203 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); }
358 1.98 pooka 204 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); }
359 1.116 njoly 205 NOARGS { int|sys||getgroups(int gidsetsize, gid_t *gidset); }
360 1.116 njoly 206 NOARGS { int|sys||setgroups(int gidsetsize, gid_t *gidset); }
361 1.98 pooka 207 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \
362 1.61 christos gid_t gid); }
363 1.98 pooka 208 STD { int|linux_sys||setresuid(uid_t ruid, uid_t euid, \
364 1.52 fvdl uid_t suid); }
365 1.98 pooka 209 STD { int|linux_sys||getresuid(uid_t *ruid, uid_t *euid, \
366 1.52 fvdl uid_t *suid); }
367 1.98 pooka 210 STD { int|linux_sys||setresgid(gid_t rgid, gid_t egid, \
368 1.52 fvdl gid_t sgid); }
369 1.98 pooka 211 STD { int|linux_sys||getresgid(gid_t *rgid, gid_t *egid, \
370 1.52 fvdl gid_t *sgid); }
371 1.98 pooka 212 NOARGS { int|sys||__posix_chown(const char *path, uid_t uid, \
372 1.51 fvdl gid_t gid); }
373 1.98 pooka 213 NOARGS { int|sys||setuid(uid_t uid); }
374 1.98 pooka 214 NOARGS { int|sys||setgid(gid_t gid); }
375 1.98 pooka 215 STD { int|linux_sys||setfsuid(uid_t uid); }
376 1.98 pooka 216 STD { int|linux_sys||setfsgid(gid_t gid); }
377 1.47 jdolecek 217 UNIMPL pivot_root
378 1.98 pooka 218 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); }
379 1.98 pooka 219 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); }
380 1.98 pooka 220 STD { int|linux_sys||getdents64(int fd, \
381 1.63 christos struct linux_dirent64 *dent, unsigned int count); }
382 1.98 pooka 221 STD { int|linux_sys||fcntl64(int fd, int cmd, void *arg); }
383 1.69 jdolecek 222 UNIMPL /* unused */
384 1.69 jdolecek 223 UNIMPL /* unused */
385 1.103 chs 224 NOARGS { pid_t|linux_sys||gettid(void); }
386 1.132 christos 225 STD { ssize_t|linux_sys||readahead(int fd, off_t offset, \
387 1.132 christos size_t count); }
388 1.98 pooka 226 STD { int|linux_sys||setxattr(char *path, char *name, \
389 1.72 fvdl void *value, size_t size, int flags); }
390 1.98 pooka 227 STD { int|linux_sys||lsetxattr(char *path, char *name, \
391 1.72 fvdl void *value, size_t size, int flags); }
392 1.98 pooka 228 STD { int|linux_sys||fsetxattr(int fd, char *name, \
393 1.72 fvdl void *value, size_t size, int flags); }
394 1.98 pooka 229 STD { ssize_t|linux_sys||getxattr(char *path, char *name, \
395 1.72 fvdl void *value, size_t size); }
396 1.98 pooka 230 STD { ssize_t|linux_sys||lgetxattr(char *path, char *name, \
397 1.72 fvdl void *value, size_t size); }
398 1.98 pooka 231 STD { ssize_t|linux_sys||fgetxattr(int fd, char *name, \
399 1.72 fvdl void *value, size_t size); }
400 1.98 pooka 232 STD { ssize_t|linux_sys||listxattr(char *path, char *list, \
401 1.72 fvdl size_t size); }
402 1.98 pooka 233 STD { ssize_t|linux_sys||llistxattr(char *path, char *list, \
403 1.72 fvdl size_t size); }
404 1.98 pooka 234 STD { ssize_t|linux_sys||flistxattr(int fd, char *list, \
405 1.72 fvdl size_t size); }
406 1.98 pooka 235 STD { int|linux_sys||removexattr(char *path, char *name); }
407 1.98 pooka 236 STD { int|linux_sys||lremovexattr(char *path, char *name); }
408 1.98 pooka 237 STD { int|linux_sys||fremovexattr(int fd, char *name); }
409 1.98 pooka 238 STD { int|linux_sys||tkill(int tid, int sig); }
410 1.69 jdolecek 239 UNIMPL sendfile64
411 1.98 pooka 240 STD { int|linux_sys||futex(int *uaddr, int op, int val, \
412 1.95 njoly const struct linux_timespec *timeout, int *uaddr2, \
413 1.83 christos int val3); }
414 1.98 pooka 241 STD { int|linux_sys||sched_setaffinity(pid_t pid, \
415 1.84 christos unsigned int len, unsigned long *mask); }
416 1.98 pooka 242 STD { int|linux_sys||sched_getaffinity(pid_t pid, \
417 1.84 christos unsigned int len, unsigned long *mask); }
418 1.98 pooka 243 STD { int|linux_sys||set_thread_area( \
419 1.92 christos struct linux_user_desc *desc); }
420 1.98 pooka 244 STD { int|linux_sys||get_thread_area( \
421 1.92 christos struct linux_user_desc *desc); }
422 1.69 jdolecek 245 UNIMPL io_setup
423 1.69 jdolecek 246 UNIMPL io_destroy
424 1.69 jdolecek 247 UNIMPL io_getevents
425 1.69 jdolecek 248 UNIMPL io_submit
426 1.69 jdolecek 249 UNIMPL io_cancel
427 1.115 njoly 250 STD { int|linux_sys||fadvise64(int fd, off_t offset, \
428 1.115 njoly size_t len, int advice); }
429 1.69 jdolecek 251 UNIMPL /* unused */
430 1.98 pooka 252 STD { int|linux_sys||exit_group(int error_code); }
431 1.69 jdolecek 253 UNIMPL lookup_dcookie
432 1.131 christos 254 STD { int|linux_sys||epoll_create(int size); }
433 1.131 christos 255 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \
434 1.131 christos struct linux_epoll_event *event); }
435 1.131 christos 256 STD { int|linux_sys||epoll_wait(int epfd, \
436 1.131 christos struct linux_epoll_event *events, int maxevents, \
437 1.131 christos int timeout); }
438 1.69 jdolecek 257 UNIMPL remap_file_pages
439 1.98 pooka 258 STD { int|linux_sys||set_tid_address(int *tid); }
440 1.125 thorpej 259 STD { int|linux_sys||timer_create(clockid_t clockid, \
441 1.125 thorpej struct linux_sigevent *evp, timer_t *timerid); }
442 1.125 thorpej 260 STD { int|linux_sys||timer_settime(timer_t timerid, \
443 1.125 thorpej int flags, const struct linux_itimerspec *tim, \
444 1.125 thorpej struct linux_itimerspec *otim); }
445 1.125 thorpej 261 STD { int|linux_sys||timer_gettime(timer_t timerid, \
446 1.125 thorpej struct linux_itimerspec *tim); }
447 1.125 thorpej 262 NOARGS { int|sys||timer_getoverrun(timer_t timerid); }
448 1.125 thorpej 263 NOARGS { int|sys||timer_delete(timer_t timerid); }
449 1.98 pooka 264 STD { int|linux_sys||clock_settime(clockid_t which, \
450 1.73 fvdl struct linux_timespec *tp); }
451 1.98 pooka 265 STD { int|linux_sys||clock_gettime(clockid_t which, \
452 1.73 fvdl struct linux_timespec *tp); }
453 1.98 pooka 266 STD { int|linux_sys||clock_getres(clockid_t which, \
454 1.73 fvdl struct linux_timespec *tp); }
455 1.98 pooka 267 STD { int|linux_sys||clock_nanosleep(clockid_t which, \
456 1.73 fvdl int flags, struct linux_timespec *rqtp, \
457 1.73 fvdl struct linux_timespec *rmtp); }
458 1.98 pooka 268 STD { int|linux_sys||statfs64(const char *path, \
459 1.71 jdolecek size_t sz, struct linux_statfs64 *sp); }
460 1.98 pooka 269 STD { int|linux_sys||fstatfs64(int fd, \
461 1.71 jdolecek size_t sz, struct linux_statfs64 *sp); }
462 1.98 pooka 270 STD { int|linux_sys||tgkill(int tgid, int tid, int sig); }
463 1.117 njoly 271 NOARGS { int|compat_50_sys||utimes(const char *path, \
464 1.117 njoly const struct timeval50 *tptr); }
465 1.115 njoly 272 STD { int|linux_sys||fadvise64_64(int fd, off_t offset, \
466 1.115 njoly off_t len, int advice); }
467 1.69 jdolecek 273 UNIMPL vserver
468 1.69 jdolecek 274 UNIMPL mbind
469 1.69 jdolecek 275 UNIMPL get_mempolicy
470 1.69 jdolecek 276 UNIMPL set_mempolicy
471 1.69 jdolecek 277 UNIMPL mq_open
472 1.69 jdolecek 278 UNIMPL mq_unlink
473 1.69 jdolecek 279 UNIMPL mq_timedsend
474 1.69 jdolecek 280 UNIMPL mq_timedreceive
475 1.69 jdolecek 281 UNIMPL mq_notify
476 1.69 jdolecek 282 UNIMPL mq_getsetattr
477 1.69 jdolecek 283 UNIMPL sys_kexec_load
478 1.93 christos 284 UNIMPL waitid
479 1.103 chs 285 UNIMPL /* unused */
480 1.93 christos 286 UNIMPL add_key
481 1.93 christos 287 UNIMPL request_key
482 1.93 christos 288 UNIMPL keyctl
483 1.93 christos 289 UNIMPL ioprio_set
484 1.93 christos 290 UNIMPL ioprio_get
485 1.93 christos 291 UNIMPL inotify_init
486 1.93 christos 292 UNIMPL inotify_add_watch
487 1.93 christos 293 UNIMPL inotify_rm_watch
488 1.93 christos 294 UNIMPL migrate_pages
489 1.112 chs 295 STD { int|linux_sys||openat(int fd, const char *path, \
490 1.112 chs int flags, ... linux_umode_t mode); }
491 1.112 chs 296 NOARGS { int|sys||mkdirat(int fd, const char *path, \
492 1.112 chs linux_umode_t mode); }
493 1.112 chs 297 STD { int|linux_sys||mknodat(int fd, const char *path, \
494 1.112 chs linux_umode_t mode, unsigned dev); }
495 1.112 chs 298 STD { int|linux_sys||fchownat(int fd, const char *path, \
496 1.112 chs uid_t owner, gid_t group, int flag); }
497 1.93 christos 299 UNIMPL futimesat
498 1.112 chs 300 STD { int|linux_sys||fstatat64(int fd, const char *path, \
499 1.112 chs struct linux_stat64 *sp, int flag); }
500 1.112 chs 301 STD { int|linux_sys||unlinkat(int fd, const char *path, \
501 1.112 chs int flag); }
502 1.112 chs 302 NOARGS { int|sys||renameat(int fromfd, const char *from, \
503 1.112 chs int tofd, const char *to); }
504 1.112 chs 303 STD { int|linux_sys||linkat(int fd1, const char *name1, \
505 1.112 chs int fd2, const char *name2, int flags); }
506 1.112 chs 304 NOARGS { int|sys||symlinkat(const char *path1, int fd, \
507 1.112 chs const char *path2); }
508 1.121 njoly 305 NOARGS { ssize_t|sys||readlinkat(int fd, const char *path, \
509 1.112 chs char *buf, size_t bufsize); }
510 1.112 chs 306 STD { int|linux_sys||fchmodat(int fd, const char *path, \
511 1.112 chs linux_umode_t mode); }
512 1.112 chs 307 STD { int|linux_sys||faccessat(int fd, const char *path, \
513 1.112 chs int amode); }
514 1.122 manu 308 STD { int|linux_sys||pselect6(int nfds, fd_set *readfds, \
515 1.122 manu fd_set *writefds, fd_set *exceptfds, \
516 1.122 manu struct linux_timespec *timeout, \
517 1.122 manu linux_sized_sigset_t *ss); }
518 1.119 njoly 309 STD { int|linux_sys||ppoll(struct pollfd *fds, u_int nfds, \
519 1.108 pooka struct linux_timespec *timeout, \
520 1.108 pooka linux_sigset_t *sigset); }
521 1.93 christos 310 UNIMPL unshare
522 1.124 thorpej 311 NOARGS { int|sys||__futex_set_robust_list(void *head, \
523 1.124 thorpej size_t len); }
524 1.124 thorpej 312 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \
525 1.124 thorpej void **headp, size_t *lenp); }
526 1.93 christos 313 UNIMPL splice
527 1.93 christos 314 UNIMPL sync_file_range
528 1.93 christos 315 UNIMPL tee
529 1.93 christos 316 UNIMPL vmsplice
530 1.103 chs 317 UNIMPL move_pages
531 1.103 chs 318 UNIMPL getcpu
532 1.131 christos 319 STD { int|linux_sys||epoll_pwait(int epfd, \
533 1.131 christos struct linux_epoll_event *events, int maxevents, \
534 1.131 christos int timeout, const linux_sigset_t *sigmask); }
535 1.110 njoly 320 STD { int|linux_sys||utimensat(int fd, const char *path, \
536 1.110 njoly struct linux_timespec *times, int flag); }
537 1.103 chs 321 UNIMPL signalfd
538 1.126 thorpej 322 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \
539 1.126 thorpej int flags); }
540 1.127 thorpej 323 STD { int|linux_sys||eventfd(unsigned int initval); }
541 1.123 jdolecek 324 STD { int|linux_sys||fallocate(int fd, int mode, \
542 1.123 jdolecek off_t offset, off_t len); }
543 1.126 thorpej 325 STD { int|linux_sys||timerfd_settime(int fd, int flags, \
544 1.126 thorpej const struct linux_itimerspec *tim, \
545 1.126 thorpej struct linux_itimerspec *otim); }
546 1.126 thorpej 326 STD { int|linux_sys||timerfd_gettime(int fd, \
547 1.126 thorpej struct linux_itimerspec *tim); }
548 1.103 chs 327 UNIMPL signalfd4
549 1.127 thorpej 328 STD { int|linux_sys||eventfd2(unsigned int initval, \
550 1.127 thorpej int flags); }
551 1.131 christos 329 STD { int|linux_sys||epoll_create1(int flags); }
552 1.111 njoly 330 STD { int|linux_sys||dup3(int from, int to, int flags); }
553 1.104 christos 331 STD { int|linux_sys||pipe2( int *pfds, int flags); }
554 1.103 chs 332 UNIMPL inotify_init1
555 1.128 thorpej 333 STD { int|linux_sys||preadv(int fd, \
556 1.128 thorpej const struct iovec *iovp, int iovcnt, \
557 1.128 thorpej unsigned long off_lo, unsigned long off_hi); }
558 1.128 thorpej 334 STD { int|linux_sys||pwritev(int fd, \
559 1.128 thorpej const struct iovcnt *iovp, int iovcnt, \
560 1.128 thorpej unsigned long off_lo, unsigned long off_hi); }
561 1.103 chs 335 UNIMPL rt_tgsigqueueinfo
562 1.103 chs 336 UNIMPL perf_counter_open
563 1.103 chs 337 UNIMPL recvmmsg
564 1.112 chs 338 UNIMPL fanotify_init
565 1.112 chs 339 UNIMPL fanotify_mark
566 1.129 ryo 340 STD { int|linux_sys||prlimit64(pid_t pid, int which, \
567 1.129 ryo struct rlimit *new_rlp, struct rlimit *old_rlp); }
568 1.112 chs 341 UNIMPL name_to_handle_at
569 1.112 chs 342 UNIMPL open_by_handle_at
570 1.112 chs 343 UNIMPL clock_adjtime
571 1.112 chs 344 UNIMPL syncfs
572 1.112 chs 345 UNIMPL sendmmsg
573 1.112 chs 346 UNIMPL setns
574 1.112 chs 347 UNIMPL process_vm_readv
575 1.112 chs 348 UNIMPL process_vm_writev
576 1.112 chs 349 UNIMPL kcmp
577 1.112 chs 350 UNIMPL finit_module
578 1.130 christos 351 UNIMPL sched_setattr
579 1.130 christos 352 UNIMPL sched_getattr
580 1.130 christos 353 UNIMPL renameat2
581 1.130 christos 354 UNIMPL seccomp
582 1.130 christos 355 NOARGS { ssize_t|sys||getrandom(void *buf, size_t buflen, \
583 1.130 christos unsigned int flags); }
584 1.130 christos 356 STD { int|linux_sys||memfd_create(const char *name, \
585 1.130 christos unsigned int flags); }
586 1.130 christos 357 UNIMPL bpf
587 1.130 christos 358 UNIMPL execveat
588 1.130 christos 359 UNIMPL socket
589 1.130 christos 360 UNIMPL socketpair
590 1.130 christos 361 UNIMPL bind
591 1.130 christos 362 UNIMPL connect
592 1.130 christos 363 UNIMPL listen
593 1.130 christos 364 UNIMPL accept4
594 1.130 christos 365 UNIMPL getsockopt
595 1.130 christos 366 UNIMPL setsockopt
596 1.130 christos 367 UNIMPL getsockname
597 1.130 christos 368 UNIMPL getpeername
598 1.130 christos 369 UNIMPL sendto
599 1.130 christos 370 UNIMPL sendmsg
600 1.130 christos 371 UNIMPL recvfrom
601 1.130 christos 372 UNIMPL recvmsg
602 1.130 christos 373 UNIMPL shutdown
603 1.130 christos 374 UNIMPL userfaultfd
604 1.130 christos 375 UNIMPL membarrier
605 1.130 christos 376 UNIMPL mlock2
606 1.130 christos 377 UNIMPL copy_file_range
607 1.130 christos 378 UNIMPL preadv2
608 1.130 christos 379 UNIMPL pwritev2
609 1.130 christos 380 UNIMPL pkey_mprotect
610 1.130 christos 381 UNIMPL pkey_alloc
611 1.130 christos 382 UNIMPL pkey_free
612 1.130 christos 383 UNIMPL statx
613 1.130 christos 384 UNIMPL arch_prctl
614 1.130 christos 385 UNIMPL io_pgetevents
615 1.130 christos 386 UNIMPL rseq
616 1.130 christos 387 UNIMPL
617 1.130 christos 388 UNIMPL
618 1.130 christos 389 UNIMPL
619 1.130 christos 390 UNIMPL
620 1.130 christos 391 UNIMPL
621 1.130 christos 392 UNIMPL
622 1.130 christos 393 UNIMPL semget
623 1.130 christos 394 UNIMPL semctl
624 1.130 christos 395 UNIMPL shmget
625 1.130 christos 396 UNIMPL shmctl
626 1.132 christos 397 STD { int|linux_sys||statx(int fd, const char *path, \
627 1.132 christos int flag, unsigned int mask, \
628 1.132 christos struct linux_statx *sp); }
629 1.130 christos 398 UNIMPL shmdt
630 1.130 christos 399 UNIMPL msgget
631 1.130 christos 400 UNIMPL msgsnd
632 1.130 christos 401 UNIMPL msgrcv
633 1.130 christos 402 UNIMPL msgctl
634 1.130 christos 403 UNIMPL clock_gettime64
635 1.130 christos 404 UNIMPL clock_settime64
636 1.130 christos 405 UNIMPL clock_adjtime64
637 1.130 christos 406 UNIMPL clock_getres_time64
638 1.130 christos 407 UNIMPL clock_nanosleep_time64
639 1.130 christos 408 UNIMPL timer_gettime64
640 1.130 christos 409 UNIMPL timer_settime64
641 1.130 christos 410 UNIMPL timerfd_gettime64
642 1.130 christos 411 UNIMPL timerfd_settime64
643 1.130 christos 412 UNIMPL utimensat_time64
644 1.130 christos 413 UNIMPL pselect6_time64
645 1.130 christos 414 UNIMPL ppoll_time64
646 1.130 christos 415 UNIMPL
647 1.130 christos 416 UNIMPL io_pgetevents_time64
648 1.130 christos 417 UNIMPL recvmmsg_time64
649 1.130 christos 418 UNIMPL mq_timedsend_time64
650 1.130 christos 419 UNIMPL mq_timedreceive_time64
651 1.130 christos 420 UNIMPL semtimedop_time64
652 1.130 christos 421 UNIMPL rt_sigtimedwait_time64
653 1.130 christos 422 UNIMPL futex_time64
654 1.130 christos 423 UNIMPL sched_rr_get_interval_time64
655 1.130 christos 424 UNIMPL pidfd_send_signal
656 1.130 christos 425 UNIMPL io_uring_setup
657 1.130 christos 426 UNIMPL io_uring_enter
658 1.130 christos 427 UNIMPL io_uring_register
659 1.130 christos 428 UNIMPL open_tree
660 1.130 christos 429 UNIMPL move_mount
661 1.130 christos 430 UNIMPL fsopen
662 1.130 christos 431 UNIMPL fsconfig
663 1.130 christos 432 UNIMPL fsmount
664 1.130 christos 433 UNIMPL fspick
665 1.130 christos 434 UNIMPL pidfd_open
666 1.130 christos 435 UNIMPL clone3
667 1.132 christos 436 STD { int|linux_sys||close_range(unsigned int first, \
668 1.132 christos unsigned int last, unsigned int flags); }
669 1.130 christos 437 UNIMPL openat2
670 1.130 christos 438 UNIMPL pidfd_getfd
671 1.130 christos 439 UNIMPL faccessat2
672 1.130 christos 440 UNIMPL process_madvise
673 1.131 christos 441 STD { int|linux_sys||epoll_pwait2(int epfd, \
674 1.131 christos struct linux_epoll_event *events, int maxevents, \
675 1.131 christos const struct linux_timespec *timeout, \
676 1.131 christos const linux_sigset_t *sigmask); }
677