| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: syscalls.master,v 1.131 2020/01/18 07:33:24 kamil Exp $ | | 1 | $NetBSD: syscalls.master,v 1.132 2020/03/07 00:56:41 pgoyette Exp $ |
2 | | | 2 | |
3 | ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp | | 3 | ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp |
4 | ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 | | 4 | ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 |
5 | | | 5 | |
6 | ; NetBSD system call name/number "master" file. | | 6 | ; NetBSD system call name/number "master" file. |
7 | ; (See syscalls.conf to see what it is processed into.) | | 7 | ; (See syscalls.conf to see what it is processed into.) |
8 | ; | | 8 | ; |
9 | ; Fields: number type [type-dependent ...] | | 9 | ; Fields: number type [type-dependent ...] |
10 | ; number system call number, must be in order | | 10 | ; number system call number, must be in order |
11 | ; type one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of | | 11 | ; type one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of |
12 | ; the compatibility options defined in syscalls.conf. | | 12 | ; the compatibility options defined in syscalls.conf. |
13 | ; | | 13 | ; |
14 | ; types: | | 14 | ; types: |
| @@ -173,27 +173,27 @@ | | | @@ -173,27 +173,27 @@ |
173 | netbsd32_charp link); } | | 173 | netbsd32_charp link); } |
174 | 58 STD { int|netbsd32||readlink(netbsd32_charp path, \ | | 174 | 58 STD { int|netbsd32||readlink(netbsd32_charp path, \ |
175 | netbsd32_charp buf, netbsd32_size_t count); } | | 175 | netbsd32_charp buf, netbsd32_size_t count); } |
176 | 59 STD { int|netbsd32||execve(netbsd32_charp path, \ | | 176 | 59 STD { int|netbsd32||execve(netbsd32_charp path, \ |
177 | netbsd32_charpp argp, netbsd32_charpp envp); } | | 177 | netbsd32_charpp argp, netbsd32_charpp envp); } |
178 | 60 STD { mode_t|netbsd32||umask(mode_t newmask); } | | 178 | 60 STD { mode_t|netbsd32||umask(mode_t newmask); } |
179 | 61 STD { int|netbsd32||chroot(netbsd32_charp path); } | | 179 | 61 STD { int|netbsd32||chroot(netbsd32_charp path); } |
180 | 62 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 180 | 62 COMPAT_43 MODULAR compat_netbsd32_43 \ |
181 | { int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); } | | 181 | { int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); } |
182 | 63 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 182 | 63 COMPAT_43 MODULAR compat_netbsd32_43 \ |
183 | { int|netbsd32||ogetkerninfo(int op, \ | | 183 | { int|netbsd32||ogetkerninfo(int op, \ |
184 | netbsd32_charp where, netbsd32_intp size, \ | | 184 | netbsd32_charp where, netbsd32_intp size, \ |
185 | int arg); } | | 185 | int arg); } |
186 | 64 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 186 | 64 COMPAT_43 MODULAR compat_43 \ |
187 | { int|sys||getpagesize(void); } ogetpagesize | | 187 | { int|sys||getpagesize(void); } ogetpagesize |
188 | 65 COMPAT_12 MODULAR compat_netbsd32_12 \ | | 188 | 65 COMPAT_12 MODULAR compat_netbsd32_12 \ |
189 | { int|netbsd32||msync(netbsd32_voidp addr, \ | | 189 | { int|netbsd32||msync(netbsd32_voidp addr, \ |
190 | netbsd32_size_t len); } | | 190 | netbsd32_size_t len); } |
191 | ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? | | 191 | ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? |
192 | 66 NOARGS { int|sys||vfork(void); } | | 192 | 66 NOARGS { int|sys||vfork(void); } |
193 | 67 OBSOL vread | | 193 | 67 OBSOL vread |
194 | 68 OBSOL vwrite | | 194 | 68 OBSOL vwrite |
195 | 69 OBSOL sbrk | | 195 | 69 OBSOL sbrk |
196 | 70 OBSOL sstk | | 196 | 70 OBSOL sstk |
197 | 71 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 197 | 71 COMPAT_43 MODULAR compat_netbsd32_43 \ |
198 | { int|netbsd32||ommap(netbsd32_voidp addr, \ | | 198 | { int|netbsd32||ommap(netbsd32_voidp addr, \ |
199 | netbsd32_size_t len, int prot, int flags, int fd, \ | | 199 | netbsd32_size_t len, int prot, int flags, int fd, \ |
| @@ -209,40 +209,40 @@ | | | @@ -209,40 +209,40 @@ |
209 | 77 OBSOL vlimit | | 209 | 77 OBSOL vlimit |
210 | 78 STD { int|netbsd32||mincore(netbsd32_voidp addr, \ | | 210 | 78 STD { int|netbsd32||mincore(netbsd32_voidp addr, \ |
211 | netbsd32_size_t len, netbsd32_charp vec); } | | 211 | netbsd32_size_t len, netbsd32_charp vec); } |
212 | 79 STD { int|netbsd32||getgroups(int gidsetsize, \ | | 212 | 79 STD { int|netbsd32||getgroups(int gidsetsize, \ |
213 | netbsd32_gid_tp gidset); } | | 213 | netbsd32_gid_tp gidset); } |
214 | 80 STD { int|netbsd32||setgroups(int gidsetsize, \ | | 214 | 80 STD { int|netbsd32||setgroups(int gidsetsize, \ |
215 | netbsd32_gid_tp gidset); } | | 215 | netbsd32_gid_tp gidset); } |
216 | 81 NOARGS { int|sys||getpgrp(void); } | | 216 | 81 NOARGS { int|sys||getpgrp(void); } |
217 | 82 STD { int|netbsd32||setpgid(int pid, int pgid); } | | 217 | 82 STD { int|netbsd32||setpgid(int pid, int pgid); } |
218 | 83 COMPAT_50 MODULAR compat_netbsd32_50 \ | | 218 | 83 COMPAT_50 MODULAR compat_netbsd32_50 \ |
219 | { int|netbsd32||setitimer(int which, \ | | 219 | { int|netbsd32||setitimer(int which, \ |
220 | netbsd32_itimerval50p_t itv, \ | | 220 | netbsd32_itimerval50p_t itv, \ |
221 | netbsd32_itimerval50p_t oitv); } | | 221 | netbsd32_itimerval50p_t oitv); } |
222 | 84 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 222 | 84 COMPAT_43 MODULAR compat_43 \ |
223 | { int|sys||wait(void); } owait | | 223 | { int|sys||wait(void); } owait |
224 | 85 COMPAT_12 MODULAR compat_netbsd32_12 \ | | 224 | 85 COMPAT_12 MODULAR compat_netbsd32_12 \ |
225 | { int|netbsd32||oswapon(netbsd32_charp name); } | | 225 | { int|netbsd32||oswapon(netbsd32_charp name); } |
226 | 86 COMPAT_50 MODULAR compat_netbsd32_50 \ | | 226 | 86 COMPAT_50 MODULAR compat_netbsd32_50 \ |
227 | { int|netbsd32||getitimer(int which, \ | | 227 | { int|netbsd32||getitimer(int which, \ |
228 | netbsd32_itimerval50p_t itv); } | | 228 | netbsd32_itimerval50p_t itv); } |
229 | 87 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 229 | 87 COMPAT_43 MODULAR compat_netbsd32_43 \ |
230 | { int|netbsd32||ogethostname(netbsd32_charp hostname, \ | | 230 | { int|netbsd32||ogethostname(netbsd32_charp hostname, \ |
231 | u_int len); } | | 231 | u_int len); } |
232 | 88 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 232 | 88 COMPAT_43 MODULAR compat_netbsd32_43 \ |
233 | { int|netbsd32||osethostname(netbsd32_charp hostname, \ | | 233 | { int|netbsd32||osethostname(netbsd32_charp hostname, \ |
234 | u_int len); } | | 234 | u_int len); } |
235 | 89 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 235 | 89 COMPAT_43 MODULAR compat_43 \ |
236 | { int|sys||getdtablesize(void); } ogetdtablesize | | 236 | { int|sys||getdtablesize(void); } ogetdtablesize |
237 | 90 STD { int|netbsd32||dup2(int from, int to); } | | 237 | 90 STD { int|netbsd32||dup2(int from, int to); } |
238 | 91 UNIMPL getdopt | | 238 | 91 UNIMPL getdopt |
239 | 92 STD { int|netbsd32||fcntl(int fd, int cmd, \ | | 239 | 92 STD { int|netbsd32||fcntl(int fd, int cmd, \ |
240 | ... netbsd32_voidp arg); } | | 240 | ... netbsd32_voidp arg); } |
241 | 93 COMPAT_50 MODULAR compat_netbsd32_50 \ | | 241 | 93 COMPAT_50 MODULAR compat_netbsd32_50 \ |
242 | { int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \ | | 242 | { int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \ |
243 | netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ | | 243 | netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ |
244 | netbsd32_timeval50p_t tv); } | | 244 | netbsd32_timeval50p_t tv); } |
245 | 94 UNIMPL setdopt | | 245 | 94 UNIMPL setdopt |
246 | 95 STD { int|netbsd32||fsync(int fd); } | | 246 | 95 STD { int|netbsd32||fsync(int fd); } |
247 | 96 STD { int|netbsd32||setpriority(int which, int who, \ | | 247 | 96 STD { int|netbsd32||setpriority(int which, int who, \ |
248 | int prio); } | | 248 | int prio); } |
| @@ -333,49 +333,47 @@ | | | @@ -333,49 +333,47 @@ |
333 | 136 STD { int|netbsd32||mkdir(netbsd32_charp path, \ | | 333 | 136 STD { int|netbsd32||mkdir(netbsd32_charp path, \ |
334 | mode_t mode); } | | 334 | mode_t mode); } |
335 | 137 STD { int|netbsd32||rmdir(netbsd32_charp path); } | | 335 | 137 STD { int|netbsd32||rmdir(netbsd32_charp path); } |
336 | 138 COMPAT_50 MODULAR compat_netbsd32_50 \ | | 336 | 138 COMPAT_50 MODULAR compat_netbsd32_50 \ |
337 | { int|netbsd32||utimes(netbsd32_charp path, \ | | 337 | { int|netbsd32||utimes(netbsd32_charp path, \ |
338 | netbsd32_timeval50p_t tptr); } | | 338 | netbsd32_timeval50p_t tptr); } |
339 | 139 OBSOL 4.2 sigreturn | | 339 | 139 OBSOL 4.2 sigreturn |
340 | 140 COMPAT_50 MODULAR compat_netbsd32_50 \ | | 340 | 140 COMPAT_50 MODULAR compat_netbsd32_50 \ |
341 | { int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \ | | 341 | { int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \ |
342 | netbsd32_timeval50p_t olddelta); } | | 342 | netbsd32_timeval50p_t olddelta); } |
343 | 141 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 343 | 141 COMPAT_43 MODULAR compat_netbsd32_43 \ |
344 | { int|netbsd32||ogetpeername(int fdes, \ | | 344 | { int|netbsd32||ogetpeername(int fdes, \ |
345 | netbsd32_voidp asa, netbsd32_intp alen); } | | 345 | netbsd32_voidp asa, netbsd32_intp alen); } |
346 | 142 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 346 | 142 COMPAT_43 MODULAR compat_43 \ |
347 | { int32_t|sys||gethostid(void); } ogethostid | | 347 | { int32_t|sys||gethostid(void); } ogethostid |
348 | 143 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 348 | 143 COMPAT_43 MODULAR compat_netbsd32_43 \ |
349 | { int|netbsd32||sethostid(int32_t hostid); } | | 349 | { int|netbsd32||sethostid(int32_t hostid); } |
350 | 144 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 350 | 144 COMPAT_43 MODULAR compat_netbsd32_43 \ |
351 | { int|netbsd32||ogetrlimit(int which, \ | | 351 | { int|netbsd32||ogetrlimit(int which, \ |
352 | netbsd32_orlimitp_t rlp); } | | 352 | netbsd32_orlimitp_t rlp); } |
353 | 145 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 353 | 145 COMPAT_43 MODULAR compat_netbsd32_43 \ |
354 | { int|netbsd32||osetrlimit(int which, \ | | 354 | { int|netbsd32||osetrlimit(int which, \ |
355 | netbsd32_orlimitp_t rlp); } | | 355 | netbsd32_orlimitp_t rlp); } |
356 | 146 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 356 | 146 COMPAT_43 MODULAR compat_netbsd32_43 \ |
357 | { int|netbsd32||killpg(int pgid, int signum); } | | 357 | { int|netbsd32||killpg(int pgid, int signum); } |
358 | 147 NOARGS { int|sys||setsid(void); } | | 358 | 147 NOARGS { int|sys||setsid(void); } |
359 | #if defined(QUOTA) || !defined(_KERNEL_OPT) | | 359 | #if defined(QUOTA) || !defined(_KERNEL_OPT) |
360 | 148 COMPAT_50 MODULAR compat_netbsd32_50 \ | | 360 | 148 COMPAT_50 MODULAR compat_netbsd32_50 \ |
361 | { int|netbsd32||quotactl(netbsd32_charp path, int cmd, \ | | 361 | { int|netbsd32||quotactl(netbsd32_charp path, int cmd, \ |
362 | int uid, netbsd32_voidp arg); } | | 362 | int uid, netbsd32_voidp arg); } |
363 | 149 COMPAT_43 MODULAR compat_netbsd32_43 \ | | | |
364 | { int|sys||quota(void); } oquota | | | |
365 | #else | | 363 | #else |
366 | 148 EXCL compat_netbsd32_quotactl | | 364 | 148 EXCL compat_netbsd32_quotactl |
367 | 149 EXCL compat_netbsd32_quota | | | |
368 | #endif | | 365 | #endif |
| | | 366 | 149 EXCL compat_netbsd32_quota |
369 | 150 COMPAT_43 MODULAR compat_netbsd32_43 \ | | 367 | 150 COMPAT_43 MODULAR compat_netbsd32_43 \ |
370 | { int|netbsd32||ogetsockname(int fdec, \ | | 368 | { int|netbsd32||ogetsockname(int fdec, \ |
371 | netbsd32_voidp asa, netbsd32_intp alen); } | | 369 | netbsd32_voidp asa, netbsd32_intp alen); } |
372 | | | 370 | |
373 | ; Syscalls 151-180 inclusive are reserved for vendor-specific | | 371 | ; Syscalls 151-180 inclusive are reserved for vendor-specific |
374 | ; system calls. (This includes various calls added for compatibity | | 372 | ; system calls. (This includes various calls added for compatibity |
375 | ; with other Unix variants.) | | 373 | ; with other Unix variants.) |
376 | ; Some of these calls are now supported by BSD... | | 374 | ; Some of these calls are now supported by BSD... |
377 | 151 UNIMPL | | 375 | 151 UNIMPL |
378 | 152 UNIMPL | | 376 | 152 UNIMPL |
379 | 153 UNIMPL | | 377 | 153 UNIMPL |
380 | 154 UNIMPL | | 378 | 154 UNIMPL |
381 | 155 STD MODULAR compat_netbsd32_nfssrv \ | | 379 | 155 STD MODULAR compat_netbsd32_nfssrv \ |