syscalls.master revision 1.44.2.2 1 1.44.2.2 christos $NetBSD: syscalls.master,v 1.44.2.2 2009/01/04 01:58:39 christos Exp $
2 1.44.2.2 christos
3 1.44.2.2 christos ; NetBSD i386 COMPAT_LINUX32 system call name/number "master" file.
4 1.44.2.2 christos ; (See syscalls.conf to see what it is processed into.)
5 1.44.2.2 christos ;
6 1.44.2.2 christos ; Fields: number type [type-dependent ...]
7 1.44.2.2 christos ; number system call number, must be in order
8 1.44.2.2 christos ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
9 1.44.2.2 christos ; the compatibility options defined in syscalls.conf.
10 1.44.2.2 christos ;
11 1.44.2.2 christos ; types:
12 1.44.2.2 christos ; STD always included
13 1.44.2.2 christos ; OBSOL obsolete, not included in system
14 1.44.2.2 christos ; UNIMPL unimplemented, not included in system
15 1.44.2.2 christos ; NODEF included, but don't define the syscall number
16 1.44.2.2 christos ;
17 1.44.2.2 christos ; INDIR included, but don't define the syscall args structure
18 1.44.2.2 christos ; and allow it to be "really" varargs.
19 1.44.2.2 christos ;
20 1.44.2.2 christos ; The compat options are defined in the syscalls.conf file, and the
21 1.44.2.2 christos ; compat option name is prefixed to the syscall name. Other than
22 1.44.2.2 christos ; that, they're like NODEF (for 'compat' options), or STD (for
23 1.44.2.2 christos ; 'libcompat' options).
24 1.44.2.2 christos ;
25 1.44.2.2 christos ; The type-dependent arguments are as follows:
26 1.44.2.2 christos ; For STD, NODEF, NOARGS, and compat syscalls:
27 1.44.2.2 christos ; { pseudo-proto } [alias]
28 1.44.2.2 christos ; For other syscalls:
29 1.44.2.2 christos ; [comment]
30 1.44.2.2 christos ;
31 1.44.2.2 christos ; #ifdef's, etc. may be included, and are copied to the output files.
32 1.44.2.2 christos ; #include's are copied to the syscall names and switch definition files only.
33 1.44.2.2 christos
34 1.44.2.2 christos #include <sys/param.h>
35 1.44.2.2 christos #include <sys/poll.h>
36 1.44.2.2 christos #include <sys/systm.h>
37 1.44.2.2 christos #include <sys/signal.h>
38 1.44.2.2 christos #include <sys/mount.h>
39 1.44.2.2 christos #include <sys/syscallargs.h>
40 1.44.2.2 christos
41 1.44.2.2 christos #include <machine/netbsd32_machdep.h>
42 1.44.2.2 christos
43 1.44.2.2 christos #include <compat/netbsd32/netbsd32.h>
44 1.44.2.2 christos #include <compat/netbsd32/netbsd32_syscallargs.h>
45 1.44.2.2 christos
46 1.44.2.2 christos #include <compat/linux32/common/linux32_types.h>
47 1.44.2.2 christos #include <compat/linux32/common/linux32_signal.h>
48 1.44.2.2 christos #include <compat/linux32/arch/amd64/linux32_missing.h>
49 1.44.2.2 christos #include <compat/linux32/linux32_syscallargs.h>
50 1.44.2.2 christos
51 1.44.2.2 christos #include <compat/linux/common/linux_types.h>
52 1.44.2.2 christos #include <compat/linux/common/linux_mmap.h>
53 1.44.2.2 christos #include <compat/linux/common/linux_signal.h>
54 1.44.2.2 christos #include <compat/linux/common/linux_siginfo.h>
55 1.44.2.2 christos #include <compat/linux/common/linux_machdep.h>
56 1.44.2.2 christos #include <compat/linux/common/linux_ipc.h>
57 1.44.2.2 christos #include <compat/linux/common/linux_sem.h>
58 1.44.2.2 christos #include <compat/linux/linux_syscallargs.h>
59 1.44.2.2 christos
60 1.44.2.2 christos %%
61 1.44.2.2 christos
62 1.44.2.2 christos 0 NOARGS { int linux_sys_nosys(void); } syscall
63 1.44.2.2 christos 1 NOARGS { int netbsd32_exit(int rval); }
64 1.44.2.2 christos 2 NOARGS { int sys_fork(void); }
65 1.44.2.2 christos 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \
66 1.44.2.2 christos netbsd32_voidp buf, netbsd32_size_t nbyte); }
67 1.44.2.2 christos 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \
68 1.44.2.2 christos netbsd32_voidp buf, netbsd32_size_t nbyte); }
69 1.44.2.2 christos 5 STD { int linux32_sys_open(netbsd32_charp path, int flags, \
70 1.44.2.2 christos int mode); }
71 1.44.2.2 christos 6 NOARGS { int netbsd32_close(int fd); }
72 1.44.2.2 christos 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \
73 1.44.2.2 christos int options);}
74 1.44.2.2 christos 8 STD { int linux32_sys_creat(netbsd32_charp path, int mode); }
75 1.44.2.2 christos 9 NOARGS { int netbsd32_link(netbsd32_charp path, \
76 1.44.2.2 christos netbsd32_charp link); }
77 1.44.2.2 christos 10 STD { int linux32_sys_unlink(netbsd32_charp path); }
78 1.44.2.2 christos 11 NOARGS { int netbsd32_execve(netbsd32_charp path, \
79 1.44.2.2 christos netbsd32_charpp argp, netbsd32_charpp envp); }
80 1.44.2.2 christos 12 NOARGS { int netbsd32_chdir(netbsd32_charp path); }
81 1.44.2.2 christos 13 STD { int linux32_sys_time(linux32_timep_t t); }
82 1.44.2.2 christos 14 STD { int linux32_sys_mknod(netbsd32_charp path, \
83 1.44.2.2 christos int mode, int dev); }
84 1.44.2.2 christos 15 NOARGS { int netbsd32_chmod(netbsd32_charp path, int mode); }
85 1.44.2.2 christos 16 STD { int linux32_sys_lchown16(netbsd32_charp path, \
86 1.44.2.2 christos linux32_uid16_t uid, linux32_gid16_t gid); }
87 1.44.2.2 christos 17 STD { int linux32_sys_break(netbsd32_charp nsize); }
88 1.44.2.2 christos 18 OBSOL ostat
89 1.44.2.2 christos 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \
90 1.44.2.2 christos netbsd32_long offset, int chence); }
91 1.44.2.2 christos 20 STD { pid_t linux_sys_getpid(void); }
92 1.44.2.2 christos 21 UNIMPL mount
93 1.44.2.2 christos 22 UNIMPL umount
94 1.44.2.2 christos 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); }
95 1.44.2.2 christos 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); }
96 1.44.2.2 christos 25 STD { int linux32_sys_stime(linux32_timep_t t); }
97 1.44.2.2 christos 26 STD { int linux32_sys_ptrace(int request, int pid, \
98 1.44.2.2 christos int addr, int data); }
99 1.44.2.2 christos 27 STD { int linux32_sys_alarm(unsigned int secs); }
100 1.44.2.2 christos 28 OBSOL ofstat
101 1.44.2.2 christos 29 NOARGS { int linux_sys_pause(void); }
102 1.44.2.2 christos 30 STD { int linux32_sys_utime(netbsd32_charp path, \
103 1.44.2.2 christos linux32_utimbufp_t times); }
104 1.44.2.2 christos 31 OBSOL stty
105 1.44.2.2 christos 32 OBSOL gtty
106 1.44.2.2 christos 33 NOARGS { int netbsd32_access(netbsd32_charp path, \
107 1.44.2.2 christos int flags); }
108 1.44.2.2 christos 34 STD { int linux32_sys_nice(int incr); }
109 1.44.2.2 christos 35 OBSOL ftime
110 1.44.2.2 christos 36 NOARGS { int sys_sync(void); }
111 1.44.2.2 christos 37 STD { int linux32_sys_kill(int pid, int signum); }
112 1.44.2.2 christos 38 NOARGS { int netbsd32___posix_rename(netbsd32_charp from, \
113 1.44.2.2 christos netbsd32_charp to); }
114 1.44.2.2 christos 39 NOARGS { int netbsd32_mkdir(netbsd32_charp path, int mode); }
115 1.44.2.2 christos 40 NOARGS { int netbsd32_rmdir(netbsd32_charp path); }
116 1.44.2.2 christos 41 NOARGS { int netbsd32_dup(u_int fd); }
117 1.44.2.2 christos 42 STD { int linux32_sys_pipe(netbsd32_intp fd); }
118 1.44.2.2 christos 43 STD { int linux32_sys_times(linux32_tmsp_t tms); }
119 1.44.2.2 christos 44 OBSOL prof
120 1.44.2.2 christos 45 STD { int linux32_sys_brk(netbsd32_charp nsize); }
121 1.44.2.2 christos 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); }
122 1.44.2.2 christos 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); }
123 1.44.2.2 christos 48 STD { int linux32_sys_signal(int signum, \
124 1.44.2.2 christos linux32_handler_t handler); }
125 1.44.2.2 christos 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); }
126 1.44.2.2 christos 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); }
127 1.44.2.2 christos 51 NOARGS { int netbsd32_acct(netbsd32_charp path); }
128 1.44.2.2 christos 52 OBSOL phys
129 1.44.2.2 christos 53 OBSOL lock
130 1.44.2.2 christos 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \
131 1.44.2.2 christos netbsd32_charp data); }
132 1.44.2.2 christos 55 STD { int linux32_sys_fcntl(int fd, \
133 1.44.2.2 christos int cmd, netbsd32_voidp arg); }
134 1.44.2.2 christos 56 OBSOL mpx
135 1.44.2.2 christos 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); }
136 1.44.2.2 christos 58 OBSOL ulimit
137 1.44.2.2 christos 59 STD { int linux32_sys_oldolduname( \
138 1.44.2.2 christos linux32_oldold_utsnamep_t up); }
139 1.44.2.2 christos 60 NOARGS { int netbsd32_umask(int newmask); }
140 1.44.2.2 christos 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); }
141 1.44.2.2 christos 62 UNIMPL ustat
142 1.44.2.2 christos 63 NOARGS { int netbsd32_dup2(int from, int to); }
143 1.44.2.2 christos 64 STD { pid_t linux_sys_getppid(void); }
144 1.44.2.2 christos 65 NOARGS { int sys_getpgrp(void); }
145 1.44.2.2 christos 66 NOARGS { int sys_setsid(void); }
146 1.44.2.2 christos 67 UNIMPL sigaction
147 1.44.2.2 christos 68 UNIMPL siggetmask
148 1.44.2.2 christos 69 UNIMPL sigsetmask
149 1.44.2.2 christos 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \
150 1.44.2.2 christos linux32_uid16_t euid); }
151 1.44.2.2 christos 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \
152 1.44.2.2 christos linux32_gid16_t egid); }
153 1.44.2.2 christos 72 UNIMPL sigsuspend
154 1.44.2.2 christos 73 UNIMPL sigpending
155 1.44.2.2 christos 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \
156 1.44.2.2 christos u_int len); }
157 1.44.2.2 christos 75 STD { int linux32_sys_setrlimit(u_int which, \
158 1.44.2.2 christos netbsd32_orlimitp_t rlp); }
159 1.44.2.2 christos 76 STD { int linux32_sys_getrlimit(u_int which, \
160 1.44.2.2 christos netbsd32_orlimitp_t rlp); }
161 1.44.2.2 christos 77 NOARGS { int compat_50_netbsd32_getrusage(int who, \
162 1.44.2.2 christos netbsd32_rusage50p_t rusage); }
163 1.44.2.2 christos 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \
164 1.44.2.2 christos netbsd32_timezonep_t tzp); }
165 1.44.2.2 christos 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \
166 1.44.2.2 christos netbsd32_timezonep_t tzp); }
167 1.44.2.2 christos 80 STD { int linux32_sys_getgroups16(int gidsetsize, \
168 1.44.2.2 christos linux32_gid16p_t gidset); }
169 1.44.2.2 christos 81 STD { int linux32_sys_setgroups16(int gidsetsize, \
170 1.44.2.2 christos linux32_gid16p_t gidset); }
171 1.44.2.2 christos 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); }
172 1.44.2.2 christos 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \
173 1.44.2.2 christos netbsd32_charp link); }
174 1.44.2.2 christos 84 NOARGS { int compat_43_netbsd32_lstat43(netbsd32_charp \
175 1.44.2.2 christos path, netbsd32_stat43p_t ub); }
176 1.44.2.2 christos 85 NOARGS { int netbsd32_readlink(netbsd32_charp name, \
177 1.44.2.2 christos netbsd32_charp buf, netbsd32_size_t count); }
178 1.44.2.2 christos 86 UNIMPL uselib
179 1.44.2.2 christos 87 STD { int linux32_sys_swapon(netbsd32_charp name); }
180 1.44.2.2 christos 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \
181 1.44.2.2 christos netbsd32_voidp arg); }
182 1.44.2.2 christos 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \
183 1.44.2.2 christos unsigned int count); }
184 1.44.2.2 christos 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); }
185 1.44.2.2 christos 91 NOARGS { int netbsd32_munmap(netbsd32_voidp addr, \
186 1.44.2.2 christos netbsd32_size_t len); }
187 1.44.2.2 christos 92 NOARGS { int compat_43_netbsd32_otruncate(netbsd32_charp path, \
188 1.44.2.2 christos netbsd32_long length); }
189 1.44.2.2 christos 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \
190 1.44.2.2 christos netbsd32_long length); }
191 1.44.2.2 christos 94 NOARGS { int netbsd32_fchmod(int fd, int mode); }
192 1.44.2.2 christos 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \
193 1.44.2.2 christos linux32_gid16_t gid); }
194 1.44.2.2 christos 96 STD { int linux32_sys_getpriority(int which, int who); }
195 1.44.2.2 christos 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); }
196 1.44.2.2 christos 98 UNIMPL profil
197 1.44.2.2 christos 99 STD { int linux32_sys_statfs(netbsd32_charp path, \
198 1.44.2.2 christos linux32_statfsp sp); }
199 1.44.2.2 christos 100 UNIMPL fstatfs
200 1.44.2.2 christos 101 UNIMPL ioperm
201 1.44.2.2 christos 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); }
202 1.44.2.2 christos 103 UNIMPL syslog
203 1.44.2.2 christos 104 NOARGS { int compat_50_netbsd32_setitimer(int which, \
204 1.44.2.2 christos netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); }
205 1.44.2.2 christos 105 NOARGS { int compat_50_netbsd32_getitimer(int which, \
206 1.44.2.2 christos netbsd32_itimerval50p_t itv); }
207 1.44.2.2 christos 106 UNIMPL stat
208 1.44.2.2 christos 107 UNIMPL lstat
209 1.44.2.2 christos 108 UNIMPL fstat
210 1.44.2.2 christos 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); }
211 1.44.2.2 christos 110 UNIMPL iopl
212 1.44.2.2 christos 111 UNIMPL vhangup
213 1.44.2.2 christos 112 UNIMPL idle
214 1.44.2.2 christos 113 UNIMPL vm86old
215 1.44.2.2 christos 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \
216 1.44.2.2 christos int options, netbsd32_rusagep_t rusage); }
217 1.44.2.2 christos 115 STD { int linux32_sys_swapoff(netbsd32_charp path); }
218 1.44.2.2 christos 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); }
219 1.44.2.2 christos 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \
220 1.44.2.2 christos netbsd32_voidp ptr); }
221 1.44.2.2 christos 118 NOARGS { int netbsd32_fsync(int fd); }
222 1.44.2.2 christos 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); }
223 1.44.2.2 christos 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); }
224 1.44.2.2 christos 121 UNIMPL setdomainname
225 1.44.2.2 christos 122 STD { int linux32_sys_uname(linux32_utsnamep up); }
226 1.44.2.2 christos 123 UNIMPL modify_ldt
227 1.44.2.2 christos 124 UNIMPL adjtimex
228 1.44.2.2 christos 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \
229 1.44.2.2 christos netbsd32_size_t len, int prot); }
230 1.44.2.2 christos 126 UNIMPL sigprocmask
231 1.44.2.2 christos 127 UNIMPL create_module
232 1.44.2.2 christos 128 UNIMPL init_module
233 1.44.2.2 christos 129 UNIMPL delete_module
234 1.44.2.2 christos 130 UNIMPL get_kernel_syms
235 1.44.2.2 christos 131 UNIMPL quotactl
236 1.44.2.2 christos 132 NOARGS { int netbsd32_getpgid(pid_t pid); }
237 1.44.2.2 christos 133 NOARGS { int netbsd32_fchdir(int fd); }
238 1.44.2.2 christos 134 UNIMPL bdflush
239 1.44.2.2 christos 135 UNIMPL sysfs
240 1.44.2.2 christos 136 UNIMPL personality
241 1.44.2.2 christos 137 UNIMPL afs_syscall
242 1.44.2.2 christos 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); }
243 1.44.2.2 christos 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); }
244 1.44.2.2 christos 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \
245 1.44.2.2 christos u_int32_t olow, netbsd32_voidp res, int whence); }
246 1.44.2.2 christos 141 STD { int linux32_sys_getdents(int fd, \
247 1.44.2.2 christos linux32_direntp_t dent, unsigned int count); }
248 1.44.2.2 christos 142 STD { int linux32_sys_select(int nfds, \
249 1.44.2.2 christos netbsd32_fd_setp_t readfds, \
250 1.44.2.2 christos netbsd32_fd_setp_t writefds, \
251 1.44.2.2 christos netbsd32_fd_setp_t exceptfds, \
252 1.44.2.2 christos netbsd32_timevalp_t timeout); }
253 1.44.2.2 christos 143 NOARGS { int netbsd32_flock(int fd, int how); }
254 1.44.2.2 christos 144 NOARGS { int netbsd32___msync13(netbsd32_voidp addr, \
255 1.44.2.2 christos netbsd32_size_t len, int flags); }
256 1.44.2.2 christos 145 NOARGS { int netbsd32_readv(int fd, \
257 1.44.2.2 christos netbsd32_iovecp_t iovp, int iovcnt); }
258 1.44.2.2 christos 146 NOARGS { netbsd32_ssize_t netbsd32_writev(int fd, \
259 1.44.2.2 christos netbsd32_iovecp_t iovp, int iovcnt); }
260 1.44.2.2 christos 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); }
261 1.44.2.2 christos 148 STD { int linux32_sys_fdatasync(int fd); }
262 1.44.2.2 christos 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); }
263 1.44.2.2 christos 150 NOARGS { int netbsd32_mlock(netbsd32_voidp addr, \
264 1.44.2.2 christos netbsd32_size_t len); }
265 1.44.2.2 christos 151 NOARGS { int netbsd32_munlock(netbsd32_voidp addr, \
266 1.44.2.2 christos netbsd32_size_t len); }
267 1.44.2.2 christos 152 NOARGS { int netbsd32_mlockall(int flags); }
268 1.44.2.2 christos 153 NOARGS { int sys_munlockall(void); }
269 1.44.2.2 christos 154 UNIMPL sched_setparam
270 1.44.2.2 christos 155 STD { int linux32_sys_sched_getparam(pid_t pid, \
271 1.44.2.2 christos linux32_sched_paramp_t sp); }
272 1.44.2.2 christos 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \
273 1.44.2.2 christos int policy, linux32_sched_paramp_t sp); }
274 1.44.2.2 christos 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); }
275 1.44.2.2 christos 158 NOARGS { int linux_sys_sched_yield(void); }
276 1.44.2.2 christos 159 STD { int linux32_sys_sched_get_priority_max(int policy); }
277 1.44.2.2 christos 160 STD { int linux32_sys_sched_get_priority_min(int policy); }
278 1.44.2.2 christos 161 UNIMPL sched_rr_get_interval
279 1.44.2.2 christos 162 STD { int linux32_sys_nanosleep(linux32_timespecp_t rqtp, \
280 1.44.2.2 christos linux32_timespecp_t rmtp); }
281 1.44.2.2 christos 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \
282 1.44.2.2 christos netbsd32_size_t old_size, netbsd32_size_t new_size, \
283 1.44.2.2 christos netbsd32_u_long flags); }
284 1.44.2.2 christos 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \
285 1.44.2.2 christos linux32_uid16_t euid, linux32_uid16_t suid); }
286 1.44.2.2 christos 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \
287 1.44.2.2 christos linux32_uid16p_t euid, linux32_uid16p_t suid); }
288 1.44.2.2 christos 166 UNIMPL vm86
289 1.44.2.2 christos 167 UNIMPL query_module
290 1.44.2.2 christos 168 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \
291 1.44.2.2 christos int timeout); }
292 1.44.2.2 christos 169 UNIMPL nfsservctl
293 1.44.2.2 christos 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \
294 1.44.2.2 christos linux32_gid16_t egid, linux32_gid16_t sgid); }
295 1.44.2.2 christos 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \
296 1.44.2.2 christos linux32_gid16p_t egid, linux32_gid16p_t sgid); }
297 1.44.2.2 christos 172 UNIMPL prctl
298 1.44.2.2 christos 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); }
299 1.44.2.2 christos 174 STD { int linux32_sys_rt_sigaction(int signum, \
300 1.44.2.2 christos linux32_sigactionp_t nsa, \
301 1.44.2.2 christos linux32_sigactionp_t osa, \
302 1.44.2.2 christos netbsd32_size_t sigsetsize); }
303 1.44.2.2 christos 175 STD { int linux32_sys_rt_sigprocmask(int how, \
304 1.44.2.2 christos linux32_sigsetp_t set, \
305 1.44.2.2 christos linux32_sigsetp_t oset, \
306 1.44.2.2 christos netbsd32_size_t sigsetsize); }
307 1.44.2.2 christos 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \
308 1.44.2.2 christos netbsd32_size_t sigsetsize); }
309 1.44.2.2 christos 177 UNIMPL rt_sigtimedwait
310 1.44.2.2 christos 178 UNIMPL rt_queueinfo
311 1.44.2.2 christos 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \
312 1.44.2.2 christos netbsd32_size_t sigsetsize); }
313 1.44.2.2 christos 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \
314 1.44.2.2 christos netbsd32_voidp buf, netbsd32_size_t nbyte, \
315 1.44.2.2 christos linux32_off_t offset); }
316 1.44.2.2 christos 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \
317 1.44.2.2 christos netbsd32_voidp buf, netbsd32_size_t nbyte, \
318 1.44.2.2 christos linux32_off_t offset); }
319 1.44.2.2 christos 182 STD { int linux32_sys_chown16(netbsd32_charp path, \
320 1.44.2.2 christos linux32_uid16_t uid, linux32_gid16_t gid); }
321 1.44.2.2 christos 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \
322 1.44.2.2 christos netbsd32_size_t length); }
323 1.44.2.2 christos 184 UNIMPL capget
324 1.44.2.2 christos 185 UNIMPL capset
325 1.44.2.2 christos 186 UNIMPL sigaltstack
326 1.44.2.2 christos 187 UNIMPL sendfile
327 1.44.2.2 christos 188 UNIMPL getpmsg
328 1.44.2.2 christos 189 UNIMPL putpmsg
329 1.44.2.2 christos 190 NOARGS { int sys___vfork14(void); }
330 1.44.2.2 christos 191 STD { int linux32_sys_ugetrlimit(int which, \
331 1.44.2.2 christos netbsd32_orlimitp_t rlp); }
332 1.44.2.2 christos 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \
333 1.44.2.2 christos netbsd32_size_t len, int prot, int flags, int fd, \
334 1.44.2.2 christos linux32_off_t offset); }
335 1.44.2.2 christos 193 UNIMPL truncate64
336 1.44.2.2 christos 194 UNIMPL ftruncate64
337 1.44.2.2 christos 195 STD { int linux32_sys_stat64(netbsd32_charp path, \
338 1.44.2.2 christos linux32_stat64p sp); }
339 1.44.2.2 christos 196 STD { int linux32_sys_lstat64(netbsd32_charp path, \
340 1.44.2.2 christos linux32_stat64p sp); }
341 1.44.2.2 christos 197 STD { int linux32_sys_fstat64(int fd, \
342 1.44.2.2 christos linux32_stat64p sp); }
343 1.44.2.2 christos 198 NOARGS { int netbsd32___posix_lchown(netbsd32_charp path, \
344 1.44.2.2 christos uid_t uid, gid_t gid); }
345 1.44.2.2 christos 199 NOARGS { uid_t sys_getuid(void); }
346 1.44.2.2 christos 200 NOARGS { gid_t sys_getgid(void); }
347 1.44.2.2 christos 201 NOARGS { uid_t sys_geteuid(void); }
348 1.44.2.2 christos 202 NOARGS { gid_t sys_getegid(void); }
349 1.44.2.2 christos 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); }
350 1.44.2.2 christos 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); }
351 1.44.2.2 christos 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \
352 1.44.2.2 christos netbsd32_gid_tp gidset); }
353 1.44.2.2 christos 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \
354 1.44.2.2 christos netbsd32_gid_tp gidset); }
355 1.44.2.2 christos 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
356 1.44.2.2 christos 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \
357 1.44.2.2 christos uid_t suid); }
358 1.44.2.2 christos 209 STD { int linux32_sys_getresuid(linux32_uidp_t ruid, \
359 1.44.2.2 christos linux32_uidp_t euid, linux32_uidp_t suid); }
360 1.44.2.2 christos 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \
361 1.44.2.2 christos gid_t sgid); }
362 1.44.2.2 christos 211 STD { int linux32_sys_getresgid(linux32_gidp_t rgid, \
363 1.44.2.2 christos linux32_gidp_t egid, linux32_gidp_t sgid); }
364 1.44.2.2 christos 212 NOARGS { int netbsd32___posix_chown(netbsd32_charp path, \
365 1.44.2.2 christos uid_t uid, gid_t gid); }
366 1.44.2.2 christos 213 NOARGS { int netbsd32_setuid(uid_t uid); }
367 1.44.2.2 christos 214 NOARGS { int netbsd32_setgid(gid_t gid); }
368 1.44.2.2 christos 215 STD { int linux32_sys_setfsuid(uid_t uid); }
369 1.44.2.2 christos 216 STD { int linux32_sys_setfsgid(gid_t gid); }
370 1.44.2.2 christos 217 UNIMPL pivot_root
371 1.44.2.2 christos 218 UNIMPL mincore
372 1.44.2.2 christos 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \
373 1.44.2.2 christos netbsd32_size_t len, int behav); }
374 1.44.2.2 christos 220 STD { int linux32_sys_getdents64(int fd, \
375 1.44.2.2 christos linux32_dirent64p_t dent, unsigned int count); }
376 1.44.2.2 christos ; fcntl64() - Exactly the same as fcntl()
377 1.44.2.2 christos #define linux32_sys_fcntl64 linux32_sys_fcntl
378 1.44.2.2 christos #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
379 1.44.2.2 christos 221 NOARGS { int linux32_sys_fcntl64(int fd, \
380 1.44.2.2 christos int cmd, netbsd32_voidp arg); }
381 1.44.2.2 christos 222 UNIMPL /* unused */
382 1.44.2.2 christos 223 UNIMPL /* unused */
383 1.44.2.2 christos 224 STD { pid_t linux_sys_gettid(void); }
384 1.44.2.2 christos 225 UNIMPL readahead
385 1.44.2.2 christos 226 UNIMPL setxattr
386 1.44.2.2 christos 227 UNIMPL lsetxattr
387 1.44.2.2 christos 228 UNIMPL fsetxattr
388 1.44.2.2 christos 229 UNIMPL getxattr
389 1.44.2.2 christos 230 UNIMPL lgetxattr
390 1.44.2.2 christos 231 UNIMPL fgetxattr
391 1.44.2.2 christos 232 UNIMPL listxattr
392 1.44.2.2 christos 233 UNIMPL llistxattr
393 1.44.2.2 christos 234 UNIMPL flistxattr
394 1.44.2.2 christos 235 UNIMPL removexattr
395 1.44.2.2 christos 236 UNIMPL lremovexattr
396 1.44.2.2 christos 237 UNIMPL fremovexattr
397 1.44.2.2 christos 238 UNIMPL tkill
398 1.44.2.2 christos 239 UNIMPL sendfile64
399 1.44.2.2 christos 240 UNIMPL futex
400 1.44.2.2 christos 241 UNIMPL sched_setaffinity
401 1.44.2.2 christos 242 UNIMPL sched_getaffinity
402 1.44.2.2 christos 243 UNIMPL set_thread_area
403 1.44.2.2 christos 244 UNIMPL get_thread_area
404 1.44.2.2 christos 245 UNIMPL io_setup
405 1.44.2.2 christos 246 UNIMPL io_destroy
406 1.44.2.2 christos 247 UNIMPL io_getevents
407 1.44.2.2 christos 248 UNIMPL io_submit
408 1.44.2.2 christos 249 UNIMPL io_cancel
409 1.44.2.2 christos 250 UNIMPL fadvise64
410 1.44.2.2 christos 251 UNIMPL /* unused */
411 1.44.2.2 christos 252 STD { int linux32_sys_exit_group(int error_code); }
412 1.44.2.2 christos 253 UNIMPL lookup_dcookie
413 1.44.2.2 christos 254 UNIMPL epoll_create
414 1.44.2.2 christos 255 UNIMPL epoll_ctl
415 1.44.2.2 christos 256 UNIMPL epoll_wait
416 1.44.2.2 christos 257 UNIMPL remap_file_pages
417 1.44.2.2 christos 258 UNIMPL set_tid_address
418 1.44.2.2 christos 259 UNIMPL timer_create
419 1.44.2.2 christos 260 UNIMPL timer_settime
420 1.44.2.2 christos 261 UNIMPL timer_gettime
421 1.44.2.2 christos 262 UNIMPL timer_getoverrun
422 1.44.2.2 christos 263 UNIMPL timer_delete
423 1.44.2.2 christos 264 STD { int linux32_sys_clock_settime(clockid_t which, \
424 1.44.2.2 christos linux32_timespecp_t tp); }
425 1.44.2.2 christos 265 STD { int linux32_sys_clock_gettime(clockid_t which, \
426 1.44.2.2 christos linux32_timespecp_t tp); }
427 1.44.2.2 christos 266 STD { int linux32_sys_clock_getres(clockid_t which, \
428 1.44.2.2 christos linux32_timespecp_t tp); }
429 1.44.2.2 christos 267 STD { int linux32_sys_clock_nanosleep(clockid_t which, int flags, \
430 1.44.2.2 christos linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); }
431 1.44.2.2 christos 268 UNIMPL statfs64
432 1.44.2.2 christos 269 UNIMPL fstatfs64
433 1.44.2.2 christos 270 UNIMPL tgkill
434 1.44.2.2 christos 271 UNIMPL utimes
435 1.44.2.2 christos 272 UNIMPL fadvise64_64
436 1.44.2.2 christos 273 UNIMPL vserver
437 1.44.2.2 christos 274 UNIMPL mbind
438 1.44.2.2 christos 275 UNIMPL get_mempolicy
439 1.44.2.2 christos 276 UNIMPL set_mempolicy
440 1.44.2.2 christos 277 UNIMPL mq_open
441 1.44.2.2 christos 278 UNIMPL mq_unlink
442 1.44.2.2 christos 279 UNIMPL mq_timedsend
443 1.44.2.2 christos 280 UNIMPL mq_timedreceive
444 1.44.2.2 christos 281 UNIMPL mq_notify
445 1.44.2.2 christos 282 UNIMPL mq_getsetattr
446 1.44.2.2 christos 283 UNIMPL kexec_load
447