syscalls.master revision 184789
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 184789 2008-11-09 10:45:13Z ed $ 2; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 3; from: src/sys/kern/syscalls.master 1.107 4; 5; System call name/number master file. 6; Processed to created init_sysent.c, syscalls.c and syscall.h. 7 8; Columns: number audit type nargs name alt{name,tag,rtyp}/comments 9; number system call number, must be in order 10; audit the audit event associated with the system call 11; A value of AUE_NULL means no auditing, but it also means that 12; there is no audit event for the call at this time. For the 13; case where the event exists, but we don't want auditing, the 14; event should be #defined to AUE_NULL in audit_kevents.h. 15; type one of STD, OBSOL, UNIMPL, COMPAT, CPT_NOA, LIBCOMPAT, 16; NODEF, NOARGS, NOPROTO, NOIMPL, NOSTD, COMPAT4 17; name psuedo-prototype of syscall routine 18; If one of the following alts is different, then all appear: 19; altname name of system call if different 20; alttag name of args struct tag if different from [o]`name'"_args" 21; altrtyp return type if not int (bogus - syscalls always return int) 22; for UNIMPL/OBSOL, name continues with comments 23 24; types: 25; STD always included 26; COMPAT included on COMPAT #ifdef 27; COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat) 28; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 29; OBSOL obsolete, not included in system, only specifies name 30; UNIMPL not implemented, placeholder only 31; NOSTD implemented but as a lkm that can be statically 32; compiled in; sysent entry will be filled with lkmsys 33; so the SYSCALL_MODULE macro works 34; NOARGS same as STD except do not create structure in sys/sysproto.h 35; NODEF same as STD except only have the entry in the syscall table 36; added. Meaning - do not create structure or function 37; prototype in sys/sysproto.h 38; NOPROTO same as STD except do not create structure or 39; function prototype in sys/sysproto.h. Does add a 40; definition to syscall.h besides adding a sysent. 41 42; #ifdef's, etc. may be included, and are copied to the output files. 43 44#include <sys/param.h> 45#include <sys/sysent.h> 46#include <sys/sysproto.h> 47#include <sys/mount.h> 48#include <sys/socket.h> 49#include <compat/freebsd32/freebsd32.h> 50#include <compat/freebsd32/freebsd32_proto.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 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int 591 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \ 60 sys_exit_args void 612 AUE_FORK NOPROTO { int fork(void); } 623 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \ 63 size_t nbyte); } 644 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \ 65 size_t nbyte); } 665 AUE_OPEN_RWTC NOPROTO { int open(char *path, int flags, \ 67 int mode); } 686 AUE_CLOSE NOPROTO { int close(int fd); } 697 AUE_WAIT4 STD { int freebsd32_wait4(int pid, int *status, \ 70 int options, struct rusage32 *rusage); } 718 AUE_CREAT OBSOL old creat 729 AUE_LINK NOPROTO { int link(char *path, char *link); } 7310 AUE_UNLINK NOPROTO { int unlink(char *path); } 7411 AUE_NULL OBSOL execv 7512 AUE_CHDIR NOPROTO { int chdir(char *path); } 7613 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 7714 AUE_MKNOD NOPROTO { int mknod(char *path, int mode, int dev); } 7815 AUE_CHMOD NOPROTO { int chmod(char *path, int mode); } 7916 AUE_CHOWN NOPROTO { int chown(char *path, int uid, int gid); } 8017 AUE_NULL NOPROTO { int obreak(char *nsize); } break \ 81 obreak_args int 8218 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 83 struct statfs32 *buf, long bufsize, \ 84 int flags); } 8519 AUE_LSEEK OBSOL olseek 8620 AUE_GETPID NOPROTO { pid_t getpid(void); } 8721 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \ 88 int flags, caddr_t data); } 8922 AUE_UMOUNT NOPROTO { int unmount(char *path, int flags); } 9023 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 9124 AUE_GETUID NOPROTO { uid_t getuid(void); } 9225 AUE_GETEUID NOPROTO { uid_t geteuid(void); } 9326 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \ 94 caddr_t addr, int data); } 9527 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \ 96 int flags); } 9728 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \ 98 int flags); } 9929 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, u_int32_t buf, \ 100 u_int32_t len, int flags, u_int32_t from, \ 101 u_int32_t fromlenaddr); } 10230 AUE_ACCEPT NOPROTO { int accept(int s, caddr_t name, \ 103 int *anamelen); } 10431 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, caddr_t asa, \ 105 int *alen); } 10632 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, caddr_t asa, \ 107 int *alen); } 10833 AUE_ACCESS NOPROTO { int access(char *path, int flags); } 10934 AUE_CHFLAGS NOPROTO { int chflags(char *path, int flags); } 11035 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, int flags); } 11136 AUE_SYNC NOPROTO { int sync(void); } 11237 AUE_KILL NOPROTO { int kill(int pid, int signum); } 11338 AUE_STAT UNIMPL ostat 11439 AUE_GETPPID NOPROTO { pid_t getppid(void); } 11540 AUE_LSTAT UNIMPL olstat 11641 AUE_DUP NOPROTO { int dup(u_int fd); } 11742 AUE_PIPE NOPROTO { int pipe(void); } 11843 AUE_GETEGID NOPROTO { gid_t getegid(void); } 11944 AUE_PROFILE NOPROTO { int profil(caddr_t samples, size_t size, \ 120 size_t offset, u_int scale); } 12145 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 122 int facs, int pid); } 12346 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 124 struct osigaction32 *nsa, \ 125 struct osigaction32 *osa); } 12647 AUE_GETGID NOPROTO { gid_t getgid(void); } 12748 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 128 osigset_t mask); } 12949 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 130 u_int namelen); } 13150 AUE_SETLOGIN NOPROTO { int setlogin(char *namebuf); } 13251 AUE_ACCT NOPROTO { int acct(char *path); } 13352 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 13453 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 135 struct sigaltstack32 *ss, \ 136 struct sigaltstack32 *oss); } 13754 AUE_NULL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 138 struct md_ioctl32 *data); } 13955 AUE_REBOOT NOPROTO { int reboot(int opt); } 14056 AUE_REVOKE NOPROTO { int revoke(char *path); } 14157 AUE_SYMLINK NOPROTO { int symlink(char *path, char *link); } 14258 AUE_READLINK NOPROTO { ssize_t readlink(char *path, char *buf, \ 143 size_t count); } 14459 AUE_EXECVE STD { int freebsd32_execve(char *fname, \ 145 u_int32_t *argv, u_int32_t *envv); } 14660 AUE_UMASK NOPROTO { int umask(int newmask); } umask \ 147 umask_args int 14861 AUE_CHROOT NOPROTO { int chroot(char *path); } 14962 AUE_FSTAT OBSOL ofstat 15063 AUE_NULL OBSOL ogetkerninfo 15164 AUE_NULL OBSOL ogetpagesize 15265 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 153 int flags); } 15466 AUE_VFORK NOPROTO { int vfork(void); } 15567 AUE_NULL OBSOL vread 15668 AUE_NULL OBSOL vwrite 15769 AUE_SBRK NOPROTO { int sbrk(int incr); } 15870 AUE_SSTK NOPROTO { int sstk(int incr); } 15971 AUE_MMAP OBSOL ommap 16072 AUE_O_VADVISE NOPROTO { int ovadvise(int anom); } vadvise \ 161 ovadvise_args int 16273 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 16374 AUE_MPROTECT NOPROTO { int mprotect(const void *addr, \ 164 size_t len, int prot); } 16575 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 166 int behav); } 16776 AUE_NULL OBSOL vhangup 16877 AUE_NULL OBSOL vlimit 16978 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 170 char *vec); } 17179 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 172 gid_t *gidset); } 17380 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 174 gid_t *gidset); } 17581 AUE_GETPGRP NOPROTO { int getpgrp(void); } 17682 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 17783 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 178 struct itimerval32 *itv, \ 179 struct itimerval32 *oitv); } 18084 AUE_NULL OBSOL owait 181; XXX implement 18285 AUE_SWAPON NOPROTO { int swapon(char *name); } 18386 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 184 struct itimerval32 *itv); } 18587 AUE_O_GETHOSTNAME OBSOL ogethostname 18688 AUE_O_SETHOSTNAME OBSOL osethostname 18789 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 18890 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 18991 AUE_NULL UNIMPL getdopt 19092 AUE_FCNTL NOPROTO { int fcntl(int fd, int cmd, long arg); } 19193 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 192 fd_set *ou, fd_set *ex, \ 193 struct timeval32 *tv); } 194; XXX need to override for big-endian - little-endian should work fine. 19594 AUE_NULL UNIMPL setdopt 19695 AUE_FSYNC NOPROTO { int fsync(int fd); } 19796 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 198 int prio); } 19997 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 200 int protocol); } 20198 AUE_CONNECT NOPROTO { int connect(int s, caddr_t name, \ 202 int namelen); } 20399 AUE_NULL OBSOL oaccept 204100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 205101 AUE_NULL OBSOL osend 206102 AUE_NULL OBSOL orecv 207103 AUE_NULL OBSOL osigreturn 208104 AUE_BIND NOPROTO { int bind(int s, caddr_t name, \ 209 int namelen); } 210105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 211 int name, caddr_t val, int valsize); } 212106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 213107 AUE_NULL OBSOL vtimes 214108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 215 struct sigvec32 *nsv, \ 216 struct sigvec32 *osv); } 217109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 218110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 219111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 220112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 221 struct sigstack32 *nss, \ 222 struct sigstack32 *oss); } 223113 AUE_NULL OBSOL orecvmsg 224114 AUE_NULL OBSOL osendmsg 225115 AUE_NULL OBSOL vtrace 226116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 227 struct timeval32 *tp, \ 228 struct timezone *tzp); } 229117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 230 struct rusage32 *rusage); } 231118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 232 int name, caddr_t val, int *avalsize); } 233119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 234120 AUE_READV STD { int freebsd32_readv(int fd, \ 235 struct iovec32 *iovp, u_int iovcnt); } 236121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 237 struct iovec32 *iovp, u_int iovcnt); } 238122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 239 struct timeval32 *tv, \ 240 struct timezone *tzp); } 241123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 242124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 243125 AUE_RECVFROM OBSOL orecvfrom 244126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 245127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 246128 AUE_RENAME NOPROTO { int rename(char *from, char *to); } 247129 AUE_TRUNCATE OBSOL otruncate 248130 AUE_FTRUNCATE OBSOL ftruncate 249131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 250132 AUE_MKFIFO NOPROTO { int mkfifo(char *path, int mode); } 251133 AUE_SENDTO NOPROTO { int sendto(int s, caddr_t buf, \ 252 size_t len, int flags, caddr_t to, \ 253 int tolen); } 254134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 255135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 256 int protocol, int *rsv); } 257136 AUE_MKDIR NOPROTO { int mkdir(char *path, int mode); } 258137 AUE_RMDIR NOPROTO { int rmdir(char *path); } 259138 AUE_UTIMES STD { int freebsd32_utimes(char *path, \ 260 struct timeval32 *tptr); } 261139 AUE_NULL OBSOL 4.2 sigreturn 262140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 263 struct timeval32 *delta, \ 264 struct timeval32 *olddelta); } 265141 AUE_GETPEERNAME OBSOL ogetpeername 266142 AUE_SYSCTL OBSOL ogethostid 267143 AUE_SYSCTL OBSOL sethostid 268144 AUE_GETRLIMIT OBSOL getrlimit 269145 AUE_SETRLIMIT OBSOL setrlimit 270146 AUE_KILLPG OBSOL killpg 271147 AUE_SETSID NOPROTO { int setsid(void); } 272148 AUE_QUOTACTL NOPROTO { int quotactl(char *path, int cmd, int uid, \ 273 caddr_t arg); } 274149 AUE_O_QUOTA OBSOL oquota 275150 AUE_GETSOCKNAME OBSOL ogetsockname 276 277; Syscalls 151-180 inclusive are reserved for vendor-specific 278; system calls. (This includes various calls added for compatibity 279; with other Unix variants.) 280; Some of these calls are now supported by BSD... 281151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 282152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 283153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 284; 154 is initialised by the NLM code, if present. 285154 AUE_NULL UNIMPL nlm_syscall 286; 155 is initialized by the NFS code, if present. 287; XXX this is a problem!!! 288155 AUE_NFS_SVC UNIMPL nfssvc 289156 AUE_GETDIRENTRIES OBSOL ogetdirentries 290157 AUE_STATFS COMPAT4 { int freebsd32_statfs(char *path, \ 291 struct statfs32 *buf); } 292158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 293 struct statfs32 *buf); } 294159 AUE_NULL UNIMPL nosys 295160 AUE_LGETFH UNIMPL lgetfh 296161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \ 297 struct fhandle *fhp); } 298162 AUE_NULL OBSOL getdomainname 299163 AUE_NULL OBSOL setdomainname 300164 AUE_NULL OBSOL uname 301165 AUE_SYSARCH NOPROTO { int sysarch(int op, char *parms); } 302166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 303 struct rtprio *rtp); } 304167 AUE_NULL UNIMPL nosys 305168 AUE_NULL UNIMPL nosys 306169 AUE_SEMSYS STD { int freebsd32_semsys(int which, int a2, \ 307 int a3, int a4, int a5); } 308170 AUE_MSGSYS STD { int freebsd32_msgsys(int which, int a2, \ 309 int a3, int a4, int a5, int a6); } 310171 AUE_SHMSYS STD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 311 uint32_t a3, uint32_t a4); } 312172 AUE_NULL UNIMPL nosys 313173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 314 size_t nbyte, int pad, \ 315 u_int32_t offsetlo, u_int32_t offsethi); } 316; XXX note - bigendian is different 317174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 318 const void *buf, size_t nbyte, int pad, \ 319 u_int32_t offsetlo, u_int32_t offsethi); } 320; XXX note - bigendian is different 321175 AUE_NULL UNIMPL nosys 322176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); } 323177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 324178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 325179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 326180 AUE_NULL UNIMPL nosys 327 328; Syscalls 181-199 are used by/reserved for BSD 329181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 330182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 331183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 332184 AUE_NULL UNIMPL lfs_bmapv 333185 AUE_NULL UNIMPL lfs_markv 334186 AUE_NULL UNIMPL lfs_segclean 335187 AUE_NULL UNIMPL lfs_segwait 336188 AUE_STAT STD { int freebsd32_stat(char *path, \ 337 struct stat32 *ub); } 338189 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 339 struct stat32 *ub); } 340190 AUE_LSTAT STD { int freebsd32_lstat(char *path, \ 341 struct stat32 *ub); } 342191 AUE_PATHCONF NOPROTO { int pathconf(char *path, int name); } 343192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 344193 AUE_NULL UNIMPL nosys 345194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 346 struct rlimit *rlp); } getrlimit \ 347 __getrlimit_args int 348195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 349 struct rlimit *rlp); } setrlimit \ 350 __setrlimit_args int 351196 AUE_GETDIRENTRIES STD { int freebsd32_getdirentries(int fd, \ 352 char *buf, u_int count, int32_t *basep); } 353197 AUE_MMAP COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \ 354 size_t len, int prot, int flags, int fd, \ 355 int pad, u_int32_t poslo, \ 356 u_int32_t poshi); } 357198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 358 __syscall_args int 359; XXX note - bigendian is different 360199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 361 u_int32_t offsetlo, u_int32_t offsethi, \ 362 int whence); } 363; XXX note - bigendian is different 364200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(char *path, \ 365 int pad, u_int32_t lengthlo, \ 366 u_int32_t lengthhi); } 367; XXX note - bigendian is different 368201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 369 u_int32_t lengthlo, u_int32_t lengthhi); } 370202 AUE_SYSCTL STD { int freebsd32_sysctl(int *name, \ 371 u_int namelen, void *old, \ 372 u_int32_t *oldlenp, void *new, \ 373 u_int32_t newlen); } 374203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \ 375 size_t len); } 376204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \ 377 size_t len); } 378205 AUE_UNDELETE NOPROTO { int undelete(char *path); } 379206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \ 380 struct timeval32 *tptr); } 381207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); } 382208 AUE_NULL UNIMPL newreboot (NetBSD) 383209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \ 384 int timeout); } 385 386; 387; The following are reserved for loadable syscalls 388; 389210 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 390211 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 391212 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 392213 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 393214 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 394215 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 395216 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 396217 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 397218 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 398219 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 399 400; 401; The following were introduced with NetBSD/4.4Lite-2 402; They are initialized by thier respective modules/sysinits 403; XXX PROBLEM!! 404220 AUE_SEMCTL STD { int freebsd32_semctl(int semid, int semnum, \ 405 int cmd, union semun32 *arg); } 406221 AUE_SEMGET NOPROTO { int semget(key_t key, int nsems, \ 407 int semflg); } 408222 AUE_SEMOP NOPROTO { int semop(int semid, struct sembuf *sops, \ 409 u_int nsops); } 410223 AUE_NULL UNIMPL semconfig 411224 AUE_MSGCTL STD { int freebsd32_msgctl(int msqid, int cmd, \ 412 struct msqid_ds32 *buf); } 413225 AUE_MSGGET NOPROTO { int msgget(key_t key, int msgflg); } 414226 AUE_MSGSND STD { int freebsd32_msgsnd(int msqid, void *msgp, \ 415 size_t msgsz, int msgflg); } 416227 AUE_MSGRCV STD { int freebsd32_msgrcv(int msqid, void *msgp, \ 417 size_t msgsz, long msgtyp, int msgflg); } 418228 AUE_SHMAT NOPROTO { int shmat(int shmid, void *shmaddr, \ 419 int shmflg); } 420229 AUE_SHMCTL STD { int freebsd32_shmctl(int shmid, int cmd, \ 421 struct shmid_ds *buf); } 422230 AUE_SHMDT NOPROTO { int shmdt(void *shmaddr); } 423231 AUE_SHMGET NOPROTO { int shmget(key_t key, int size, \ 424 int shmflg); } 425; 426232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \ 427 struct timespec32 *tp); } 428233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \ 429 const struct timespec32 *tp); } 430234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \ 431 struct timespec32 *tp); } 432235 AUE_NULL UNIMPL timer_create 433236 AUE_NULL UNIMPL timer_delete 434237 AUE_NULL UNIMPL timer_settime 435238 AUE_NULL UNIMPL timer_gettime 436239 AUE_NULL UNIMPL timer_getoverrun 437240 AUE_NULL STD { int freebsd32_nanosleep( \ 438 const struct timespec32 *rqtp, \ 439 struct timespec32 *rmtp); } 440241 AUE_NULL UNIMPL nosys 441242 AUE_NULL UNIMPL nosys 442243 AUE_NULL UNIMPL nosys 443244 AUE_NULL UNIMPL nosys 444245 AUE_NULL UNIMPL nosys 445246 AUE_NULL UNIMPL nosys 446247 AUE_NULL UNIMPL nosys 447248 AUE_NULL UNIMPL ntp_gettime 448249 AUE_NULL UNIMPL nosys 449; syscall numbers initially used in OpenBSD 450250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \ 451 int inherit); } 452251 AUE_RFORK NOPROTO { int rfork(int flags); } 453252 AUE_POLL NOPROTO { int openbsd_poll(struct pollfd *fds, \ 454 u_int nfds, int timeout); } 455253 AUE_ISSETUGID NOPROTO { int issetugid(void); } 456254 AUE_LCHOWN NOPROTO { int lchown(char *path, int uid, int gid); } 457255 AUE_NULL UNIMPL nosys 458256 AUE_NULL UNIMPL nosys 459257 AUE_NULL UNIMPL nosys 460258 AUE_NULL UNIMPL nosys 461259 AUE_NULL UNIMPL nosys 462260 AUE_NULL UNIMPL nosys 463261 AUE_NULL UNIMPL nosys 464262 AUE_NULL UNIMPL nosys 465263 AUE_NULL UNIMPL nosys 466264 AUE_NULL UNIMPL nosys 467265 AUE_NULL UNIMPL nosys 468266 AUE_NULL UNIMPL nosys 469267 AUE_NULL UNIMPL nosys 470268 AUE_NULL UNIMPL nosys 471269 AUE_NULL UNIMPL nosys 472270 AUE_NULL UNIMPL nosys 473271 AUE_NULL UNIMPL nosys 474272 AUE_O_GETDENTS NOPROTO { int getdents(int fd, char *buf, \ 475 size_t count); } 476273 AUE_NULL UNIMPL nosys 477274 AUE_LCHMOD NOPROTO { int lchmod(char *path, mode_t mode); } 478275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \ 479 gid_t gid); } netbsd_lchown \ 480 lchown_args int 481276 AUE_LUTIMES STD { int freebsd32_lutimes(char *path, \ 482 struct timeval32 *tptr); } 483277 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 484 int flags); } netbsd_msync msync_args int 485278 AUE_STAT NOPROTO { int nstat(char *path, struct nstat *ub); } 486279 AUE_FSTAT NOPROTO { int nfstat(int fd, struct nstat *sb); } 487280 AUE_LSTAT NOPROTO { int nlstat(char *path, struct nstat *ub); } 488281 AUE_NULL UNIMPL nosys 489282 AUE_NULL UNIMPL nosys 490283 AUE_NULL UNIMPL nosys 491284 AUE_NULL UNIMPL nosys 492285 AUE_NULL UNIMPL nosys 493286 AUE_NULL UNIMPL nosys 494287 AUE_NULL UNIMPL nosys 495288 AUE_NULL UNIMPL nosys 496; 289 and 290 from NetBSD (OpenBSD: 267 and 268) 497289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \ 498 struct iovec32 *iovp, \ 499 u_int iovcnt, off_t offset); } 500; XXX note - bigendian is different 501290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 502 struct iovec32 *iovp, \ 503 u_int iovcnt, off_t offset); } 504; XXX note - bigendian is different 505291 AUE_NULL UNIMPL nosys 506292 AUE_NULL UNIMPL nosys 507293 AUE_NULL UNIMPL nosys 508294 AUE_NULL UNIMPL nosys 509295 AUE_NULL UNIMPL nosys 510296 AUE_NULL UNIMPL nosys 511; XXX 297 is 300 in NetBSD 512297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \ 513 const struct fhandle *u_fhp, \ 514 struct statfs32 *buf); } 515298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \ 516 int flags); } 517299 AUE_FHSTAT NOPROTO { int fhstat(const struct fhandle *u_fhp, \ 518 struct stat *sb); } 519; syscall numbers for FreeBSD 520300 AUE_NULL NOPROTO { int modnext(int modid); } 521301 AUE_NULL STD { int freebsd32_modstat(int modid, \ 522 struct module_stat32* stat); } 523302 AUE_NULL NOPROTO { int modfnext(int modid); } 524303 AUE_NULL NOPROTO { int modfind(const char *name); } 525304 AUE_MODLOAD NOPROTO { int kldload(const char *file); } 526305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); } 527306 AUE_NULL NOPROTO { int kldfind(const char *file); } 528307 AUE_NULL NOPROTO { int kldnext(int fileid); } 529308 AUE_NULL NOPROTO { int kldstat(int fileid, \ 530 struct kld_file_stat* stat); } 531309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); } 532310 AUE_GETSID NOPROTO { int getsid(pid_t pid); } 533311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 534 uid_t suid); } 535312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 536 gid_t sgid); } 537313 AUE_NULL OBSOL signanosleep 538314 AUE_NULL UNIMPL aio_return 539315 AUE_NULL UNIMPL aio_suspend 540316 AUE_NULL UNIMPL aio_cancel 541317 AUE_NULL UNIMPL aio_error 542318 AUE_NULL UNIMPL aio_read 543319 AUE_NULL UNIMPL aio_write 544320 AUE_NULL UNIMPL lio_listio 545321 AUE_NULL NOPROTO { int yield(void); } 546322 AUE_NULL OBSOL thr_sleep 547323 AUE_NULL OBSOL thr_wakeup 548324 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 549325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 550326 AUE_GETCWD NOPROTO { int __getcwd(u_char *buf, u_int buflen); } 551 552327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \ 553 const struct sched_param *param); } 554328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \ 555 struct sched_param *param); } 556 557329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \ 558 int policy, \ 559 const struct sched_param *param); } 560330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); } 561 562331 AUE_NULL NOPROTO { int sched_yield (void); } 563332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); } 564333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); } 565334 AUE_NULL NOPROTO { int sched_rr_get_interval (pid_t pid, \ 566 struct timespec *interval); } 567335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); } 568; XXX note - bigendian is different 569336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 570 u_int32_t offsetlo, u_int32_t offsethi, \ 571 size_t nbytes, struct sf_hdtr32 *hdtr, \ 572 off_t *sbytes, int flags); } 573337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 574 void *data); } 575338 AUE_JAIL NOPROTO { int jail(struct jail *jail); } 576339 AUE_NULL UNIMPL pioctl 577340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 578 const sigset_t *set, sigset_t *oset); } 579341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 580342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 581 struct sigaction32 *act, \ 582 struct sigaction32 *oact); } 583343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 584344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 585 const struct freebsd4_freebsd32_ucontext *sigcntxp); } 586345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 587 siginfo_t *info, \ 588 const struct timespec *timeout); } 589346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 590 siginfo_t *info); } 591347 AUE_NULL NOPROTO { int __acl_get_file(const char *path, \ 592 acl_type_t type, struct acl *aclp); } 593348 AUE_NULL NOPROTO { int __acl_set_file(const char *path, \ 594 acl_type_t type, struct acl *aclp); } 595349 AUE_NULL NOPROTO { int __acl_get_fd(int filedes, \ 596 acl_type_t type, struct acl *aclp); } 597350 AUE_NULL NOPROTO { int __acl_set_fd(int filedes, \ 598 acl_type_t type, struct acl *aclp); } 599351 AUE_NULL NOPROTO { int __acl_delete_file(const char *path, \ 600 acl_type_t type); } 601352 AUE_NULL NOPROTO { int __acl_delete_fd(int filedes, \ 602 acl_type_t type); } 603353 AUE_NULL NOPROTO { int __acl_aclcheck_file(const char *path, \ 604 acl_type_t type, struct acl *aclp); } 605354 AUE_NULL NOPROTO { int __acl_aclcheck_fd(int filedes, \ 606 acl_type_t type, struct acl *aclp); } 607355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 608 const char *filename, int attrnamespace, \ 609 const char *attrname); } 610356 AUE_EXTATTR_SET_FILE NOPROTO { int extattr_set_file( \ 611 const char *path, int attrnamespace, \ 612 const char *attrname, void *data, \ 613 size_t nbytes); } 614357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 615 const char *path, int attrnamespace, \ 616 const char *attrname, void *data, \ 617 size_t nbytes); } 618358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 619 const char *path, int attrnamespace, \ 620 const char *attrname); } 621359 AUE_NULL UNIMPL aio_waitcomplete 622360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 623 uid_t *suid); } 624361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 625 gid_t *sgid); } 626362 AUE_KQUEUE NOPROTO { int kqueue(void); } 627363 AUE_NULL STD { int freebsd32_kevent(int fd, \ 628 const struct kevent32 *changelist, \ 629 int nchanges, \ 630 struct kevent32 *eventlist, int nevents, \ 631 const struct timespec32 *timeout); } 632364 AUE_NULL UNIMPL __cap_get_proc 633365 AUE_NULL UNIMPL __cap_set_proc 634366 AUE_NULL UNIMPL __cap_get_fd 635367 AUE_NULL UNIMPL __cap_get_file 636368 AUE_NULL UNIMPL __cap_set_fd 637369 AUE_NULL UNIMPL __cap_set_file 638370 AUE_NULL UNIMPL nosys 639371 AUE_EXTATTR_SET_FD NOPROTO { int extattr_set_fd(int fd, \ 640 int attrnamespace, const char *attrname, \ 641 void *data, size_t nbytes); } 642372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 643 int attrnamespace, const char *attrname, \ 644 void *data, size_t nbytes); } 645373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 646 int attrnamespace, \ 647 const char *attrname); } 648374 AUE_NULL NOPROTO { int __setugid(int flag); } 649375 AUE_NULL UNIMPL nfsclnt 650376 AUE_EACCESS NOPROTO { int eaccess(char *path, int flags); } 651377 AUE_NULL UNIMPL afs_syscall 652378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 653 unsigned int iovcnt, int flags); } 654379 AUE_NULL UNIMPL kse_exit 655380 AUE_NULL UNIMPL kse_wakeup 656381 AUE_NULL UNIMPL kse_create 657382 AUE_NULL UNIMPL kse_thr_interrupt 658383 AUE_NULL UNIMPL kse_release 659384 AUE_NULL UNIMPL __mac_get_proc 660385 AUE_NULL UNIMPL __mac_set_proc 661386 AUE_NULL UNIMPL __mac_get_fd 662387 AUE_NULL UNIMPL __mac_get_file 663388 AUE_NULL UNIMPL __mac_set_fd 664389 AUE_NULL UNIMPL __mac_set_file 665390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 666 char *value, int len); } 667391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, int flags); } 668392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 669 int count); } 670393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 671 u_int32_t offsetlo, u_int32_t offsethi, \ 672 size_t nbytes, struct sf_hdtr32 *hdtr, \ 673 off_t *sbytes, int flags); } 674394 AUE_NULL UNIMPL mac_syscall 675395 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs *buf, \ 676 long bufsize, int flags); } 677396 AUE_STATFS NOPROTO { int statfs(char *path, \ 678 struct statfs *buf); } 679397 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs *buf); } 680398 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 681 struct statfs *buf); } 682399 AUE_NULL UNIMPL nosys 683; XXX implement these? 684400 AUE_NULL UNIMPL ksem_close 685401 AUE_NULL UNIMPL ksem_post 686402 AUE_NULL UNIMPL ksem_wait 687403 AUE_NULL UNIMPL ksem_trywait 688404 AUE_NULL UNIMPL ksem_init 689405 AUE_NULL UNIMPL ksem_open 690406 AUE_NULL UNIMPL ksem_unlink 691407 AUE_NULL UNIMPL ksem_getvalue 692408 AUE_NULL UNIMPL ksem_destroy 693409 AUE_NULL UNIMPL __mac_get_pid 694410 AUE_NULL UNIMPL __mac_get_link 695411 AUE_NULL UNIMPL __mac_set_link 696412 AUE_EXTATTR_SET_LINK UNIMPL extattr_set_link 697413 AUE_EXTATTR_GET_LINK UNIMPL extattr_get_link 698414 AUE_EXTATTR_DELETE_LINK UNIMPL extattr_delete_link 699415 AUE_NULL UNIMPL __mac_execve 700416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 701 struct sigaction32 *act, \ 702 struct sigaction32 *oact); } 703417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 704 const struct freebsd32_ucontext *sigcntxp); } 705418 AUE_NULL UNIMPL __xstat 706419 AUE_NULL UNIMPL __xfstat 707420 AUE_NULL UNIMPL __xlstat 708421 AUE_NULL STD { int freebsd32_getcontext( \ 709 struct freebsd32_ucontext *ucp); } 710422 AUE_NULL STD { int freebsd32_setcontext( \ 711 const struct freebsd32_ucontext *ucp); } 712423 AUE_NULL STD { int freebsd32_swapcontext( \ 713 struct freebsd32_ucontext *oucp, \ 714 const struct freebsd32_ucontext *ucp); } 715424 AUE_SWAPOFF UNIMPL swapoff 716425 AUE_NULL UNIMPL __acl_get_link 717426 AUE_NULL UNIMPL __acl_set_link 718427 AUE_NULL UNIMPL __acl_delete_link 719428 AUE_NULL UNIMPL __acl_aclcheck_link 720429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 721 int *sig); } 722430 AUE_NULL UNIMPL thr_create; 723431 AUE_NULL NOPROTO { void thr_exit(long *state); } 724432 AUE_NULL NOPROTO { int thr_self(long *id); } 725433 AUE_NULL NOPROTO { int thr_kill(long id, int sig); } 726434 AUE_NULL STD { int freebsd32_umtx_lock(struct umtx *umtx); } 727435 AUE_NULL STD { int freebsd32_umtx_unlock(struct umtx *umtx); } 728436 AUE_NULL NOPROTO { int jail_attach(int jid); } 729437 AUE_EXTATTR_LIST_FD UNIMPL extattr_list_fd 730438 AUE_EXTATTR_LIST_FILE UNIMPL extattr_list_file 731439 AUE_EXTATTR_LIST_LINK UNIMPL extattr_list_link 732440 AUE_NULL UNIMPL kse_switchin 733441 AUE_NULL UNIMPL ksem_timedwait 734442 AUE_NULL STD { int freebsd32_thr_suspend( \ 735 const struct timespec32 *timeout); } 736443 AUE_NULL NOPROTO { int thr_wake(long id); } 737444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 738445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 739 u_int length); } 740446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 741 u_int length); } 742447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 743448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 744449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 745450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 746451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 747 struct auditinfo_addr *auditinfo_addr, \ 748 u_int length); } 749452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 750 struct auditinfo_addr *auditinfo_addr, \ 751 u_int length); } 752453 AUE_AUDITCTL NOPROTO { int auditctl(char *path); } 753454 AUE_NULL STD { int freebsd32_umtx_op(void *obj, int op,\ 754 u_long val, void *uaddr, \ 755 void *uaddr2); } 756455 AUE_NULL STD { int freebsd32_thr_new( \ 757 struct thr_param32 *param, \ 758 int param_size); } 759456 AUE_NULL NOPROTO { int sigqueue(pid_t pid, int signum, \ 760 void *value); } 761457 AUE_NULL UNIMPL kmq_open 762458 AUE_NULL UNIMPL kmq_setattr 763459 AUE_NULL UNIMPL kmq_timedreceive 764460 AUE_NULL UNIMPL kmq_timedsend 765461 AUE_NULL UNIMPL kmq_notify 766462 AUE_NULL UNIMPL kmq_unlink 767463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 768464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 769465 AUE_NULL UNIMPL aio_fsync 770466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 771 lwpid_t lwpid, struct rtprio *rtp); } 772467 AUE_NULL UNIMPL nosys 773468 AUE_NULL UNIMPL nosys 774469 AUE_NULL UNIMPL __getpath_fromfd 775470 AUE_NULL UNIMPL __getpath_fromaddr 776471 AUE_NULL NOPROTO { int sctp_peeloff(int sd, uint32_t name); } 777472 AUE_NULL NOPROTO { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ 778 caddr_t to, __socklen_t tolen, \ 779 struct sctp_sndrcvinfo *sinfo, int flags); } 780473 AUE_NULL NOPROTO { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 781 caddr_t to, __socklen_t tolen, \ 782 struct sctp_sndrcvinfo *sinfo, int flags); } 783474 AUE_NULL NOPROTO { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 784 struct sockaddr * from, __socklen_t *fromlenaddr, \ 785 struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 786475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 787 void *buf,size_t nbyte, \ 788 u_int32_t offsetlo, u_int32_t offsethi); } 789476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 790 const void *buf, size_t nbyte, \ 791 u_int32_t offsetlo, u_int32_t offsethi); } 792477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 793 size_t len, int prot, int flags, int fd, \ 794 u_int32_t poslo, u_int32_t poshi); } 795478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 796 u_int32_t offsetlo, u_int32_t offsethi, \ 797 int whence); } 798479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 799 u_int32_t lengthlo, u_int32_t lengthhi); } 800480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 801 u_int32_t lengthlo, u_int32_t lengthhi); } 802481 AUE_KILL NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 803482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \ 804 mode_t mode); } 805483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 806484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 807485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 808 uint32_t idlo, uint32_t idhi, \ 809 cpusetid_t setid); } 810486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 811 cpuwhich_t which, \ 812 uint32_t idlo, uint32_t idhi, \ 813 cpusetid_t *setid); } 814487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 815 cpulevel_t level, cpuwhich_t which, \ 816 uint32_t idlo, uint32_t idhi, \ 817 size_t cpusetsize, \ 818 cpuset_t *mask); } 819488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 820 cpulevel_t level, cpuwhich_t which, \ 821 uint32_t idlo, uint32_t idhi, \ 822 size_t cpusetsize, \ 823 const cpuset_t *mask); } 824489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, char *path, int mode, \ 825 int flag); } 826490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 827 mode_t mode, int flag); } 828491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, char *path, uid_t uid, \ 829 gid_t gid, int flag); } 830492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 831 u_int32_t *argv, u_int32_t *envv); } 832493 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, char *path, \ 833 struct stat *buf, int flag); } 834494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, char *path, \ 835 struct timeval *times); } 836495 AUE_LINKAT NOPROTO { int linkat(int fd1, char *path1, int fd2, \ 837 char *path2, int flag); } 838496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, char *path, \ 839 mode_t mode); } 840497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, char *path, \ 841 mode_t mode); } 842498 AUE_MKNODAT NOPROTO { int mknodat(int fd, char *path, \ 843 mode_t mode, dev_t dev); } 844499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \ 845 mode_t mode); } 846500 AUE_READLINKAT NOPROTO { int readlinkat(int fd, char *path, char *buf, \ 847 size_t bufsize); } 848501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, char *old, int newfd, \ 849 const char *new); } 850502 AUE_SYMLINKAT NOPROTO { int symlinkat(char *path1, int fd, \ 851 char *path2); } 852503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, char *path, \ 853 int flag); } 854504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 855; 505 is initialised by the kgssapi code, if present. 856505 AUE_NULL UNIMPL gssd_syscall 857