syscalls.master revision 1.92
1 $NetBSD: syscalls.master,v 1.92 1999/06/09 04:25:30 christos Exp $ 2 3; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 4 5; NetBSD 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; EXCL implemented, but not included in system 18; NODEF included, but don't define the syscall number 19; NOARGS included, but don't define the syscall args structure 20; INDIR included, but don't define the syscall args structure, 21; and allow it to be "really" varargs. 22; 23; The compat options are defined in the syscalls.conf file, and the 24; compat option name is prefixed to the syscall name. Other than 25; that, they're like NODEF (for 'compat' options), or STD (for 26; 'libcompat' options). 27; 28; The type-dependent arguments are as follows: 29; For STD, NODEF, NOARGS, and compat syscalls: 30; { pseudo-proto } [alias] 31; For other syscalls: 32; [comment] 33; 34; #ifdef's, etc. may be included, and are copied to the output files. 35; #include's are copied to the syscall names and switch definition files only. 36 37#include "opt_ktrace.h" 38#include "opt_nfsserver.h" 39#include "opt_compat_netbsd.h" 40#include "opt_sysv.h" 41#include "opt_compat_43.h" 42 43#include "fs_lfs.h" 44#include "fs_nfs.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/signal.h> 49#include <sys/mount.h> 50#include <sys/syscallargs.h> 51 52; Reserved/unimplemented system calls in the range 0-150 inclusive 53; are reserved for use in future Berkeley releases. 54; Additional system calls implemented in vendor and other 55; redistributions should be placed in the reserved range at the end 56; of the current calls. 57 580 INDIR { int sys_syscall(int number, ...); } 591 STD { void sys_exit(int rval); } 602 STD { int sys_fork(void); } 613 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 624 STD { ssize_t sys_write(int fd, const void *buf, \ 63 size_t nbyte); } 645 STD { int sys_open(const char *path, \ 65 int flags, ... mode_t mode); } 666 STD { int sys_close(int fd); } 677 STD { int sys_wait4(int pid, int *status, int options, \ 68 struct rusage *rusage); } 698 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat 709 STD { int sys_link(const char *path, const char *link); } 7110 STD { int sys_unlink(const char *path); } 7211 OBSOL execv 7312 STD { int sys_chdir(const char *path); } 7413 STD { int sys_fchdir(int fd); } 7514 STD { int sys_mknod(const char *path, mode_t mode, \ 76 dev_t dev); } 7715 STD { int sys_chmod(const char *path, mode_t mode); } 7816 STD { int sys_chown(const char *path, uid_t uid, \ 79 gid_t gid); } 8017 STD { int sys_obreak(char *nsize); } break 8118 STD { int sys_getfsstat(struct statfs *buf, long bufsize, \ 82 int flags); } 8319 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \ 84 olseek 8520 STD { pid_t sys_getpid(void); } 8621 STD { int sys_mount(const char *type, const char *path, \ 87 int flags, void *data); } 8822 STD { int sys_unmount(const char *path, int flags); } 8923 STD { int sys_setuid(uid_t uid); } 9024 STD { uid_t sys_getuid(void); } 9125 STD { uid_t sys_geteuid(void); } 9226 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ 93 int data); } 9427 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ 95 int flags); } 9628 STD { ssize_t sys_sendmsg(int s, \ 97 const struct msghdr *msg, int flags); } 9829 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ 99 int flags, struct sockaddr *from, \ 100 unsigned int *fromlenaddr); } 10130 STD { int sys_accept(int s, struct sockaddr *name, \ 102 unsigned int *anamelen); } 10331 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \ 104 unsigned int *alen); } 10532 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \ 106 unsigned int *alen); } 10733 STD { int sys_access(const char *path, int flags); } 10834 STD { int sys_chflags(const char *path, u_long flags); } 10935 STD { int sys_fchflags(int fd, u_long flags); } 11036 STD { void sys_sync(void); } 11137 STD { int sys_kill(int pid, int signum); } 11238 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \ 113 stat43 11439 STD { pid_t sys_getppid(void); } 11540 COMPAT_43 { int sys_lstat(const char *path, \ 116 struct stat43 *ub); } lstat43 11741 STD { int sys_dup(int fd); } 11842 STD { int sys_pipe(void); } 11943 STD { gid_t sys_getegid(void); } 12044 STD { int sys_profil(caddr_t samples, size_t size, \ 121 u_long offset, u_int scale); } 122#if defined(KTRACE) || !defined(_KERNEL) 12345 STD { int sys_ktrace(const char *fname, int ops, \ 124 int facs, int pid); } 125#else 12645 EXCL ktrace 127#endif 12846 COMPAT_13 { int sys_sigaction(int signum, \ 129 const struct sigaction13 *nsa, \ 130 struct sigaction13 *osa); } sigaction13 13147 STD { gid_t sys_getgid(void); } 13248 COMPAT_13 { int sys_sigprocmask(int how, \ 133 int mask); } sigprocmask13 13449 STD { int sys___getlogin(char *namebuf, size_t namelen); } 13550 STD { int sys_setlogin(const char *namebuf); } 13651 STD { int sys_acct(const char *path); } 13752 COMPAT_13 { int sys_sigpending(void); } sigpending13 13853 COMPAT_13 { int sys_sigaltstack( \ 139 const struct sigaltstack13 *nss, \ 140 struct sigaltstack13 *oss); } sigaltstack13 14154 STD { int sys_ioctl(int fd, \ 142 u_long com, ... void *data); } 14355 COMPAT_12 { int sys_reboot(int opt); } oreboot 14456 STD { int sys_revoke(const char *path); } 14557 STD { int sys_symlink(const char *path, \ 146 const char *link); } 14758 STD { int sys_readlink(const char *path, char *buf, \ 148 size_t count); } 14959 STD { int sys_execve(const char *path, \ 150 char * const *argp, char * const *envp); } 15160 STD { mode_t sys_umask(mode_t newmask); } 15261 STD { int sys_chroot(const char *path); } 15362 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43 15463 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \ 155 int arg); } ogetkerninfo 15664 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 15765 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); } 158; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 15966 STD { int sys_vfork(void); } 16067 OBSOL vread 16168 OBSOL vwrite 16269 STD { int sys_sbrk(int incr); } 16370 STD { int sys_sstk(int incr); } 16471 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \ 165 int flags, int fd, long pos); } ommap 16672 STD { int sys_ovadvise(int anom); } vadvise 16773 STD { int sys_munmap(void *addr, size_t len); } 16874 STD { int sys_mprotect(void *addr, size_t len, \ 169 int prot); } 17075 STD { int sys_madvise(void *addr, size_t len, \ 171 int behav); } 17276 OBSOL vhangup 17377 OBSOL vlimit 17478 STD { int sys_mincore(void *addr, size_t len, \ 175 char *vec); } 17679 STD { int sys_getgroups(int gidsetsize, \ 177 gid_t *gidset); } 17880 STD { int sys_setgroups(int gidsetsize, \ 179 const gid_t *gidset); } 18081 STD { int sys_getpgrp(void); } 18182 STD { int sys_setpgid(int pid, int pgid); } 18283 STD { int sys_setitimer(int which, \ 183 const struct itimerval *itv, \ 184 struct itimerval *oitv); } 18584 COMPAT_43 { int sys_wait(void); } owait 18685 COMPAT_12 { int sys_swapon(const char *name); } oswapon 18786 STD { int sys_getitimer(int which, \ 188 struct itimerval *itv); } 18987 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \ 190 ogethostname 19188 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \ 192 osethostname 19389 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 19490 STD { int sys_dup2(int from, int to); } 19591 UNIMPL getdopt 19692 STD { int sys_fcntl(int fd, int cmd, ... void *arg); } 19793 STD { int sys_select(int nd, fd_set *in, fd_set *ou, \ 198 fd_set *ex, struct timeval *tv); } 19994 UNIMPL setdopt 20095 STD { int sys_fsync(int fd); } 20196 STD { int sys_setpriority(int which, int who, int prio); } 20297 STD { int sys_socket(int domain, int type, int protocol); } 20398 STD { int sys_connect(int s, const struct sockaddr *name, \ 204 unsigned int namelen); } 20599 COMPAT_43 { int sys_accept(int s, caddr_t name, \ 206 int *anamelen); } oaccept 207100 STD { int sys_getpriority(int which, int who); } 208101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ 209 int flags); } osend 210102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ 211 int flags); } orecv 212103 COMPAT_13 { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \ 213 sigreturn13 214104 STD { int sys_bind(int s, const struct sockaddr *name, \ 215 unsigned int namelen); } 216105 STD { int sys_setsockopt(int s, int level, int name, \ 217 const void *val, unsigned int valsize); } 218106 STD { int sys_listen(int s, int backlog); } 219107 OBSOL vtimes 220108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \ 221 struct sigvec *osv); } osigvec 222109 COMPAT_43 { int sys_sigblock(int mask); } osigblock 223110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask 224111 COMPAT_13 { int sys_sigsuspend(int mask); } sigsuspend13 225112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \ 226 struct sigstack *oss); } osigstack 227113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ 228 int flags); } orecvmsg 229114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \ 230 osendmsg 231115 OBSOL vtrace 232116 STD { int sys_gettimeofday(struct timeval *tp, \ 233 struct timezone *tzp); } 234117 STD { int sys_getrusage(int who, struct rusage *rusage); } 235118 STD { int sys_getsockopt(int s, int level, int name, \ 236 void *val, unsigned int *avalsize); } 237119 OBSOL resuba 238120 STD { ssize_t sys_readv(int fd, \ 239 const struct iovec *iovp, int iovcnt); } 240121 STD { ssize_t sys_writev(int fd, \ 241 const struct iovec *iovp, int iovcnt); } 242122 STD { int sys_settimeofday(const struct timeval *tv, \ 243 const struct timezone *tzp); } 244123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); } 245124 STD { int sys_fchmod(int fd, mode_t mode); } 246125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \ 247 int flags, caddr_t from, int *fromlenaddr); } \ 248 orecvfrom 249126 STD { int sys_setreuid(uid_t ruid, uid_t euid); } 250127 STD { int sys_setregid(gid_t rgid, gid_t egid); } 251128 STD { int sys_rename(const char *from, const char *to); } 252129 COMPAT_43 { int sys_truncate(const char *path, long length); } \ 253 otruncate 254130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate 255131 STD { int sys_flock(int fd, int how); } 256132 STD { int sys_mkfifo(const char *path, mode_t mode); } 257133 STD { ssize_t sys_sendto(int s, const void *buf, \ 258 size_t len, int flags, const struct sockaddr *to, \ 259 unsigned int tolen); } 260134 STD { int sys_shutdown(int s, int how); } 261135 STD { int sys_socketpair(int domain, int type, \ 262 int protocol, int *rsv); } 263136 STD { int sys_mkdir(const char *path, mode_t mode); } 264137 STD { int sys_rmdir(const char *path); } 265138 STD { int sys_utimes(const char *path, \ 266 const struct timeval *tptr); } 267139 OBSOL 4.2 sigreturn 268140 STD { int sys_adjtime(const struct timeval *delta, \ 269 struct timeval *olddelta); } 270141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \ 271 int *alen); } ogetpeername 272142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 273143 COMPAT_43 { int sys_sethostid(int32_t hostid); } osethostid 274144 COMPAT_43 { int sys_getrlimit(int which, \ 275 struct orlimit *rlp); } ogetrlimit 276145 COMPAT_43 { int sys_setrlimit(int which, \ 277 const struct orlimit *rlp); } osetrlimit 278146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg 279147 STD { int sys_setsid(void); } 280148 STD { int sys_quotactl(const char *path, int cmd, \ 281 int uid, caddr_t arg); } 282149 COMPAT_43 { int sys_quota(void); } oquota 283150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t 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 291152 UNIMPL 292153 UNIMPL 293154 UNIMPL 294#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 295155 STD { int sys_nfssvc(int flag, void *argp); } 296#else 297155 EXCL nfssvc 298#endif 299156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \ 300 u_int count, long *basep); } ogetdirentries 301157 STD { int sys_statfs(const char *path, \ 302 struct statfs *buf); } 303158 STD { int sys_fstatfs(int fd, struct statfs *buf); } 304159 UNIMPL 305160 UNIMPL 306#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 307161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); } 308#else 309161 EXCL getfh 310#endif 311162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \ 312 ogetdomainname 313163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ 314 osetdomainname 315164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname 316165 STD { int sys_sysarch(int op, void *parms); } 317166 UNIMPL 318167 UNIMPL 319168 UNIMPL 320; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 321#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) 322169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \ 323 int a5); } osemsys 324#else 325169 EXCL 1.0 semsys 326#endif 327; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 328#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) 329170 COMPAT_10 { int sys_msgsys(int which, int a2, int a3, int a4, \ 330 int a5, int a6); } omsgsys 331#else 332170 EXCL 1.0 msgsys 333#endif 334; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 335#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) 336171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \ 337 oshmsys 338#else 339171 EXCL 1.0 shmsys 340#endif 341172 UNIMPL 342173 STD { ssize_t sys_pread(int fd, void *buf, \ 343 size_t nbyte, int pad, off_t offset); } 344174 STD { ssize_t sys_pwrite(int fd, const void *buf, \ 345 size_t nbyte, int pad, off_t offset); } 346175 STD { int sys_ntp_gettime(struct ntptimeval *ntvp); } 347176 STD { int sys_ntp_adjtime(struct timex *tp); } 348177 UNIMPL 349178 UNIMPL 350179 UNIMPL 351180 UNIMPL 352 353; Syscalls 180-199 are used by/reserved for BSD 354181 STD { int sys_setgid(gid_t gid); } 355182 STD { int sys_setegid(gid_t egid); } 356183 STD { int sys_seteuid(uid_t euid); } 357#if defined(LFS) || !defined(_KERNEL) 358184 STD { int sys_lfs_bmapv(fsid_t *fsidp, \ 359 struct block_info *blkiov, int blkcnt); } 360185 STD { int sys_lfs_markv(fsid_t *fsidp, \ 361 struct block_info *blkiov, int blkcnt); } 362186 STD { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 363187 STD { int sys_lfs_segwait(fsid_t *fsidp, \ 364 struct timeval *tv); } 365#else 366184 EXCL lfs_bmapv 367185 EXCL lfs_markv 368186 EXCL lfs_segclean 369187 EXCL lfs_segwait 370#endif 371188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ 372 stat12 373189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 374190 COMPAT_12 { int sys_lstat(const char *path, \ 375 struct stat12 *ub); } lstat12 376191 STD { long sys_pathconf(const char *path, int name); } 377192 STD { long sys_fpathconf(int fd, int name); } 378193 UNIMPL 379194 STD { int sys_getrlimit(int which, \ 380 struct rlimit *rlp); } 381195 STD { int sys_setrlimit(int which, \ 382 const struct rlimit *rlp); } 383196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ 384 u_int count, long *basep); } 385197 STD { void *sys_mmap(void *addr, size_t len, int prot, \ 386 int flags, int fd, long pad, off_t pos); } 387198 INDIR { quad_t sys___syscall(quad_t num, ...); } 388199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \ 389 int whence); } 390200 STD { int sys_truncate(const char *path, int pad, \ 391 off_t length); } 392201 STD { int sys_ftruncate(int fd, int pad, off_t length); } 393202 STD { int sys___sysctl(int *name, u_int namelen, \ 394 void *old, size_t *oldlenp, void *new, \ 395 size_t newlen); } 396203 STD { int sys_mlock(const void *addr, size_t len); } 397204 STD { int sys_munlock(const void *addr, size_t len); } 398205 STD { int sys_undelete(const char *path); } 399206 STD { int sys_futimes(int fd, \ 400 const struct timeval *tptr); } 401207 STD { pid_t sys_getpgid(pid_t pid); } 402208 STD { int sys_reboot(int opt, char *bootstr); } 403209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \ 404 int timeout); } 405; 406; Syscalls 210-219 are reserved for dynamically loaded syscalls 407; 408#if defined(LKM) || !defined(_KERNEL) 409210 NODEF { int sys_lkmnosys(void); } 410211 NODEF { int sys_lkmnosys(void); } 411212 NODEF { int sys_lkmnosys(void); } 412213 NODEF { int sys_lkmnosys(void); } 413214 NODEF { int sys_lkmnosys(void); } 414215 NODEF { int sys_lkmnosys(void); } 415216 NODEF { int sys_lkmnosys(void); } 416217 NODEF { int sys_lkmnosys(void); } 417218 NODEF { int sys_lkmnosys(void); } 418219 NODEF { int sys_lkmnosys(void); } 419#else /* !LKM */ 420210 EXCL lkmnosys 421211 EXCL lkmnosys 422212 EXCL lkmnosys 423213 EXCL lkmnosys 424214 EXCL lkmnosys 425215 EXCL lkmnosys 426216 EXCL lkmnosys 427217 EXCL lkmnosys 428218 EXCL lkmnosys 429219 EXCL lkmnosys 430#endif /* !LKM */ 431; System calls 220-300 are reserved for use by NetBSD 432#if defined(SYSVSEM) || !defined(_KERNEL) 433220 STD { int sys___semctl(int semid, int semnum, int cmd, \ 434 union semun *arg); } 435221 STD { int sys_semget(key_t key, int nsems, int semflg); } 436222 STD { int sys_semop(int semid, struct sembuf *sops, \ 437 size_t nsops); } 438223 STD { int sys_semconfig(int flag); } 439#else 440220 EXCL semctl 441221 EXCL semget 442222 EXCL semop 443223 EXCL semconfig 444#endif 445#if defined(SYSVMSG) || !defined(_KERNEL) 446224 STD { int sys_msgctl(int msqid, int cmd, \ 447 struct msqid_ds *buf); } 448225 STD { int sys_msgget(key_t key, int msgflg); } 449226 STD { int sys_msgsnd(int msqid, const void *msgp, \ 450 size_t msgsz, int msgflg); } 451227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \ 452 size_t msgsz, long msgtyp, int msgflg); } 453#else 454224 EXCL msgctl 455225 EXCL msgget 456226 EXCL msgsnd 457227 EXCL msgrcv 458#endif 459#if defined(SYSVSHM) || !defined(_KERNEL) 460228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ 461 int shmflg); } 462229 STD { int sys_shmctl(int shmid, int cmd, \ 463 struct shmid_ds *buf); } 464230 STD { int sys_shmdt(const void *shmaddr); } 465231 STD { int sys_shmget(key_t key, size_t size, int shmflg); } 466#else 467228 EXCL shmat 468229 EXCL shmctl 469230 EXCL shmdt 470231 EXCL shmget 471#endif 472232 STD { int sys_clock_gettime(clockid_t clock_id, \ 473 struct timespec *tp); } 474233 STD { int sys_clock_settime(clockid_t clock_id, \ 475 const struct timespec *tp); } 476234 STD { int sys_clock_getres(clockid_t clock_id, \ 477 struct timespec *tp); } 478235 UNIMPL timer_create 479236 UNIMPL timer_delete 480237 UNIMPL timer_settime 481238 UNIMPL timer_gettime 482239 UNIMPL timer_getoverrun 483; 484; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 485; 486240 STD { int sys_nanosleep(const struct timespec *rqtp, \ 487 struct timespec *rmtp); } 488241 STD { int sys_fdatasync(int fd); } 489242 UNIMPL 490243 UNIMPL 491244 UNIMPL 492245 UNIMPL 493246 UNIMPL 494247 UNIMPL 495248 UNIMPL 496249 UNIMPL 497250 UNIMPL 498251 UNIMPL 499252 UNIMPL 500253 UNIMPL 501254 UNIMPL 502255 UNIMPL 503256 UNIMPL 504257 UNIMPL 505258 UNIMPL 506259 UNIMPL 507260 UNIMPL 508261 UNIMPL 509262 UNIMPL 510263 UNIMPL 511264 UNIMPL 512265 UNIMPL 513266 UNIMPL 514267 UNIMPL 515268 UNIMPL 516269 UNIMPL 517270 STD { int sys___posix_rename(const char *from, \ 518 const char *to); } 519271 STD { int sys_swapctl(int cmd, const void *arg, int misc); } 520272 STD { int sys_getdents(int fd, char *buf, size_t count); } 521273 STD { int sys_minherit(void *addr, size_t len, \ 522 int inherit); } 523274 STD { int sys_lchmod(const char *path, mode_t mode); } 524275 STD { int sys_lchown(const char *path, uid_t uid, \ 525 gid_t gid); } 526276 STD { int sys_lutimes(const char *path, \ 527 const struct timeval *tptr); } 528277 STD { int sys___msync13(void *addr, size_t len, int flags); } 529278 STD { int sys___stat13(const char *path, struct stat *ub); } 530279 STD { int sys___fstat13(int fd, struct stat *sb); } 531280 STD { int sys___lstat13(const char *path, struct stat *ub); } 532281 STD { int sys___sigaltstack14( \ 533 const struct sigaltstack *nss, \ 534 struct sigaltstack *oss); } 535282 STD { int sys___vfork14(void); } 536283 STD { int sys___posix_chown(const char *path, uid_t uid, \ 537 gid_t gid); } 538284 STD { int sys___posix_fchown(int fd, uid_t uid, \ 539 gid_t gid); } 540285 STD { int sys___posix_lchown(const char *path, uid_t uid, \ 541 gid_t gid); } 542286 STD { pid_t sys_getsid(pid_t pid); } 543287 UNIMPL 544#if defined(KTRACE) || !defined(_KERNEL) 545288 STD { int sys_fktrace(const int fd, int ops, \ 546 int facs, int pid); } 547#else 548288 EXCL ktrace 549#endif 550289 STD { ssize_t sys_preadv(int fd, \ 551 const struct iovec *iovp, int iovcnt, \ 552 int pad, off_t offset); } 553290 STD { ssize_t sys_pwritev(int fd, \ 554 const struct iovec *iovp, int iovcnt, \ 555 int pad, off_t offset); } 556291 STD { int sys___sigaction14(int signum, \ 557 const struct sigaction *nsa, \ 558 struct sigaction *osa); } 559292 STD { int sys___sigpending14(sigset_t *set); } 560293 STD { int sys___sigprocmask14(int how, \ 561 const sigset_t *set, \ 562 sigset_t *oset); } 563294 STD { int sys___sigsuspend14(const sigset_t *set); } 564295 STD { int sys___sigreturn14(struct sigcontext *sigcntxp); } 565296 STD { int sys___getcwd(char *bufp, size_t length); } 566297 STD { int sys_fchroot(int fd); } 567