syscalls.master revision 1.101
1 $NetBSD: syscalls.master,v 1.101 2000/04/21 16:15:39 minoura 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(intptr_t 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 306161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); } 307162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \ 308 ogetdomainname 309163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ 310 osetdomainname 311164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname 312165 STD { int sys_sysarch(int op, void *parms); } 313166 UNIMPL 314167 UNIMPL 315168 UNIMPL 316; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 317#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) 318169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \ 319 int a5); } osemsys 320#else 321169 EXCL 1.0 semsys 322#endif 323; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 324#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) 325170 COMPAT_10 { int sys_msgsys(int which, int a2, int a3, int a4, \ 326 int a5, int a6); } omsgsys 327#else 328170 EXCL 1.0 msgsys 329#endif 330; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 331#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) 332171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \ 333 oshmsys 334#else 335171 EXCL 1.0 shmsys 336#endif 337172 UNIMPL 338173 STD { ssize_t sys_pread(int fd, void *buf, \ 339 size_t nbyte, int pad, off_t offset); } 340174 STD { ssize_t sys_pwrite(int fd, const void *buf, \ 341 size_t nbyte, int pad, off_t offset); } 342175 STD { int sys_ntp_gettime(struct ntptimeval *ntvp); } 343176 STD { int sys_ntp_adjtime(struct timex *tp); } 344177 UNIMPL 345178 UNIMPL 346179 UNIMPL 347180 UNIMPL 348 349; Syscalls 180-199 are used by/reserved for BSD 350181 STD { int sys_setgid(gid_t gid); } 351182 STD { int sys_setegid(gid_t egid); } 352183 STD { int sys_seteuid(uid_t euid); } 353#if defined(LFS) || !defined(_KERNEL) 354184 STD { int sys_lfs_bmapv(fsid_t *fsidp, \ 355 struct block_info *blkiov, int blkcnt); } 356185 STD { int sys_lfs_markv(fsid_t *fsidp, \ 357 struct block_info *blkiov, int blkcnt); } 358186 STD { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 359187 STD { int sys_lfs_segwait(fsid_t *fsidp, \ 360 struct timeval *tv); } 361#else 362184 EXCL lfs_bmapv 363185 EXCL lfs_markv 364186 EXCL lfs_segclean 365187 EXCL lfs_segwait 366#endif 367188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ 368 stat12 369189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 370190 COMPAT_12 { int sys_lstat(const char *path, \ 371 struct stat12 *ub); } lstat12 372191 STD { long sys_pathconf(const char *path, int name); } 373192 STD { long sys_fpathconf(int fd, int name); } 374193 UNIMPL 375194 STD { int sys_getrlimit(int which, \ 376 struct rlimit *rlp); } 377195 STD { int sys_setrlimit(int which, \ 378 const struct rlimit *rlp); } 379196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ 380 u_int count, long *basep); } 381197 STD { void *sys_mmap(void *addr, size_t len, int prot, \ 382 int flags, int fd, long pad, off_t pos); } 383198 INDIR { quad_t sys___syscall(quad_t num, ...); } 384199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \ 385 int whence); } 386200 STD { int sys_truncate(const char *path, int pad, \ 387 off_t length); } 388201 STD { int sys_ftruncate(int fd, int pad, off_t length); } 389202 STD { int sys___sysctl(int *name, u_int namelen, \ 390 void *old, size_t *oldlenp, void *new, \ 391 size_t newlen); } 392203 STD { int sys_mlock(const void *addr, size_t len); } 393204 STD { int sys_munlock(const void *addr, size_t len); } 394205 STD { int sys_undelete(const char *path); } 395206 STD { int sys_futimes(int fd, \ 396 const struct timeval *tptr); } 397207 STD { pid_t sys_getpgid(pid_t pid); } 398208 STD { int sys_reboot(int opt, char *bootstr); } 399209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \ 400 int timeout); } 401; 402; Syscalls 210-219 are reserved for dynamically loaded syscalls 403; 404#if defined(LKM) || !defined(_KERNEL) 405210 NODEF { int sys_lkmnosys(void); } 406211 NODEF { int sys_lkmnosys(void); } 407212 NODEF { int sys_lkmnosys(void); } 408213 NODEF { int sys_lkmnosys(void); } 409214 NODEF { int sys_lkmnosys(void); } 410215 NODEF { int sys_lkmnosys(void); } 411216 NODEF { int sys_lkmnosys(void); } 412217 NODEF { int sys_lkmnosys(void); } 413218 NODEF { int sys_lkmnosys(void); } 414219 NODEF { int sys_lkmnosys(void); } 415#else /* !LKM */ 416210 EXCL lkmnosys 417211 EXCL lkmnosys 418212 EXCL lkmnosys 419213 EXCL lkmnosys 420214 EXCL lkmnosys 421215 EXCL lkmnosys 422216 EXCL lkmnosys 423217 EXCL lkmnosys 424218 EXCL lkmnosys 425219 EXCL lkmnosys 426#endif /* !LKM */ 427; System calls 220-300 are reserved for use by NetBSD 428#if defined(SYSVSEM) || !defined(_KERNEL) 429220 COMPAT_14 { int sys___semctl(int semid, int semnum, int cmd, \ 430 union __semun *arg); } 431221 STD { int sys_semget(key_t key, int nsems, int semflg); } 432222 STD { int sys_semop(int semid, struct sembuf *sops, \ 433 size_t nsops); } 434223 STD { int sys_semconfig(int flag); } 435#else 436220 EXCL compat_14_semctl 437221 EXCL semget 438222 EXCL semop 439223 EXCL semconfig 440#endif 441#if defined(SYSVMSG) || !defined(_KERNEL) 442224 COMPAT_14 { int sys_msgctl(int msqid, int cmd, \ 443 struct msqid_ds14 *buf); } 444225 STD { int sys_msgget(key_t key, int msgflg); } 445226 STD { int sys_msgsnd(int msqid, const void *msgp, \ 446 size_t msgsz, int msgflg); } 447227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \ 448 size_t msgsz, long msgtyp, int msgflg); } 449#else 450224 EXCL compat_14_msgctl 451225 EXCL msgget 452226 EXCL msgsnd 453227 EXCL msgrcv 454#endif 455#if defined(SYSVSHM) || !defined(_KERNEL) 456228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ 457 int shmflg); } 458229 COMPAT_14 { int sys_shmctl(int shmid, int cmd, \ 459 struct shmid_ds14 *buf); } 460230 STD { int sys_shmdt(const void *shmaddr); } 461231 STD { int sys_shmget(key_t key, size_t size, int shmflg); } 462#else 463228 EXCL shmat 464229 EXCL compat_14_shmctl 465230 EXCL shmdt 466231 EXCL shmget 467#endif 468232 STD { int sys_clock_gettime(clockid_t clock_id, \ 469 struct timespec *tp); } 470233 STD { int sys_clock_settime(clockid_t clock_id, \ 471 const struct timespec *tp); } 472234 STD { int sys_clock_getres(clockid_t clock_id, \ 473 struct timespec *tp); } 474235 UNIMPL timer_create 475236 UNIMPL timer_delete 476237 UNIMPL timer_settime 477238 UNIMPL timer_gettime 478239 UNIMPL timer_getoverrun 479; 480; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 481; 482240 STD { int sys_nanosleep(const struct timespec *rqtp, \ 483 struct timespec *rmtp); } 484241 STD { int sys_fdatasync(int fd); } 485242 STD { int sys_mlockall(int flags); } 486243 STD { int sys_munlockall(void); } 487244 UNIMPL 488245 UNIMPL 489246 UNIMPL 490247 UNIMPL 491248 UNIMPL 492249 UNIMPL 493250 UNIMPL 494251 UNIMPL 495252 UNIMPL 496253 UNIMPL 497254 UNIMPL 498255 UNIMPL 499256 UNIMPL 500257 UNIMPL 501258 UNIMPL 502259 UNIMPL 503260 UNIMPL 504261 UNIMPL 505262 UNIMPL 506263 UNIMPL 507264 UNIMPL 508265 UNIMPL 509266 UNIMPL 510267 UNIMPL 511268 UNIMPL 512269 UNIMPL 513270 STD { int sys___posix_rename(const char *from, \ 514 const char *to); } 515271 STD { int sys_swapctl(int cmd, const void *arg, int misc); } 516272 STD { int sys_getdents(int fd, char *buf, size_t count); } 517273 STD { int sys_minherit(void *addr, size_t len, \ 518 int inherit); } 519274 STD { int sys_lchmod(const char *path, mode_t mode); } 520275 STD { int sys_lchown(const char *path, uid_t uid, \ 521 gid_t gid); } 522276 STD { int sys_lutimes(const char *path, \ 523 const struct timeval *tptr); } 524277 STD { int sys___msync13(void *addr, size_t len, int flags); } 525278 STD { int sys___stat13(const char *path, struct stat *ub); } 526279 STD { int sys___fstat13(int fd, struct stat *sb); } 527280 STD { int sys___lstat13(const char *path, struct stat *ub); } 528281 STD { int sys___sigaltstack14( \ 529 const struct sigaltstack *nss, \ 530 struct sigaltstack *oss); } 531282 STD { int sys___vfork14(void); } 532283 STD { int sys___posix_chown(const char *path, uid_t uid, \ 533 gid_t gid); } 534284 STD { int sys___posix_fchown(int fd, uid_t uid, \ 535 gid_t gid); } 536285 STD { int sys___posix_lchown(const char *path, uid_t uid, \ 537 gid_t gid); } 538286 STD { pid_t sys_getsid(pid_t pid); } 539287 UNIMPL 540#if defined(KTRACE) || !defined(_KERNEL) 541288 STD { int sys_fktrace(const int fd, int ops, \ 542 int facs, int pid); } 543#else 544288 EXCL ktrace 545#endif 546289 STD { ssize_t sys_preadv(int fd, \ 547 const struct iovec *iovp, int iovcnt, \ 548 int pad, off_t offset); } 549290 STD { ssize_t sys_pwritev(int fd, \ 550 const struct iovec *iovp, int iovcnt, \ 551 int pad, off_t offset); } 552291 STD { int sys___sigaction14(int signum, \ 553 const struct sigaction *nsa, \ 554 struct sigaction *osa); } 555292 STD { int sys___sigpending14(sigset_t *set); } 556293 STD { int sys___sigprocmask14(int how, \ 557 const sigset_t *set, \ 558 sigset_t *oset); } 559294 STD { int sys___sigsuspend14(const sigset_t *set); } 560295 STD { int sys___sigreturn14(struct sigcontext *sigcntxp); } 561296 STD { int sys___getcwd(char *bufp, size_t length); } 562297 STD { int sys_fchroot(int fd); } 563298 STD { int sys_fhopen(const fhandle_t *fhp, int flags); } 564299 STD { int sys_fhstat(const fhandle_t *fhp, \ 565 struct stat *sb); } 566300 STD { int sys_fhstatfs(const fhandle_t *fhp, \ 567 struct statfs *buf); } 568#if defined(SYSVSEM) || !defined(_KERNEL) 569301 STD { int sys_____semctl13(int semid, int semnum, int cmd, \ 570 ... union __semun *arg); } 571#else 572301 EXCL ____semctl13 573#endif 574#if defined(SYSVMSG) || !defined(_KERNEL) 575302 STD { int sys___msgctl13(int msqid, int cmd, \ 576 struct msqid_ds *buf); } 577#else 578302 EXCL __msgctl13 579#endif 580#if defined(SYSVSHM) || !defined(_KERNEL) 581303 STD { int sys___shmctl13(int shmid, int cmd, \ 582 struct shmid_ds *buf); } 583#else 584303 EXCL __shmctl13 585#endif 586304 STD { int sys_lchflags(const char *path, u_long flags); } 587305 STD { int sys_issetugid(void); } 588