syscalls.master revision 1.31
1 $NetBSD: syscalls.master,v 1.31 2000/11/30 19:05:26 jdolecek 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 34if defined(_KERNEL) && !defined(_LKM) 35#include "opt_ktrace.h" 36#include "opt_nfsserver.h" 37#include "opt_ntp.h" 38#include "opt_sysv.h" 39#include "opt_compat_43.h" 40 41#include "fs_lfs.h" 42#include "fs_nfs.h" 43endif 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/signal.h> 48#include <sys/mount.h> 49#include <sys/syscallargs.h> 50 51#include <compat/freebsd/freebsd_syscallargs.h> 52 53#include <machine/freebsd_machdep.h> 54 55; Reserved/unimplemented system calls in the range 0-150 inclusive 56; are reserved for use in future Berkeley releases. 57; Additional system calls implemented in vendor and other 58; redistributions should be placed in the reserved range at the end 59; of the current calls. 60 610 NOARGS { int sys_nosys(void); } syscall 621 NOARGS { int sys_exit(int rval); } 632 NOARGS { int sys_fork(void); } 643 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 654 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 665 STD { int freebsd_sys_open(const char *path, int flags, \ 67 int mode); } 686 NOARGS { int sys_close(int fd); } 697 NOARGS { int sys_wait4(int pid, int *status, int options, \ 70 struct rusage *rusage); } 718 STD { int compat_43_freebsd_sys_creat(const char *path, \ 72 int mode); } ocreat 739 STD { int freebsd_sys_link(const char *path, \ 74 const char *link); } 7510 STD { int freebsd_sys_unlink(const char *path); } 7611 OBSOL execv 7712 STD { int freebsd_sys_chdir(const char *path); } 7813 NOARGS { int sys_fchdir(int fd); } 7914 STD { int freebsd_sys_mknod(const char *path, int mode, \ 80 int dev); } 8115 STD { int freebsd_sys_chmod(const char *path, int mode); } 8216 STD { int freebsd_sys_chown(const char *path, int uid, \ 83 int gid); } 8417 NOARGS { int sys_obreak(char *nsize); } break 8518 NOARGS { int sys_getfsstat(struct statfs *buf, long bufsize, \ 86 int flags); } 8719 NOARGS { long compat_43_sys_lseek(int fd, long offset, \ 88 int whence); } olseek 8920 NOARGS { pid_t sys_getpid(void); } 9021 STD { int freebsd_sys_mount(int type, const char *path, \ 91 int flags, caddr_t data); } 9222 STD { int freebsd_sys_unmount(const char *path, \ 93 int flags); } 9423 NOARGS { int sys_setuid(uid_t uid); } 9524 NOARGS { uid_t sys_getuid(void); } 9625 NOARGS { uid_t sys_geteuid(void); } 9726 STD { int freebsd_sys_ptrace(int req, pid_t pid, \ 98 caddr_t addr, int data); } 9927 NOARGS { int sys_recvmsg(int s, struct msghdr *msg, \ 100 int flags); } 10128 NOARGS { int sys_sendmsg(int s, caddr_t msg, int flags); } 10229 NOARGS { int sys_recvfrom(int s, caddr_t buf, size_t len, \ 103 int flags, caddr_t from, int *fromlenaddr); } 10430 NOARGS { int sys_accept(int s, caddr_t name, int *anamelen); } 10531 NOARGS { int sys_getpeername(int fdes, caddr_t asa, \ 106 int *alen); } 10732 NOARGS { int sys_getsockname(int fdes, caddr_t asa, \ 108 int *alen); } 10933 STD { int freebsd_sys_access(const char *path, int flags); } 11034 STD { int freebsd_sys_chflags(const char *path, \ 111 int flags); } 11235 NOARGS { int sys_fchflags(int fd, int flags); } 11336 NOARGS { int sys_sync(void); } 11437 NOARGS { int sys_kill(int pid, int signum); } 11538 STD { int compat_43_freebsd_sys_stat(const char *path, \ 116 struct stat43 *ub); } stat43 11739 NOARGS { pid_t sys_getppid(void); } 11840 STD { int compat_43_freebsd_sys_lstat(const char *path, \ 119 struct stat43 *ub); } lstat43 12041 NOARGS { int sys_dup(u_int fd); } 12142 NOARGS { int sys_pipe(void); } 12243 NOARGS { gid_t sys_getegid(void); } 12344 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 124 u_int offset, u_int scale); } 125#ifdef KTRACE 12645 NOARGS { int sys_ktrace(char *fname, int ops, int facs, \ 127 int pid); } 128#else 12945 UNIMPL ktrace 130#endif 13146 NOARGS { int compat_13_sys_sigaction(int signum, \ 132 const struct sigaction13 *nsa, \ 133 struct sigaction13 *osa); } 13447 NOARGS { gid_t sys_getgid(void); } 13548 NOARGS { int compat_13_sys_sigprocmask(int how, \ 136 int mask); } 13749 NOARGS { int sys___getlogin(char *namebuf, u_int namelen); } 13850 NOARGS { int sys_setlogin(char *namebuf); } 13951 NOARGS { int sys_acct(char *path); } 14052 NOARGS { int compat_13_sys_sigpending(void); } 14153 NOARGS { int compat_13_sys_sigaltstack( \ 142 const struct sigaltstack13 *nss, \ 143 struct sigaltstack13 *oss); } 14454 STD { int freebsd_sys_ioctl(int fd, u_long com, \ 145 caddr_t data); } 14655 NOARGS { int sys_reboot(int opt); } oreboot 14756 STD { int freebsd_sys_revoke(const char *path); } 14857 STD { int freebsd_sys_symlink(const char *path, \ 149 const char *link); } 15058 STD { int freebsd_sys_readlink(const char *path, \ 151 char *buf, int count); } 15259 STD { int freebsd_sys_execve(const char *path, \ 153 char **argp, char **envp); } 15460 NOARGS { int sys_umask(int newmask); } 15561 STD { int freebsd_sys_chroot(const char *path); } 15662 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } \ 157 fstat43 15863 NOARGS { int compat_43_sys_getkerninfo(int op, char *where, \ 159 int *size, int arg); } ogetkerninfo 16064 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize 16165 STD { int freebsd_sys_msync(caddr_t addr, size_t len, \ 162 int flags); } 16366 NOARGS { int sys_vfork(void); } 16467 OBSOL vread 16568 OBSOL vwrite 16669 NOARGS { int sys_sbrk(intptr_t incr); } 16770 NOARGS { int sys_sstk(int incr); } 16871 NOARGS { int compat_43_sys_mmap(caddr_t addr, size_t len, \ 169 int prot, int flags, int fd, long pos); } ommap 17072 NOARGS { int sys_ovadvise(int anom); } vadvise 17173 NOARGS { int sys_munmap(caddr_t addr, size_t len); } 17274 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \ 173 int prot); } 17475 NOARGS { int sys_madvise(caddr_t addr, size_t len, \ 175 int behav); } 17676 OBSOL vhangup 17777 OBSOL vlimit 17878 NOARGS { int sys_mincore(caddr_t addr, size_t len, char *vec); } 17979 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 18080 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 18181 NOARGS { int sys_getpgrp(void); } 18282 NOARGS { int sys_setpgid(int pid, int pgid); } 18383 NOARGS { int sys_setitimer(u_int which, \ 184 struct itimerval *itv, struct itimerval *oitv); } 18584 NOARGS { int compat_43_sys_wait(void); } owait 18685 NOARGS { int compat_12_sys_swapon(char *name); } 18786 NOARGS { int sys_getitimer(u_int which, \ 188 struct itimerval *itv); } 18987 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 190 u_int len); } ogethostname 19188 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 192 u_int len); } osethostname 19389 NOARGS { int compat_43_sys_getdtablesize(void); } \ 194 ogetdtablesize 19590 NOARGS { int sys_dup2(u_int from, u_int to); } 19691 UNIMPL getdopt 19792 NOARGS { int sys_fcntl(int fd, int cmd, void *arg); } 19893 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 199 fd_set *ex, struct timeval *tv); } 20094 UNIMPL setdopt 20195 NOARGS { int sys_fsync(int fd); } 20296 NOARGS { int sys_setpriority(int which, int who, int prio); } 20397 NOARGS { int sys_socket(int domain, int type, int protocol); } 20498 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 20599 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 206 int *anamelen); } oaccept 207100 NOARGS { int sys_getpriority(int which, int who); } 208101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 209 int flags); } osend 210102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 211 int flags); } orecv 212103 STD { int freebsd_sys_sigreturn( \ 213 struct freebsd_sigcontext *scp); } 214104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 215105 NOARGS { int sys_setsockopt(int s, int level, int name, \ 216 caddr_t val, int valsize); } 217106 NOARGS { int sys_listen(int s, int backlog); } 218107 OBSOL vtimes 219108 NOARGS { int compat_43_sys_sigvec(int signum, \ 220 struct sigvec *nsv, struct sigvec *osv); } osigvec 221109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock 222110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask 223111 NOARGS { int compat_13_sys_sigsuspend(int mask); } 224112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 225 struct sigstack *oss); } osigstack 226113 NOARGS { int compat_43_sys_recvmsg(int s, \ 227 struct omsghdr *msg, int flags); } orecvmsg 228114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 229 int flags); } osendmsg 230#ifdef TRACE 231115 NOARGS { int sys_vtrace(int request, int value); } 232#else 233115 OBSOL vtrace 234#endif 235116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 236 struct timezone *tzp); } 237117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 238118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 239 caddr_t val, int *avalsize); } 240119 OBSOL resuba 241120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 242 u_int iovcnt); } 243121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 244 u_int iovcnt); } 245122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 246 struct timezone *tzp); } 247123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 248124 NOARGS { int sys_fchmod(int fd, int mode); } 249125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 250 size_t len, int flags, caddr_t from, \ 251 int *fromlenaddr); } orecvfrom 252126 NOARGS { int sys_setreuid(int ruid, int euid); } 253127 NOARGS { int sys_setregid(int rgid, int egid); } 254128 STD { int freebsd_sys_rename(const char *from, \ 255 const char *to); } 256129 STD { int compat_43_freebsd_sys_truncate(const char *path, \ 257 long length); } otruncate 258130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } \ 259 oftruncate 260131 NOARGS { int sys_flock(int fd, int how); } 261132 STD { int freebsd_sys_mkfifo(const char *path, int mode); } 262133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 263 int flags, caddr_t to, int tolen); } 264134 NOARGS { int sys_shutdown(int s, int how); } 265135 NOARGS { int sys_socketpair(int domain, int type, \ 266 int protocol, int *rsv); } 267136 STD { int freebsd_sys_mkdir(const char *path, int mode); } 268137 STD { int freebsd_sys_rmdir(const char *path); } 269138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 270139 OBSOL 4.2 sigreturn 271140 NOARGS { int sys_adjtime(struct timeval *delta, \ 272 struct timeval *olddelta); } 273141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 274 int *alen); } ogetpeername 275142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid 276143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } \ 277 osethostid 278144 NOARGS { int compat_43_sys_getrlimit(u_int which, \ 279 struct orlimit *rlp); } ogetrlimit 280145 NOARGS { int compat_43_sys_setrlimit(u_int which, \ 281 struct orlimit *rlp); } osetrlimit 282146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \ 283 okillpg 284147 NOARGS { int sys_setsid(void); } 285148 NOARGS { int sys_quotactl(char *path, int cmd, int uid, \ 286 caddr_t arg); } 287149 NOARGS { int compat_43_sys_quota(void); } oquota 288150 NOARGS { int compat_43_sys_getsockname(int fdec, caddr_t asa, \ 289 int *alen); } ogetsockname 290 291; Syscalls 151-180 inclusive are reserved for vendor-specific 292; system calls. (This includes various calls added for compatibity 293; with other Unix variants.) 294; Some of these calls are now supported by BSD... 295151 UNIMPL sem_lock 296152 UNIMPL sem_wakeup 297153 UNIMPL asyncdaemon 298154 UNIMPL 299#if defined(NFS) || defined(NFSSERVER) 300155 NOARGS { int sys_nfssvc(int flag, caddr_t argp); } 301#else 302155 UNIMPL nfssvc 303#endif 304156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \ 305 u_int count, long *basep); } ogetdirentries 306157 STD { int freebsd_sys_statfs(const char *path, \ 307 struct statfs *buf); } 308158 NOARGS { int sys_fstatfs(int fd, struct statfs *buf); } 309159 UNIMPL 310160 UNIMPL 311#ifdef NFS 312161 STD { int freebsd_sys_getfh(const char *fname, \ 313 fhandle_t *fhp); } 314#else 315161 UNIMPL getfh 316#endif 317162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 318 int len); } 319163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 320 int len); } 321164 NOARGS { int compat_09_sys_uname(struct outsname *name); } 322165 NOARGS { int sys_sysarch(int op, char *parms); } 323166 STD { int freebsd_sys_rtprio(int function, pid_t pid, \ 324 struct freebsd_rtprio *rtp); } 325167 UNIMPL 326168 UNIMPL 327; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 328#if defined(SYSVSEM) && !defined(alpha) 329169 STD { int freebsd_sys_semsys(int which, int a2, int a3, \ 330 int a4, int a5); } 331#else 332169 UNIMPL 1.0 semsys 333#endif 334; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 335#if defined(SYSVMSG) && !defined(alpha) 336170 STD { int freebsd_sys_msgsys(int which, int a2, int a3, \ 337 int a4, int a5, int a6); } 338#else 339170 UNIMPL 1.0 msgsys 340#endif 341; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 342#if defined(SYSVSHM) && !defined(alpha) 343171 STD { int freebsd_sys_shmsys(int which, int a2, int a3, \ 344 int a4); } 345#else 346171 UNIMPL 1.0 shmsys 347#endif 348172 UNIMPL 349173 NOARGS { ssize_t sys_pread(int fd, void *buf, \ 350 size_t nbyte, int pad, off_t offset); } 351174 NOARGS { ssize_t sys_pwrite(int fd, const void *buf, \ 352 size_t nbyte, int pad, off_t offset); } 353175 UNIMPL 354#ifdef NTP 355176 STD { int freebsd_ntp_adjtime(struct freebsd_timex *tp); } 356#else 357176 EXCL ntp_adjtime 358#endif 359177 UNIMPL sfork 360178 UNIMPL getdescriptor 361179 UNIMPL setdescriptor 362180 UNIMPL 363 364; Syscalls 180-199 are used by/reserved for BSD 365181 NOARGS { int sys_setgid(gid_t gid); } 366182 NOARGS { int sys_setegid(gid_t egid); } 367183 NOARGS { int sys_seteuid(uid_t euid); } 368#ifdef LFS 369184 NOARGS { int sys_lfs_bmapv(fsid_t *fsidp, \ 370 struct block_info *blkiov, int blkcnt); } 371185 NOARGS { int sys_lfs_markv(fsid_t *fsidp, \ 372 struct block_info *blkiov, int blkcnt); } 373186 NOARGS { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 374187 NOARGS { int sys_lfs_segwait(fsid_t *fsidp, struct timeval *tv); } 375#else 376184 UNIMPL 377185 UNIMPL 378186 UNIMPL 379187 UNIMPL 380#endif 381188 STD { int freebsd_sys_stat(const char *path, \ 382 struct stat12 *ub); } 383189 NOARGS { int compat_12_sys_fstat(int fd, \ 384 struct stat12 *sb); } 385190 STD { int freebsd_sys_lstat(const char *path, \ 386 struct stat12 *ub); } 387191 STD { int freebsd_sys_pathconf(const char *path, \ 388 int name); } 389192 NOARGS { int sys_fpathconf(int fd, int name); } 390193 UNIMPL 391194 NOARGS { int sys_getrlimit(u_int which, struct rlimit *rlp); } 392195 NOARGS { int sys_setrlimit(u_int which, struct rlimit *rlp); } 393196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ 394 u_int count, long *basep); } 395197 NOARGS { caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \ 396 int flags, int fd, long pad, off_t pos); } 397198 NOARGS { int sys_nosys(void); } __syscall 398199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \ 399 int whence); } 400200 STD { int freebsd_sys_truncate(const char *path, int pad, \ 401 off_t length); } 402201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); } 403202 NOARGS { int sys___sysctl(int *name, u_int namelen, \ 404 void *old, size_t *oldlenp, void *new, \ 405 size_t newlen); } 406203 NOARGS { int sys_mlock(caddr_t addr, size_t len); } 407204 NOARGS { int sys_munlock(caddr_t addr, size_t len); } 408#ifdef FREEBSD_BASED_ON_44LITE_R2 409205 STD { int freebsd_sys_undelete(char *path); } 410#else 411205 UNIMPL undelete 412#endif 413206 NOARGS { int sys_futimes(int fd, const struct timeval *tptr); } 414207 NOARGS { pid_t sys_getpgid(pid_t pid); } 415#if 0 416208 NOARGS { int sys_reboot(int opt, char *bootstr); } 417#else 418208 UNIMPL newreboot 419#endif 420209 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ 421 int timeout); } 422; 423; Syscalls 210-219 are reserved for dynamically loaded syscalls 424; 425210 UNIMPL 426211 UNIMPL 427212 UNIMPL 428213 UNIMPL 429214 UNIMPL 430215 UNIMPL 431216 UNIMPL 432217 UNIMPL 433218 UNIMPL 434219 UNIMPL 435; 436; Syscalls 220-239 are reserved for syscalls imported from NetBSD 437; 438#ifdef SYSVSEM 439220 NOARGS { int compat_14_sys___semctl(int semid, int semnum, \ 440 int cmd, union __semun *arg); } 441221 NOARGS { int sys_semget(key_t key, int nsems, int semflg); } 442222 NOARGS { int sys_semop(int semid, struct sembuf *sops, \ 443 u_int nsops); } 444223 NOARGS { int sys_semconfig(int flag); } 445#else 446220 UNIMPL semctl 447221 UNIMPL semget 448222 UNIMPL semop 449223 UNIMPL semconfig 450#endif 451#ifdef SYSVMSG 452224 NOARGS { int compat_14_sys_msgctl(int msqid, int cmd, \ 453 struct msqid14_ds *buf); } 454225 NOARGS { int sys_msgget(key_t key, int msgflg); } 455226 NOARGS { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \ 456 int msgflg); } 457227 NOARGS { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ 458 long msgtyp, int msgflg); } 459#else 460224 UNIMPL msgctl 461225 UNIMPL msgget 462226 UNIMPL msgsnd 463227 UNIMPL msgrcv 464#endif 465#ifdef SYSVSHM 466228 NOARGS { int sys_shmat(int shmid, void *shmaddr, int shmflg); } 467229 NOARGS { int compat_14_sys_shmctl(int shmid, int cmd, \ 468 struct shmid_ds14 *buf); } 469230 NOARGS { int sys_shmdt(void *shmaddr); } 470231 NOARGS { int sys_shmget(key_t key, int size, int shmflg); } 471#else 472228 UNIMPL shmat 473229 UNIMPL shmctl 474230 UNIMPL shmdt 475231 UNIMPL shmget 476#endif 477; 478; XXXX 479232 NOARGS { int sys_clock_gettime(clockid_t clock_id, \ 480 struct timespec *tp); } 481233 NOARGS { int sys_clock_settime(clockid_t clock_id, \ 482 const struct timespec *tp); } 483234 NOARGS { int sys_clock_getres(clockid_t clock_id, \ 484 struct timespec *tp); } 485235 UNIMPL timer_create 486236 UNIMPL timer_delete 487237 UNIMPL timer_settime 488238 UNIMPL timer_gettime 489239 UNIMPL timer_getoverrun 490240 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \ 491 struct timespec *rmtp); } 492241 UNIMPL 493242 UNIMPL 494243 UNIMPL 495244 UNIMPL 496245 UNIMPL 497246 UNIMPL 498247 UNIMPL 499248 UNIMPL 500249 UNIMPL 501; syscall numbers initially used in OpenBSD 502250 UNIMPL minherit 503251 UNIMPL rfork 504252 UNIMPL openbsd_poll 505253 NOARGS { int sys_issetugid(void); } 506254 STD { int freebsd_sys_lchown(const char *path, int uid, \ 507 int gid); } 508255 UNIMPL 509256 UNIMPL 510257 UNIMPL 511258 UNIMPL 512259 UNIMPL 513260 UNIMPL 514261 UNIMPL 515262 UNIMPL 516263 UNIMPL 517264 UNIMPL 518265 UNIMPL 519266 UNIMPL 520267 UNIMPL 521268 UNIMPL 522269 UNIMPL 523270 UNIMPL 524271 UNIMPL 525272 NOARGS { int sys_getdents(int fd, char *buf, size_t count); } 526273 UNIMPL 527274 NOARGS { int sys_lchmod(const char *path, mode_t mode); } 528275 NOARGS { int sys_lchown(const char *path, uid_t uid, \ 529 gid_t gid); } netbsd_lchown 530276 NOARGS { int sys_lutimes(const char *path, \ 531 const struct timeval *tptr); } 532277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); } 533278 NOARGS { int sys___stat13(const char *path, struct stat *ub); } 534279 NOARGS { int sys___fstat13(int fd, struct stat *sb); } 535280 NOARGS { int sys___lstat13(const char *path, struct stat *ub);} 536281 UNIMPL 537282 UNIMPL 538283 UNIMPL 539284 UNIMPL 540285 UNIMPL 541286 UNIMPL 542287 UNIMPL 543288 UNIMPL 544289 UNIMPL 545290 UNIMPL 546291 UNIMPL 547292 UNIMPL 548293 UNIMPL 549294 UNIMPL 550295 UNIMPL 551296 UNIMPL 552297 UNIMPL fhstatfs 553298 UNIMPL fhopen 554299 UNIMPL fhstat 555; syscall numbers for FreeBSD 556300 UNIMPL modnext 557301 UNIMPL modstat 558302 UNIMPL modfnext 559303 UNIMPL modfind 560304 UNIMPL kldload 561305 UNIMPL kldunload 562306 UNIMPL kldfind 563307 UNIMPL kldnext 564308 UNIMPL kldstat 565309 UNIMPL kldfirstmod 566310 NOARGS { pid_t sys_getsid(pid_t pid); } 567311 UNIMPL setresuid 568312 UNIMPL setresgid 569313 UNIMPL signanosleep 570314 UNIMPL aio_return 571315 UNIMPL aio_suspend 572316 UNIMPL aio_cancel 573317 UNIMPL aio_error 574318 UNIMPL aio_read 575319 UNIMPL aio_write 576320 UNIMPL lio_listio 577321 UNIMPL yield 578322 UNIMPL thr_sleep 579323 UNIMPL thr_wakeup 580324 NOARGS { int sys_mlockall(int flags); } 581325 NOARGS { int sys_munlockall(void); } 582326 NOARGS { int sys___getcwd(char *bufp, size_t length); } 583327 UNIMPL sched_setparam 584328 UNIMPL sched_getparam 585329 UNIMPL sched_setscheduler 586330 UNIMPL sched_getscheduler 587331 UNIMPL sched_yield 588332 UNIMPL sched_get_priority_max 589333 UNIMPL sched_get_priority_min 590334 UNIMPL sched_rr_get_interval 591335 UNIMPL utrace 592336 UNIMPL sendfile 593337 UNIMPL kldsym 594338 UNIMPL jail 595339 UNIMPL pioctl 596340 NOARGS { int sys___sigprocmask14(int how, \ 597 const sigset_t *set, \ 598 sigset_t *oset); } 599341 NOARGS { int sys___sigsuspend14(const sigset_t *set); } 600342 STD { int freebsd_sys_sigaction4(int signum, \ 601 const struct freebsd_sigaction4 *nsa, \ 602 struct freebsd_sigaction4 *osa); } 603343 NOARGS { int sys___sigpending14(const sigset_t *set); } 604344 UNIMPL 4.0 sigreturn 605345 UNIMPL sigtimedwait 606346 UNIMPL sigwaitinfo 607347 UNIMPL __acl_get_file 608348 UNIMPL __acl_set_file 609349 UNIMPL __acl_get_fd 610350 UNIMPL __acl_set_fd 611351 UNIMPL __acl_delete_file 612352 UNIMPL __acl_delete_fd 613353 UNIMPL __acl_aclcheck_file 614354 UNIMPL __acl_aclcheck_fd 615355 UNIMPL extattrctl 616356 UNIMPL extattr_set_file 617357 UNIMPL extattr_get_file 618358 UNIMPL extattr_delete_file 619359 UNIMPL aio_waitcomplete 620360 UNIMPL getresuid 621361 UNIMPL getresgid 622362 UNIMPL kqueue 623363 UNIMPL kevent 624