syscalls.master revision 1.75 1 1.75 thorpej $NetBSD: syscalls.master,v 1.75 2021/09/20 02:20:03 thorpej Exp $
2 1.1 manu
3 1.1 manu ; NetBSD i386 COMPAT_LINUX32 system call name/number "master" file.
4 1.1 manu ; (See syscalls.conf to see what it is processed into.)
5 1.1 manu ;
6 1.1 manu ; Fields: number type [type-dependent ...]
7 1.1 manu ; number system call number, must be in order
8 1.1 manu ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
9 1.1 manu ; the compatibility options defined in syscalls.conf.
10 1.1 manu ;
11 1.1 manu ; types:
12 1.1 manu ; STD always included
13 1.1 manu ; OBSOL obsolete, not included in system
14 1.1 manu ; UNIMPL unimplemented, not included in system
15 1.1 manu ; NODEF included, but don't define the syscall number
16 1.1 manu ;
17 1.1 manu ; INDIR included, but don't define the syscall args structure
18 1.1 manu ; and allow it to be "really" varargs.
19 1.1 manu ;
20 1.1 manu ; The compat options are defined in the syscalls.conf file, and the
21 1.1 manu ; compat option name is prefixed to the syscall name. Other than
22 1.1 manu ; that, they're like NODEF (for 'compat' options), or STD (for
23 1.1 manu ; 'libcompat' options).
24 1.1 manu ;
25 1.1 manu ; The type-dependent arguments are as follows:
26 1.1 manu ; For STD, NODEF, NOARGS, and compat syscalls:
27 1.1 manu ; { pseudo-proto } [alias]
28 1.1 manu ; For other syscalls:
29 1.1 manu ; [comment]
30 1.1 manu ;
31 1.1 manu ; #ifdef's, etc. may be included, and are copied to the output files.
32 1.1 manu ; #include's are copied to the syscall names and switch definition files only.
33 1.1 manu
34 1.1 manu #include <sys/param.h>
35 1.1 manu #include <sys/poll.h>
36 1.1 manu #include <sys/systm.h>
37 1.1 manu #include <sys/signal.h>
38 1.1 manu #include <sys/mount.h>
39 1.1 manu #include <sys/syscallargs.h>
40 1.1 manu
41 1.1 manu #include <machine/netbsd32_machdep.h>
42 1.1 manu
43 1.1 manu #include <compat/netbsd32/netbsd32.h>
44 1.1 manu #include <compat/netbsd32/netbsd32_syscallargs.h>
45 1.1 manu
46 1.64 chs #include <compat/linux/common/linux_types.h>
47 1.64 chs
48 1.1 manu #include <compat/linux32/common/linux32_types.h>
49 1.1 manu #include <compat/linux32/common/linux32_signal.h>
50 1.1 manu #include <compat/linux32/arch/amd64/linux32_missing.h>
51 1.1 manu #include <compat/linux32/linux32_syscallargs.h>
52 1.1 manu
53 1.1 manu #include <compat/linux/common/linux_mmap.h>
54 1.1 manu #include <compat/linux/common/linux_signal.h>
55 1.1 manu #include <compat/linux/common/linux_siginfo.h>
56 1.1 manu #include <compat/linux/common/linux_machdep.h>
57 1.40 ad #include <compat/linux/common/linux_ipc.h>
58 1.40 ad #include <compat/linux/common/linux_sem.h>
59 1.1 manu #include <compat/linux/linux_syscallargs.h>
60 1.1 manu
61 1.1 manu %%
62 1.1 manu
63 1.46 pooka 0 NOARGS { int|linux_sys||nosys(void); } syscall
64 1.56 chs 1 STD { int|linux32_sys||exit(int rval); }
65 1.46 pooka 2 NOARGS { int|sys||fork(void); }
66 1.46 pooka 3 NOARGS { netbsd32_ssize_t|netbsd32||read(int fd, \
67 1.1 manu netbsd32_voidp buf, netbsd32_size_t nbyte); }
68 1.46 pooka 4 NOARGS { netbsd32_ssize_t|netbsd32||write(int fd, \
69 1.38 njoly netbsd32_voidp buf, netbsd32_size_t nbyte); }
70 1.46 pooka 5 STD { int|linux32_sys||open(netbsd32_charp path, int flags, \
71 1.64 chs linux_umode_t mode); }
72 1.46 pooka 6 NOARGS { int|netbsd32||close(int fd); }
73 1.46 pooka 7 STD { int|linux32_sys||waitpid(int pid, netbsd32_intp status, \
74 1.1 manu int options);}
75 1.64 chs 8 STD { int|linux32_sys||creat(netbsd32_charp path, linux_umode_t mode); }
76 1.46 pooka 9 NOARGS { int|netbsd32||link(netbsd32_charp path, \
77 1.38 njoly netbsd32_charp link); }
78 1.46 pooka 10 STD { int|linux32_sys||unlink(netbsd32_charp path); }
79 1.46 pooka 11 NOARGS { int|netbsd32||execve(netbsd32_charp path, \
80 1.1 manu netbsd32_charpp argp, netbsd32_charpp envp); }
81 1.46 pooka 12 NOARGS { int|netbsd32||chdir(netbsd32_charp path); }
82 1.46 pooka 13 STD { int|linux32_sys||time(linux32_timep_t t); }
83 1.46 pooka 14 STD { int|linux32_sys||mknod(netbsd32_charp path, \
84 1.64 chs linux_umode_t mode, unsigned dev); }
85 1.64 chs 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, linux_umode_t mode); }
86 1.46 pooka 16 STD { int|linux32_sys||lchown16(netbsd32_charp path, \
87 1.27 njoly linux32_uid16_t uid, linux32_gid16_t gid); }
88 1.46 pooka 17 STD { int|linux32_sys||break(netbsd32_charp nsize); }
89 1.1 manu 18 OBSOL ostat
90 1.46 pooka 19 NOARGS { netbsd32_long|compat_43_netbsd32||olseek(int fd, \
91 1.69 christos netbsd32_long offset, int whence); }
92 1.56 chs 20 NOARGS { pid_t|sys||getpid(void); }
93 1.1 manu 21 UNIMPL mount
94 1.1 manu 22 UNIMPL umount
95 1.46 pooka 23 NOARGS linux_setuid16 { int|netbsd32||setuid(uid_t uid); }
96 1.46 pooka 24 NOARGS linux_getuid16 { uid_t|sys||getuid(void); }
97 1.46 pooka 25 STD { int|linux32_sys||stime(linux32_timep_t t); }
98 1.46 pooka 26 STD { int|linux32_sys||ptrace(int request, int pid, \
99 1.35 christos int addr, int data); }
100 1.46 pooka 27 STD { int|linux32_sys||alarm(unsigned int secs); }
101 1.1 manu 28 OBSOL ofstat
102 1.46 pooka 29 NOARGS { int|linux_sys||pause(void); }
103 1.46 pooka 30 STD { int|linux32_sys||utime(netbsd32_charp path, \
104 1.1 manu linux32_utimbufp_t times); }
105 1.1 manu 31 OBSOL stty
106 1.1 manu 32 OBSOL gtty
107 1.46 pooka 33 NOARGS { int|netbsd32||access(netbsd32_charp path, \
108 1.1 manu int flags); }
109 1.46 pooka 34 STD { int|linux32_sys||nice(int incr); }
110 1.1 manu 35 OBSOL ftime
111 1.46 pooka 36 NOARGS { int|sys||sync(void); }
112 1.46 pooka 37 STD { int|linux32_sys||kill(int pid, int signum); }
113 1.46 pooka 38 NOARGS { int|netbsd32||__posix_rename(netbsd32_charp from, \
114 1.38 njoly netbsd32_charp to); }
115 1.64 chs 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, linux_umode_t mode); }
116 1.46 pooka 40 NOARGS { int|netbsd32||rmdir(netbsd32_charp path); }
117 1.63 njoly 41 NOARGS { int|netbsd32||dup(int fd); }
118 1.46 pooka 42 STD { int|linux32_sys||pipe(netbsd32_intp fd); }
119 1.46 pooka 43 STD { int|linux32_sys||times(linux32_tmsp_t tms); }
120 1.1 manu 44 OBSOL prof
121 1.46 pooka 45 STD { int|linux32_sys||brk(netbsd32_charp nsize); }
122 1.46 pooka 46 NOARGS linux_setgid16 { int|netbsd32||setgid(gid_t gid); }
123 1.46 pooka 47 NOARGS linux_getgid16 { gid_t|sys||getgid(void); }
124 1.46 pooka 48 STD { int|linux32_sys||signal(int signum, \
125 1.69 christos linux32_handlerp_t handler); }
126 1.46 pooka 49 NOARGS linux_geteuid16 { uid_t|sys||geteuid(void); }
127 1.46 pooka 50 NOARGS linux_getegid16 { gid_t|sys||getegid(void); }
128 1.46 pooka 51 NOARGS { int|netbsd32||acct(netbsd32_charp path); }
129 1.1 manu 52 OBSOL phys
130 1.1 manu 53 OBSOL lock
131 1.46 pooka 54 STD { int|linux32_sys||ioctl(int fd, netbsd32_u_long com, \
132 1.1 manu netbsd32_charp data); }
133 1.46 pooka 55 STD { int|linux32_sys||fcntl(int fd, \
134 1.1 manu int cmd, netbsd32_voidp arg); }
135 1.1 manu 56 OBSOL mpx
136 1.46 pooka 57 NOARGS { int|netbsd32||setpgid(int pid, int pgid); }
137 1.1 manu 58 OBSOL ulimit
138 1.46 pooka 59 STD { int|linux32_sys||oldolduname( \
139 1.1 manu linux32_oldold_utsnamep_t up); }
140 1.46 pooka 60 NOARGS { int|netbsd32||umask(int newmask); }
141 1.46 pooka 61 NOARGS { int|netbsd32||chroot(netbsd32_charp path); }
142 1.1 manu 62 UNIMPL ustat
143 1.46 pooka 63 NOARGS { int|netbsd32||dup2(int from, int to); }
144 1.56 chs 64 NOARGS { pid_t|sys||getppid(void); }
145 1.46 pooka 65 NOARGS { int|sys||getpgrp(void); }
146 1.46 pooka 66 NOARGS { int|sys||setsid(void); }
147 1.1 manu 67 UNIMPL sigaction
148 1.51 njoly 68 STD { int|linux32_sys||siggetmask(void); }
149 1.51 njoly 69 STD { int|linux32_sys||sigsetmask(linux32_old_sigset_t mask); }
150 1.46 pooka 70 STD { int|linux32_sys||setreuid16(linux32_uid16_t ruid, \
151 1.27 njoly linux32_uid16_t euid); }
152 1.46 pooka 71 STD { int|linux32_sys||setregid16(linux32_gid16_t rgid, \
153 1.27 njoly linux32_gid16_t egid); }
154 1.1 manu 72 UNIMPL sigsuspend
155 1.1 manu 73 UNIMPL sigpending
156 1.46 pooka 74 NOARGS { int|compat_43_netbsd32||osethostname(netbsd32_charp hostname, \
157 1.1 manu u_int len); }
158 1.46 pooka 75 STD { int|linux32_sys||setrlimit(u_int which, \
159 1.1 manu netbsd32_orlimitp_t rlp); }
160 1.46 pooka 76 STD { int|linux32_sys||getrlimit(u_int which, \
161 1.1 manu netbsd32_orlimitp_t rlp); }
162 1.46 pooka 77 NOARGS { int|compat_50_netbsd32||getrusage(int who, \
163 1.45 christos netbsd32_rusage50p_t rusage); }
164 1.47 njoly 78 STD { int|linux32_sys||gettimeofday(netbsd32_timeval50p_t tp, \
165 1.1 manu netbsd32_timezonep_t tzp); }
166 1.47 njoly 79 STD { int|linux32_sys||settimeofday(netbsd32_timeval50p_t tp, \
167 1.1 manu netbsd32_timezonep_t tzp); }
168 1.46 pooka 80 STD { int|linux32_sys||getgroups16(int gidsetsize, \
169 1.27 njoly linux32_gid16p_t gidset); }
170 1.46 pooka 81 STD { int|linux32_sys||setgroups16(int gidsetsize, \
171 1.27 njoly linux32_gid16p_t gidset); }
172 1.46 pooka 82 STD { int|linux32_sys||oldselect(linux32_oldselectp_t lsp); }
173 1.46 pooka 83 NOARGS { int|netbsd32||symlink(netbsd32_charp path, \
174 1.38 njoly netbsd32_charp link); }
175 1.46 pooka 84 NOARGS { int|compat_43_netbsd32||lstat43(netbsd32_charp \
176 1.1 manu path, netbsd32_stat43p_t ub); }
177 1.69 christos 85 NOARGS { int|netbsd32||readlink(netbsd32_charp path, \
178 1.38 njoly netbsd32_charp buf, netbsd32_size_t count); }
179 1.1 manu 86 UNIMPL uselib
180 1.46 pooka 87 STD { int|linux32_sys||swapon(netbsd32_charp name); }
181 1.46 pooka 88 STD { int|linux32_sys||reboot(int magic1, int magic2, int cmd, \
182 1.1 manu netbsd32_voidp arg); }
183 1.46 pooka 89 STD { int|linux32_sys||readdir(int fd, netbsd32_voidp dent, \
184 1.25 njoly unsigned int count); }
185 1.46 pooka 90 STD { int|linux32_sys||old_mmap(linux32_oldmmapp lmp); }
186 1.46 pooka 91 NOARGS { int|netbsd32||munmap(netbsd32_voidp addr, \
187 1.38 njoly netbsd32_size_t len); }
188 1.46 pooka 92 NOARGS { int|compat_43_netbsd32||otruncate(netbsd32_charp path, \
189 1.1 manu netbsd32_long length); }
190 1.46 pooka 93 NOARGS { int|compat_43_netbsd32||oftruncate(int fd, \
191 1.15 njoly netbsd32_long length); }
192 1.64 chs 94 NOARGS { int|netbsd32||fchmod(int fd, linux_umode_t mode); }
193 1.46 pooka 95 STD { int|linux32_sys||fchown16(int fd, linux32_uid16_t uid, \
194 1.27 njoly linux32_gid16_t gid); }
195 1.46 pooka 96 STD { int|linux32_sys||getpriority(int which, int who); }
196 1.46 pooka 97 NOARGS { int|netbsd32||setpriority(int which, int who, int prio); }
197 1.57 chs 98 NOARGS { int|netbsd32||profil(netbsd32_voidp samples, \
198 1.57 chs netbsd32_size_t size, netbsd32_u_long offset, \
199 1.57 chs u_int scale); }
200 1.46 pooka 99 STD { int|linux32_sys||statfs(netbsd32_charp path, \
201 1.14 njoly linux32_statfsp sp); }
202 1.53 njoly 100 STD { int|linux32_sys||fstatfs(int fd, linux32_statfsp sp); }
203 1.57 chs 101 NOARGS { int|linux_sys||ioperm(unsigned int lo, \
204 1.57 chs unsigned int hi, int val); }
205 1.46 pooka 102 STD { int|linux32_sys||socketcall(int what, netbsd32_voidp args); }
206 1.1 manu 103 UNIMPL syslog
207 1.46 pooka 104 NOARGS { int|compat_50_netbsd32||setitimer(int which, \
208 1.45 christos netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); }
209 1.46 pooka 105 NOARGS { int|compat_50_netbsd32||getitimer(int which, \
210 1.45 christos netbsd32_itimerval50p_t itv); }
211 1.52 njoly 106 STD { int|linux32_sys||stat(netbsd32_charp path, \
212 1.52 njoly linux32_statp sp); }
213 1.52 njoly 107 STD { int|linux32_sys||lstat(netbsd32_charp path, \
214 1.52 njoly linux32_statp sp); }
215 1.52 njoly 108 STD { int|linux32_sys||fstat(int fd, \
216 1.52 njoly linux32_statp sp); }
217 1.46 pooka 109 STD { int|linux32_sys||olduname(linux32_oldutsnamep_t up); }
218 1.57 chs 110 NOARGS { int|linux_sys||iopl(int level); }
219 1.1 manu 111 UNIMPL vhangup
220 1.1 manu 112 UNIMPL idle
221 1.1 manu 113 UNIMPL vm86old
222 1.46 pooka 114 STD { int|linux32_sys||wait4(int pid, netbsd32_intp status, \
223 1.48 njoly int options, netbsd32_rusage50p_t rusage); }
224 1.46 pooka 115 STD { int|linux32_sys||swapoff(netbsd32_charp path); }
225 1.46 pooka 116 STD { int|linux32_sys||sysinfo(linux32_sysinfop_t arg); }
226 1.46 pooka 117 STD { int|linux32_sys||ipc(int what, int a1, int a2, int a3, \
227 1.34 njoly netbsd32_voidp ptr); }
228 1.46 pooka 118 NOARGS { int|netbsd32||fsync(int fd); }
229 1.46 pooka 119 STD { int|linux32_sys||sigreturn(linux32_sigcontextp_t scp); }
230 1.56 chs 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack, \
231 1.56 chs netbsd32_voidp parent_tidptr, netbsd32_voidp tls, \
232 1.56 chs netbsd32_voidp child_tidptr); }
233 1.57 chs 121 STD { int|linux32_sys||setdomainname(netbsd32_charp domainname, \
234 1.57 chs int len); }
235 1.46 pooka 122 STD { int|linux32_sys||uname(linux32_utsnamep up); }
236 1.57 chs 123 STD { int|linux32_sys||modify_ldt(int func, netbsd32_charp ptr, \
237 1.57 chs netbsd32_size_t bytecount); }
238 1.1 manu 124 UNIMPL adjtimex
239 1.46 pooka 125 STD { int|linux32_sys||mprotect(netbsd32_voidp start, \
240 1.1 manu netbsd32_size_t len, int prot); }
241 1.1 manu 126 UNIMPL sigprocmask
242 1.1 manu 127 UNIMPL create_module
243 1.1 manu 128 UNIMPL init_module
244 1.1 manu 129 UNIMPL delete_module
245 1.1 manu 130 UNIMPL get_kernel_syms
246 1.1 manu 131 UNIMPL quotactl
247 1.46 pooka 132 NOARGS { int|netbsd32||getpgid(pid_t pid); }
248 1.46 pooka 133 NOARGS { int|netbsd32||fchdir(int fd); }
249 1.1 manu 134 UNIMPL bdflush
250 1.1 manu 135 UNIMPL sysfs
251 1.55 njoly 136 STD { int|linux32_sys||personality(netbsd32_u_long per); }
252 1.1 manu 137 UNIMPL afs_syscall
253 1.46 pooka 138 NOARGS setfsuid16 { int|linux32_sys||setfsuid(uid_t uid); }
254 1.46 pooka 139 NOARGS setfsgid16 { int|linux32_sys||setfsgid(gid_t gid); }
255 1.46 pooka 140 STD { int|linux32_sys||llseek(int fd, u_int32_t ohigh, \
256 1.43 njoly u_int32_t olow, netbsd32_voidp res, int whence); }
257 1.46 pooka 141 STD { int|linux32_sys||getdents(int fd, \
258 1.1 manu linux32_direntp_t dent, unsigned int count); }
259 1.46 pooka 142 STD { int|linux32_sys||select(int nfds, \
260 1.1 manu netbsd32_fd_setp_t readfds, \
261 1.1 manu netbsd32_fd_setp_t writefds, \
262 1.1 manu netbsd32_fd_setp_t exceptfds, \
263 1.47 njoly netbsd32_timeval50p_t timeout); }
264 1.46 pooka 143 NOARGS { int|netbsd32||flock(int fd, int how); }
265 1.46 pooka 144 NOARGS { int|netbsd32|13|msync(netbsd32_voidp addr, \
266 1.32 njoly netbsd32_size_t len, int flags); }
267 1.46 pooka 145 NOARGS { int|netbsd32||readv(int fd, \
268 1.38 njoly netbsd32_iovecp_t iovp, int iovcnt); }
269 1.46 pooka 146 NOARGS { netbsd32_ssize_t|netbsd32||writev(int fd, \
270 1.38 njoly netbsd32_iovecp_t iovp, int iovcnt); }
271 1.46 pooka 147 NOARGS { pid_t|netbsd32||getsid(pid_t pid); }
272 1.46 pooka 148 STD { int|linux32_sys||fdatasync(int fd); }
273 1.46 pooka 149 STD { int|linux32_sys||__sysctl(linux32___sysctlp_t lsp); }
274 1.46 pooka 150 NOARGS { int|netbsd32||mlock(netbsd32_voidp addr, \
275 1.31 njoly netbsd32_size_t len); }
276 1.46 pooka 151 NOARGS { int|netbsd32||munlock(netbsd32_voidp addr, \
277 1.31 njoly netbsd32_size_t len); }
278 1.46 pooka 152 NOARGS { int|netbsd32||mlockall(int flags); }
279 1.46 pooka 153 NOARGS { int|sys||munlockall(void); }
280 1.56 chs 154 STD { int|linux32_sys||sched_setparam(pid_t pid, \
281 1.56 chs const linux32_sched_paramp_t sp); }
282 1.46 pooka 155 STD { int|linux32_sys||sched_getparam(pid_t pid, \
283 1.7 manu linux32_sched_paramp_t sp); }
284 1.46 pooka 156 STD { int|linux32_sys||sched_setscheduler(pid_t pid, \
285 1.38 njoly int policy, linux32_sched_paramp_t sp); }
286 1.46 pooka 157 STD { int|linux32_sys||sched_getscheduler(pid_t pid); }
287 1.46 pooka 158 NOARGS { int|linux_sys||sched_yield(void); }
288 1.46 pooka 159 STD { int|linux32_sys||sched_get_priority_max(int policy); }
289 1.46 pooka 160 STD { int|linux32_sys||sched_get_priority_min(int policy); }
290 1.1 manu 161 UNIMPL sched_rr_get_interval
291 1.46 pooka 162 STD { int|linux32_sys||nanosleep(linux32_timespecp_t rqtp, \
292 1.39 njoly linux32_timespecp_t rmtp); }
293 1.46 pooka 163 STD { int|linux32_sys||mremap(netbsd32_voidp old_address, \
294 1.38 njoly netbsd32_size_t old_size, netbsd32_size_t new_size, \
295 1.7 manu netbsd32_u_long flags); }
296 1.46 pooka 164 STD { int|linux32_sys||setresuid16(linux32_uid16_t ruid, \
297 1.27 njoly linux32_uid16_t euid, linux32_uid16_t suid); }
298 1.46 pooka 165 STD { int|linux32_sys||getresuid16(linux32_uid16p_t ruid, \
299 1.27 njoly linux32_uid16p_t euid, linux32_uid16p_t suid); }
300 1.1 manu 166 UNIMPL vm86
301 1.1 manu 167 UNIMPL query_module
302 1.46 pooka 168 NOARGS { int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \
303 1.27 njoly int timeout); }
304 1.1 manu 169 UNIMPL nfsservctl
305 1.46 pooka 170 STD { int|linux32_sys||setresgid16(linux32_gid16_t rgid, \
306 1.27 njoly linux32_gid16_t egid, linux32_gid16_t sgid); }
307 1.46 pooka 171 STD { int|linux32_sys||getresgid16(linux32_gid16p_t rgid, \
308 1.27 njoly linux32_gid16p_t egid, linux32_gid16p_t sgid); }
309 1.1 manu 172 UNIMPL prctl
310 1.46 pooka 173 STD { int|linux32_sys||rt_sigreturn(linux32_ucontextp_t ucp); }
311 1.46 pooka 174 STD { int|linux32_sys||rt_sigaction(int signum, \
312 1.38 njoly linux32_sigactionp_t nsa, \
313 1.1 manu linux32_sigactionp_t osa, \
314 1.1 manu netbsd32_size_t sigsetsize); }
315 1.46 pooka 175 STD { int|linux32_sys||rt_sigprocmask(int how, \
316 1.38 njoly linux32_sigsetp_t set, \
317 1.1 manu linux32_sigsetp_t oset, \
318 1.1 manu netbsd32_size_t sigsetsize); }
319 1.46 pooka 176 STD { int|linux32_sys||rt_sigpending(linux32_sigsetp_t set, \
320 1.36 njoly netbsd32_size_t sigsetsize); }
321 1.60 christos 177 STD { int|linux32_sys||rt_sigtimedwait( \
322 1.61 christos const linux32_sigsetp_t set, \
323 1.61 christos linux32_siginfop_t info, \
324 1.61 christos const linux32_timespecp_t timeout); }
325 1.54 njoly 178 STD { int|linux32_sys||rt_queueinfo(int pid, int sig, \
326 1.54 njoly linux32_siginfop_t uinfo); }
327 1.46 pooka 179 STD { int|linux32_sys||rt_sigsuspend(linux32_sigsetp_t unewset, \
328 1.1 manu netbsd32_size_t sigsetsize); }
329 1.46 pooka 180 STD { netbsd32_ssize_t|linux32_sys||pread(int fd, \
330 1.30 njoly netbsd32_voidp buf, netbsd32_size_t nbyte, \
331 1.66 njoly netbsd32_off_t offset); }
332 1.46 pooka 181 STD { netbsd32_ssize_t|linux32_sys||pwrite(int fd, \
333 1.38 njoly netbsd32_voidp buf, netbsd32_size_t nbyte, \
334 1.66 njoly netbsd32_off_t offset); }
335 1.46 pooka 182 STD { int|linux32_sys||chown16(netbsd32_charp path, \
336 1.27 njoly linux32_uid16_t uid, linux32_gid16_t gid); }
337 1.46 pooka 183 NOARGS { int|netbsd32||__getcwd(netbsd32_charp bufp, \
338 1.2 manu netbsd32_size_t length); }
339 1.1 manu 184 UNIMPL capget
340 1.1 manu 185 UNIMPL capset
341 1.1 manu 186 UNIMPL sigaltstack
342 1.1 manu 187 UNIMPL sendfile
343 1.1 manu 188 UNIMPL getpmsg
344 1.1 manu 189 UNIMPL putpmsg
345 1.46 pooka 190 NOARGS { int|sys|14|vfork(void); }
346 1.46 pooka 191 STD { int|linux32_sys||ugetrlimit(int which, \
347 1.1 manu netbsd32_orlimitp_t rlp); }
348 1.46 pooka 192 STD { linux32_off_t|linux32_sys||mmap2(netbsd32_u_long addr, \
349 1.7 manu netbsd32_size_t len, int prot, int flags, int fd, \
350 1.7 manu linux32_off_t offset); }
351 1.57 chs 193 STD { int|linux32_sys||truncate64(netbsd32_charp path, \
352 1.57 chs uint32_t lenlo, uint32_t lenhi); }
353 1.57 chs 194 STD { int|linux32_sys||ftruncate64(unsigned int fd, \
354 1.57 chs uint32_t lenlo, uint32_t lenhi); }
355 1.46 pooka 195 STD { int|linux32_sys||stat64(netbsd32_charp path, \
356 1.1 manu linux32_stat64p sp); }
357 1.46 pooka 196 STD { int|linux32_sys||lstat64(netbsd32_charp path, \
358 1.1 manu linux32_stat64p sp); }
359 1.46 pooka 197 STD { int|linux32_sys||fstat64(int fd, \
360 1.1 manu linux32_stat64p sp); }
361 1.46 pooka 198 NOARGS { int|netbsd32||__posix_lchown(netbsd32_charp path, \
362 1.38 njoly uid_t uid, gid_t gid); }
363 1.46 pooka 199 NOARGS { uid_t|sys||getuid(void); }
364 1.46 pooka 200 NOARGS { gid_t|sys||getgid(void); }
365 1.46 pooka 201 NOARGS { uid_t|sys||geteuid(void); }
366 1.46 pooka 202 NOARGS { gid_t|sys||getegid(void); }
367 1.46 pooka 203 NOARGS { int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
368 1.46 pooka 204 NOARGS { int|netbsd32||setregid(gid_t rgid, gid_t egid); }
369 1.46 pooka 205 NOARGS { int|netbsd32||getgroups(int gidsetsize, \
370 1.2 manu netbsd32_gid_tp gidset); }
371 1.46 pooka 206 NOARGS { int|netbsd32||setgroups(int gidsetsize, \
372 1.2 manu netbsd32_gid_tp gidset); }
373 1.46 pooka 207 NOARGS { int|netbsd32||__posix_fchown(int fd, uid_t uid, gid_t gid); }
374 1.46 pooka 208 STD { int|linux32_sys||setresuid(uid_t ruid, uid_t euid, \
375 1.1 manu uid_t suid); }
376 1.46 pooka 209 STD { int|linux32_sys||getresuid(linux32_uidp_t ruid, \
377 1.42 njoly linux32_uidp_t euid, linux32_uidp_t suid); }
378 1.46 pooka 210 STD { int|linux32_sys||setresgid(gid_t rgid, gid_t egid, \
379 1.1 manu gid_t sgid); }
380 1.46 pooka 211 STD { int|linux32_sys||getresgid(linux32_gidp_t rgid, \
381 1.42 njoly linux32_gidp_t egid, linux32_gidp_t sgid); }
382 1.46 pooka 212 NOARGS { int|netbsd32||__posix_chown(netbsd32_charp path, \
383 1.38 njoly uid_t uid, gid_t gid); }
384 1.46 pooka 213 NOARGS { int|netbsd32||setuid(uid_t uid); }
385 1.46 pooka 214 NOARGS { int|netbsd32||setgid(gid_t gid); }
386 1.46 pooka 215 STD { int|linux32_sys||setfsuid(uid_t uid); }
387 1.46 pooka 216 STD { int|linux32_sys||setfsgid(gid_t gid); }
388 1.1 manu 217 UNIMPL pivot_root
389 1.50 njoly 218 NOARGS { int|netbsd32||mincore(netbsd32_voidp addr, \
390 1.50 njoly netbsd32_size_t len, netbsd32_charp vec); }
391 1.46 pooka 219 NOARGS { int|netbsd32||madvise(netbsd32_voidp addr, \
392 1.7 manu netbsd32_size_t len, int behav); }
393 1.46 pooka 220 STD { int|linux32_sys||getdents64(int fd, \
394 1.1 manu linux32_dirent64p_t dent, unsigned int count); }
395 1.29 dsl ; fcntl64() - Exactly the same as fcntl()
396 1.29 dsl #define linux32_sys_fcntl64 linux32_sys_fcntl
397 1.29 dsl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
398 1.46 pooka 221 NOARGS { int|linux32_sys||fcntl64(int fd, \
399 1.1 manu int cmd, netbsd32_voidp arg); }
400 1.1 manu 222 UNIMPL /* unused */
401 1.1 manu 223 UNIMPL /* unused */
402 1.56 chs 224 NOARGS { pid_t|linux_sys||gettid(void); }
403 1.1 manu 225 UNIMPL readahead
404 1.65 christos 226 NOARGS { int|netbsd32||setxattr(netbsd32_charp path, \
405 1.65 christos netbsd32_charp name, netbsd32_voidp value, \
406 1.65 christos netbsd32_size_t size, int flags); }
407 1.65 christos 227 NOARGS { int|netbsd32||lsetxattr(netbsd32_charp path, \
408 1.65 christos netbsd32_charp name, netbsd32_voidp value, \
409 1.65 christos netbsd32_size_t size, int flags); }
410 1.65 christos 228 NOARGS { int|netbsd32||fsetxattr(int fd, netbsd32_charp name, \
411 1.65 christos netbsd32_voidp value, netbsd32_size_t size, int flags); }
412 1.65 christos 229 NOARGS { ssize_t|netbsd32||getxattr(netbsd32_charp path, \
413 1.65 christos netbsd32_charp name, netbsd32_voidp value, \
414 1.65 christos netbsd32_size_t size); }
415 1.65 christos 230 NOARGS { ssize_t|netbsd32||lgetxattr(netbsd32_charp path, \
416 1.65 christos netbsd32_charp name, netbsd32_voidp value, \
417 1.65 christos netbsd32_size_t size); }
418 1.65 christos 231 NOARGS { ssize_t|netbsd32||fgetxattr(int fd, netbsd32_charp name, \
419 1.65 christos netbsd32_voidp value, netbsd32_size_t size); }
420 1.65 christos 232 NOARGS { ssize_t|netbsd32||listxattr(netbsd32_charp path, \
421 1.65 christos netbsd32_charp list, netbsd32_size_t size); }
422 1.65 christos 233 NOARGS { ssize_t|netbsd32||llistxattr(netbsd32_charp path, \
423 1.65 christos netbsd32_charp list, netbsd32_size_t size); }
424 1.65 christos 234 NOARGS { ssize_t|netbsd32||flistxattr(int fd, netbsd32_charp list, \
425 1.65 christos netbsd32_size_t size); }
426 1.65 christos 235 NOARGS { int|netbsd32||removexattr(netbsd32_charp path, \
427 1.65 christos netbsd32_charp name); }
428 1.65 christos 236 NOARGS { int|netbsd32||lremovexattr(netbsd32_charp path, \
429 1.65 christos netbsd32_charp name); }
430 1.65 christos 237 NOARGS { int|netbsd32||fremovexattr(int fd, netbsd32_charp name); }
431 1.56 chs 238 STD { int|linux32_sys||tkill(int tid, int sig); }
432 1.1 manu 239 UNIMPL sendfile64
433 1.56 chs 240 STD { int|linux32_sys||futex(linux32_intp_t uaddr, int op, int val, \
434 1.56 chs linux32_timespecp_t timeout, linux32_intp_t uaddr2, \
435 1.56 chs int val3); }
436 1.56 chs 241 STD { int|linux32_sys||sched_setaffinity(pid_t pid, \
437 1.56 chs unsigned int len, linux32_ulongp_t mask); }
438 1.56 chs 242 STD { int|linux32_sys||sched_getaffinity(pid_t pid, \
439 1.56 chs unsigned int len, linux32_ulongp_t mask); }
440 1.56 chs 243 STD { int|linux32_sys||set_thread_area(linux32_user_descp_t desc); }
441 1.56 chs 244 STD { int|linux32_sys||get_thread_area(linux32_user_descp_t desc); }
442 1.1 manu 245 UNIMPL io_setup
443 1.1 manu 246 UNIMPL io_destroy
444 1.1 manu 247 UNIMPL io_getevents
445 1.1 manu 248 UNIMPL io_submit
446 1.1 manu 249 UNIMPL io_cancel
447 1.59 alnsn 250 STD { int|linux32_sys||fadvise64(int fd, uint32_t offlo, \
448 1.59 alnsn uint32_t offhi, linux32_size_t len, int advice); }
449 1.1 manu 251 UNIMPL /* unused */
450 1.46 pooka 252 STD { int|linux32_sys||exit_group(int error_code); }
451 1.1 manu 253 UNIMPL lookup_dcookie
452 1.1 manu 254 UNIMPL epoll_create
453 1.1 manu 255 UNIMPL epoll_ctl
454 1.1 manu 256 UNIMPL epoll_wait
455 1.1 manu 257 UNIMPL remap_file_pages
456 1.56 chs 258 STD { int|linux32_sys||set_tid_address(linux32_intp_t tid); }
457 1.72 thorpej 259 STD { int|linux32_sys||timer_create(clockid_t clockid, \
458 1.72 thorpej struct linux32_sigevent *evp, timer_t *timerid); }
459 1.72 thorpej 260 STD { int|linux32_sys||timer_settime(timer_t timerid, \
460 1.72 thorpej int flags, const struct linux32_itimerspec *tim, \
461 1.72 thorpej struct linux32_itimerspec *otim); }
462 1.72 thorpej 261 STD { int|linux32_sys||timer_gettime(timer_t timerid, \
463 1.72 thorpej struct linux32_itimerspec *tim); }
464 1.72 thorpej 262 NOARGS { int|sys||timer_getoverrun(timer_t timerid); }
465 1.72 thorpej 263 NOARGS { int|sys||timer_delete(timer_t timerid); }
466 1.46 pooka 264 STD { int|linux32_sys||clock_settime(clockid_t which, \
467 1.33 njoly linux32_timespecp_t tp); }
468 1.46 pooka 265 STD { int|linux32_sys||clock_gettime(clockid_t which, \
469 1.33 njoly linux32_timespecp_t tp); }
470 1.46 pooka 266 STD { int|linux32_sys||clock_getres(clockid_t which, \
471 1.33 njoly linux32_timespecp_t tp); }
472 1.46 pooka 267 STD { int|linux32_sys||clock_nanosleep(clockid_t which, int flags, \
473 1.44 njoly linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); }
474 1.57 chs 268 STD { int|linux32_sys||statfs64(netbsd32_charp path, \
475 1.57 chs netbsd32_size_t sz, linux32_statfs64p sp); }
476 1.57 chs 269 STD { int|linux32_sys||fstatfs64(int fd, \
477 1.57 chs netbsd32_size_t sz, linux32_statfs64p sp); }
478 1.56 chs 270 STD { int|linux32_sys||tgkill(int tgid, int tid, int sig); }
479 1.67 njoly 271 NOARGS { int|compat_50_netbsd32||utimes(netbsd32_charp path, \
480 1.67 njoly netbsd32_timeval50p_t tptr); }
481 1.59 alnsn 272 STD { int|linux32_sys||fadvise64_64(int fd, uint32_t offlo, \
482 1.59 alnsn uint32_t offhi, uint32_t lenlo, uint32_t lenhi, int advice); }
483 1.1 manu 273 UNIMPL vserver
484 1.1 manu 274 UNIMPL mbind
485 1.1 manu 275 UNIMPL get_mempolicy
486 1.1 manu 276 UNIMPL set_mempolicy
487 1.1 manu 277 UNIMPL mq_open
488 1.1 manu 278 UNIMPL mq_unlink
489 1.1 manu 279 UNIMPL mq_timedsend
490 1.1 manu 280 UNIMPL mq_timedreceive
491 1.1 manu 281 UNIMPL mq_notify
492 1.1 manu 282 UNIMPL mq_getsetattr
493 1.1 manu 283 UNIMPL kexec_load
494 1.56 chs 284 UNIMPL waitid
495 1.56 chs 285 UNIMPL /* unused */
496 1.56 chs 286 UNIMPL add_key
497 1.56 chs 287 UNIMPL request_key
498 1.56 chs 288 UNIMPL keyctl
499 1.56 chs 289 UNIMPL ioprio_set
500 1.56 chs 290 UNIMPL ioprio_get
501 1.56 chs 291 UNIMPL inotify_init
502 1.56 chs 292 UNIMPL inotify_add_watch
503 1.56 chs 293 UNIMPL inotify_rm_watch
504 1.56 chs 294 UNIMPL migrate_pages
505 1.64 chs 295 STD { int|linux32_sys||openat(int fd, netbsd32_charp path, \
506 1.64 chs int flags, ... linux_umode_t mode); }
507 1.64 chs 296 NOARGS { int|netbsd32||mkdirat(int fd, netbsd32_charp path, \
508 1.64 chs linux_umode_t mode); }
509 1.64 chs 297 STD { int|linux32_sys||mknodat(int fd, netbsd32_charp path, \
510 1.64 chs linux_umode_t mode, unsigned dev); }
511 1.64 chs 298 STD { int|linux32_sys||fchownat(int fd, netbsd32_charp path, \
512 1.64 chs uid_t owner, gid_t group, int flag); }
513 1.56 chs 299 UNIMPL futimesat
514 1.64 chs 300 STD { int|linux32_sys||fstatat64(int fd, netbsd32_charp path, \
515 1.64 chs linux32_stat64p sp, int flag); }
516 1.64 chs 301 STD { int|linux32_sys||unlinkat(int fd, netbsd32_charp path, \
517 1.64 chs int flag); }
518 1.64 chs 302 NOARGS { int|netbsd32||renameat(int fromfd, netbsd32_charp from, \
519 1.64 chs int tofd, netbsd32_charp to); }
520 1.64 chs 303 STD { int|linux32_sys||linkat(int fd1, netbsd32_charp name1, \
521 1.64 chs int fd2, netbsd32_charp name2, int flags); }
522 1.64 chs 304 NOARGS { int|netbsd32||symlinkat(netbsd32_charp path1, int fd, \
523 1.64 chs netbsd32_charp path2); }
524 1.64 chs 305 NOARGS { int|netbsd32||readlinkat(int fd, netbsd32_charp path, \
525 1.64 chs netbsd32_charp buf, linux32_size_t bufsize); }
526 1.64 chs 306 STD { int|linux32_sys||fchmodat(int fd, netbsd32_charp path, \
527 1.64 chs linux_umode_t mode); }
528 1.64 chs 307 STD { int|linux32_sys||faccessat(int fd, netbsd32_charp path, \
529 1.64 chs int amode); }
530 1.56 chs 308 UNIMPL pselect6
531 1.68 njoly 309 STD { int|linux32_sys||ppoll(netbsd32_pollfdp_t fds, u_int nfds, \
532 1.68 njoly linux32_timespecp_t timeout, linux32_sigsetp_t sigset); }
533 1.56 chs 310 UNIMPL unshare
534 1.71 thorpej ;
535 1.71 thorpej ; The netbsd32 native robust list calls have different
536 1.71 thorpej ; argument names / types, but they are ABI-compatible
537 1.71 thorpej ; with linux32.
538 1.71 thorpej ;
539 1.71 thorpej 311 NOARGS { int|netbsd32||__futex_set_robust_list( \
540 1.71 thorpej netbsd32_voidp head, netbsd32_size_t len); }
541 1.71 thorpej 312 NOARGS { int|netbsd32||__futex_get_robust_list(lwpid_t lwpid, \
542 1.71 thorpej netbsd32_voidp headp, netbsd32_size_tp lenp); }
543 1.56 chs 313 UNIMPL splice
544 1.56 chs 314 UNIMPL sync_file_range
545 1.56 chs 315 UNIMPL tee
546 1.56 chs 316 UNIMPL vmsplice
547 1.56 chs 317 UNIMPL move_pages
548 1.56 chs 318 UNIMPL getcpu
549 1.56 chs 319 UNIMPL epoll_wait
550 1.64 chs 320 STD { int|linux32_sys||utimensat(int fd, netbsd32_charp path, \
551 1.64 chs linux32_timespecp_t times, int flag); }
552 1.56 chs 321 UNIMPL signalfd
553 1.73 thorpej 322 NOARGS { int|linux_sys||timerfd_create(clockid_t clock_id, \
554 1.73 thorpej int flags); }
555 1.74 thorpej 323 STD { int|linux32_sys||eventfd(unsigned int initval); }
556 1.70 jdolecek 324 STD { int|linux32_sys||fallocate(int fd, int mode, \
557 1.70 jdolecek off_t offset, off_t len); }
558 1.73 thorpej 325 STD { int|linux32_sys||timerfd_settime(int fd, int flags, \
559 1.73 thorpej const struct linux32_itimerspec *tim, \
560 1.73 thorpej struct linux32_itimerspec *otim); }
561 1.73 thorpej 326 STD { int|linux32_sys||timerfd_gettime(int fd, \
562 1.73 thorpej struct linux32_itimerspec *tim); }
563 1.56 chs 327 UNIMPL signalfd4
564 1.74 thorpej 328 STD { int|linux32_sys||eventfd2(unsigned int initval, \
565 1.74 thorpej int flags); }
566 1.56 chs 329 UNIMPL epoll_create1
567 1.58 christos 330 STD { int|linux32_sys||dup3(int from, int to, int flags); }
568 1.58 christos 331 STD { int|linux32_sys||pipe2(netbsd32_intp fd, int flags); }
569 1.56 chs 332 UNIMPL inotify_init1
570 1.75 thorpej 333 STD { int|linux32_sys||preadv(int fd, \
571 1.75 thorpej const netbsd32_iovecp_t iovp, int iovcnt, \
572 1.75 thorpej netbsd32_u_long off_lo, netbsd32_u_long off_hi); }
573 1.75 thorpej 334 STD { int|linux32_sys||pwritev(int fd, \
574 1.75 thorpej const netbsd32_iovecp_t iovp, int iovcnt, \
575 1.75 thorpej netbsd32_u_long off_lo, netbsd32_u_long off_hi); }
576 1.56 chs 335 UNIMPL rt_tgsigqueueinfo
577 1.56 chs 336 UNIMPL perf_counter_open
578 1.56 chs 337 UNIMPL recvmmsg
579 1.64 chs 338 UNIMPL fanotify_init
580 1.64 chs 339 UNIMPL fanotify_mark
581 1.64 chs 340 UNIMPL prlimit64
582 1.64 chs 341 UNIMPL name_to_handle_at
583 1.64 chs 342 UNIMPL open_by_handle_at
584 1.64 chs 343 UNIMPL clock_adjtime
585 1.64 chs 344 UNIMPL syncfs
586 1.64 chs 345 UNIMPL sendmmsg
587 1.64 chs 346 UNIMPL setns
588 1.64 chs 347 UNIMPL process_vm_readv
589 1.64 chs 348 UNIMPL process_vm_writev
590 1.64 chs 349 UNIMPL kcmp
591 1.64 chs 350 UNIMPL finit_module
592