syscalls.master revision 1.106
1 $NetBSD: syscalls.master,v 1.106 2001/01/05 21:42:08 jdolecek 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_ntp.h" 40#include "opt_compat_netbsd.h" 41#include "opt_sysv.h" 42#include "opt_compat_43.h" 43 44#include "fs_lfs.h" 45#include "fs_nfs.h" 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/signal.h> 50#include <sys/mount.h> 51#include <sys/syscallargs.h> 52 53%% 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 INDIR { int sys_syscall(int number, ...); } 621 STD { void sys_exit(int rval); } 632 STD { int sys_fork(void); } 643 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 654 STD { ssize_t sys_write(int fd, const void *buf, \ 66 size_t nbyte); } 675 STD { int sys_open(const char *path, \ 68 int flags, ... mode_t mode); } 696 STD { int sys_close(int fd); } 707 STD { int sys_wait4(int pid, int *status, int options, \ 71 struct rusage *rusage); } 728 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat 739 STD { int sys_link(const char *path, const char *link); } 7410 STD { int sys_unlink(const char *path); } 7511 OBSOL execv 7612 STD { int sys_chdir(const char *path); } 7713 STD { int sys_fchdir(int fd); } 7814 STD { int sys_mknod(const char *path, mode_t mode, \ 79 dev_t dev); } 8015 STD { int sys_chmod(const char *path, mode_t mode); } 8116 STD { int sys_chown(const char *path, uid_t uid, \ 82 gid_t gid); } 8317 STD { int sys_obreak(char *nsize); } break 8418 STD { int sys_getfsstat(struct statfs *buf, long bufsize, \ 85 int flags); } 8619 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \ 87 olseek 88#ifdef COMPAT_43 8920 STD { pid_t sys_getpid_with_ppid(void); } getpid 90#else 9120 STD { pid_t sys_getpid(void); } 92#endif 9321 STD { int sys_mount(const char *type, const char *path, \ 94 int flags, void *data); } 9522 STD { int sys_unmount(const char *path, int flags); } 9623 STD { int sys_setuid(uid_t uid); } 97#ifdef COMPAT_43 9824 STD { uid_t sys_getuid_with_euid(void); } getuid 99#else 10024 STD { uid_t sys_getuid(void); } 101#endif 10225 STD { uid_t sys_geteuid(void); } 10326 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ 104 int data); } 10527 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ 106 int flags); } 10728 STD { ssize_t sys_sendmsg(int s, \ 108 const struct msghdr *msg, int flags); } 10929 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ 110 int flags, struct sockaddr *from, \ 111 unsigned int *fromlenaddr); } 11230 STD { int sys_accept(int s, struct sockaddr *name, \ 113 unsigned int *anamelen); } 11431 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \ 115 unsigned int *alen); } 11632 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \ 117 unsigned int *alen); } 11833 STD { int sys_access(const char *path, int flags); } 11934 STD { int sys_chflags(const char *path, u_long flags); } 12035 STD { int sys_fchflags(int fd, u_long flags); } 12136 STD { void sys_sync(void); } 12237 STD { int sys_kill(int pid, int signum); } 12338 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \ 124 stat43 12539 STD { pid_t sys_getppid(void); } 12640 COMPAT_43 { int sys_lstat(const char *path, \ 127 struct stat43 *ub); } lstat43 12841 STD { int sys_dup(int fd); } 12942 STD { int sys_pipe(void); } 13043 STD { gid_t sys_getegid(void); } 13144 STD { int sys_profil(caddr_t samples, size_t size, \ 132 u_long offset, u_int scale); } 133#if defined(KTRACE) || !defined(_KERNEL) 13445 STD { int sys_ktrace(const char *fname, int ops, \ 135 int facs, int pid); } 136#else 13745 EXCL ktrace 138#endif 13946 COMPAT_13 { int sys_sigaction(int signum, \ 140 const struct sigaction13 *nsa, \ 141 struct sigaction13 *osa); } sigaction13 142#ifdef COMPAT_43 14347 STD { gid_t sys_getgid_with_egid(void); } getgid 144#else 14547 STD { gid_t sys_getgid(void); } 146#endif 14748 COMPAT_13 { int sys_sigprocmask(int how, \ 148 int mask); } sigprocmask13 14949 STD { int sys___getlogin(char *namebuf, size_t namelen); } 15050 STD { int sys_setlogin(const char *namebuf); } 15151 STD { int sys_acct(const char *path); } 15252 COMPAT_13 { int sys_sigpending(void); } sigpending13 15353 COMPAT_13 { int sys_sigaltstack( \ 154 const struct sigaltstack13 *nss, \ 155 struct sigaltstack13 *oss); } sigaltstack13 15654 STD { int sys_ioctl(int fd, \ 157 u_long com, ... void *data); } 15855 COMPAT_12 { int sys_reboot(int opt); } oreboot 15956 STD { int sys_revoke(const char *path); } 16057 STD { int sys_symlink(const char *path, \ 161 const char *link); } 16258 STD { int sys_readlink(const char *path, char *buf, \ 163 size_t count); } 16459 STD { int sys_execve(const char *path, \ 165 char * const *argp, char * const *envp); } 16660 STD { mode_t sys_umask(mode_t newmask); } 16761 STD { int sys_chroot(const char *path); } 16862 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43 16963 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \ 170 int arg); } ogetkerninfo 17164 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 17265 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); } 173; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 17466 STD { int sys_vfork(void); } 17567 OBSOL vread 17668 OBSOL vwrite 17769 STD { int sys_sbrk(intptr_t incr); } 17870 STD { int sys_sstk(int incr); } 17971 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \ 180 int flags, int fd, long pos); } ommap 18172 STD { int sys_ovadvise(int anom); } vadvise 18273 STD { int sys_munmap(void *addr, size_t len); } 18374 STD { int sys_mprotect(void *addr, size_t len, \ 184 int prot); } 18575 STD { int sys_madvise(void *addr, size_t len, \ 186 int behav); } 18776 OBSOL vhangup 18877 OBSOL vlimit 18978 STD { int sys_mincore(void *addr, size_t len, \ 190 char *vec); } 19179 STD { int sys_getgroups(int gidsetsize, \ 192 gid_t *gidset); } 19380 STD { int sys_setgroups(int gidsetsize, \ 194 const gid_t *gidset); } 19581 STD { int sys_getpgrp(void); } 19682 STD { int sys_setpgid(int pid, int pgid); } 19783 STD { int sys_setitimer(int which, \ 198 const struct itimerval *itv, \ 199 struct itimerval *oitv); } 20084 COMPAT_43 { int sys_wait(void); } owait 20185 COMPAT_12 { int sys_swapon(const char *name); } oswapon 20286 STD { int sys_getitimer(int which, \ 203 struct itimerval *itv); } 20487 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \ 205 ogethostname 20688 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \ 207 osethostname 20889 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 20990 STD { int sys_dup2(int from, int to); } 21091 UNIMPL getdopt 21192 STD { int sys_fcntl(int fd, int cmd, ... void *arg); } 21293 STD { int sys_select(int nd, fd_set *in, fd_set *ou, \ 213 fd_set *ex, struct timeval *tv); } 21494 UNIMPL setdopt 21595 STD { int sys_fsync(int fd); } 21696 STD { int sys_setpriority(int which, int who, int prio); } 21797 STD { int sys_socket(int domain, int type, int protocol); } 21898 STD { int sys_connect(int s, const struct sockaddr *name, \ 219 unsigned int namelen); } 22099 COMPAT_43 { int sys_accept(int s, caddr_t name, \ 221 int *anamelen); } oaccept 222100 STD { int sys_getpriority(int which, int who); } 223101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ 224 int flags); } osend 225102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ 226 int flags); } orecv 227103 COMPAT_13 { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \ 228 sigreturn13 229104 STD { int sys_bind(int s, const struct sockaddr *name, \ 230 unsigned int namelen); } 231105 STD { int sys_setsockopt(int s, int level, int name, \ 232 const void *val, unsigned int valsize); } 233106 STD { int sys_listen(int s, int backlog); } 234107 OBSOL vtimes 235108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \ 236 struct sigvec *osv); } osigvec 237109 COMPAT_43 { int sys_sigblock(int mask); } osigblock 238110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask 239111 COMPAT_13 { int sys_sigsuspend(int mask); } sigsuspend13 240112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \ 241 struct sigstack *oss); } osigstack 242113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ 243 int flags); } orecvmsg 244114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \ 245 osendmsg 246115 OBSOL vtrace 247116 STD { int sys_gettimeofday(struct timeval *tp, \ 248 struct timezone *tzp); } 249117 STD { int sys_getrusage(int who, struct rusage *rusage); } 250118 STD { int sys_getsockopt(int s, int level, int name, \ 251 void *val, unsigned int *avalsize); } 252119 OBSOL resuba 253120 STD { ssize_t sys_readv(int fd, \ 254 const struct iovec *iovp, int iovcnt); } 255121 STD { ssize_t sys_writev(int fd, \ 256 const struct iovec *iovp, int iovcnt); } 257122 STD { int sys_settimeofday(const struct timeval *tv, \ 258 const struct timezone *tzp); } 259123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); } 260124 STD { int sys_fchmod(int fd, mode_t mode); } 261125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \ 262 int flags, caddr_t from, int *fromlenaddr); } \ 263 orecvfrom 264126 STD { int sys_setreuid(uid_t ruid, uid_t euid); } 265127 STD { int sys_setregid(gid_t rgid, gid_t egid); } 266128 STD { int sys_rename(const char *from, const char *to); } 267129 COMPAT_43 { int sys_truncate(const char *path, long length); } \ 268 otruncate 269130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate 270131 STD { int sys_flock(int fd, int how); } 271132 STD { int sys_mkfifo(const char *path, mode_t mode); } 272133 STD { ssize_t sys_sendto(int s, const void *buf, \ 273 size_t len, int flags, const struct sockaddr *to, \ 274 unsigned int tolen); } 275134 STD { int sys_shutdown(int s, int how); } 276135 STD { int sys_socketpair(int domain, int type, \ 277 int protocol, int *rsv); } 278136 STD { int sys_mkdir(const char *path, mode_t mode); } 279137 STD { int sys_rmdir(const char *path); } 280138 STD { int sys_utimes(const char *path, \ 281 const struct timeval *tptr); } 282139 OBSOL 4.2 sigreturn 283140 STD { int sys_adjtime(const struct timeval *delta, \ 284 struct timeval *olddelta); } 285141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \ 286 int *alen); } ogetpeername 287142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 288143 COMPAT_43 { int sys_sethostid(int32_t hostid); } osethostid 289144 COMPAT_43 { int sys_getrlimit(int which, \ 290 struct orlimit *rlp); } ogetrlimit 291145 COMPAT_43 { int sys_setrlimit(int which, \ 292 const struct orlimit *rlp); } osetrlimit 293146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg 294147 STD { int sys_setsid(void); } 295148 STD { int sys_quotactl(const char *path, int cmd, \ 296 int uid, caddr_t arg); } 297149 COMPAT_43 { int sys_quota(void); } oquota 298150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \ 299 int *alen); } ogetsockname 300 301; Syscalls 151-180 inclusive are reserved for vendor-specific 302; system calls. (This includes various calls added for compatibity 303; with other Unix variants.) 304; Some of these calls are now supported by BSD... 305151 UNIMPL 306152 UNIMPL 307153 UNIMPL 308154 UNIMPL 309#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 310155 STD { int sys_nfssvc(int flag, void *argp); } 311#else 312155 EXCL nfssvc 313#endif 314156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \ 315 u_int count, long *basep); } ogetdirentries 316157 STD { int sys_statfs(const char *path, \ 317 struct statfs *buf); } 318158 STD { int sys_fstatfs(int fd, struct statfs *buf); } 319159 UNIMPL 320160 UNIMPL 321161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); } 322162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \ 323 ogetdomainname 324163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ 325 osetdomainname 326164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname 327165 STD { int sys_sysarch(int op, void *parms); } 328166 UNIMPL 329167 UNIMPL 330168 UNIMPL 331; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 332#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) 333169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \ 334 int a5); } osemsys 335#else 336169 EXCL 1.0 semsys 337#endif 338; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 339#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) 340170 COMPAT_10 { int sys_msgsys(int which, int a2, int a3, int a4, \ 341 int a5, int a6); } omsgsys 342#else 343170 EXCL 1.0 msgsys 344#endif 345; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 346#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) 347171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \ 348 oshmsys 349#else 350171 EXCL 1.0 shmsys 351#endif 352172 UNIMPL 353173 STD { ssize_t sys_pread(int fd, void *buf, \ 354 size_t nbyte, int pad, off_t offset); } 355174 STD { ssize_t sys_pwrite(int fd, const void *buf, \ 356 size_t nbyte, int pad, off_t offset); } 357; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded. 358175 STD { int sys_ntp_gettime(struct ntptimeval *ntvp); } 359#if defined(NTP) || !defined(_KERNEL) 360176 STD { int sys_ntp_adjtime(struct timex *tp); } 361#else 362176 EXCL ntp_adjtime 363#endif 364177 UNIMPL 365178 UNIMPL 366179 UNIMPL 367180 UNIMPL 368 369; Syscalls 180-199 are used by/reserved for BSD 370181 STD { int sys_setgid(gid_t gid); } 371182 STD { int sys_setegid(gid_t egid); } 372183 STD { int sys_seteuid(uid_t euid); } 373#if defined(LFS) || !defined(_KERNEL) 374184 STD { int sys_lfs_bmapv(fsid_t *fsidp, \ 375 struct block_info *blkiov, int blkcnt); } 376185 STD { int sys_lfs_markv(fsid_t *fsidp, \ 377 struct block_info *blkiov, int blkcnt); } 378186 STD { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 379187 STD { int sys_lfs_segwait(fsid_t *fsidp, \ 380 struct timeval *tv); } 381#else 382184 EXCL lfs_bmapv 383185 EXCL lfs_markv 384186 EXCL lfs_segclean 385187 EXCL lfs_segwait 386#endif 387188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ 388 stat12 389189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 390190 COMPAT_12 { int sys_lstat(const char *path, \ 391 struct stat12 *ub); } lstat12 392191 STD { long sys_pathconf(const char *path, int name); } 393192 STD { long sys_fpathconf(int fd, int name); } 394193 UNIMPL 395194 STD { int sys_getrlimit(int which, \ 396 struct rlimit *rlp); } 397195 STD { int sys_setrlimit(int which, \ 398 const struct rlimit *rlp); } 399196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ 400 u_int count, long *basep); } 401197 STD { void *sys_mmap(void *addr, size_t len, int prot, \ 402 int flags, int fd, long pad, off_t pos); } 403198 INDIR { quad_t sys___syscall(quad_t num, ...); } 404199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \ 405 int whence); } 406200 STD { int sys_truncate(const char *path, int pad, \ 407 off_t length); } 408201 STD { int sys_ftruncate(int fd, int pad, off_t length); } 409202 STD { int sys___sysctl(int *name, u_int namelen, \ 410 void *old, size_t *oldlenp, void *new, \ 411 size_t newlen); } 412203 STD { int sys_mlock(const void *addr, size_t len); } 413204 STD { int sys_munlock(const void *addr, size_t len); } 414205 STD { int sys_undelete(const char *path); } 415206 STD { int sys_futimes(int fd, \ 416 const struct timeval *tptr); } 417207 STD { pid_t sys_getpgid(pid_t pid); } 418208 STD { int sys_reboot(int opt, char *bootstr); } 419209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \ 420 int timeout); } 421; 422; Syscalls 210-219 are reserved for dynamically loaded syscalls 423; 424#if defined(LKM) || !defined(_KERNEL) 425210 NODEF { int sys_lkmnosys(void); } 426211 NODEF { int sys_lkmnosys(void); } 427212 NODEF { int sys_lkmnosys(void); } 428213 NODEF { int sys_lkmnosys(void); } 429214 NODEF { int sys_lkmnosys(void); } 430215 NODEF { int sys_lkmnosys(void); } 431216 NODEF { int sys_lkmnosys(void); } 432217 NODEF { int sys_lkmnosys(void); } 433218 NODEF { int sys_lkmnosys(void); } 434219 NODEF { int sys_lkmnosys(void); } 435#else /* !LKM */ 436210 EXCL lkmnosys 437211 EXCL lkmnosys 438212 EXCL lkmnosys 439213 EXCL lkmnosys 440214 EXCL lkmnosys 441215 EXCL lkmnosys 442216 EXCL lkmnosys 443217 EXCL lkmnosys 444218 EXCL lkmnosys 445219 EXCL lkmnosys 446#endif /* !LKM */ 447; System calls 220-300 are reserved for use by NetBSD 448#if defined(SYSVSEM) || !defined(_KERNEL) 449220 COMPAT_14 { int sys___semctl(int semid, int semnum, int cmd, \ 450 union __semun *arg); } 451221 STD { int sys_semget(key_t key, int nsems, int semflg); } 452222 STD { int sys_semop(int semid, struct sembuf *sops, \ 453 size_t nsops); } 454223 STD { int sys_semconfig(int flag); } 455#else 456220 EXCL compat_14_semctl 457221 EXCL semget 458222 EXCL semop 459223 EXCL semconfig 460#endif 461#if defined(SYSVMSG) || !defined(_KERNEL) 462224 COMPAT_14 { int sys_msgctl(int msqid, int cmd, \ 463 struct msqid_ds14 *buf); } 464225 STD { int sys_msgget(key_t key, int msgflg); } 465226 STD { int sys_msgsnd(int msqid, const void *msgp, \ 466 size_t msgsz, int msgflg); } 467227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \ 468 size_t msgsz, long msgtyp, int msgflg); } 469#else 470224 EXCL compat_14_msgctl 471225 EXCL msgget 472226 EXCL msgsnd 473227 EXCL msgrcv 474#endif 475#if defined(SYSVSHM) || !defined(_KERNEL) 476228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ 477 int shmflg); } 478229 COMPAT_14 { int sys_shmctl(int shmid, int cmd, \ 479 struct shmid_ds14 *buf); } 480230 STD { int sys_shmdt(const void *shmaddr); } 481231 STD { int sys_shmget(key_t key, size_t size, int shmflg); } 482#else 483228 EXCL shmat 484229 EXCL compat_14_shmctl 485230 EXCL shmdt 486231 EXCL shmget 487#endif 488232 STD { int sys_clock_gettime(clockid_t clock_id, \ 489 struct timespec *tp); } 490233 STD { int sys_clock_settime(clockid_t clock_id, \ 491 const struct timespec *tp); } 492234 STD { int sys_clock_getres(clockid_t clock_id, \ 493 struct timespec *tp); } 494235 UNIMPL timer_create 495236 UNIMPL timer_delete 496237 UNIMPL timer_settime 497238 UNIMPL timer_gettime 498239 UNIMPL timer_getoverrun 499; 500; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 501; 502240 STD { int sys_nanosleep(const struct timespec *rqtp, \ 503 struct timespec *rmtp); } 504241 STD { int sys_fdatasync(int fd); } 505242 STD { int sys_mlockall(int flags); } 506243 STD { int sys_munlockall(void); } 507244 UNIMPL 508245 UNIMPL 509246 UNIMPL 510247 UNIMPL 511248 UNIMPL 512249 UNIMPL 513250 UNIMPL 514251 UNIMPL 515252 UNIMPL 516253 UNIMPL 517254 UNIMPL 518255 UNIMPL 519256 UNIMPL 520257 UNIMPL 521258 UNIMPL 522259 UNIMPL 523260 UNIMPL 524261 UNIMPL 525262 UNIMPL 526263 UNIMPL 527264 UNIMPL 528265 UNIMPL 529266 UNIMPL 530267 UNIMPL 531268 UNIMPL 532269 UNIMPL 533270 STD { int sys___posix_rename(const char *from, \ 534 const char *to); } 535271 STD { int sys_swapctl(int cmd, const void *arg, int misc); } 536272 STD { int sys_getdents(int fd, char *buf, size_t count); } 537273 STD { int sys_minherit(void *addr, size_t len, \ 538 int inherit); } 539274 STD { int sys_lchmod(const char *path, mode_t mode); } 540275 STD { int sys_lchown(const char *path, uid_t uid, \ 541 gid_t gid); } 542276 STD { int sys_lutimes(const char *path, \ 543 const struct timeval *tptr); } 544277 STD { int sys___msync13(void *addr, size_t len, int flags); } 545278 STD { int sys___stat13(const char *path, struct stat *ub); } 546279 STD { int sys___fstat13(int fd, struct stat *sb); } 547280 STD { int sys___lstat13(const char *path, struct stat *ub); } 548281 STD { int sys___sigaltstack14( \ 549 const struct sigaltstack *nss, \ 550 struct sigaltstack *oss); } 551282 STD { int sys___vfork14(void); } 552283 STD { int sys___posix_chown(const char *path, uid_t uid, \ 553 gid_t gid); } 554284 STD { int sys___posix_fchown(int fd, uid_t uid, \ 555 gid_t gid); } 556285 STD { int sys___posix_lchown(const char *path, uid_t uid, \ 557 gid_t gid); } 558286 STD { pid_t sys_getsid(pid_t pid); } 559287 UNIMPL 560#if defined(KTRACE) || !defined(_KERNEL) 561288 STD { int sys_fktrace(const int fd, int ops, \ 562 int facs, int pid); } 563#else 564288 EXCL ktrace 565#endif 566289 STD { ssize_t sys_preadv(int fd, \ 567 const struct iovec *iovp, int iovcnt, \ 568 int pad, off_t offset); } 569290 STD { ssize_t sys_pwritev(int fd, \ 570 const struct iovec *iovp, int iovcnt, \ 571 int pad, off_t offset); } 572291 STD { int sys___sigaction14(int signum, \ 573 const struct sigaction *nsa, \ 574 struct sigaction *osa); } 575292 STD { int sys___sigpending14(sigset_t *set); } 576293 STD { int sys___sigprocmask14(int how, \ 577 const sigset_t *set, \ 578 sigset_t *oset); } 579294 STD { int sys___sigsuspend14(const sigset_t *set); } 580295 STD { int sys___sigreturn14(struct sigcontext *sigcntxp); } 581296 STD { int sys___getcwd(char *bufp, size_t length); } 582297 STD { int sys_fchroot(int fd); } 583298 STD { int sys_fhopen(const fhandle_t *fhp, int flags); } 584299 STD { int sys_fhstat(const fhandle_t *fhp, \ 585 struct stat *sb); } 586300 STD { int sys_fhstatfs(const fhandle_t *fhp, \ 587 struct statfs *buf); } 588#if defined(SYSVSEM) || !defined(_KERNEL) 589301 STD { int sys_____semctl13(int semid, int semnum, int cmd, \ 590 ... union __semun *arg); } 591#else 592301 EXCL ____semctl13 593#endif 594#if defined(SYSVMSG) || !defined(_KERNEL) 595302 STD { int sys___msgctl13(int msqid, int cmd, \ 596 struct msqid_ds *buf); } 597#else 598302 EXCL __msgctl13 599#endif 600#if defined(SYSVSHM) || !defined(_KERNEL) 601303 STD { int sys___shmctl13(int shmid, int cmd, \ 602 struct shmid_ds *buf); } 603#else 604303 EXCL __shmctl13 605#endif 606304 STD { int sys_lchflags(const char *path, u_long flags); } 607305 STD { int sys_issetugid(void); } 608306 STD { int sys_utrace(const char *label, void *addr, \ 609 size_t len); } 610