| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: syscalls.master,v 1.37 2008/09/22 13:07:46 njoly Exp $ | | 1 | $NetBSD: syscalls.master,v 1.38 2008/10/06 14:53:01 njoly Exp $ |
2 | | | 2 | |
3 | ; NetBSD i386 COMPAT_LINUX32 system call name/number "master" file. | | 3 | ; NetBSD i386 COMPAT_LINUX32 system call name/number "master" file. |
4 | ; (See syscalls.conf to see what it is processed into.) | | 4 | ; (See syscalls.conf to see what it is processed into.) |
5 | ; | | 5 | ; |
6 | ; Fields: number type [type-dependent ...] | | 6 | ; Fields: number type [type-dependent ...] |
7 | ; number system call number, must be in order | | 7 | ; number system call number, must be in order |
8 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | | 8 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of |
9 | ; the compatibility options defined in syscalls.conf. | | 9 | ; the compatibility options defined in syscalls.conf. |
10 | ; | | 10 | ; |
11 | ; types: | | 11 | ; types: |
12 | ; STD always included | | 12 | ; STD always included |
13 | ; OBSOL obsolete, not included in system | | 13 | ; OBSOL obsolete, not included in system |
14 | ; UNIMPL unimplemented, not included in system | | 14 | ; UNIMPL unimplemented, not included in system |
| @@ -58,101 +58,101 @@ | | | @@ -58,101 +58,101 @@ |
58 | #include <compat/linux/common/linux_siginfo.h> | | 58 | #include <compat/linux/common/linux_siginfo.h> |
59 | #include <compat/linux/common/linux_machdep.h> | | 59 | #include <compat/linux/common/linux_machdep.h> |
60 | | | 60 | |
61 | #include <compat/linux/linux_syscallargs.h> | | 61 | #include <compat/linux/linux_syscallargs.h> |
62 | | | 62 | |
63 | %% | | 63 | %% |
64 | | | 64 | |
65 | 0 NOARGS { int linux_sys_nosys(void); } syscall | | 65 | 0 NOARGS { int linux_sys_nosys(void); } syscall |
66 | 1 NOARGS { int netbsd32_exit(int rval); } | | 66 | 1 NOARGS { int netbsd32_exit(int rval); } |
67 | 2 NOARGS { int sys_fork(void); } | | 67 | 2 NOARGS { int sys_fork(void); } |
68 | 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ | | 68 | 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ |
69 | netbsd32_voidp buf, netbsd32_size_t nbyte); } | | 69 | netbsd32_voidp buf, netbsd32_size_t nbyte); } |
70 | 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ | | 70 | 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ |
71 | const netbsd32_voidp buf, netbsd32_size_t nbyte); } | | 71 | netbsd32_voidp buf, netbsd32_size_t nbyte); } |
72 | 5 STD { int linux32_sys_open(const netbsd32_charp path, int flags, \ | | 72 | 5 STD { int linux32_sys_open(netbsd32_charp path, int flags, \ |
73 | int mode); } | | 73 | int mode); } |
74 | 6 NOARGS { int netbsd32_close(int fd); } | | 74 | 6 NOARGS { int netbsd32_close(int fd); } |
75 | 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ | | 75 | 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ |
76 | int options);} | | 76 | int options);} |
77 | 8 STD { int linux32_sys_creat(const netbsd32_charp path, int mode); } | | 77 | 8 STD { int linux32_sys_creat(netbsd32_charp path, int mode); } |
78 | 9 NOARGS { int netbsd32_link(const netbsd32_charp path, \ | | 78 | 9 NOARGS { int netbsd32_link(netbsd32_charp path, \ |
79 | const netbsd32_charp link); } | | 79 | netbsd32_charp link); } |
80 | 10 STD { int linux32_sys_unlink(const netbsd32_charp path); } | | 80 | 10 STD { int linux32_sys_unlink(netbsd32_charp path); } |
81 | 11 NOARGS { int netbsd32_execve(const netbsd32_charp path, \ | | 81 | 11 NOARGS { int netbsd32_execve(netbsd32_charp path, \ |
82 | netbsd32_charpp argp, netbsd32_charpp envp); } | | 82 | netbsd32_charpp argp, netbsd32_charpp envp); } |
83 | 12 NOARGS { int netbsd32_chdir(const netbsd32_charp path); } | | 83 | 12 NOARGS { int netbsd32_chdir(netbsd32_charp path); } |
84 | 13 STD { int linux32_sys_time(linux32_timep_t t); } | | 84 | 13 STD { int linux32_sys_time(linux32_timep_t t); } |
85 | 14 STD { int linux32_sys_mknod(const netbsd32_charp path, \ | | 85 | 14 STD { int linux32_sys_mknod(netbsd32_charp path, \ |
86 | int mode, int dev); } | | 86 | int mode, int dev); } |
87 | 15 NOARGS { int netbsd32_chmod(const netbsd32_charp path, int mode); } | | 87 | 15 NOARGS { int netbsd32_chmod(netbsd32_charp path, int mode); } |
88 | 16 STD { int linux32_sys_lchown16(const netbsd32_charp path, \ | | 88 | 16 STD { int linux32_sys_lchown16(netbsd32_charp path, \ |
89 | linux32_uid16_t uid, linux32_gid16_t gid); } | | 89 | linux32_uid16_t uid, linux32_gid16_t gid); } |
90 | 17 STD { int linux32_sys_break(netbsd32_charp nsize); } | | 90 | 17 STD { int linux32_sys_break(netbsd32_charp nsize); } |
91 | 18 OBSOL ostat | | 91 | 18 OBSOL ostat |
92 | 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ | | 92 | 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ |
93 | netbsd32_long offset, int chence); } | | 93 | netbsd32_long offset, int chence); } |
94 | 20 STD { pid_t linux_sys_getpid(void); } | | 94 | 20 STD { pid_t linux_sys_getpid(void); } |
95 | 21 UNIMPL mount | | 95 | 21 UNIMPL mount |
96 | 22 UNIMPL umount | | 96 | 22 UNIMPL umount |
97 | 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } | | 97 | 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } |
98 | 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } | | 98 | 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } |
99 | 25 STD { int linux32_sys_stime(linux32_timep_t t); } | | 99 | 25 STD { int linux32_sys_stime(linux32_timep_t t); } |
100 | 26 STD { int linux32_sys_ptrace(int request, int pid, \ | | 100 | 26 STD { int linux32_sys_ptrace(int request, int pid, \ |
101 | int addr, int data); } | | 101 | int addr, int data); } |
102 | 27 STD { int linux32_sys_alarm(unsigned int secs); } | | 102 | 27 STD { int linux32_sys_alarm(unsigned int secs); } |
103 | 28 OBSOL ofstat | | 103 | 28 OBSOL ofstat |
104 | 29 NOARGS { int linux_sys_pause(void); } | | 104 | 29 NOARGS { int linux_sys_pause(void); } |
105 | 30 STD { int linux32_sys_utime(const netbsd32_charp path, \ | | 105 | 30 STD { int linux32_sys_utime(netbsd32_charp path, \ |
106 | linux32_utimbufp_t times); } | | 106 | linux32_utimbufp_t times); } |
107 | 31 OBSOL stty | | 107 | 31 OBSOL stty |
108 | 32 OBSOL gtty | | 108 | 32 OBSOL gtty |
109 | 33 NOARGS { int netbsd32_access(const netbsd32_charp path, \ | | 109 | 33 NOARGS { int netbsd32_access(netbsd32_charp path, \ |
110 | int flags); } | | 110 | int flags); } |
111 | 34 STD { int linux32_sys_nice(int incr); } | | 111 | 34 STD { int linux32_sys_nice(int incr); } |
112 | 35 OBSOL ftime | | 112 | 35 OBSOL ftime |
113 | 36 NOARGS { int sys_sync(void); } | | 113 | 36 NOARGS { int sys_sync(void); } |
114 | 37 STD { int linux32_sys_kill(int pid, int signum); } | | 114 | 37 STD { int linux32_sys_kill(int pid, int signum); } |
115 | 38 NOARGS { int netbsd32___posix_rename(const netbsd32_charp from, \ | | 115 | 38 NOARGS { int netbsd32___posix_rename(netbsd32_charp from, \ |
116 | const netbsd32_charp to); } | | 116 | netbsd32_charp to); } |
117 | 39 NOARGS { int netbsd32_mkdir(const netbsd32_charp path, int mode); } | | 117 | 39 NOARGS { int netbsd32_mkdir(netbsd32_charp path, int mode); } |
118 | 40 NOARGS { int netbsd32_rmdir(const netbsd32_charp path); } | | 118 | 40 NOARGS { int netbsd32_rmdir(netbsd32_charp path); } |
119 | 41 NOARGS { int netbsd32_dup(u_int fd); } | | 119 | 41 NOARGS { int netbsd32_dup(u_int fd); } |
120 | 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } | | 120 | 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } |
121 | 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } | | 121 | 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } |
122 | 44 OBSOL prof | | 122 | 44 OBSOL prof |
123 | 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } | | 123 | 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } |
124 | 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } | | 124 | 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } |
125 | 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } | | 125 | 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } |
126 | 48 STD { int linux32_sys_signal(int signum, \ | | 126 | 48 STD { int linux32_sys_signal(int signum, \ |
127 | linux32_handler_t handler); } | | 127 | linux32_handler_t handler); } |
128 | 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } | | 128 | 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } |
129 | 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } | | 129 | 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } |
130 | 51 NOARGS { int netbsd32_acct(netbsd32_charp path); } | | 130 | 51 NOARGS { int netbsd32_acct(netbsd32_charp path); } |
131 | 52 OBSOL phys | | 131 | 52 OBSOL phys |
132 | 53 OBSOL lock | | 132 | 53 OBSOL lock |
133 | 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ | | 133 | 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ |
134 | netbsd32_charp data); } | | 134 | netbsd32_charp data); } |
135 | 55 STD { int linux32_sys_fcntl(int fd, \ | | 135 | 55 STD { int linux32_sys_fcntl(int fd, \ |
136 | int cmd, netbsd32_voidp arg); } | | 136 | int cmd, netbsd32_voidp arg); } |
137 | 56 OBSOL mpx | | 137 | 56 OBSOL mpx |
138 | 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } | | 138 | 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } |
139 | 58 OBSOL ulimit | | 139 | 58 OBSOL ulimit |
140 | 59 STD { int linux32_sys_oldolduname( \ | | 140 | 59 STD { int linux32_sys_oldolduname( \ |
141 | linux32_oldold_utsnamep_t up); } | | 141 | linux32_oldold_utsnamep_t up); } |
142 | 60 NOARGS { int netbsd32_umask(int newmask); } | | 142 | 60 NOARGS { int netbsd32_umask(int newmask); } |
143 | 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); } | | 143 | 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); } |
144 | 62 UNIMPL ustat | | 144 | 62 UNIMPL ustat |
145 | 63 NOARGS { int netbsd32_dup2(u_int from, u_int to); } | | 145 | 63 NOARGS { int netbsd32_dup2(int from, int to); } |
146 | 64 STD { pid_t linux_sys_getppid(void); } | | 146 | 64 STD { pid_t linux_sys_getppid(void); } |
147 | 65 NOARGS { int sys_getpgrp(void); } | | 147 | 65 NOARGS { int sys_getpgrp(void); } |
148 | 66 NOARGS { int sys_setsid(void); } | | 148 | 66 NOARGS { int sys_setsid(void); } |
149 | 67 UNIMPL sigaction | | 149 | 67 UNIMPL sigaction |
150 | 68 UNIMPL siggetmask | | 150 | 68 UNIMPL siggetmask |
151 | 69 UNIMPL sigsetmask | | 151 | 69 UNIMPL sigsetmask |
152 | 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ | | 152 | 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ |
153 | linux32_uid16_t euid); } | | 153 | linux32_uid16_t euid); } |
154 | 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ | | 154 | 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ |
155 | linux32_gid16_t egid); } | | 155 | linux32_gid16_t egid); } |
156 | 72 UNIMPL sigsuspend | | 156 | 72 UNIMPL sigsuspend |
157 | 73 UNIMPL sigpending | | 157 | 73 UNIMPL sigpending |
158 | 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ | | 158 | 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ |
| @@ -163,70 +163,71 @@ | | | @@ -163,70 +163,71 @@ |
163 | netbsd32_orlimitp_t rlp); } | | 163 | netbsd32_orlimitp_t rlp); } |
164 | 77 NOARGS { int netbsd32_getrusage(int who, \ | | 164 | 77 NOARGS { int netbsd32_getrusage(int who, \ |
165 | netbsd32_rusagep_t rusage); } | | 165 | netbsd32_rusagep_t rusage); } |
166 | 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ | | 166 | 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ |
167 | netbsd32_timezonep_t tzp); } | | 167 | netbsd32_timezonep_t tzp); } |
168 | 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ | | 168 | 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ |
169 | netbsd32_timezonep_t tzp); } | | 169 | netbsd32_timezonep_t tzp); } |
170 | 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ | | 170 | 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ |
171 | linux32_gid16p_t gidset); } | | 171 | linux32_gid16p_t gidset); } |
172 | 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ | | 172 | 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ |
173 | linux32_gid16p_t gidset); } | | 173 | linux32_gid16p_t gidset); } |
174 | 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } | | 174 | 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } |
175 | 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ | | 175 | 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ |
176 | const netbsd32_charp link); } | | 176 | netbsd32_charp link); } |
177 | 84 NOARGS { int compat_43_netbsd32_lstat43(const netbsd32_charp \ | | 177 | 84 NOARGS { int compat_43_netbsd32_lstat43(netbsd32_charp \ |
178 | path, netbsd32_stat43p_t ub); } | | 178 | path, netbsd32_stat43p_t ub); } |
179 | 85 NOARGS { int netbsd32_readlink(const netbsd32_charp name, \ | | 179 | 85 NOARGS { int netbsd32_readlink(netbsd32_charp name, \ |
180 | netbsd32_charp buf, int count); } | | 180 | netbsd32_charp buf, netbsd32_size_t count); } |
181 | 86 UNIMPL uselib | | 181 | 86 UNIMPL uselib |
182 | 87 STD { int linux32_sys_swapon(netbsd32_charp name); } | | 182 | 87 STD { int linux32_sys_swapon(netbsd32_charp name); } |
183 | 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ | | 183 | 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ |
184 | netbsd32_voidp arg); } | | 184 | netbsd32_voidp arg); } |
185 | 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ | | 185 | 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ |
186 | unsigned int count); } | | 186 | unsigned int count); } |
187 | 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } | | 187 | 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } |
188 | 91 NOARGS { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } | | 188 | 91 NOARGS { int netbsd32_munmap(netbsd32_voidp addr, \ |
189 | 92 NOARGS { int compat_43_netbsd32_otruncate(const netbsd32_charp path, \ | | 189 | netbsd32_size_t len); } |
| | | 190 | 92 NOARGS { int compat_43_netbsd32_otruncate(netbsd32_charp path, \ |
190 | netbsd32_long length); } | | 191 | netbsd32_long length); } |
191 | 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ | | 192 | 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ |
192 | netbsd32_long length); } | | 193 | netbsd32_long length); } |
193 | 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } | | 194 | 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } |
194 | 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ | | 195 | 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ |
195 | linux32_gid16_t gid); } | | 196 | linux32_gid16_t gid); } |
196 | 96 STD { int linux32_sys_getpriority(int which, int who); } | | 197 | 96 STD { int linux32_sys_getpriority(int which, int who); } |
197 | 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); } | | 198 | 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); } |
198 | 98 UNIMPL profil | | 199 | 98 UNIMPL profil |
199 | 99 STD { int linux32_sys_statfs(const netbsd32_charp path, \ | | 200 | 99 STD { int linux32_sys_statfs(netbsd32_charp path, \ |
200 | linux32_statfsp sp); } | | 201 | linux32_statfsp sp); } |
201 | 100 UNIMPL fstatfs | | 202 | 100 UNIMPL fstatfs |
202 | 101 UNIMPL ioperm | | 203 | 101 UNIMPL ioperm |
203 | 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } | | 204 | 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } |
204 | 103 UNIMPL syslog | | 205 | 103 UNIMPL syslog |
205 | 104 NOARGS { int netbsd32_setitimer(u_int which, \ | | 206 | 104 NOARGS { int netbsd32_setitimer(int which, \ |
206 | netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } | | 207 | netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } |
207 | 105 NOARGS { int netbsd32_getitimer(u_int which, \ | | 208 | 105 NOARGS { int netbsd32_getitimer(int which, \ |
208 | netbsd32_itimervalp_t itv); } | | 209 | netbsd32_itimervalp_t itv); } |
209 | 106 UNIMPL stat | | 210 | 106 UNIMPL stat |
210 | 107 UNIMPL lstat | | 211 | 107 UNIMPL lstat |
211 | 108 UNIMPL fstat | | 212 | 108 UNIMPL fstat |
212 | 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } | | 213 | 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } |
213 | 110 UNIMPL iopl | | 214 | 110 UNIMPL iopl |
214 | 111 UNIMPL vhangup | | 215 | 111 UNIMPL vhangup |
215 | 112 UNIMPL idle | | 216 | 112 UNIMPL idle |
216 | 113 UNIMPL vm86old | | 217 | 113 UNIMPL vm86old |
217 | 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ | | 218 | 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ |
218 | int options, netbsd32_rusagep_t rusage); } | | 219 | int options, netbsd32_rusagep_t rusage); } |
219 | 115 STD { int linux32_sys_swapoff(const netbsd32_charp path); } | | 220 | 115 STD { int linux32_sys_swapoff(netbsd32_charp path); } |
220 | 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); } | | 221 | 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); } |
221 | 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \ | | 222 | 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \ |
222 | netbsd32_voidp ptr); } | | 223 | netbsd32_voidp ptr); } |
223 | 118 NOARGS { int netbsd32_fsync(int fd); } | | 224 | 118 NOARGS { int netbsd32_fsync(int fd); } |
224 | 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } | | 225 | 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } |
225 | 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } | | 226 | 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } |
226 | 121 UNIMPL setdomainname | | 227 | 121 UNIMPL setdomainname |
227 | 122 STD { int linux32_sys_uname(linux32_utsnamep up); } | | 228 | 122 STD { int linux32_sys_uname(linux32_utsnamep up); } |
228 | 123 UNIMPL modify_ldt | | 229 | 123 UNIMPL modify_ldt |
229 | 124 UNIMPL adjtimex | | 230 | 124 UNIMPL adjtimex |
230 | 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ | | 231 | 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ |
231 | netbsd32_size_t len, int prot); } | | 232 | netbsd32_size_t len, int prot); } |
232 | 126 UNIMPL sigprocmask | | 233 | 126 UNIMPL sigprocmask |
| @@ -246,134 +247,133 @@ | | | @@ -246,134 +247,133 @@ |
246 | 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ | | 247 | 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ |
247 | u_int32_t olow, netbsd32_caddr_t res, int whence); } | | 248 | u_int32_t olow, netbsd32_caddr_t res, int whence); } |
248 | 141 STD { int linux32_sys_getdents(int fd, \ | | 249 | 141 STD { int linux32_sys_getdents(int fd, \ |
249 | linux32_direntp_t dent, unsigned int count); } | | 250 | linux32_direntp_t dent, unsigned int count); } |
250 | 142 STD { int linux32_sys_select(int nfds, \ | | 251 | 142 STD { int linux32_sys_select(int nfds, \ |
251 | netbsd32_fd_setp_t readfds, \ | | 252 | netbsd32_fd_setp_t readfds, \ |
252 | netbsd32_fd_setp_t writefds, \ | | 253 | netbsd32_fd_setp_t writefds, \ |
253 | netbsd32_fd_setp_t exceptfds, \ | | 254 | netbsd32_fd_setp_t exceptfds, \ |
254 | netbsd32_timevalp_t timeout); } | | 255 | netbsd32_timevalp_t timeout); } |
255 | 143 NOARGS { int netbsd32_flock(int fd, int how); } | | 256 | 143 NOARGS { int netbsd32_flock(int fd, int how); } |
256 | 144 NOARGS { int netbsd32___msync13(netbsd32_voidp addr, \ | | 257 | 144 NOARGS { int netbsd32___msync13(netbsd32_voidp addr, \ |
257 | netbsd32_size_t len, int flags); } | | 258 | netbsd32_size_t len, int flags); } |
258 | 145 NOARGS { int netbsd32_readv(int fd, \ | | 259 | 145 NOARGS { int netbsd32_readv(int fd, \ |
259 | const netbsd32_iovecp_t iovp, u_int iovcnt); } | | 260 | netbsd32_iovecp_t iovp, int iovcnt); } |
260 | 146 NOARGS { netbsd32_ssize_t netbsd32_writev(int fd, \ | | 261 | 146 NOARGS { netbsd32_ssize_t netbsd32_writev(int fd, \ |
261 | const netbsd32_iovecp_t iovp, int iovcnt); } | | 262 | netbsd32_iovecp_t iovp, int iovcnt); } |
262 | 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } | | 263 | 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } |
263 | 148 STD { int linux32_sys_fdatasync(int fd); } | | 264 | 148 STD { int linux32_sys_fdatasync(int fd); } |
264 | 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } | | 265 | 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } |
265 | 150 NOARGS { int netbsd32_mlock(netbsd32_voidp addr, \ | | 266 | 150 NOARGS { int netbsd32_mlock(netbsd32_voidp addr, \ |
266 | netbsd32_size_t len); } | | 267 | netbsd32_size_t len); } |
267 | 151 NOARGS { int netbsd32_munlock(netbsd32_voidp addr, \ | | 268 | 151 NOARGS { int netbsd32_munlock(netbsd32_voidp addr, \ |
268 | netbsd32_size_t len); } | | 269 | netbsd32_size_t len); } |
269 | 152 NOARGS { int netbsd32_mlockall(int flags); } | | 270 | 152 NOARGS { int netbsd32_mlockall(int flags); } |
270 | 153 NOARGS { int sys_munlockall(void); } | | 271 | 153 NOARGS { int sys_munlockall(void); } |
271 | 154 UNIMPL sched_setparam | | 272 | 154 UNIMPL sched_setparam |
272 | 155 STD { int linux32_sys_sched_getparam(pid_t pid, \ | | 273 | 155 STD { int linux32_sys_sched_getparam(pid_t pid, \ |
273 | linux32_sched_paramp_t sp); } | | 274 | linux32_sched_paramp_t sp); } |
274 | 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ | | 275 | 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ |
275 | int policy, const linux32_sched_paramp_t sp); } | | 276 | int policy, linux32_sched_paramp_t sp); } |
276 | 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } | | 277 | 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } |
277 | 158 NOARGS { int linux_sys_sched_yield(void); } | | 278 | 158 NOARGS { int linux_sys_sched_yield(void); } |
278 | 159 UNIMPL sched_get_priority_max | | 279 | 159 UNIMPL sched_get_priority_max |
279 | 160 UNIMPL sched_get_priority_min | | 280 | 160 UNIMPL sched_get_priority_min |
280 | 161 UNIMPL sched_rr_get_interval | | 281 | 161 UNIMPL sched_rr_get_interval |
281 | 162 NOARGS { int netbsd32_nanosleep(const \ | | 282 | 162 NOARGS { int netbsd32_nanosleep(netbsd32_timespecp_t rqtp \ |
282 | netbsd32_timespecp_t rqtp \ | | | |
283 | netbsd32_timespecp_t rmtp); } | | 283 | netbsd32_timespecp_t rmtp); } |
284 | 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \ | | 284 | 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \ |
285 | netbsd32_size_t old_size , netbsd32_size_t new_size, \ | | 285 | netbsd32_size_t old_size, netbsd32_size_t new_size, \ |
286 | netbsd32_u_long flags); } | | 286 | netbsd32_u_long flags); } |
287 | 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ | | 287 | 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ |
288 | linux32_uid16_t euid, linux32_uid16_t suid); } | | 288 | linux32_uid16_t euid, linux32_uid16_t suid); } |
289 | 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ | | 289 | 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ |
290 | linux32_uid16p_t euid, linux32_uid16p_t suid); } | | 290 | linux32_uid16p_t euid, linux32_uid16p_t suid); } |
291 | 166 UNIMPL vm86 | | 291 | 166 UNIMPL vm86 |
292 | 167 UNIMPL query_module | | 292 | 167 UNIMPL query_module |
293 | 168 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \ | | 293 | 168 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \ |
294 | int timeout); } | | 294 | int timeout); } |
295 | 169 UNIMPL nfsservctl | | 295 | 169 UNIMPL nfsservctl |
296 | 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ | | 296 | 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ |
297 | linux32_gid16_t egid, linux32_gid16_t sgid); } | | 297 | linux32_gid16_t egid, linux32_gid16_t sgid); } |
298 | 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ | | 298 | 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ |
299 | linux32_gid16p_t egid, linux32_gid16p_t sgid); } | | 299 | linux32_gid16p_t egid, linux32_gid16p_t sgid); } |
300 | 172 UNIMPL prctl | | 300 | 172 UNIMPL prctl |
301 | 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } | | 301 | 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } |
302 | 174 STD { int linux32_sys_rt_sigaction(int signum, \ | | 302 | 174 STD { int linux32_sys_rt_sigaction(int signum, \ |
303 | const linux32_sigactionp_t nsa, \ | | 303 | linux32_sigactionp_t nsa, \ |
304 | linux32_sigactionp_t osa, \ | | 304 | linux32_sigactionp_t osa, \ |
305 | netbsd32_size_t sigsetsize); } | | 305 | netbsd32_size_t sigsetsize); } |
306 | 175 STD { int linux32_sys_rt_sigprocmask(int how, \ | | 306 | 175 STD { int linux32_sys_rt_sigprocmask(int how, \ |
307 | const linux32_sigsetp_t set, \ | | 307 | linux32_sigsetp_t set, \ |
308 | linux32_sigsetp_t oset, \ | | 308 | linux32_sigsetp_t oset, \ |
309 | netbsd32_size_t sigsetsize); } | | 309 | netbsd32_size_t sigsetsize); } |
310 | 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ | | 310 | 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ |
311 | netbsd32_size_t sigsetsize); } | | 311 | netbsd32_size_t sigsetsize); } |
312 | 177 UNIMPL rt_sigtimedwait | | 312 | 177 UNIMPL rt_sigtimedwait |
313 | 178 UNIMPL rt_queueinfo | | 313 | 178 UNIMPL rt_queueinfo |
314 | 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ | | 314 | 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ |
315 | netbsd32_size_t sigsetsize); } | | 315 | netbsd32_size_t sigsetsize); } |
316 | 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \ | | 316 | 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \ |
317 | netbsd32_voidp buf, netbsd32_size_t nbyte, \ | | 317 | netbsd32_voidp buf, netbsd32_size_t nbyte, \ |
318 | linux32_off_t offset); } | | 318 | linux32_off_t offset); } |
319 | 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \ | | 319 | 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \ |
320 | const netbsd32_voidp buf, netbsd32_size_t nbyte, \ | | 320 | netbsd32_voidp buf, netbsd32_size_t nbyte, \ |
321 | linux32_off_t offset); } | | 321 | linux32_off_t offset); } |
322 | 182 STD { int linux32_sys_chown16(const netbsd32_charp path, \ | | 322 | 182 STD { int linux32_sys_chown16(netbsd32_charp path, \ |
323 | linux32_uid16_t uid, linux32_gid16_t gid); } | | 323 | linux32_uid16_t uid, linux32_gid16_t gid); } |
324 | 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ | | 324 | 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ |
325 | netbsd32_size_t length); } | | 325 | netbsd32_size_t length); } |
326 | 184 UNIMPL capget | | 326 | 184 UNIMPL capget |
327 | 185 UNIMPL capset | | 327 | 185 UNIMPL capset |
328 | 186 UNIMPL sigaltstack | | 328 | 186 UNIMPL sigaltstack |
329 | 187 UNIMPL sendfile | | 329 | 187 UNIMPL sendfile |
330 | 188 UNIMPL getpmsg | | 330 | 188 UNIMPL getpmsg |
331 | 189 UNIMPL putpmsg | | 331 | 189 UNIMPL putpmsg |
332 | 190 NOARGS { int sys___vfork14(void); } | | 332 | 190 NOARGS { int sys___vfork14(void); } |
333 | 191 STD { int linux32_sys_ugetrlimit(int which, \ | | 333 | 191 STD { int linux32_sys_ugetrlimit(int which, \ |
334 | netbsd32_orlimitp_t rlp); } | | 334 | netbsd32_orlimitp_t rlp); } |
335 | 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \ | | 335 | 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \ |
336 | netbsd32_size_t len, int prot, int flags, int fd, \ | | 336 | netbsd32_size_t len, int prot, int flags, int fd, \ |
337 | linux32_off_t offset); } | | 337 | linux32_off_t offset); } |
338 | 193 UNIMPL truncate64 | | 338 | 193 UNIMPL truncate64 |
339 | 194 UNIMPL ftruncate64 | | 339 | 194 UNIMPL ftruncate64 |
340 | 195 STD { int linux32_sys_stat64(const netbsd32_charp path, \ | | 340 | 195 STD { int linux32_sys_stat64(netbsd32_charp path, \ |
341 | linux32_stat64p sp); } | | 341 | linux32_stat64p sp); } |
342 | 196 STD { int linux32_sys_lstat64(const netbsd32_charp path, \ | | 342 | 196 STD { int linux32_sys_lstat64(netbsd32_charp path, \ |
343 | linux32_stat64p sp); } | | 343 | linux32_stat64p sp); } |
344 | 197 STD { int linux32_sys_fstat64(int fd, \ | | 344 | 197 STD { int linux32_sys_fstat64(int fd, \ |
345 | linux32_stat64p sp); } | | 345 | linux32_stat64p sp); } |
346 | 198 NOARGS { int netbsd32___posix_lchown(const netbsd32_charp path, \ | | 346 | 198 NOARGS { int netbsd32___posix_lchown(netbsd32_charp path, \ |
347 | int uid, int gid); } | | 347 | uid_t uid, gid_t gid); } |
348 | 199 NOARGS { uid_t sys_getuid(void); } | | 348 | 199 NOARGS { uid_t sys_getuid(void); } |
349 | 200 NOARGS { gid_t sys_getgid(void); } | | 349 | 200 NOARGS { gid_t sys_getgid(void); } |
350 | 201 NOARGS { uid_t sys_geteuid(void); } | | 350 | 201 NOARGS { uid_t sys_geteuid(void); } |
351 | 202 NOARGS { gid_t sys_getegid(void); } | | 351 | 202 NOARGS { gid_t sys_getegid(void); } |
352 | 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } | | 352 | 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } |
353 | 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } | | 353 | 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } |
354 | 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ | | 354 | 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ |
355 | netbsd32_gid_tp gidset); } | | 355 | netbsd32_gid_tp gidset); } |
356 | 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ | | 356 | 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ |
357 | netbsd32_gid_tp gidset); } | | 357 | netbsd32_gid_tp gidset); } |
358 | 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } | | 358 | 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } |
359 | 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \ | | 359 | 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \ |
360 | uid_t suid); } | | 360 | uid_t suid); } |
361 | 209 UNIMPL getresuid | | 361 | 209 UNIMPL getresuid |
362 | 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \ | | 362 | 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \ |
363 | gid_t sgid); } | | 363 | gid_t sgid); } |
364 | 211 UNIMPL getresgid | | 364 | 211 UNIMPL getresgid |
365 | 212 NOARGS { int netbsd32___posix_chown(const netbsd32_charp path, \ | | 365 | 212 NOARGS { int netbsd32___posix_chown(netbsd32_charp path, \ |
366 | int uid, int gid); } | | 366 | uid_t uid, gid_t gid); } |
367 | 213 NOARGS { int netbsd32_setuid(uid_t uid); } | | 367 | 213 NOARGS { int netbsd32_setuid(uid_t uid); } |
368 | 214 NOARGS { int netbsd32_setgid(gid_t gid); } | | 368 | 214 NOARGS { int netbsd32_setgid(gid_t gid); } |
369 | 215 STD { int linux32_sys_setfsuid(uid_t uid); } | | 369 | 215 STD { int linux32_sys_setfsuid(uid_t uid); } |
370 | 216 STD { int linux32_sys_setfsgid(gid_t gid); } | | 370 | 216 STD { int linux32_sys_setfsgid(gid_t gid); } |
371 | 217 UNIMPL pivot_root | | 371 | 217 UNIMPL pivot_root |
372 | 218 UNIMPL mincore | | 372 | 218 UNIMPL mincore |
373 | 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \ | | 373 | 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \ |
374 | netbsd32_size_t len, int behav); } | | 374 | netbsd32_size_t len, int behav); } |
375 | 220 STD { int linux32_sys_getdents64(int fd, \ | | 375 | 220 STD { int linux32_sys_getdents64(int fd, \ |
376 | linux32_dirent64p_t dent, unsigned int count); } | | 376 | linux32_dirent64p_t dent, unsigned int count); } |
377 | ; fcntl64() - Exactly the same as fcntl() | | 377 | ; fcntl64() - Exactly the same as fcntl() |
378 | #define linux32_sys_fcntl64 linux32_sys_fcntl | | 378 | #define linux32_sys_fcntl64 linux32_sys_fcntl |
379 | #define linux32_sys_fcntl64_args linux32_sys_fcntl_args | | 379 | #define linux32_sys_fcntl64_args linux32_sys_fcntl_args |