syscalls.master revision 1.78
1 $NetBSD: syscalls.master,v 1.78 1998/06/25 22:16:40 thorpej 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 39#include "fs_lfs.h" 40#include "fs_nfs.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/signal.h> 45#include <sys/mount.h> 46#include <sys/syscallargs.h> 47 48; Reserved/unimplemented system calls in the range 0-150 inclusive 49; are reserved for use in future Berkeley releases. 50; Additional system calls implemented in vendor and other 51; redistributions should be placed in the reserved range at the end 52; of the current calls. 53 540 INDIR { int sys_syscall(int number, ...); } 551 STD { void sys_exit(int rval); } 562 STD { int sys_fork(void); } 573 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 584 STD { ssize_t sys_write(int fd, const void *buf, \ 59 size_t nbyte); } 605 STD { int sys_open(const char *path, \ 61 int flags, ... mode_t mode); } 626 STD { int sys_close(int fd); } 637 STD { int sys_wait4(int pid, int *status, int options, \ 64 struct rusage *rusage); } 658 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat 669 STD { int sys_link(const char *path, const char *link); } 6710 STD { int sys_unlink(const char *path); } 6811 OBSOL execv 6912 STD { int sys_chdir(const char *path); } 7013 STD { int sys_fchdir(int fd); } 7114 STD { int sys_mknod(const char *path, mode_t mode, \ 72 dev_t dev); } 7315 STD { int sys_chmod(const char *path, mode_t mode); } 7416 STD { int sys_chown(const char *path, uid_t uid, \ 75 gid_t gid); } 7617 STD { int sys_obreak(char *nsize); } break 7718 STD { int sys_getfsstat(struct statfs *buf, long bufsize, \ 78 int flags); } 7919 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \ 80 olseek 8120 STD { pid_t sys_getpid(void); } 8221 STD { int sys_mount(const char *type, const char *path, \ 83 int flags, void *data); } 8422 STD { int sys_unmount(const char *path, int flags); } 8523 STD { int sys_setuid(uid_t uid); } 8624 STD { uid_t sys_getuid(void); } 8725 STD { uid_t sys_geteuid(void); } 8826 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ 89 int data); } 9027 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ 91 int flags); } 9228 STD { ssize_t sys_sendmsg(int s, \ 93 const struct msghdr *msg, int flags); } 9429 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ 95 int flags, struct sockaddr *from, \ 96 int *fromlenaddr); } 9730 STD { int sys_accept(int s, struct sockaddr *name, \ 98 int *anamelen); } 9931 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \ 100 int *alen); } 10132 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \ 102 int *alen); } 10333 STD { int sys_access(const char *path, int flags); } 10434 STD { int sys_chflags(const char *path, u_long flags); } 10535 STD { int sys_fchflags(int fd, u_long flags); } 10636 STD { void sys_sync(void); } 10737 STD { int sys_kill(int pid, int signum); } 10838 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \ 109 stat43 11039 STD { pid_t sys_getppid(void); } 11140 COMPAT_43 { int sys_lstat(const char *path, \ 112 struct stat43 *ub); } lstat43 11341 STD { int sys_dup(int fd); } 11442 STD { int sys_pipe(void); } 11543 STD { gid_t sys_getegid(void); } 11644 STD { int sys_profil(caddr_t samples, size_t size, \ 117 u_long offset, u_int scale); } 118#ifdef KTRACE 11945 STD { int sys_ktrace(const char *fname, int ops, \ 120 int facs, int pid); } 121#else 12245 UNIMPL ktrace 123#endif 12446 STD { int sys_sigaction(int signum, \ 125 const struct sigaction *nsa, \ 126 struct sigaction *osa); } 12747 STD { gid_t sys_getgid(void); } 12848 STD { int sys_sigprocmask(int how, sigset_t mask); } 12949 STD { int sys___getlogin(char *namebuf, u_int namelen); } 13050 STD { int sys_setlogin(const char *namebuf); } 13151 STD { int sys_acct(const char *path); } 13252 STD { int sys_sigpending(void); } 13353 COMPAT_13 { int sys_sigaltstack(const struct sigaltstack13 \ 134 *nss, struct sigaltstack13 *oss); } sigaltstack13 13554 STD { int sys_ioctl(int fd, \ 136 u_long com, ... void *data); } 13755 COMPAT_12 { int sys_reboot(int opt); } oreboot 13856 STD { int sys_revoke(const char *path); } 13957 STD { int sys_symlink(const char *path, \ 140 const char *link); } 14158 STD { int sys_readlink(const char *path, char *buf, \ 142 size_t count); } 14359 STD { int sys_execve(const char *path, \ 144 char * const *argp, char * const *envp); } 14560 STD { mode_t sys_umask(mode_t newmask); } 14661 STD { int sys_chroot(const char *path); } 14762 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43 14863 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \ 149 int arg); } ogetkerninfo 15064 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 15165 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); } 152; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 15366 STD { int sys_vfork(void); } 15467 OBSOL vread 15568 OBSOL vwrite 15669 STD { int sys_sbrk(int incr); } 15770 STD { int sys_sstk(int incr); } 15871 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \ 159 int flags, int fd, long pos); } ommap 16072 STD { int sys_ovadvise(int anom); } vadvise 16173 STD { int sys_munmap(void *addr, size_t len); } 16274 STD { int sys_mprotect(void *addr, size_t len, \ 163 int prot); } 16475 STD { int sys_madvise(void *addr, size_t len, \ 165 int behav); } 16676 OBSOL vhangup 16777 OBSOL vlimit 16878 STD { int sys_mincore(caddr_t addr, size_t len, \ 169 char *vec); } 17079 STD { int sys_getgroups(int gidsetsize, \ 171 gid_t *gidset); } 17280 STD { int sys_setgroups(int gidsetsize, \ 173 const gid_t *gidset); } 17481 STD { int sys_getpgrp(void); } 17582 STD { int sys_setpgid(int pid, int pgid); } 17683 STD { int sys_setitimer(int which, \ 177 const struct itimerval *itv, \ 178 struct itimerval *oitv); } 17984 COMPAT_43 { int sys_wait(void); } owait 18085 COMPAT_12 { int sys_swapon(const char *name); } oswapon 18186 STD { int sys_getitimer(int which, \ 182 struct itimerval *itv); } 18387 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \ 184 ogethostname 18588 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \ 186 osethostname 18789 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 18890 STD { int sys_dup2(int from, int to); } 18991 UNIMPL getdopt 19092 STD { int sys_fcntl(int fd, int cmd, ... void *arg); } 19193 STD { int sys_select(int nd, fd_set *in, fd_set *ou, \ 192 fd_set *ex, struct timeval *tv); } 19394 UNIMPL setdopt 19495 STD { int sys_fsync(int fd); } 19596 STD { int sys_setpriority(int which, int who, int prio); } 19697 STD { int sys_socket(int domain, int type, int protocol); } 19798 STD { int sys_connect(int s, const struct sockaddr *name, \ 198 int namelen); } 19999 COMPAT_43 { int sys_accept(int s, caddr_t name, \ 200 int *anamelen); } oaccept 201100 STD { int sys_getpriority(int which, int who); } 202101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ 203 int flags); } osend 204102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ 205 int flags); } orecv 206103 STD { int sys_sigreturn(struct sigcontext *sigcntxp); } 207104 STD { int sys_bind(int s, const struct sockaddr *name, \ 208 int namelen); } 209105 STD { int sys_setsockopt(int s, int level, int name, \ 210 const void *val, int valsize); } 211106 STD { int sys_listen(int s, int backlog); } 212107 OBSOL vtimes 213108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \ 214 struct sigvec *osv); } osigvec 215109 COMPAT_43 { int sys_sigblock(int mask); } osigblock 216110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask 217111 STD { int sys_sigsuspend(int mask); } 218112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \ 219 struct sigstack *oss); } osigstack 220113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ 221 int flags); } orecvmsg 222114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \ 223 osendmsg 224#ifdef TRACE 225115 STD { int sys_vtrace(int request, int value); } 226#else 227115 OBSOL vtrace 228#endif 229116 STD { int sys_gettimeofday(struct timeval *tp, \ 230 struct timezone *tzp); } 231117 STD { int sys_getrusage(int who, struct rusage *rusage); } 232118 STD { int sys_getsockopt(int s, int level, int name, \ 233 void *val, int *avalsize); } 234119 OBSOL resuba 235120 STD { ssize_t sys_readv(int fd, \ 236 const struct iovec *iovp, int iovcnt); } 237121 STD { ssize_t sys_writev(int fd, \ 238 const struct iovec *iovp, int iovcnt); } 239122 STD { int sys_settimeofday(const struct timeval *tv, \ 240 const struct timezone *tzp); } 241123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); } 242124 STD { int sys_fchmod(int fd, mode_t mode); } 243125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \ 244 int flags, caddr_t from, int *fromlenaddr); } \ 245 orecvfrom 246126 STD { int sys_setreuid(uid_t ruid, uid_t euid); } 247127 STD { int sys_setregid(gid_t rgid, gid_t egid); } 248128 STD { int sys_rename(const char *from, const char *to); } 249129 COMPAT_43 { int sys_truncate(const char *path, long length); } \ 250 otruncate 251130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate 252131 STD { int sys_flock(int fd, int how); } 253132 STD { int sys_mkfifo(const char *path, mode_t mode); } 254133 STD { ssize_t sys_sendto(int s, const void *buf, \ 255 size_t len, int flags, const struct sockaddr *to, \ 256 int tolen); } 257134 STD { int sys_shutdown(int s, int how); } 258135 STD { int sys_socketpair(int domain, int type, \ 259 int protocol, int *rsv); } 260136 STD { int sys_mkdir(const char *path, mode_t mode); } 261137 STD { int sys_rmdir(const char *path); } 262138 STD { int sys_utimes(const char *path, \ 263 const struct timeval *tptr); } 264139 OBSOL 4.2 sigreturn 265140 STD { int sys_adjtime(const struct timeval *delta, \ 266 struct timeval *olddelta); } 267141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \ 268 int *alen); } ogetpeername 269142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 270143 COMPAT_43 { int sys_sethostid(int32_t hostid); } osethostid 271144 COMPAT_43 { int sys_getrlimit(int which, \ 272 struct orlimit *rlp); } ogetrlimit 273145 COMPAT_43 { int sys_setrlimit(int which, \ 274 const struct orlimit *rlp); } osetrlimit 275146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg 276147 STD { int sys_setsid(void); } 277148 STD { int sys_quotactl(const char *path, int cmd, \ 278 int uid, caddr_t arg); } 279149 COMPAT_43 { int sys_quota(void); } oquota 280150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \ 281 int *alen); } ogetsockname 282 283; Syscalls 151-180 inclusive are reserved for vendor-specific 284; system calls. (This includes various calls added for compatibity 285; with other Unix variants.) 286; Some of these calls are now supported by BSD... 287151 UNIMPL 288152 UNIMPL 289153 UNIMPL 290154 UNIMPL 291#if defined(NFS) || defined(NFSSERVER) 292155 STD { int sys_nfssvc(int flag, void *argp); } 293#else 294155 UNIMPL 295#endif 296156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \ 297 u_int count, long *basep); } ogetdirentries 298157 STD { int sys_statfs(const char *path, \ 299 struct statfs *buf); } 300158 STD { int sys_fstatfs(int fd, struct statfs *buf); } 301159 UNIMPL 302160 UNIMPL 303#if defined(NFS) || defined(NFSSERVER) 304161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); } 305#else 306161 UNIMPL getfh 307#endif 308162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \ 309 ogetdomainname 310163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ 311 osetdomainname 312164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname 313165 STD { int sys_sysarch(int op, void *parms); } 314166 UNIMPL 315167 UNIMPL 316168 UNIMPL 317; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 318#if defined(SYSVSEM) && !defined(alpha) 319169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \ 320 int a5); } osemsys 321#else 322169 UNIMPL 1.0 semsys 323#endif 324; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 325#if defined(SYSVMSG) && !defined(alpha) 326170 COMPAT_10 { int sys_msgsys(int which, int a2, int a3, int a4, \ 327 int a5, int a6); } omsgsys 328#else 329170 UNIMPL 1.0 msgsys 330#endif 331; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 332#if defined(SYSVSHM) && !defined(alpha) 333171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \ 334 oshmsys 335#else 336171 UNIMPL 1.0 shmsys 337#endif 338172 UNIMPL 339173 UNIMPL 340174 UNIMPL 341175 STD { int sys_ntp_gettime(struct ntptimeval *ntvp); } 342176 STD { int sys_ntp_adjtime(struct timex *tp); } 343177 UNIMPL 344178 UNIMPL 345179 UNIMPL 346180 UNIMPL 347 348; Syscalls 180-199 are used by/reserved for BSD 349181 STD { int sys_setgid(gid_t gid); } 350182 STD { int sys_setegid(gid_t egid); } 351183 STD { int sys_seteuid(uid_t euid); } 352#ifdef LFS 353184 STD { int lfs_bmapv(fsid_t *fsidp, \ 354 struct block_info *blkiov, int blkcnt); } 355185 STD { int lfs_markv(fsid_t *fsidp, \ 356 struct block_info *blkiov, int blkcnt); } 357186 STD { int lfs_segclean(fsid_t *fsidp, u_long segment); } 358187 STD { int lfs_segwait(fsid_t *fsidp, struct timeval *tv); } 359#else 360184 UNIMPL 361185 UNIMPL 362186 UNIMPL 363187 UNIMPL 364#endif 365188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ 366 stat12 367189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 368190 COMPAT_12 { int sys_lstat(const char *path, \ 369 struct stat12 *ub); } lstat12 370191 STD { long sys_pathconf(const char *path, int name); } 371192 STD { long sys_fpathconf(int fd, int name); } 372193 UNIMPL 373194 STD { int sys_getrlimit(int which, \ 374 struct rlimit *rlp); } 375195 STD { int sys_setrlimit(int which, \ 376 const struct rlimit *rlp); } 377196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ 378 u_int count, long *basep); } 379197 STD { void *sys_mmap(void *addr, size_t len, int prot, \ 380 int flags, int fd, long pad, off_t pos); } 381198 INDIR { quad_t sys___syscall(quad_t num, ...); } 382199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \ 383 int whence); } 384200 STD { int sys_truncate(const char *path, int pad, \ 385 off_t length); } 386201 STD { int sys_ftruncate(int fd, int pad, off_t length); } 387202 STD { int sys___sysctl(int *name, u_int namelen, \ 388 void *old, size_t *oldlenp, void *new, \ 389 size_t newlen); } 390203 STD { int sys_mlock(const void *addr, size_t len); } 391204 STD { int sys_munlock(const void *addr, size_t len); } 392205 STD { int sys_undelete(const char *path); } 393206 STD { int sys_futimes(int fd, \ 394 const struct timeval *tptr); } 395207 STD { int sys_getpgid(pid_t pid); } 396208 STD { int sys_reboot(int opt, char *bootstr); } 397209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \ 398 int timeout); } 399; 400; Syscalls 210-219 are reserved for dynamically loaded syscalls 401; 402#ifdef LKM 403210 NODEF { int sys_lkmnosys(void); } 404211 NODEF { int sys_lkmnosys(void); } 405212 NODEF { int sys_lkmnosys(void); } 406213 NODEF { int sys_lkmnosys(void); } 407214 NODEF { int sys_lkmnosys(void); } 408215 NODEF { int sys_lkmnosys(void); } 409216 NODEF { int sys_lkmnosys(void); } 410217 NODEF { int sys_lkmnosys(void); } 411218 NODEF { int sys_lkmnosys(void); } 412219 NODEF { int sys_lkmnosys(void); } 413#else /* !LKM */ 414210 UNIMPL 415211 UNIMPL 416212 UNIMPL 417213 UNIMPL 418214 UNIMPL 419215 UNIMPL 420216 UNIMPL 421217 UNIMPL 422218 UNIMPL 423219 UNIMPL 424#endif /* !LKM */ 425; System calls 220-300 are reserved for use by NetBSD 426#ifdef SYSVSEM 427220 STD { int sys___semctl(int semid, int semnum, int cmd, \ 428 union semun *arg); } 429221 STD { int sys_semget(key_t key, int nsems, int semflg); } 430222 STD { int sys_semop(int semid, struct sembuf *sops, \ 431 size_t nsops); } 432223 STD { int sys_semconfig(int flag); } 433#else 434220 UNIMPL semctl 435221 UNIMPL semget 436222 UNIMPL semop 437223 UNIMPL semconfig 438#endif 439#ifdef SYSVMSG 440224 STD { int sys_msgctl(int msqid, int cmd, \ 441 struct msqid_ds *buf); } 442225 STD { int sys_msgget(key_t key, int msgflg); } 443226 STD { int sys_msgsnd(int msqid, const void *msgp, \ 444 size_t msgsz, int msgflg); } 445227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \ 446 size_t msgsz, long msgtyp, int msgflg); } 447#else 448224 UNIMPL msgctl 449225 UNIMPL msgget 450226 UNIMPL msgsnd 451227 UNIMPL msgrcv 452#endif 453#ifdef SYSVSHM 454228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ 455 int shmflg); } 456229 STD { int sys_shmctl(int shmid, int cmd, \ 457 struct shmid_ds *buf); } 458230 STD { int sys_shmdt(const void *shmaddr); } 459231 STD { int sys_shmget(key_t key, size_t size, int shmflg); } 460#else 461228 UNIMPL shmat 462229 UNIMPL shmctl 463230 UNIMPL shmdt 464231 UNIMPL shmget 465#endif 466232 STD { int sys_clock_gettime(clockid_t clock_id, \ 467 struct timespec *tp); } 468233 STD { int sys_clock_settime(clockid_t clock_id, \ 469 const struct timespec *tp); } 470234 STD { int sys_clock_getres(clockid_t clock_id, \ 471 struct timespec *tp); } 472235 UNIMPL timer_create 473236 UNIMPL timer_delete 474237 UNIMPL timer_settime 475238 UNIMPL timer_gettime 476239 UNIMPL timer_getoverrun 477; 478; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 479; 480240 STD { int sys_nanosleep(const struct timespec *rqtp, \ 481 struct timespec *rmtp); } 482241 STD { int sys_fdatasync(int fd); } 483242 UNIMPL 484243 UNIMPL 485244 UNIMPL 486245 UNIMPL 487246 UNIMPL 488247 UNIMPL 489248 UNIMPL 490249 UNIMPL 491250 UNIMPL 492251 UNIMPL 493252 UNIMPL 494253 UNIMPL 495254 UNIMPL 496255 UNIMPL 497256 UNIMPL 498257 UNIMPL 499258 UNIMPL 500259 UNIMPL 501260 UNIMPL 502261 UNIMPL 503262 UNIMPL 504263 UNIMPL 505264 UNIMPL 506265 UNIMPL 507266 UNIMPL 508267 UNIMPL 509268 UNIMPL 510269 UNIMPL 511270 STD { int sys___posix_rename(const char *from, \ 512 const char *to); } 513271 STD { int sys_swapctl(int cmd, const void *arg, int misc); } 514272 STD { int sys_getdents(int fd, char *buf, size_t count); } 515273 STD { int sys_minherit(void *addr, size_t len, \ 516 int inherit); } 517274 STD { int sys_lchmod(const char *path, mode_t mode); } 518275 STD { int sys_lchown(const char *path, uid_t uid, \ 519 gid_t gid); } 520276 STD { int sys_lutimes(const char *path, \ 521 const struct timeval *tptr); } 522277 STD { int sys___msync13(void *addr, size_t len, int flags); } 523278 STD { int sys___stat13(const char *path, struct stat *ub); } 524279 STD { int sys___fstat13(int fd, struct stat *sb); } 525280 STD { int sys___lstat13(const char *path, struct stat *ub); } 526281 STD { int sys___sigaltstack14(const struct sigaltstack \ 527 *nss, struct sigaltstack *oss); } 528282 STD { int sys___vfork14(void); } 529283 STD { int sys___posix_chown(const char *path, uid_t uid, \ 530 gid_t gid); } 531284 STD { int sys___posix_fchown(int fd, uid_t uid, \ 532 gid_t gid); } 533285 STD { int sys___posix_lchown(const char *path, uid_t uid, \ 534 gid_t gid); } 535286 STD { pid_t sys_getsid(pid_t pid); } 536287 UNIMPL 537#ifdef KTRACE 538288 STD { int sys_fktrace(const int fd, int ops, \ 539 int facs, int pid); } 540#else 541288 UNIMPL 542#endif 543