syscalls.master revision 1.82
1 $NetBSD: syscalls.master,v 1.82 1998/09/11 12:50:11 mycroft 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; NODEF included, but don't define the syscall number 18; NOARGS included, but don't define the syscall args structure 19; INDIR included, but don't define the syscall args structure, 20; and allow it to be "really" varargs. 21; 22; The compat options are defined in the syscalls.conf file, and the 23; compat option name is prefixed to the syscall name. Other than 24; that, they're like NODEF (for 'compat' options), or STD (for 25; 'libcompat' options). 26; 27; The type-dependent arguments are as follows: 28; For STD, NODEF, NOARGS, and compat syscalls: 29; { pseudo-proto } [alias] 30; For other syscalls: 31; [comment] 32; 33; #ifdef's, etc. may be included, and are copied to the output files. 34; #include's are copied to the syscall names and switch definition files only. 35 36#include "opt_ktrace.h" 37#include "opt_nfsserver.h" 38#include "opt_compat_netbsd.h" 39 40#include "fs_lfs.h" 41#include "fs_nfs.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/signal.h> 46#include <sys/mount.h> 47#include <sys/syscallargs.h> 48 49; Reserved/unimplemented system calls in the range 0-150 inclusive 50; are reserved for use in future Berkeley releases. 51; Additional system calls implemented in vendor and other 52; redistributions should be placed in the reserved range at the end 53; of the current calls. 54 550 INDIR { int sys_syscall(int number, ...); } 561 STD { void sys_exit(int rval); } 572 STD { int sys_fork(void); } 583 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 594 STD { ssize_t sys_write(int fd, const void *buf, \ 60 size_t nbyte); } 615 STD { int sys_open(const char *path, \ 62 int flags, ... mode_t mode); } 636 STD { int sys_close(int fd); } 647 STD { int sys_wait4(int pid, int *status, int options, \ 65 struct rusage *rusage); } 668 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat 679 STD { int sys_link(const char *path, const char *link); } 6810 STD { int sys_unlink(const char *path); } 6911 OBSOL execv 7012 STD { int sys_chdir(const char *path); } 7113 STD { int sys_fchdir(int fd); } 7214 STD { int sys_mknod(const char *path, mode_t mode, \ 73 dev_t dev); } 7415 STD { int sys_chmod(const char *path, mode_t mode); } 7516 STD { int sys_chown(const char *path, uid_t uid, \ 76 gid_t gid); } 7717 STD { int sys_obreak(char *nsize); } break 7818 STD { int sys_getfsstat(struct statfs *buf, long bufsize, \ 79 int flags); } 8019 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \ 81 olseek 8220 STD { pid_t sys_getpid(void); } 8321 STD { int sys_mount(const char *type, const char *path, \ 84 int flags, void *data); } 8522 STD { int sys_unmount(const char *path, int flags); } 8623 STD { int sys_setuid(uid_t uid); } 8724 STD { uid_t sys_getuid(void); } 8825 STD { uid_t sys_geteuid(void); } 8926 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ 90 int data); } 9127 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ 92 int flags); } 9328 STD { ssize_t sys_sendmsg(int s, \ 94 const struct msghdr *msg, int flags); } 9529 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ 96 int flags, struct sockaddr *from, \ 97 int *fromlenaddr); } 9830 STD { int sys_accept(int s, struct sockaddr *name, \ 99 int *anamelen); } 10031 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \ 101 int *alen); } 10232 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \ 103 int *alen); } 10433 STD { int sys_access(const char *path, int flags); } 10534 STD { int sys_chflags(const char *path, u_long flags); } 10635 STD { int sys_fchflags(int fd, u_long flags); } 10736 STD { void sys_sync(void); } 10837 STD { int sys_kill(int pid, int signum); } 10938 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \ 110 stat43 11139 STD { pid_t sys_getppid(void); } 11240 COMPAT_43 { int sys_lstat(const char *path, \ 113 struct stat43 *ub); } lstat43 11441 STD { int sys_dup(int fd); } 11542 STD { int sys_pipe(void); } 11643 STD { gid_t sys_getegid(void); } 11744 STD { int sys_profil(caddr_t samples, size_t size, \ 118 u_long offset, u_int scale); } 119#ifdef KTRACE 12045 STD { int sys_ktrace(const char *fname, int ops, \ 121 int facs, int pid); } 122#else 12345 UNIMPL ktrace 124#endif 12546 COMPAT_13 { int sys_sigaction(int signum, \ 126 const struct sigaction13 *nsa, \ 127 struct sigaction13 *osa); } sigaction13 12847 STD { gid_t sys_getgid(void); } 12948 COMPAT_13 { int sys_sigprocmask(int how, \ 130 int mask); } sigprocmask13 13149 STD { int sys___getlogin(char *namebuf, u_int namelen); } 13250 STD { int sys_setlogin(const char *namebuf); } 13351 STD { int sys_acct(const char *path); } 13452 COMPAT_13 { int sys_sigpending(void); } sigpending13 13553 COMPAT_13 { int sys_sigaltstack( \ 136 const struct sigaltstack13 *nss, \ 137 struct sigaltstack13 *oss); } sigaltstack13 13854 STD { int sys_ioctl(int fd, \ 139 u_long com, ... void *data); } 14055 COMPAT_12 { int sys_reboot(int opt); } oreboot 14156 STD { int sys_revoke(const char *path); } 14257 STD { int sys_symlink(const char *path, \ 143 const char *link); } 14458 STD { int sys_readlink(const char *path, char *buf, \ 145 size_t count); } 14659 STD { int sys_execve(const char *path, \ 147 char * const *argp, char * const *envp); } 14860 STD { mode_t sys_umask(mode_t newmask); } 14961 STD { int sys_chroot(const char *path); } 15062 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43 15163 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \ 152 int arg); } ogetkerninfo 15364 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 15465 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); } 155; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 15666 STD { int sys_vfork(void); } 15767 OBSOL vread 15868 OBSOL vwrite 15969 STD { int sys_sbrk(int incr); } 16070 STD { int sys_sstk(int incr); } 16171 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \ 162 int flags, int fd, long pos); } ommap 16372 STD { int sys_ovadvise(int anom); } vadvise 16473 STD { int sys_munmap(void *addr, size_t len); } 16574 STD { int sys_mprotect(void *addr, size_t len, \ 166 int prot); } 16775 STD { int sys_madvise(void *addr, size_t len, \ 168 int behav); } 16976 OBSOL vhangup 17077 OBSOL vlimit 17178 STD { int sys_mincore(caddr_t addr, size_t len, \ 172 char *vec); } 17379 STD { int sys_getgroups(int gidsetsize, \ 174 gid_t *gidset); } 17580 STD { int sys_setgroups(int gidsetsize, \ 176 const gid_t *gidset); } 17781 STD { int sys_getpgrp(void); } 17882 STD { int sys_setpgid(int pid, int pgid); } 17983 STD { int sys_setitimer(int which, \ 180 const struct itimerval *itv, \ 181 struct itimerval *oitv); } 18284 COMPAT_43 { int sys_wait(void); } owait 18385 COMPAT_12 { int sys_swapon(const char *name); } oswapon 18486 STD { int sys_getitimer(int which, \ 185 struct itimerval *itv); } 18687 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \ 187 ogethostname 18888 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \ 189 osethostname 19089 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 19190 STD { int sys_dup2(int from, int to); } 19291 UNIMPL getdopt 19392 STD { int sys_fcntl(int fd, int cmd, ... void *arg); } 19493 STD { int sys_select(int nd, fd_set *in, fd_set *ou, \ 195 fd_set *ex, struct timeval *tv); } 19694 UNIMPL setdopt 19795 STD { int sys_fsync(int fd); } 19896 STD { int sys_setpriority(int which, int who, int prio); } 19997 STD { int sys_socket(int domain, int type, int protocol); } 20098 STD { int sys_connect(int s, const struct sockaddr *name, \ 201 int namelen); } 20299 COMPAT_43 { int sys_accept(int s, caddr_t name, \ 203 int *anamelen); } oaccept 204100 STD { int sys_getpriority(int which, int who); } 205101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ 206 int flags); } osend 207102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ 208 int flags); } orecv 209103 STD { int sys_sigreturn(struct sigcontext *sigcntxp); } 210104 STD { int sys_bind(int s, const struct sockaddr *name, \ 211 int namelen); } 212105 STD { int sys_setsockopt(int s, int level, int name, \ 213 const void *val, int valsize); } 214106 STD { int sys_listen(int s, int backlog); } 215107 OBSOL vtimes 216108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \ 217 struct sigvec *osv); } osigvec 218109 COMPAT_43 { int sys_sigblock(int mask); } osigblock 219110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask 220111 COMPAT_13 { int sys_sigsuspend(int mask); } sigsuspend13 221112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \ 222 struct sigstack *oss); } osigstack 223113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ 224 int flags); } orecvmsg 225114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \ 226 osendmsg 227#ifdef TRACE 228115 STD { int sys_vtrace(int request, int value); } 229#else 230115 OBSOL vtrace 231#endif 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, 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 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) 295155 STD { int sys_nfssvc(int flag, void *argp); } 296#else 297155 UNIMPL 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) 307161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); } 308#else 309161 UNIMPL 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(alpha) 322169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \ 323 int a5); } osemsys 324#else 325169 UNIMPL 1.0 semsys 326#endif 327; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 328#if defined(SYSVMSG) && !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 UNIMPL 1.0 msgsys 333#endif 334; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 335#if defined(SYSVSHM) && !defined(alpha) 336171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \ 337 oshmsys 338#else 339171 UNIMPL 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#ifdef LFS 358184 STD { int lfs_bmapv(fsid_t *fsidp, \ 359 struct block_info *blkiov, int blkcnt); } 360185 STD { int lfs_markv(fsid_t *fsidp, \ 361 struct block_info *blkiov, int blkcnt); } 362186 STD { int lfs_segclean(fsid_t *fsidp, u_long segment); } 363187 STD { int lfs_segwait(fsid_t *fsidp, struct timeval *tv); } 364#else 365184 UNIMPL 366185 UNIMPL 367186 UNIMPL 368187 UNIMPL 369#endif 370188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ 371 stat12 372189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 373190 COMPAT_12 { int sys_lstat(const char *path, \ 374 struct stat12 *ub); } lstat12 375191 STD { long sys_pathconf(const char *path, int name); } 376192 STD { long sys_fpathconf(int fd, int name); } 377193 UNIMPL 378194 STD { int sys_getrlimit(int which, \ 379 struct rlimit *rlp); } 380195 STD { int sys_setrlimit(int which, \ 381 const struct rlimit *rlp); } 382196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ 383 u_int count, long *basep); } 384197 STD { void *sys_mmap(void *addr, size_t len, int prot, \ 385 int flags, int fd, long pad, off_t pos); } 386198 INDIR { quad_t sys___syscall(quad_t num, ...); } 387199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \ 388 int whence); } 389200 STD { int sys_truncate(const char *path, int pad, \ 390 off_t length); } 391201 STD { int sys_ftruncate(int fd, int pad, off_t length); } 392202 STD { int sys___sysctl(int *name, u_int namelen, \ 393 void *old, size_t *oldlenp, void *new, \ 394 size_t newlen); } 395203 STD { int sys_mlock(const void *addr, size_t len); } 396204 STD { int sys_munlock(const void *addr, size_t len); } 397205 STD { int sys_undelete(const char *path); } 398206 STD { int sys_futimes(int fd, \ 399 const struct timeval *tptr); } 400207 STD { int sys_getpgid(pid_t pid); } 401208 STD { int sys_reboot(int opt, char *bootstr); } 402209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \ 403 int timeout); } 404; 405; Syscalls 210-219 are reserved for dynamically loaded syscalls 406; 407#ifdef LKM 408210 NODEF { int sys_lkmnosys(void); } 409211 NODEF { int sys_lkmnosys(void); } 410212 NODEF { int sys_lkmnosys(void); } 411213 NODEF { int sys_lkmnosys(void); } 412214 NODEF { int sys_lkmnosys(void); } 413215 NODEF { int sys_lkmnosys(void); } 414216 NODEF { int sys_lkmnosys(void); } 415217 NODEF { int sys_lkmnosys(void); } 416218 NODEF { int sys_lkmnosys(void); } 417219 NODEF { int sys_lkmnosys(void); } 418#else /* !LKM */ 419210 UNIMPL 420211 UNIMPL 421212 UNIMPL 422213 UNIMPL 423214 UNIMPL 424215 UNIMPL 425216 UNIMPL 426217 UNIMPL 427218 UNIMPL 428219 UNIMPL 429#endif /* !LKM */ 430; System calls 220-300 are reserved for use by NetBSD 431#ifdef SYSVSEM 432220 STD { int sys___semctl(int semid, int semnum, int cmd, \ 433 union semun *arg); } 434221 STD { int sys_semget(key_t key, int nsems, int semflg); } 435222 STD { int sys_semop(int semid, struct sembuf *sops, \ 436 size_t nsops); } 437223 STD { int sys_semconfig(int flag); } 438#else 439220 UNIMPL semctl 440221 UNIMPL semget 441222 UNIMPL semop 442223 UNIMPL semconfig 443#endif 444#ifdef SYSVMSG 445224 STD { int sys_msgctl(int msqid, int cmd, \ 446 struct msqid_ds *buf); } 447225 STD { int sys_msgget(key_t key, int msgflg); } 448226 STD { int sys_msgsnd(int msqid, const void *msgp, \ 449 size_t msgsz, int msgflg); } 450227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \ 451 size_t msgsz, long msgtyp, int msgflg); } 452#else 453224 UNIMPL msgctl 454225 UNIMPL msgget 455226 UNIMPL msgsnd 456227 UNIMPL msgrcv 457#endif 458#ifdef SYSVSHM 459228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ 460 int shmflg); } 461229 STD { int sys_shmctl(int shmid, int cmd, \ 462 struct shmid_ds *buf); } 463230 STD { int sys_shmdt(const void *shmaddr); } 464231 STD { int sys_shmget(key_t key, size_t size, int shmflg); } 465#else 466228 UNIMPL shmat 467229 UNIMPL shmctl 468230 UNIMPL shmdt 469231 UNIMPL shmget 470#endif 471232 STD { int sys_clock_gettime(clockid_t clock_id, \ 472 struct timespec *tp); } 473233 STD { int sys_clock_settime(clockid_t clock_id, \ 474 const struct timespec *tp); } 475234 STD { int sys_clock_getres(clockid_t clock_id, \ 476 struct timespec *tp); } 477235 UNIMPL timer_create 478236 UNIMPL timer_delete 479237 UNIMPL timer_settime 480238 UNIMPL timer_gettime 481239 UNIMPL timer_getoverrun 482; 483; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 484; 485240 STD { int sys_nanosleep(const struct timespec *rqtp, \ 486 struct timespec *rmtp); } 487241 STD { int sys_fdatasync(int fd); } 488242 UNIMPL 489243 UNIMPL 490244 UNIMPL 491245 UNIMPL 492246 UNIMPL 493247 UNIMPL 494248 UNIMPL 495249 UNIMPL 496250 UNIMPL 497251 UNIMPL 498252 UNIMPL 499253 UNIMPL 500254 UNIMPL 501255 UNIMPL 502256 UNIMPL 503257 UNIMPL 504258 UNIMPL 505259 UNIMPL 506260 UNIMPL 507261 UNIMPL 508262 UNIMPL 509263 UNIMPL 510264 UNIMPL 511265 UNIMPL 512266 UNIMPL 513267 UNIMPL 514268 UNIMPL 515269 UNIMPL 516270 STD { int sys___posix_rename(const char *from, \ 517 const char *to); } 518271 STD { int sys_swapctl(int cmd, const void *arg, int misc); } 519272 STD { int sys_getdents(int fd, char *buf, size_t count); } 520273 STD { int sys_minherit(void *addr, size_t len, \ 521 int inherit); } 522274 STD { int sys_lchmod(const char *path, mode_t mode); } 523275 STD { int sys_lchown(const char *path, uid_t uid, \ 524 gid_t gid); } 525276 STD { int sys_lutimes(const char *path, \ 526 const struct timeval *tptr); } 527277 STD { int sys___msync13(void *addr, size_t len, int flags); } 528278 STD { int sys___stat13(const char *path, struct stat *ub); } 529279 STD { int sys___fstat13(int fd, struct stat *sb); } 530280 STD { int sys___lstat13(const char *path, struct stat *ub); } 531281 STD { int sys___sigaltstack14( \ 532 const struct sigaltstack *nss, \ 533 struct sigaltstack *oss); } 534282 STD { int sys___vfork14(void); } 535283 STD { int sys___posix_chown(const char *path, uid_t uid, \ 536 gid_t gid); } 537284 STD { int sys___posix_fchown(int fd, uid_t uid, \ 538 gid_t gid); } 539285 STD { int sys___posix_lchown(const char *path, uid_t uid, \ 540 gid_t gid); } 541286 STD { pid_t sys_getsid(pid_t pid); } 542287 UNIMPL 543#ifdef KTRACE 544288 STD { int sys_fktrace(const int fd, int ops, \ 545 int facs, int pid); } 546#else 547288 UNIMPL 548#endif 549289 STD { ssize_t sys_preadv(int fd, \ 550 const struct iovec *iovp, int iovcnt, \ 551 int pad, off_t offset); } 552290 STD { ssize_t sys_pwritev(int fd, \ 553 const struct iovec *iovp, int iovcnt, \ 554 int pad, off_t offset); } 555291 STD { int sys___sigaction14(int signum, \ 556 const struct sigaction *nsa, \ 557 struct sigaction *osa); } 558292 STD { int sys___sigpending14(sigset_t *set); } 559293 STD { int sys___sigprocmask14(int how, \ 560 const sigset_t *set, \ 561 sigset_t *oset); } 562294 STD { int sys___sigsuspend14(const sigset_t *set); } 563