syscalls.master revision 1.60
1 $NetBSD: syscalls.master,v 1.60 2008/11/19 18:36:02 ad Exp $ 2 3; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 4 5; NetBSD COMPAT_FREEBSD system call name/number "master" file. 6; (See syscalls.conf to see what it is processed into.) 7; 8; Fields: number type [type-dependent ...] 9; number system call number, must be in order 10; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 11; the compatibility options defined in syscalls.conf. 12; 13; types: 14; STD always included 15; OBSOL obsolete, not included in system 16; UNIMPL unimplemented, not included in system 17; NODEF included, but don't define the syscall number 18; NOARGS included, but don't define the syscall args structure 19; 20; The compat options are defined in the syscalls.conf file, and the 21; compat option name is prefixed to the syscall name. Other than 22; that, they're like NODEF (for 'compat' options), or STD (for 23; 'libcompat' options). 24; 25; The type-dependent arguments are as follows: 26; For STD, NODEF, NOARGS, and compat syscalls: 27; { pseudo-proto } [alias] 28; For other syscalls: 29; [comment] 30; 31; #ifdef's, etc. may be included, and are copied to the output files. 32; #include's are copied to the syscall names and switch definition files only. 33 34#if defined(_KERNEL_OPT) 35#include "opt_ktrace.h" 36#include "opt_ntp.h" 37#include "opt_sysv.h" 38#include "opt_compat_43.h" 39#include "opt_posix.h" 40 41#include "fs_lfs.h" 42#endif 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/signal.h> 47#include <sys/mount.h> 48#include <sys/syscallargs.h> 49 50#include <compat/sys/signal.h> 51 52#include <compat/freebsd/freebsd_syscallargs.h> 53 54#include <machine/freebsd_machdep.h> 55 56%% 57 58; Reserved/unimplemented system calls in the range 0-150 inclusive 59; are reserved for use in future Berkeley releases. 60; Additional system calls implemented in vendor and other 61; redistributions should be placed in the reserved range at the end 62; of the current calls. 63 640 NOARGS { int sys_nosys(void); } syscall 651 NOARGS { int sys_exit(int rval); } 662 NOARGS { int sys_fork(void); } 673 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 684 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 695 NOARGS { int sys_open(const char *path, int flags, int mode); } 706 NOARGS { int sys_close(int fd); } 717 NOARGS { int sys_wait4(int pid, int *status, int options, \ 72 struct rusage *rusage); } 738 NOARGS { int compat_43_sys_creat(const char *path, \ 74 int mode); } ocreat 759 NOARGS { int sys_link(const char *path, const char *link); } 7610 NOARGS { int sys_unlink(const char *path); } 7711 OBSOL execv 7812 NOARGS { int sys_chdir(const char *path); } 7913 NOARGS { int sys_fchdir(int fd); } 8014 NOARGS { int sys_mknod(const char *path, int mode, int dev); } 8115 NOARGS { int sys_chmod(const char *path, int mode); } 8216 NOARGS { int sys_chown(const char *path, int uid, int gid); } 8317 NOARGS { int sys_obreak(char *nsize); } break 8418 NOARGS { int compat_20_sys_getfsstat(struct statfs12 *buf, \ 85 long bufsize, int flags); } 8619 NOARGS { long compat_43_sys_lseek(int fd, long offset, \ 87 int whence); } olseek 8820 NOARGS { pid_t sys_getpid_with_ppid(void); } 8921 STD { int freebsd_sys_mount(int type, const char *path, \ 90 int flags, void *data); } 9122 NOARGS { int sys_unmount(const char *path, int flags); } 9223 NOARGS { int sys_setuid(uid_t uid); } 9324 NOARGS { uid_t sys_getuid_with_euid(void); } 9425 NOARGS { uid_t sys_geteuid(void); } 9526 STD { int freebsd_sys_ptrace(int req, pid_t pid, \ 96 void *addr, int data); } 9727 NOARGS { int sys_recvmsg(int s, struct msghdr *msg, \ 98 int flags); } 9928 NOARGS { int sys_sendmsg(int s, void *msg, int flags); } 10029 NOARGS { int sys_recvfrom(int s, void *buf, size_t len, \ 101 int flags, void *from, int *fromlenaddr); } 10230 NOARGS { int sys_accept(int s, void *name, int *anamelen); } 10331 NOARGS { int sys_getpeername(int fdes, void *asa, \ 104 int *alen); } 10532 NOARGS { int sys_getsockname(int fdes, void *asa, \ 106 int *alen); } 10733 NOARGS { int sys_access(const char *path, int flags); } 10834 NOARGS { int sys_chflags(const char *path, int flags); } 10935 NOARGS { int sys_fchflags(int fd, int flags); } 11036 NOARGS { int sys_sync(void); } 11137 NOARGS { int sys_kill(int pid, int signum); } 11238 NOARGS { int compat_43_sys_stat(const char *path, \ 113 struct stat43 *ub); } stat43 11439 NOARGS { pid_t sys_getppid(void); } 11540 NOARGS { int compat_43_sys_lstat(const char *path, \ 116 struct stat43 *ub); } lstat43 11741 NOARGS { int sys_dup(u_int fd); } 11842 NOARGS { int sys_pipe(void); } 11943 NOARGS { gid_t sys_getegid(void); } 12044 NOARGS { int sys_profil(void *samples, u_int size, \ 121 u_int offset, u_int scale); } 122#ifdef KTRACE 12345 NOARGS { int sys_ktrace(char *fname, int ops, int facs, \ 124 int pid); } 125#else 12645 EXCL ktrace 127#endif 12846 NOARGS { int compat_13_sys_sigaction(int signum, \ 129 const struct sigaction13 *nsa, \ 130 struct sigaction13 *osa); } 13147 NOARGS { gid_t sys_getgid_with_egid(void); } 13248 NOARGS { int compat_13_sys_sigprocmask(int how, \ 133 int mask); } 13449 NOARGS { int sys___getlogin(char *namebuf, u_int namelen); } 13550 NOARGS { int sys___setlogin(char *namebuf); } 13651 NOARGS { int sys_acct(char *path); } 13752 NOARGS { int compat_13_sys_sigpending(void); } 13853 NOARGS { int compat_13_sys_sigaltstack( \ 139 const struct sigaltstack13 *nss, \ 140 struct sigaltstack13 *oss); } 14154 STD { int freebsd_sys_ioctl(int fd, u_long com, \ 142 void *data); } 14355 NOARGS { int sys_reboot(int opt); } oreboot 14456 NOARGS { int sys_revoke(const char *path); } 14557 NOARGS { int sys_symlink(const char *path, const char *link); } 14658 NOARGS { int sys_readlink(const char *path, \ 147 char *buf, int count); } 14859 NOARGS { int sys_execve(const char *path, \ 149 char **argp, char **envp); } 15060 NOARGS { int sys_umask(int newmask); } 15161 NOARGS { int sys_chroot(const char *path); } 15262 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } \ 153 fstat43 15463 NOARGS { int compat_43_sys_getkerninfo(int op, char *where, \ 155 int *size, int arg); } ogetkerninfo 15664 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize 15765 STD { int freebsd_sys_msync(void *addr, size_t len, \ 158 int flags); } 15966 NOARGS { int sys_vfork(void); } 16067 OBSOL vread 16168 OBSOL vwrite 16269 NOARGS { int sys_sbrk(intptr_t incr); } 16370 NOARGS { int sys_sstk(int incr); } 16471 NOARGS { int compat_43_sys_mmap(void *addr, size_t len, \ 165 int prot, int flags, int fd, long pos); } ommap 16672 NOARGS { int sys_ovadvise(int anom); } vadvise 16773 NOARGS { int sys_munmap(void *addr, size_t len); } 16874 NOARGS { int sys_mprotect(void *addr, size_t len, \ 169 int prot); } 17075 NOARGS { int sys_madvise(void *addr, size_t len, \ 171 int behav); } 17276 OBSOL vhangup 17377 OBSOL vlimit 17478 NOARGS { int sys_mincore(void *addr, size_t len, char *vec); } 17579 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 17680 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 17781 NOARGS { int sys_getpgrp(void); } 17882 NOARGS { int sys_setpgid(int pid, int pgid); } 17983 NOARGS { int sys_setitimer(u_int which, \ 180 struct itimerval *itv, struct itimerval *oitv); } 18184 NOARGS { int compat_43_sys_wait(void); } owait 18285 NOARGS { int compat_12_sys_swapon(char *name); } 18386 NOARGS { int sys_getitimer(u_int which, \ 184 struct itimerval *itv); } 18587 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 186 u_int len); } ogethostname 18788 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 188 u_int len); } osethostname 18989 NOARGS { int compat_43_sys_getdtablesize(void); } \ 190 ogetdtablesize 19190 NOARGS { int sys_dup2(u_int from, u_int to); } 19291 UNIMPL getdopt 19392 NOARGS { int sys_fcntl(int fd, int cmd, void *arg); } 19493 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 195 fd_set *ex, struct timeval *tv); } 19694 UNIMPL setdopt 19795 NOARGS { int sys_fsync(int fd); } 19896 NOARGS { int sys_setpriority(int which, int who, int prio); } 19997 NOARGS { int compat_30_sys_socket(int domain, int type, int protocol); } 20098 NOARGS { int sys_connect(int s, void *name, int namelen); } 20199 NOARGS { int compat_43_sys_accept(int s, void *name, \ 202 int *anamelen); } oaccept 203100 NOARGS { int sys_getpriority(int which, int who); } 204101 NOARGS { int compat_43_sys_send(int s, void *buf, int len, \ 205 int flags); } osend 206102 NOARGS { int compat_43_sys_recv(int s, void *buf, int len, \ 207 int flags); } orecv 208103 STD { int freebsd_sys_sigreturn( \ 209 struct freebsd_sigcontext *scp); } 210104 NOARGS { int sys_bind(int s, void *name, int namelen); } 211105 NOARGS { int sys_setsockopt(int s, int level, int name, \ 212 void *val, int valsize); } 213106 NOARGS { int sys_listen(int s, int backlog); } 214107 OBSOL vtimes 215108 NOARGS { int compat_43_sys_sigvec(int signum, \ 216 struct sigvec *nsv, struct sigvec *osv); } osigvec 217109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock 218110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask 219111 NOARGS { int compat_13_sys_sigsuspend(int mask); } 220112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 221 struct sigstack *oss); } osigstack 222113 NOARGS { int compat_43_sys_recvmsg(int s, \ 223 struct omsghdr *msg, int flags); } orecvmsg 224114 NOARGS { int compat_43_sys_sendmsg(int s, void *msg, \ 225 int flags); } osendmsg 226#ifdef TRACE 227115 NOARGS { int sys_vtrace(int request, int value); } 228#else 229115 OBSOL vtrace 230#endif 231116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 232 struct timezone *tzp); } 233117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 234118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 235 void *val, int *avalsize); } 236119 OBSOL resuba 237120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 238 u_int iovcnt); } 239121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 240 u_int iovcnt); } 241122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 242 struct timezone *tzp); } 243123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 244124 NOARGS { int sys_fchmod(int fd, int mode); } 245125 NOARGS { int compat_43_sys_recvfrom(int s, void *buf, \ 246 size_t len, int flags, void *from, \ 247 int *fromlenaddr); } orecvfrom 248126 NOARGS { int sys_setreuid(int ruid, int euid); } 249127 NOARGS { int sys_setregid(int rgid, int egid); } 250128 NOARGS { int sys_rename(const char *from, const char *to); } 251129 NOARGS { int compat_43_sys_truncate(const char *path, \ 252 long length); } otruncate 253130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } \ 254 oftruncate 255131 NOARGS { int sys_flock(int fd, int how); } 256132 NOARGS { int sys_mkfifo(const char *path, int mode); } 257133 NOARGS { int sys_sendto(int s, void *buf, size_t len, \ 258 int flags, void *to, int tolen); } 259134 NOARGS { int sys_shutdown(int s, int how); } 260135 NOARGS { int sys_socketpair(int domain, int type, \ 261 int protocol, int *rsv); } 262136 NOARGS { int sys_mkdir(const char *path, int mode); } 263137 NOARGS { int sys_rmdir(const char *path); } 264138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 265139 OBSOL 4.2 sigreturn 266140 NOARGS { int sys_adjtime(struct timeval *delta, \ 267 struct timeval *olddelta); } 268141 NOARGS { int compat_43_sys_getpeername(int fdes, void *asa, \ 269 int *alen); } ogetpeername 270142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid 271143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } \ 272 osethostid 273144 NOARGS { int compat_43_sys_getrlimit(u_int which, \ 274 struct orlimit *rlp); } ogetrlimit 275145 NOARGS { int compat_43_sys_setrlimit(u_int which, \ 276 struct orlimit *rlp); } osetrlimit 277146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \ 278 okillpg 279147 NOARGS { int sys_setsid(void); } 280148 NOARGS { int sys_quotactl(char *path, int cmd, int uid, \ 281 void *arg); } 282149 NOARGS { int compat_43_sys_quota(void); } oquota 283150 NOARGS { int compat_43_sys_getsockname(int fdec, void *asa, \ 284 int *alen); } ogetsockname 285 286; Syscalls 151-180 inclusive are reserved for vendor-specific 287; system calls. (This includes various calls added for compatibity 288; with other Unix variants.) 289; Some of these calls are now supported by BSD... 290151 UNIMPL sem_lock 291152 UNIMPL sem_wakeup 292153 UNIMPL asyncdaemon 293154 UNIMPL 294155 UNIMPL nfssvc 295156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \ 296 u_int count, long *basep); } ogetdirentries 297157 NOARGS { int compat_20_sys_statfs(const char *path, \ 298 struct statfs12 *buf); } 299158 NOARGS { int compat_20_sys_fstatfs(int fd, \ 300 struct statfs12 *buf); } 301159 UNIMPL 302160 UNIMPL 303#ifdef NFS 304161 NOARGS { int compat_30_sys_getfh(const char *fname, \ 305 struct compat_30_fhandle *fhp); } 306#else 307161 UNIMPL getfh 308#endif 309162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 310 int len); } 311163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 312 int len); } 313164 NOARGS { int compat_09_sys_uname(struct outsname *name); } 314165 NOARGS { int sys_sysarch(int op, char *parms); } 315166 STD { int freebsd_sys_rtprio(int function, pid_t pid, \ 316 struct freebsd_rtprio *rtp); } 317167 UNIMPL 318168 UNIMPL 319; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 320#if defined(SYSVSEM) && !defined(_LP64) 321169 STD { int freebsd_sys_semsys(int which, int a2, int a3, \ 322 int a4, int a5); } 323#else 324169 UNIMPL 1.0 semsys 325#endif 326; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 327#if defined(SYSVMSG) && !defined(_LP64) 328170 STD { int freebsd_sys_msgsys(int which, int a2, int a3, \ 329 int a4, int a5, int a6); } 330#else 331170 UNIMPL 1.0 msgsys 332#endif 333; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 334#if defined(SYSVSHM) && !defined(_LP64) 335171 STD { int freebsd_sys_shmsys(int which, int a2, int a3, \ 336 int a4); } 337#else 338171 UNIMPL 1.0 shmsys 339#endif 340172 UNIMPL 341173 NOARGS { ssize_t sys_pread(int fd, void *buf, \ 342 size_t nbyte, int pad, off_t offset); } 343174 NOARGS { ssize_t sys_pwrite(int fd, const void *buf, \ 344 size_t nbyte, int pad, off_t offset); } 345175 UNIMPL 346#ifdef NTP 347176 STD { int freebsd_ntp_adjtime(struct freebsd_timex *tp); } 348#else 349176 EXCL ntp_adjtime 350#endif 351177 UNIMPL sfork 352178 UNIMPL getdescriptor 353179 UNIMPL setdescriptor 354180 UNIMPL 355 356; Syscalls 180-199 are used by/reserved for BSD 357181 NOARGS { int sys_setgid(gid_t gid); } 358182 NOARGS { int sys_setegid(gid_t egid); } 359183 NOARGS { int sys_seteuid(uid_t euid); } 360#ifdef LFS 361184 NOARGS { int sys_lfs_bmapv(fsid_t *fsidp, \ 362 struct block_info *blkiov, int blkcnt); } 363185 NOARGS { int sys_lfs_markv(fsid_t *fsidp, \ 364 struct block_info *blkiov, int blkcnt); } 365186 NOARGS { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 366187 NOARGS { int sys_lfs_segwait(fsid_t *fsidp, struct timeval *tv); } 367#else 368184 UNIMPL 369185 UNIMPL 370186 UNIMPL 371187 UNIMPL 372#endif 373188 NOARGS { int compat_12_sys_stat(const char *path, \ 374 struct stat12 *ub); } 375189 NOARGS { int compat_12_sys_fstat(int fd, \ 376 struct stat12 *sb); } 377190 NOARGS { int compat_12_sys_lstat(const char *path, \ 378 struct stat12 *ub); } 379191 NOARGS { int sys_pathconf(const char *path, int name); } 380192 NOARGS { int sys_fpathconf(int fd, int name); } 381193 UNIMPL 382194 NOARGS { int sys_getrlimit(u_int which, struct rlimit *rlp); } 383195 NOARGS { int sys_setrlimit(u_int which, struct rlimit *rlp); } 384196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ 385 u_int count, long *basep); } 386197 STD { void *freebsd_sys_mmap(void *addr, size_t len, \ 387 int prot, int flags, int fd, long pad, off_t pos); } 388198 NOARGS { int sys_nosys(void); } __syscall 389199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \ 390 int whence); } 391200 NOARGS { int sys_truncate(const char *path, int pad, \ 392 off_t length); } 393201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); } 394202 STD { int freebsd_sys_sysctl(int *name, u_int namelen, \ 395 void *old, size_t *oldlenp, void *new, \ 396 size_t newlen); } 397203 NOARGS { int sys_mlock(void *addr, size_t len); } 398204 NOARGS { int sys_munlock(void *addr, size_t len); } 399#ifdef FREEBSD_BASED_ON_44LITE_R2 400205 STD { int freebsd_sys_undelete(char *path); } 401#else 402205 UNIMPL undelete 403#endif 404206 NOARGS { int sys_futimes(int fd, const struct timeval *tptr); } 405207 NOARGS { pid_t sys_getpgid(pid_t pid); } 406#if 0 407208 NOARGS { int sys_reboot(int opt, char *bootstr); } 408#else 409208 UNIMPL newreboot 410#endif 411209 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ 412 int timeout); } 413; 414; Syscalls 210-219 are reserved for dynamically loaded syscalls 415; 416210 UNIMPL 417211 UNIMPL 418212 UNIMPL 419213 UNIMPL 420214 UNIMPL 421215 UNIMPL 422216 UNIMPL 423217 UNIMPL 424218 UNIMPL 425219 UNIMPL 426; 427; Syscalls 220-239 are reserved for syscalls imported from NetBSD 428; 429#ifdef SYSVSEM 430220 NOARGS { int compat_14_sys___semctl(int semid, int semnum, \ 431 int cmd, union __semun *arg); } 432221 NOARGS { int sys_semget(key_t key, int nsems, int semflg); } 433222 NOARGS { int sys_semop(int semid, struct sembuf *sops, \ 434 u_int nsops); } 435223 NOARGS { int sys_semconfig(int flag); } 436#else 437220 UNIMPL semctl 438221 UNIMPL semget 439222 UNIMPL semop 440223 UNIMPL semconfig 441#endif 442#ifdef SYSVMSG 443224 NOARGS { int compat_14_sys_msgctl(int msqid, int cmd, \ 444 struct msqid14_ds *buf); } 445225 NOARGS { int sys_msgget(key_t key, int msgflg); } 446226 NOARGS { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \ 447 int msgflg); } 448227 NOARGS { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ 449 long msgtyp, int msgflg); } 450#else 451224 UNIMPL msgctl 452225 UNIMPL msgget 453226 UNIMPL msgsnd 454227 UNIMPL msgrcv 455#endif 456#ifdef SYSVSHM 457228 NOARGS { int sys_shmat(int shmid, void *shmaddr, int shmflg); } 458229 NOARGS { int compat_14_sys_shmctl(int shmid, int cmd, \ 459 struct shmid_ds14 *buf); } 460230 NOARGS { int sys_shmdt(void *shmaddr); } 461231 NOARGS { int sys_shmget(key_t key, int size, int shmflg); } 462#else 463228 UNIMPL shmat 464229 UNIMPL shmctl 465230 UNIMPL shmdt 466231 UNIMPL shmget 467#endif 468; 469; XXXX 470232 NOARGS { int sys_clock_gettime(clockid_t clock_id, \ 471 struct timespec *tp); } 472233 NOARGS { int sys_clock_settime(clockid_t clock_id, \ 473 const struct timespec *tp); } 474234 NOARGS { int sys_clock_getres(clockid_t clock_id, \ 475 struct timespec *tp); } 476235 UNIMPL timer_create 477236 UNIMPL timer_delete 478237 UNIMPL timer_settime 479238 UNIMPL timer_gettime 480239 UNIMPL timer_getoverrun 481240 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \ 482 struct timespec *rmtp); } 483241 UNIMPL 484242 UNIMPL 485243 UNIMPL 486244 UNIMPL 487245 UNIMPL 488246 UNIMPL 489247 UNIMPL 490248 UNIMPL 491249 UNIMPL 492; syscall numbers initially used in OpenBSD 493250 NOARGS { int sys_minherit(void *addr, size_t len, \ 494 int inherit); } 495251 STD { int freebsd_sys_rfork(int flags); } 496252 UNIMPL openbsd_poll 497253 NOARGS { int sys_issetugid(void); } 498254 NOARGS { int sys_lchown(const char *path, int uid, int gid); } 499255 UNIMPL 500256 UNIMPL 501257 UNIMPL 502258 UNIMPL 503259 UNIMPL 504260 UNIMPL 505261 UNIMPL 506262 UNIMPL 507263 UNIMPL 508264 UNIMPL 509265 UNIMPL 510266 UNIMPL 511267 UNIMPL 512268 UNIMPL 513269 UNIMPL 514270 UNIMPL 515271 UNIMPL 516272 NOARGS { int compat_30_sys_getdents(int fd, char *buf, size_t count); } 517273 UNIMPL 518274 NOARGS { int sys_lchmod(const char *path, mode_t mode); } 519275 NOARGS { int sys_lchown(const char *path, uid_t uid, \ 520 gid_t gid); } netbsd_lchown 521276 NOARGS { int sys_lutimes(const char *path, \ 522 const struct timeval *tptr); } 523277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); } 524278 NOARGS { int compat_30_sys___stat13(const char *path, struct stat13 *ub); } 525279 NOARGS { int compat_30_sys___fstat13(int fd, struct stat13 *sb); } 526280 NOARGS { int compat_30_sys___lstat13(const char *path, struct stat13 *ub);} 527281 UNIMPL 528282 UNIMPL 529283 UNIMPL 530284 UNIMPL 531285 UNIMPL 532286 UNIMPL 533287 UNIMPL 534288 UNIMPL 535289 UNIMPL 536290 UNIMPL 537291 UNIMPL 538292 UNIMPL 539293 UNIMPL 540294 UNIMPL 541295 UNIMPL 542296 UNIMPL 543297 NOARGS { int compat_20_sys_fhstatfs(const struct \ 544 compat_30_fhandle *fhp, \ 545 struct statfs12 *buf); } 546298 NOARGS { int compat_30_sys_fhopen(const \ 547 struct compat_30_fhandle *fhp, int flags); } 548299 NOARGS { int compat_30_sys_fhstat(const \ 549 struct cocmpat_30_fhandlez *fhp, \ 550 struct stat13 *sb); } 551; syscall numbers for FreeBSD 552300 UNIMPL modnext 553301 UNIMPL modstat 554302 UNIMPL modfnext 555303 UNIMPL modfind 556304 UNIMPL kldload 557305 UNIMPL kldunload 558306 UNIMPL kldfind 559307 UNIMPL kldnext 560308 UNIMPL kldstat 561309 UNIMPL kldfirstmod 562310 NOARGS { pid_t sys_getsid(pid_t pid); } 563311 UNIMPL setresuid 564312 UNIMPL setresgid 565313 UNIMPL signanosleep 566314 UNIMPL aio_return 567315 UNIMPL aio_suspend 568316 UNIMPL aio_cancel 569317 UNIMPL aio_error 570318 UNIMPL aio_read 571319 UNIMPL aio_write 572320 UNIMPL lio_listio 573321 NOARGS { void freebsd_sys_yield(void); } 574322 UNIMPL thr_sleep 575323 UNIMPL thr_wakeup 576324 NOARGS { int sys_mlockall(int flags); } 577325 NOARGS { int sys_munlockall(void); } 578326 NOARGS { int sys___getcwd(char *bufp, size_t length); } 579327 STD { int freebsd_sys_sched_setparam(pid_t pid, \ 580 const struct freebsd_sched_param *sp); } 581328 STD { int freebsd_sys_sched_getparam(pid_t pid, \ 582 struct freebsd_sched_param *sp); } 583329 STD { int freebsd_sys_sched_setscheduler(pid_t pid, \ 584 int policy, const struct sched_param *sp); } 585330 STD { int freebsd_sys_sched_getscheduler(pid_t pid); } 586331 STD { int freebsd_sys_sched_yield(void); } 587332 STD { int freebsd_sys_sched_get_priority_max(int policy); } 588333 STD { int freebsd_sys_sched_get_priority_min(int policy); } 589334 UNIMPL sched_rr_get_interval 590335 STD { int freebsd_sys_utrace(void *addr, size_t len); } 591336 UNIMPL sendfile 592337 UNIMPL kldsym 593338 UNIMPL jail 594339 UNIMPL pioctl 595340 NOARGS { int sys___sigprocmask14(int how, \ 596 const sigset_t *set, \ 597 sigset_t *oset); } 598341 NOARGS { int sys___sigsuspend14(const sigset_t *set); } 599342 STD { int freebsd_sys_sigaction4(int signum, \ 600 const struct freebsd_sigaction4 *nsa, \ 601 struct freebsd_sigaction4 *osa); } 602343 NOARGS { int sys___sigpending14(const sigset_t *set); } 603344 UNIMPL 4.0 sigreturn 604345 UNIMPL sigtimedwait 605346 UNIMPL sigwaitinfo 606347 UNIMPL __acl_get_file 607348 UNIMPL __acl_set_file 608349 UNIMPL __acl_get_fd 609350 UNIMPL __acl_set_fd 610351 UNIMPL __acl_delete_file 611352 UNIMPL __acl_delete_fd 612353 UNIMPL __acl_aclcheck_file 613354 UNIMPL __acl_aclcheck_fd 614355 UNIMPL extattrctl 615356 UNIMPL extattr_set_file 616357 UNIMPL extattr_get_file 617358 UNIMPL extattr_delete_file 618359 UNIMPL aio_waitcomplete 619360 UNIMPL getresuid 620361 UNIMPL getresgid 621362 UNIMPL kqueue 622363 UNIMPL kevent 623364 UNIMPL __cap_get_proc 624365 UNIMPL __cap_set_proc 625366 UNIMPL __cap_get_fd 626367 UNIMPL __cap_get_file 627368 UNIMPL __cap_set_fd 628369 UNIMPL __cap_set_file 629370 UNIMPL lkmressym 630371 UNIMPL extattr_set_fd 631372 UNIMPL extattr_get_fd 632373 UNIMPL extattr_delete_fd 633374 UNIMPL __setugid 634375 UNIMPL nfsclnt 635376 UNIMPL eaccess 636377 UNIMPL afs_syscall 637378 UNIMPL nmount 638379 UNIMPL kse_exit 639380 UNIMPL kse_wakeup 640381 UNIMPL kse_create 641382 UNIMPL kse_thr_interrupt 642383 UNIMPL kse_release 643384 UNIMPL __mac_get_proc 644385 UNIMPL __mac_set_proc 645386 UNIMPL __mac_get_fd 646387 UNIMPL __mac_get_file 647388 UNIMPL __mac_set_fd 648389 UNIMPL __mac_set_file 649390 UNIMPL kenv 650391 NOARGS { int sys_lchflags(const char *path, u_long flags); } 651392 NOARGS { int sys_uuidgen(struct uuid *store, int count); } 652393 UNIMPL sendfile 653394 UNIMPL mac_syscall 654395 UNIMPL getfsstat 655396 UNIMPL statfs 656397 UNIMPL fsstatfs 657398 UNIMPL fhstatfs 658399 UNIMPL nosys 659#if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL) 660400 NOARGS { int sys__ksem_close(intptr_t id); } 661401 NOARGS { int sys__ksem_post(intptr_t id); } 662402 NOARGS { int sys__ksem_wait(intptr_t id); } 663403 NOARGS { int sys__ksem_trywait(intptr_t id); } 664404 UNIMPL ksem_init 665405 UNIMPL ksem_open 666406 NOARGS { int sys__ksem_unlink(const char *name); } 667407 NOARGS { int sys__ksem_getvalue(intptr_t id, \ 668 unsigned int *value); } 669408 NOARGS { int sys__ksem_destroy(intptr_t id); } 670#else 671400 EXCL ksem_close 672401 EXCL ksem_post 673402 EXCL ksem_wait 674403 EXCL ksem_trywait 675404 EXCL ksem_init 676405 EXCL ksem_open 677406 EXCL ksem_unlink 678407 EXCL ksem_getvalue 679408 EXCL ksem_destroy 680#endif 681409 UNIMPL __mac_get_pid 682410 UNIMPL __mac_get_link 683411 UNIMPL __mac_set_link 684412 UNIMPL extattr_set_link 685413 UNIMPL extattr_get_link 686414 UNIMPL extattr_delete_link 687415 UNIMPL __mac_execve 688416 UNIMPL sigaction 689417 UNIMPL sigreturn 690418 UNIMPL __xstat 691419 UNIMPL __xfstat 692420 UNIMPL __xlstat 693421 UNIMPL getcontext 694422 UNIMPL setcontext 695423 UNIMPL swapcontext 696424 UNIMPL swapoff 697425 UNIMPL __acl_get_link 698426 UNIMPL __acl_set_link 699427 UNIMPL __acl_delete_link 700428 UNIMPL __acl_aclcheck_link 701429 UNIMPL sigwait 702430 UNIMPL thr_create 703431 UNIMPL thr_exit 704432 UNIMPL thr_self 705433 UNIMPL thr_kill 706434 UNIMPL _umtx_lock 707435 UNIMPL _umtx_unlock 708436 UNIMPL jail_attach 709437 UNIMPL extattr_list_fd 710438 UNIMPL extattr_list_file 711439 UNIMPL extattr_list_link 712