syscalls.master revision 1.10 1 1.10 christos $NetBSD: syscalls.master,v 1.10 2023/08/18 19:41:19 christos Exp $
2 1.1 ryo
3 1.1 ryo ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4 1.1 ryo
5 1.1 ryo ; Derived from sys/compat/linux/arch/*/syscalls.master
6 1.1 ryo ; and from Linux include/uapi/asm-generic/unistd.h
7 1.1 ryo
8 1.1 ryo ; NetBSD aarch64 COMPAT_LINUX system call name/number "master" file.
9 1.1 ryo ; (See syscalls.conf to see what it is processed into.)
10 1.1 ryo ;
11 1.1 ryo ; Fields: number type [type-dependent ...]
12 1.1 ryo ; number system call number, must be in order
13 1.1 ryo ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
14 1.1 ryo ; the compatibility options defined in syscalls.conf.
15 1.1 ryo ;
16 1.1 ryo ; types:
17 1.1 ryo ; STD always included
18 1.1 ryo ; OBSOL obsolete, not included in system
19 1.1 ryo ; UNIMPL unimplemented, not included in system
20 1.1 ryo ; NODEF included, but don't define the syscall number
21 1.1 ryo ; NOARGS included, but don't define the syscall args structure
22 1.1 ryo ; INDIR included, but don't define the syscall args structure
23 1.1 ryo ; and allow it to be "really" varargs.
24 1.1 ryo ;
25 1.1 ryo ; The compat options are defined in the syscalls.conf file, and the
26 1.1 ryo ; compat option name is prefixed to the syscall name. Other than
27 1.1 ryo ; that, they're like NODEF (for 'compat' options), or STD (for
28 1.1 ryo ; 'libcompat' options).
29 1.1 ryo ;
30 1.1 ryo ; The type-dependent arguments are as follows:
31 1.1 ryo ; For STD, NODEF, NOARGS, and compat syscalls:
32 1.1 ryo ; { pseudo-proto } [alias]
33 1.1 ryo ; For other syscalls:
34 1.1 ryo ; [comment]
35 1.1 ryo ;
36 1.1 ryo ; #ifdef's, etc. may be included, and are copied to the output files.
37 1.1 ryo ; #include's are copied to the syscall names and switch definition files only.
38 1.1 ryo
39 1.1 ryo #if defined(_KERNEL_OPT)
40 1.1 ryo #include "opt_sysv.h"
41 1.1 ryo #include "opt_compat_43.h"
42 1.1 ryo #include "opt_compat_netbsd.h"
43 1.1 ryo #endif
44 1.1 ryo
45 1.1 ryo #include <sys/param.h>
46 1.1 ryo #include <sys/poll.h>
47 1.1 ryo #include <sys/systm.h>
48 1.1 ryo #include <sys/signal.h>
49 1.1 ryo #include <sys/mount.h>
50 1.1 ryo #include <sys/syscallargs.h>
51 1.1 ryo #include <sys/time.h>
52 1.1 ryo
53 1.1 ryo #include <compat/sys/time.h>
54 1.1 ryo
55 1.1 ryo #include <compat/linux/common/linux_types.h>
56 1.8 rin #include <compat/linux/common/linux_ipc.h>
57 1.8 rin #include <compat/linux/common/linux_machdep.h>
58 1.7 rin #include <compat/linux/common/linux_misc.h>
59 1.1 ryo #include <compat/linux/common/linux_mmap.h>
60 1.1 ryo #include <compat/linux/common/linux_msg.h>
61 1.1 ryo #include <compat/linux/common/linux_sem.h>
62 1.1 ryo #include <compat/linux/common/linux_shm.h>
63 1.8 rin #include <compat/linux/common/linux_siginfo.h>
64 1.1 ryo #include <compat/linux/common/linux_signal.h>
65 1.1 ryo
66 1.1 ryo #include <compat/linux/linux_syscallargs.h>
67 1.1 ryo
68 1.1 ryo %%
69 1.1 ryo
70 1.1 ryo 0 UNIMPL io_setup
71 1.1 ryo 1 UNIMPL io_destroy
72 1.1 ryo 2 UNIMPL io_submit
73 1.1 ryo 3 UNIMPL io_cancel
74 1.1 ryo 4 UNIMPL io_getevents
75 1.1 ryo 5 STD { int|linux_sys||setxattr(char *path, char *name, \
76 1.1 ryo void *value, size_t size, int flags); }
77 1.1 ryo 6 STD { int|linux_sys||lsetxattr(char *path, char *name, \
78 1.1 ryo void *value, size_t size, int flags); }
79 1.1 ryo 7 STD { int|linux_sys||fsetxattr(int fd, char *name, \
80 1.1 ryo void *value, size_t size, int flags); }
81 1.1 ryo 8 STD { ssize_t|linux_sys||getxattr(char *path, char *name, \
82 1.1 ryo void *value, size_t size); }
83 1.1 ryo 9 STD { ssize_t|linux_sys||lgetxattr(char *path, char *name, \
84 1.1 ryo void *value, size_t size); }
85 1.1 ryo 10 STD { ssize_t|linux_sys||fgetxattr(int fd, char *name, \
86 1.1 ryo void *value, size_t size); }
87 1.1 ryo 11 STD { ssize_t|linux_sys||listxattr(char *path, char *list, \
88 1.1 ryo size_t size); }
89 1.1 ryo 12 STD { ssize_t|linux_sys||llistxattr(char *path, char *list, \
90 1.1 ryo size_t size); }
91 1.1 ryo 13 STD { ssize_t|linux_sys||flistxattr(int fd, char *list, \
92 1.1 ryo size_t size); }
93 1.1 ryo 14 STD { int|linux_sys||removexattr(char *path, char *name); }
94 1.1 ryo 15 STD { int|linux_sys||lremovexattr(char *path, char *name); }
95 1.1 ryo 16 STD { int|linux_sys||fremovexattr(int fd, char *name); }
96 1.1 ryo 17 NOARGS { int|sys||__getcwd(char *bufp, size_t length); }
97 1.1 ryo 18 UNIMPL lookup_dcookie
98 1.1 ryo 19 STD { int|linux_sys||eventfd2(unsigned int initval, \
99 1.1 ryo int flags); }
100 1.6 christos 20 STD { int|linux_sys||epoll_create1(int flags); }
101 1.6 christos 21 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \
102 1.6 christos struct linux_epoll_event *event); }
103 1.6 christos 22 STD { int|linux_sys||epoll_pwait(int epfd, \
104 1.6 christos struct linux_epoll_event *events, int maxevents, \
105 1.6 christos int timeout, const linux_sigset_t *sigmask); }
106 1.1 ryo 23 NOARGS { int|sys||dup(int fd); }
107 1.1 ryo 24 STD { int|linux_sys||dup3(int from, int to, int flags); }
108 1.1 ryo 25 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); }
109 1.1 ryo 26 UNIMPL inotify_init1
110 1.1 ryo 27 UNIMPL inotify_add_watch
111 1.1 ryo 28 UNIMPL inotify_rm_watch
112 1.1 ryo 29 STD { int|linux_sys||ioctl(int fd, u_long com, \
113 1.1 ryo void *data); }
114 1.1 ryo 30 UNIMPL ioprio_set
115 1.1 ryo 31 UNIMPL ioprio_get
116 1.1 ryo 32 NOARGS { int|sys||flock(int fd, int how); }
117 1.1 ryo 33 STD { int|linux_sys||mknodat(int fd, const char *path, \
118 1.1 ryo linux_umode_t mode, unsigned dev); }
119 1.1 ryo 34 NOARGS { int|sys||mkdirat(int fd, const char *path, \
120 1.1 ryo linux_umode_t mode); }
121 1.1 ryo 35 STD { int|linux_sys||unlinkat(int fd, const char *path, \
122 1.1 ryo int flag); }
123 1.1 ryo 36 NOARGS { int|sys||symlinkat(const char *path1, int fd, \
124 1.1 ryo const char *path2); }
125 1.1 ryo 37 STD { int|linux_sys||linkat(int fd1, const char *name1, \
126 1.1 ryo int fd2, const char *name2, int flags); }
127 1.1 ryo 38 NOARGS { int|sys||renameat(int fromfd, const char *from, \
128 1.1 ryo int tofd, const char *to); }
129 1.1 ryo 39 UNIMPL umount2
130 1.1 ryo 40 UNIMPL mount
131 1.1 ryo 41 UNIMPL pivot_root
132 1.1 ryo 42 UNIMPL nfsservctl
133 1.1 ryo 43 STD { int|linux_sys||statfs(const char *path, \
134 1.1 ryo struct linux_statfs *sp); }
135 1.1 ryo 44 STD { int|linux_sys||fstatfs(int fd, \
136 1.1 ryo struct linux_statfs *sp); }
137 1.1 ryo 45 STD { int|linux_sys||truncate64(const char *path, \
138 1.1 ryo off_t length); }
139 1.1 ryo 46 STD { int|linux_sys||ftruncate64(unsigned int fd, \
140 1.1 ryo off_t length); }
141 1.1 ryo 47 STD { int|linux_sys||fallocate(int fd, int mode, \
142 1.1 ryo off_t offset, off_t len); }
143 1.1 ryo 48 STD { int|linux_sys||faccessat(int fd, const char *path, \
144 1.1 ryo int amode); }
145 1.1 ryo 49 NOARGS { int|sys||chdir(const char *path); }
146 1.1 ryo 50 NOARGS { int|sys||fchdir(int fd); }
147 1.1 ryo 51 NOARGS { int|sys||chroot(char *path); }
148 1.1 ryo 52 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); }
149 1.1 ryo 53 STD { int|linux_sys||fchmodat(int fd, const char *path, \
150 1.1 ryo linux_umode_t mode); }
151 1.1 ryo 54 STD { int|linux_sys||fchownat(int fd, const char *path, \
152 1.1 ryo uid_t owner, gid_t group, int flag); }
153 1.1 ryo 55 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \
154 1.1 ryo gid_t gid); }
155 1.1 ryo 56 STD { int|linux_sys||openat(int fd, const char *path, \
156 1.1 ryo int flags, ... linux_umode_t mode); }
157 1.1 ryo 57 NOARGS { int|sys||close(int fd); }
158 1.1 ryo 58 UNIMPL vhangup
159 1.1 ryo 59 STD { int|linux_sys||pipe2(int *pfds, int flags); }
160 1.1 ryo 60 UNIMPL quotactl
161 1.1 ryo 61 STD { int|linux_sys||getdents64(int fd, \
162 1.1 ryo struct linux_dirent64 *dent, unsigned int count); }
163 1.1 ryo 62 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \
164 1.1 ryo int whence); }
165 1.1 ryo 63 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
166 1.1 ryo 64 NOARGS { ssize_t|sys||write(int fd, const void *buf, \
167 1.1 ryo size_t nbyte); }
168 1.1 ryo 65 NOARGS { ssize_t|sys||readv(int fd, \
169 1.1 ryo const struct iovec *iovp, int iovcnt); }
170 1.1 ryo 66 NOARGS { ssize_t|sys||writev(int fd, \
171 1.1 ryo const struct iovec *iovp, int iovcnt); }
172 1.1 ryo 67 STD { int|linux_sys||pread(int fd, char *buf, \
173 1.1 ryo size_t nbyte, off_t offset); }
174 1.1 ryo 68 STD { int|linux_sys||pwrite(int fd, char *buf, \
175 1.1 ryo size_t nbyte, off_t offset); }
176 1.1 ryo 69 STD { int|linux_sys||preadv(int fd, \
177 1.1 ryo const struct iovec *iovp, int iovcnt, \
178 1.1 ryo unsigned long off_lo, unsigned long off_hi); }
179 1.1 ryo 70 STD { int|linux_sys||pwritev(int fd, \
180 1.1 ryo const struct iovcnt *iovp, int iovcnt, \
181 1.1 ryo unsigned long off_lo, unsigned long off_hi); }
182 1.1 ryo 71 UNIMPL sendfile
183 1.1 ryo 72 STD { int|linux_sys||pselect6(int nfds, fd_set *readfds, \
184 1.1 ryo fd_set *writefds, fd_set *exceptfds, \
185 1.1 ryo struct linux_timespec *timeout, \
186 1.1 ryo linux_sized_sigset_t *ss); }
187 1.1 ryo 73 STD { int|linux_sys||ppoll(struct pollfd *fds, u_int nfds, \
188 1.1 ryo struct linux_timespec *timeout, \
189 1.1 ryo linux_sigset_t *sigset); }
190 1.1 ryo 74 UNIMPL signalfd4
191 1.1 ryo 75 UNIMPL vmsplice
192 1.1 ryo 76 UNIMPL splice
193 1.1 ryo 77 UNIMPL tee
194 1.1 ryo 78 NOARGS { ssize_t|sys||readlinkat(int fd, const char *path, \
195 1.1 ryo char *buf, size_t bufsize); }
196 1.1 ryo 79 STD { int|linux_sys||fstatat64(int fd, const char *path, \
197 1.1 ryo struct linux_stat *sp, int flag); }
198 1.1 ryo 80 STD { int|linux_sys||fstat64(int fd, \
199 1.1 ryo struct linux_stat *sp); }
200 1.1 ryo 81 NOARGS { int|sys||sync(void); }
201 1.1 ryo 82 NOARGS { int|sys||fsync(int fd); }
202 1.1 ryo 83 STD { int|linux_sys||fdatasync(int fd); }
203 1.1 ryo 84 UNIMPL sync_file_range
204 1.1 ryo 85 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \
205 1.1 ryo int flags); }
206 1.1 ryo 86 STD { int|linux_sys||timerfd_settime(int fd, int flags, \
207 1.1 ryo const struct linux_itimerspec *tim, \
208 1.1 ryo struct linux_itimerspec *otim); }
209 1.1 ryo 87 STD { int|linux_sys||timerfd_gettime(int fd, \
210 1.1 ryo struct linux_itimerspec *tim); }
211 1.1 ryo 88 STD { int|linux_sys||utimensat(int fd, const char *path, \
212 1.1 ryo struct linux_timespec *times, int flag); }
213 1.1 ryo 89 NOARGS { int|sys||acct(char *path); }
214 1.1 ryo 90 UNIMPL capget
215 1.1 ryo 91 UNIMPL capset
216 1.1 ryo 92 STD { int|linux_sys||personality(unsigned long per); }
217 1.1 ryo 93 STD { int|linux_sys||exit(int rval); }
218 1.1 ryo 94 STD { int|linux_sys||exit_group(int error_code); }
219 1.10 christos 95 STD { int|linux_sys||waitid(int idtype, id_t id, \
220 1.10 christos linux_siginfo_t *infop, int options, \
221 1.10 christos struct rusage50 *rusage); }
222 1.1 ryo 96 STD { int|linux_sys||set_tid_address(int *tid); }
223 1.1 ryo 97 UNIMPL unshare
224 1.1 ryo 98 STD { int|linux_sys||futex(int *uaddr, int op, int val, \
225 1.1 ryo const struct linux_timespec *timeout, int *uaddr2, \
226 1.1 ryo int val3); }
227 1.1 ryo ;
228 1.1 ryo ; The NetBSD native robust list calls have different
229 1.1 ryo ; argument names / types, but they are ABI-compatible
230 1.1 ryo ; with Linux.
231 1.1 ryo ;
232 1.1 ryo 99 NOARGS { int|sys||__futex_set_robust_list(void *head, \
233 1.1 ryo size_t len); }
234 1.1 ryo 100 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \
235 1.1 ryo void **headp, size_t *lenp); }
236 1.1 ryo 101 STD { int|linux_sys||nanosleep( \
237 1.1 ryo const struct linux_timespec *rqtp, \
238 1.1 ryo struct linux_timespec *rmtp); }
239 1.1 ryo 102 NOARGS { int|compat_50_sys||getitimer(int which, \
240 1.1 ryo struct itimerval50 *itv); }
241 1.1 ryo 103 NOARGS { int|compat_50_sys||setitimer(int which, \
242 1.1 ryo struct itimerval50 *itv, \
243 1.1 ryo struct itimerval50 *oitv); }
244 1.1 ryo 104 UNIMPL kexec_load
245 1.1 ryo 105 UNIMPL init_module
246 1.1 ryo 106 UNIMPL delete_module
247 1.1 ryo 107 STD { int|linux_sys||timer_create(clockid_t clockid, \
248 1.1 ryo struct linux_sigevent *evp, timer_t *timerid); }
249 1.1 ryo 108 STD { int|linux_sys||timer_gettime(timer_t timerid, \
250 1.1 ryo struct linux_itimerspec *tim); }
251 1.1 ryo 109 NOARGS { int|sys||timer_getoverrun(timer_t timerid); }
252 1.1 ryo 110 STD { int|linux_sys||timer_settime(timer_t timerid, \
253 1.1 ryo int flags, const struct linux_itimerspec *tim, \
254 1.1 ryo struct linux_itimerspec *otim); }
255 1.1 ryo 111 NOARGS { int|sys||timer_delete(timer_t timerid); }
256 1.1 ryo 112 STD { int|linux_sys||clock_settime(clockid_t which, \
257 1.1 ryo struct linux_timespec *tp); }
258 1.1 ryo 113 STD { int|linux_sys||clock_gettime(clockid_t which, \
259 1.1 ryo struct linux_timespec *tp); }
260 1.1 ryo 114 STD { int|linux_sys||clock_getres(clockid_t which, \
261 1.1 ryo struct linux_timespec *tp); }
262 1.1 ryo 115 STD { int|linux_sys||clock_nanosleep(clockid_t which, \
263 1.1 ryo int flags, struct linux_timespec *rqtp, \
264 1.1 ryo struct linux_timespec *rmtp); }
265 1.1 ryo 116 UNIMPL syslog
266 1.1 ryo 117 STD { int|linux_sys||ptrace(long request, long pid, \
267 1.1 ryo long addr, long data); }
268 1.1 ryo 118 STD { int|linux_sys||sched_setparam(pid_t pid, \
269 1.1 ryo const struct linux_sched_param *sp); }
270 1.1 ryo 119 STD { int|linux_sys||sched_setscheduler(pid_t pid, \
271 1.1 ryo int policy, const struct linux_sched_param *sp); }
272 1.1 ryo 120 STD { int|linux_sys||sched_getscheduler(pid_t pid); }
273 1.1 ryo 121 STD { int|linux_sys||sched_getparam(pid_t pid, \
274 1.1 ryo struct linux_sched_param *sp); }
275 1.1 ryo 122 STD { int|linux_sys||sched_setaffinity(pid_t pid, \
276 1.1 ryo unsigned int len, unsigned long *mask); }
277 1.1 ryo 123 STD { int|linux_sys||sched_getaffinity(pid_t pid, \
278 1.1 ryo unsigned int len, unsigned long *mask); }
279 1.1 ryo 124 STD { int|linux_sys||sched_yield(void); }
280 1.1 ryo 125 STD { int|linux_sys||sched_get_priority_max(int policy); }
281 1.1 ryo 126 STD { int|linux_sys||sched_get_priority_min(int policy); }
282 1.1 ryo 127 UNIMPL sys_sched_rr_get_interval
283 1.1 ryo 128 UNIMPL restart_syscall
284 1.1 ryo 129 STD { int|linux_sys||kill(int pid, int signum); }
285 1.1 ryo 130 STD { int|linux_sys||tkill(int tid, int sig); }
286 1.1 ryo 131 STD { int|linux_sys||tgkill(int tgid, int tid, int sig); }
287 1.1 ryo 132 STD { int|linux_sys||sigaltstack( \
288 1.1 ryo const struct linux_sigaltstack *ss, \
289 1.1 ryo struct linux_sigaltstack *oss); }
290 1.1 ryo 133 STD { int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \
291 1.1 ryo size_t sigsetsize); }
292 1.1 ryo 134 STD { int|linux_sys||rt_sigaction(int signum, \
293 1.1 ryo const struct linux_sigaction *nsa, \
294 1.1 ryo struct linux_sigaction *osa, \
295 1.1 ryo size_t sigsetsize); }
296 1.1 ryo 135 STD { int|linux_sys||rt_sigprocmask(int how, \
297 1.1 ryo const linux_sigset_t *set, \
298 1.1 ryo linux_sigset_t *oset, \
299 1.1 ryo size_t sigsetsize); }
300 1.1 ryo 136 STD { int|linux_sys||rt_sigpending( \
301 1.1 ryo linux_sigset_t *set, \
302 1.1 ryo size_t sigsetsize); }
303 1.1 ryo 137 STD { int|linux_sys||rt_sigtimedwait( \
304 1.1 ryo const linux_sigset_t *set, \
305 1.1 ryo linux_siginfo_t *info, \
306 1.1 ryo const struct linux_timespec *timeout); }
307 1.1 ryo 138 UNIMPL rt_sigqueueinfo
308 1.1 ryo 139 NOARGS { int|linux_sys||rt_sigreturn(void); }
309 1.1 ryo 140 NOARGS { int|sys||setpriority(int which, int who, int prio); }
310 1.1 ryo 141 STD { int|linux_sys||getpriority(int which, int who); }
311 1.1 ryo 142 STD { int|linux_sys||reboot(int magic1, int magic2, \
312 1.1 ryo int cmd, void *arg); }
313 1.1 ryo 143 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); }
314 1.1 ryo 144 NOARGS { int|sys||setgid(gid_t gid); }
315 1.1 ryo 145 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); }
316 1.1 ryo 146 NOARGS { int|sys||setuid(uid_t uid); }
317 1.1 ryo 147 STD { int|linux_sys||setresuid(uid_t ruid, uid_t euid, \
318 1.1 ryo uid_t suid); }
319 1.1 ryo 148 STD { int|linux_sys||getresuid(uid_t *ruid, uid_t *euid, \
320 1.1 ryo uid_t *suid); }
321 1.1 ryo 149 STD { int|linux_sys||setresgid(gid_t rgid, gid_t egid, \
322 1.1 ryo gid_t sgid); }
323 1.1 ryo 150 STD { int|linux_sys||getresgid(gid_t *rgid, gid_t *egid, \
324 1.1 ryo gid_t *sgid); }
325 1.1 ryo 151 STD { int|linux_sys||setfsuid(uid_t uid); }
326 1.1 ryo 152 STD { int|linux_sys||setfsgid(gid_t gid); }
327 1.1 ryo 153 STD { int|linux_sys||times(struct times *tms); }
328 1.1 ryo 154 NOARGS { int|sys||setpgid(int pid, int pgid); }
329 1.1 ryo 155 NOARGS { pid_t|sys||getpgid(pid_t pid); }
330 1.1 ryo 156 NOARGS { pid_t|sys||getsid(pid_t pid); }
331 1.1 ryo 157 NOARGS { int|sys||setsid(void); }
332 1.1 ryo 158 NOARGS { int|sys||getgroups(int gidsetsize, gid_t *gidset); }
333 1.1 ryo 159 NOARGS { int|sys||setgroups(int gidsetsize, gid_t *gidset); }
334 1.1 ryo 160 STD { int|linux_sys||uname(struct linux_utsname *up); }
335 1.1 ryo 161 NOARGS { int|compat_43_sys||sethostname(char *hostname, \
336 1.1 ryo u_int len);}
337 1.1 ryo 162 STD { int|linux_sys||setdomainname(char *domainname, \
338 1.1 ryo int len); }
339 1.1 ryo 163 STD { int|linux_sys||getrlimit(int which, \
340 1.1 ryo struct rlimit *rlp); }
341 1.1 ryo 164 STD { int|linux_sys||setrlimit(u_int which, \
342 1.1 ryo struct rlimit *rlp); }
343 1.1 ryo 165 NOARGS { int|compat_50_sys||getrusage(int who, \
344 1.1 ryo struct rusage50 *rusage); }
345 1.1 ryo 166 NOARGS { int|sys||umask(int newmask); }
346 1.1 ryo 167 UNIMPL prctl
347 1.1 ryo 168 UNIMPL getcpu
348 1.1 ryo 169 STD { int|linux_sys||gettimeofday(struct timeval50 *tp, \
349 1.1 ryo struct timezone *tzp); }
350 1.1 ryo 170 STD { int|linux_sys||settimeofday(struct timeval50 *tp, \
351 1.1 ryo struct timezone *tzp); }
352 1.1 ryo 171 UNIMPL adjtimex
353 1.1 ryo 172 STD { pid_t|sys||getpid(void); }
354 1.1 ryo 173 STD { pid_t|sys||getppid(void); }
355 1.1 ryo 174 NOARGS { uid_t|sys||getuid(void); }
356 1.1 ryo 175 NOARGS { uid_t|sys||geteuid(void); }
357 1.1 ryo 176 NOARGS { gid_t|sys||getgid(void); }
358 1.1 ryo 177 NOARGS { gid_t|sys||getegid(void); }
359 1.1 ryo 178 STD { pid_t|linux_sys||gettid(void); }
360 1.1 ryo 179 STD { int|linux_sys||sysinfo(struct linux_sysinfo *arg); }
361 1.1 ryo 180 UNIMPL mq_open
362 1.1 ryo 181 UNIMPL mq_unlink
363 1.1 ryo 182 UNIMPL mq_timedsend
364 1.1 ryo 183 UNIMPL mq_timedreceive
365 1.1 ryo 184 UNIMPL mq_notify
366 1.1 ryo 185 UNIMPL mq_getsetattr
367 1.1 ryo #ifdef SYSVMSG
368 1.1 ryo 186 NOARGS { int|sys||msgget(key_t key, int msgflg); }
369 1.1 ryo 187 NOARGS { int|linux_sys||msgctl(int msqid, int cmd, \
370 1.1 ryo struct linux_msqid_ds *buf); }
371 1.1 ryo 188 NOARGS { ssize_t|sys||msgrcv(int msqid, void *msgp, \
372 1.1 ryo size_t msgsz, long msgtyp, int msgflg); }
373 1.1 ryo 189 NOARGS { int|sys||msgsnd(int msqid, void *msgp, size_t msgsz, \
374 1.1 ryo int msgflg); }
375 1.1 ryo #else
376 1.1 ryo 186 UNIMPL msgget
377 1.1 ryo 187 UNIMPL msgctl
378 1.1 ryo 188 UNIMPL msgrcv
379 1.1 ryo 189 UNIMPL msgsnd
380 1.1 ryo #endif
381 1.1 ryo #ifdef SYSVSEM
382 1.1 ryo 190 NOARGS { int|sys||semget(key_t key, int nsems, int semflg); }
383 1.1 ryo 191 STD { int|linux_sys||semctl(int semid, int semnum, \
384 1.1 ryo int cmd, union linux_semun arg); }
385 1.1 ryo 192 UNIMPL semtimedop
386 1.1 ryo 193 NOARGS { int|sys||semop(int semid, struct sembuf *sops, \
387 1.1 ryo size_t nsops); }
388 1.1 ryo #else
389 1.1 ryo 190 UNIMPL semget
390 1.1 ryo 191 UNIMPL semctl
391 1.1 ryo 192 UNIMPL semtimedop
392 1.1 ryo 193 UNIMPL semop
393 1.1 ryo #endif
394 1.1 ryo #ifdef SYSVSEM
395 1.1 ryo 194 NOARGS { int|linux_sys||shmget(key_t key, size_t size, \
396 1.1 ryo int shmflg); }
397 1.1 ryo 195 NOARGS { int|linux_sys||shmctl(int shmid, int cmd, \
398 1.1 ryo struct linux_shmid_ds *buf); }
399 1.1 ryo 196 NOARGS { int|sys||shmat(int shmid, void *shmaddr, int shmflg); }
400 1.1 ryo 197 NOARGS { int|sys||shmdt(const void *shmaddr); }
401 1.1 ryo #else
402 1.1 ryo 194 UNIMPL shmget
403 1.1 ryo 195 UNIMPL shmctl
404 1.1 ryo 196 UNIMPL shmat
405 1.1 ryo 197 UNIMPL shmdt
406 1.1 ryo #endif
407 1.1 ryo 198 STD { int|linux_sys||socket(int domain, \
408 1.1 ryo int type, int protocol); }
409 1.1 ryo 199 STD { int|linux_sys||socketpair(int domain, int type, \
410 1.1 ryo int protocol, int *rsv); }
411 1.1 ryo 200 STD { int|linux_sys||bind(int s, \
412 1.1 ryo const struct osockaddr *name, \
413 1.1 ryo unsigned int namelen); }
414 1.1 ryo 201 NOARGS { int|sys||listen(int s, int backlog); }
415 1.1 ryo 202 STD { int|linux_sys||accept(int s, struct osockaddr *name, \
416 1.1 ryo int *anamelen); } oaccept
417 1.1 ryo 203 STD { int|linux_sys||connect(int s, \
418 1.1 ryo const struct osockaddr *name, \
419 1.1 ryo unsigned int namelen); }
420 1.1 ryo 204 STD { int|linux_sys||getsockname(int fdec, void *asa, \
421 1.1 ryo int *alen); }
422 1.1 ryo 205 STD { int|linux_sys||getpeername(int fdes, \
423 1.1 ryo struct sockaddr *asa, unsigned int *alen); }
424 1.1 ryo 206 STD { ssize_t|linux_sys||sendto(int s, void *msg, int len, \
425 1.1 ryo int flags, struct osockaddr *to, int tolen); }
426 1.1 ryo 207 STD { ssize_t|linux_sys||recvfrom(int s, void *buf, \
427 1.1 ryo size_t len, int flags, struct osockaddr *from, \
428 1.1 ryo unsigned int *fromlenaddr); }
429 1.1 ryo 208 STD { int|linux_sys||setsockopt(int s, int level, \
430 1.1 ryo int optname, void *optval, int optlen); }
431 1.1 ryo 209 STD { int|linux_sys||getsockopt(int s, int level, \
432 1.1 ryo int optname, void *optval, int *optlen); }
433 1.1 ryo 210 NOARGS { int|sys||shutdown(int s, int how); }
434 1.1 ryo 211 STD { int|linux_sys||sendmsg(int s, \
435 1.1 ryo const struct linux_msghdr *msg, int flags); }
436 1.1 ryo 212 STD { ssize_t|linux_sys||recvmsg(int s, \
437 1.1 ryo struct linux_msghdr *msg, int flags); }
438 1.9 christos 213 STD { ssize_t|linux_sys||readahead(int fd, off_t offset, \
439 1.9 christos size_t count); }
440 1.1 ryo 214 STD { int|linux_sys||brk(char *nsize); }
441 1.1 ryo 215 NOARGS { int|sys||munmap(void *addr, size_t len); }
442 1.1 ryo 216 STD { void *|linux_sys||mremap(void *old_address, \
443 1.1 ryo size_t old_size, size_t new_size, u_long flags); }
444 1.1 ryo 217 UNIMPL add_key
445 1.1 ryo 218 UNIMPL request_key
446 1.1 ryo 219 UNIMPL keyctl
447 1.1 ryo 220 STD { int|linux_sys||clone(int flags, void *stack, \
448 1.1 ryo void *parent_tidptr, void *child_tidptr, void *tls); }
449 1.1 ryo 221 NOARGS { int|sys||execve(const char *path, char **argp, \
450 1.1 ryo char **envp); }
451 1.1 ryo 222 NOARGS { linux_off_t|linux_sys||mmap(unsigned long addr, \
452 1.1 ryo size_t len, int prot, int flags, int fd, \
453 1.1 ryo linux_off_t offset); }
454 1.1 ryo 223 STD { int|linux_sys||fadvise64(int fd, off_t offset, \
455 1.1 ryo size_t len, int advice); }
456 1.1 ryo 224 STD { int|linux_sys||swapon(char *name); }
457 1.1 ryo 225 STD { int|linux_sys||swapoff(const char *path); }
458 1.1 ryo 226 STD { int|linux_sys||mprotect(const void *start, \
459 1.1 ryo unsigned long len, int prot); }
460 1.1 ryo 227 NOARGS { int|sys|13|msync(void *addr, size_t len, int flags); }
461 1.1 ryo 228 NOARGS { int|sys||mlock(void *addr, size_t len); }
462 1.1 ryo 229 NOARGS { int|sys||munlock(void *addr, size_t len); }
463 1.1 ryo 230 NOARGS { int|sys||mlockall(int flags); }
464 1.1 ryo 231 NOARGS { int|sys||munlockall(void); }
465 1.1 ryo 232 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); }
466 1.1 ryo 233 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); }
467 1.1 ryo 234 UNIMPL remap_file_pages
468 1.1 ryo 235 UNIMPL mbind
469 1.1 ryo 236 UNIMPL get_mempolicy
470 1.1 ryo 237 UNIMPL set_mempolicy
471 1.1 ryo 238 UNIMPL migrate_pages
472 1.1 ryo 239 UNIMPL move_pages
473 1.1 ryo 240 UNIMPL rt_tgsigqueueinfo
474 1.1 ryo 241 UNIMPL perf_event_open
475 1.1 ryo 242 STD { int|linux_sys||accept4(int s, \
476 1.1 ryo struct osockaddr *name, \
477 1.1 ryo int *anamelen, int flags); }
478 1.1 ryo 243 STD { int|linux_sys||recvmmsg(int s, \
479 1.1 ryo struct linux_mmsghdr *msgvec, unsigned int vlen, \
480 1.1 ryo unsigned int flags, struct timespec *timeout); }
481 1.1 ryo 244 UNIMPL arch_specific_syscall
482 1.1 ryo 245 UNIMPL
483 1.1 ryo 246 UNIMPL
484 1.1 ryo 247 UNIMPL
485 1.1 ryo 248 UNIMPL
486 1.1 ryo 249 UNIMPL
487 1.1 ryo 250 UNIMPL
488 1.1 ryo 251 UNIMPL
489 1.1 ryo 252 UNIMPL
490 1.1 ryo 253 UNIMPL
491 1.1 ryo 254 UNIMPL
492 1.1 ryo 255 UNIMPL
493 1.1 ryo 256 UNIMPL
494 1.1 ryo 257 UNIMPL
495 1.1 ryo 258 UNIMPL
496 1.1 ryo 259 UNIMPL
497 1.1 ryo 260 STD { int|linux_sys||wait4(int pid, int *status, \
498 1.1 ryo int options, struct rusage50 *rusage); }
499 1.4 ryo 261 STD { int|linux_sys||prlimit64(pid_t pid, int which, \
500 1.4 ryo struct rlimit *new_rlp, struct rlimit *old_rlp); }
501 1.1 ryo 262 UNIMPL fanotify_init
502 1.1 ryo 263 UNIMPL fanotify_mark
503 1.1 ryo 264 UNIMPL name_to_handle_at
504 1.1 ryo 265 UNIMPL open_by_handle_at
505 1.1 ryo 266 UNIMPL clock_adjtime
506 1.1 ryo 267 UNIMPL syncfs
507 1.1 ryo 268 UNIMPL setns
508 1.1 ryo 269 STD { int|linux_sys||sendmmsg(int s, \
509 1.1 ryo struct linux_mmsghdr *msgvec, unsigned int vlen, \
510 1.1 ryo unsigned int flags); }
511 1.1 ryo 270 UNIMPL process_vm_readv
512 1.1 ryo 271 UNIMPL process_vm_writev
513 1.1 ryo 272 UNIMPL kcmp
514 1.1 ryo 273 UNIMPL finit_module
515 1.1 ryo 274 UNIMPL sched_setattr
516 1.1 ryo 275 UNIMPL sched_getattr
517 1.1 ryo 276 UNIMPL renameat2
518 1.1 ryo 277 UNIMPL seccomp
519 1.2 ryo 278 NOARGS { ssize_t|sys||getrandom(void *buf, size_t buflen, \
520 1.2 ryo unsigned int flags); }
521 1.5 christos 279 STD { int|linux_sys||memfd_create(const char *name, \
522 1.5 christos unsigned int flags); }
523 1.1 ryo 280 UNIMPL bpf
524 1.1 ryo 281 UNIMPL execveat
525 1.1 ryo 282 UNIMPL userfaultfd
526 1.1 ryo 283 UNIMPL membarrier
527 1.1 ryo 284 UNIMPL mlock2
528 1.1 ryo 285 UNIMPL copy_file_range
529 1.1 ryo 286 UNIMPL preadv2
530 1.1 ryo 287 UNIMPL pwritev2
531 1.1 ryo 288 UNIMPL pkey_mprotect
532 1.1 ryo 289 UNIMPL pkey_alloc
533 1.1 ryo 290 UNIMPL pkey_free
534 1.3 ryo 291 STD { int|linux_sys||statx(int fd, const char *path, \
535 1.3 ryo int flag, unsigned int mask, \
536 1.3 ryo struct linux_statx *sp); }
537 1.1 ryo 292 UNIMPL io_pgetevents
538 1.1 ryo 293 UNIMPL rseq
539 1.1 ryo 294 UNIMPL kexec_file_load
540 1.1 ryo 295 UNIMPL
541 1.1 ryo 296 UNIMPL
542 1.1 ryo 297 UNIMPL
543 1.1 ryo 298 UNIMPL
544 1.1 ryo 299 UNIMPL
545 1.1 ryo 300 UNIMPL
546 1.1 ryo 301 UNIMPL
547 1.1 ryo 302 UNIMPL
548 1.1 ryo 303 UNIMPL
549 1.1 ryo 304 UNIMPL
550 1.1 ryo 305 UNIMPL
551 1.1 ryo 306 UNIMPL
552 1.1 ryo 307 UNIMPL
553 1.1 ryo 308 UNIMPL
554 1.1 ryo 309 UNIMPL
555 1.1 ryo 310 UNIMPL
556 1.1 ryo 311 UNIMPL
557 1.1 ryo 312 UNIMPL
558 1.1 ryo 313 UNIMPL
559 1.1 ryo 314 UNIMPL
560 1.1 ryo 315 UNIMPL
561 1.1 ryo 316 UNIMPL
562 1.1 ryo 317 UNIMPL
563 1.1 ryo 318 UNIMPL
564 1.1 ryo 319 UNIMPL
565 1.1 ryo 320 UNIMPL
566 1.1 ryo 321 UNIMPL
567 1.1 ryo 322 UNIMPL
568 1.1 ryo 323 UNIMPL
569 1.1 ryo 324 UNIMPL
570 1.1 ryo 325 UNIMPL
571 1.1 ryo 326 UNIMPL
572 1.1 ryo 327 UNIMPL
573 1.1 ryo 328 UNIMPL
574 1.1 ryo 329 UNIMPL
575 1.1 ryo 330 UNIMPL
576 1.1 ryo 331 UNIMPL
577 1.1 ryo 332 UNIMPL
578 1.1 ryo 333 UNIMPL
579 1.1 ryo 334 UNIMPL
580 1.1 ryo 335 UNIMPL
581 1.1 ryo 336 UNIMPL
582 1.1 ryo 337 UNIMPL
583 1.1 ryo 338 UNIMPL
584 1.1 ryo 339 UNIMPL
585 1.1 ryo 340 UNIMPL
586 1.1 ryo 341 UNIMPL
587 1.1 ryo 342 UNIMPL
588 1.1 ryo 343 UNIMPL
589 1.1 ryo 344 UNIMPL
590 1.1 ryo 345 UNIMPL
591 1.1 ryo 346 UNIMPL
592 1.1 ryo 347 UNIMPL
593 1.1 ryo 348 UNIMPL
594 1.1 ryo 349 UNIMPL
595 1.1 ryo 350 UNIMPL
596 1.1 ryo 351 UNIMPL
597 1.1 ryo 352 UNIMPL
598 1.1 ryo 353 UNIMPL
599 1.1 ryo 354 UNIMPL
600 1.1 ryo 355 UNIMPL
601 1.1 ryo 356 UNIMPL
602 1.1 ryo 357 UNIMPL
603 1.1 ryo 358 UNIMPL
604 1.1 ryo 359 UNIMPL
605 1.1 ryo 360 UNIMPL
606 1.1 ryo 361 UNIMPL
607 1.1 ryo 362 UNIMPL
608 1.1 ryo 363 UNIMPL
609 1.1 ryo 364 UNIMPL
610 1.1 ryo 365 UNIMPL
611 1.1 ryo 366 UNIMPL
612 1.1 ryo 367 UNIMPL
613 1.1 ryo 368 UNIMPL
614 1.1 ryo 369 UNIMPL
615 1.1 ryo 370 UNIMPL
616 1.1 ryo 371 UNIMPL
617 1.1 ryo 372 UNIMPL
618 1.1 ryo 373 UNIMPL
619 1.1 ryo 374 UNIMPL
620 1.1 ryo 375 UNIMPL
621 1.1 ryo 376 UNIMPL
622 1.1 ryo 377 UNIMPL
623 1.1 ryo 378 UNIMPL
624 1.1 ryo 379 UNIMPL
625 1.1 ryo 380 UNIMPL
626 1.1 ryo 381 UNIMPL
627 1.1 ryo 382 UNIMPL
628 1.1 ryo 383 UNIMPL
629 1.1 ryo 384 UNIMPL
630 1.1 ryo 385 UNIMPL
631 1.1 ryo 386 UNIMPL
632 1.1 ryo 387 UNIMPL
633 1.1 ryo 388 UNIMPL
634 1.1 ryo 389 UNIMPL
635 1.1 ryo 390 UNIMPL
636 1.1 ryo 391 UNIMPL
637 1.1 ryo 392 UNIMPL
638 1.1 ryo 393 UNIMPL
639 1.1 ryo 394 UNIMPL
640 1.1 ryo 395 UNIMPL
641 1.1 ryo 396 UNIMPL
642 1.1 ryo 397 UNIMPL
643 1.1 ryo 398 UNIMPL
644 1.1 ryo 399 UNIMPL
645 1.1 ryo 400 UNIMPL
646 1.1 ryo 401 UNIMPL
647 1.1 ryo 402 UNIMPL
648 1.1 ryo 403 UNIMPL
649 1.1 ryo 404 UNIMPL
650 1.1 ryo 405 UNIMPL
651 1.1 ryo 406 UNIMPL
652 1.1 ryo 407 UNIMPL
653 1.1 ryo 408 UNIMPL
654 1.1 ryo 409 UNIMPL
655 1.1 ryo 410 UNIMPL
656 1.1 ryo 411 UNIMPL
657 1.1 ryo 412 UNIMPL
658 1.1 ryo 413 UNIMPL
659 1.1 ryo 414 UNIMPL
660 1.1 ryo 415 UNIMPL
661 1.1 ryo 416 UNIMPL
662 1.1 ryo 417 UNIMPL
663 1.1 ryo 418 UNIMPL
664 1.1 ryo 419 UNIMPL
665 1.1 ryo 420 UNIMPL
666 1.1 ryo 421 UNIMPL
667 1.1 ryo 422 UNIMPL
668 1.1 ryo 423 UNIMPL
669 1.1 ryo 424 UNIMPL pidfd_send_signal
670 1.1 ryo 425 UNIMPL io_uring_setup
671 1.1 ryo 426 UNIMPL io_uring_enter
672 1.1 ryo 427 UNIMPL io_uring_register
673 1.1 ryo 428 UNIMPL open_tree
674 1.1 ryo 429 UNIMPL move_mount
675 1.1 ryo 430 UNIMPL fsopen
676 1.1 ryo 431 UNIMPL fsconfig
677 1.1 ryo 432 UNIMPL fsmount
678 1.1 ryo 433 UNIMPL fspick
679 1.1 ryo 434 UNIMPL pidfd_open
680 1.1 ryo 435 UNIMPL clone3
681 1.9 christos 436 STD { int|linux_sys||close_range(unsigned int first, \
682 1.9 christos unsigned int last, unsigned int flags); }
683 1.1 ryo 437 UNIMPL openat2
684 1.1 ryo 438 UNIMPL pidfd_getfd
685 1.1 ryo 439 UNIMPL faccessat2
686 1.1 ryo
687 1.1 ryo ; we want a "nosys" syscall, we'll just add an extra entry for it.
688 1.1 ryo 440 STD { int|linux_sys||nosys(void); }
689 1.6 christos 441 STD { int|linux_sys||epoll_pwait2(int epfd, \
690 1.6 christos struct linux_epoll_event *events, int maxevents, \
691 1.6 christos const struct linux_timespec *timeout, \
692 1.6 christos const linux_sigset_t *sigmask); }
693