syscalls.master revision 248995
1193323Sed $FreeBSD: head/sys/compat/freebsd32/syscalls.master 248995 2013-04-02 05:30:41Z mdf $ 2193323Sed; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 3193323Sed; from: src/sys/kern/syscalls.master 1.107 4193323Sed; 5193323Sed; System call name/number master file. 6193323Sed; Processed to created init_sysent.c, syscalls.c and syscall.h. 7193323Sed 8193323Sed; Columns: number audit type name alt{name,tag,rtyp}/comments 9193323Sed; number system call number, must be in order 10193323Sed; audit the audit event associated with the system call 11193323Sed; A value of AUE_NULL means no auditing, but it also means that 12193323Sed; there is no audit event for the call at this time. For the 13193323Sed; case where the event exists, but we don't want auditing, the 14193323Sed; event should be #defined to AUE_NULL in audit_kevents.h. 15193323Sed; type one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6, 16193323Sed; COMPAT7, NODEF, NOARGS, NOPROTO, NOSTD 17193323Sed; The COMPAT* options may be combined with one or more NO* 18200581Srdivacky; options separated by '|' with no spaces (e.g. COMPAT|NOARGS) 19193323Sed; name psuedo-prototype of syscall routine 20193323Sed; If one of the following alts is different, then all appear: 21193323Sed; altname name of system call if different 22193323Sed; alttag name of args struct tag if different from [o]`name'"_args" 23193323Sed; altrtyp return type if not int (bogus - syscalls always return int) 24193323Sed; for UNIMPL/OBSOL, name continues with comments 25193323Sed 26193323Sed; types: 27193323Sed; STD always included 28193323Sed; COMPAT included on COMPAT #ifdef 29193323Sed; COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat) 30193323Sed; COMPAT6 included on COMPAT6 #ifdef (FreeBSD 6 compat) 31193323Sed; COMPAT7 included on COMPAT7 #ifdef (FreeBSD 7 compat) 32193323Sed; OBSOL obsolete, not included in system, only specifies name 33193323Sed; UNIMPL not implemented, placeholder only 34203954Srdivacky; NOSTD implemented but as a lkm that can be statically 35193323Sed; compiled in; sysent entry will be filled with lkmressys 36200581Srdivacky; so the SYSCALL_MODULE macro works 37193323Sed; NOARGS same as STD except do not create structure in sys/sysproto.h 38198090Srdivacky; NODEF same as STD except only have the entry in the syscall table 39198090Srdivacky; added. Meaning - do not create structure or function 40193323Sed; prototype in sys/sysproto.h 41193323Sed; NOPROTO same as STD except do not create structure or 42193323Sed; function prototype in sys/sysproto.h. Does add a 43200581Srdivacky; definition to syscall.h besides adding a sysent. 44200581Srdivacky 45200581Srdivacky; #ifdef's, etc. may be included, and are copied to the output files. 46200581Srdivacky 47200581Srdivacky#include <sys/param.h> 48200581Srdivacky#include <sys/sysent.h> 49200581Srdivacky#include <sys/sysproto.h> 50200581Srdivacky#include <sys/mount.h> 51200581Srdivacky#include <sys/socket.h> 52200581Srdivacky#include <compat/freebsd32/freebsd32.h> 53200581Srdivacky#include <compat/freebsd32/freebsd32_proto.h> 54200581Srdivacky 55200581Srdivacky#if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 56200581Srdivacky#define PAD64_REQUIRED 57200581Srdivacky#endif 58200581Srdivacky 59200581Srdivacky; Reserved/unimplemented system calls in the range 0-150 inclusive 60200581Srdivacky; are reserved for use in future Berkeley releases. 61200581Srdivacky; Additional system calls implemented in vendor and other 62193323Sed; redistributions should be placed in the reserved range at the end 63198090Srdivacky; of the current calls. 64198090Srdivacky 65193323Sed0 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int 66200581Srdivacky1 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \ 67200581Srdivacky sys_exit_args void 68193323Sed2 AUE_FORK NOPROTO { int fork(void); } 69193323Sed3 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \ 70193323Sed size_t nbyte); } 71193323Sed4 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \ 72193323Sed size_t nbyte); } 73193323Sed5 AUE_OPEN_RWTC NOPROTO { int open(char *path, int flags, \ 74193323Sed int mode); } 75193323Sed6 AUE_CLOSE NOPROTO { int close(int fd); } 76193323Sed7 AUE_WAIT4 STD { int freebsd32_wait4(int pid, int *status, \ 77193323Sed int options, struct rusage32 *rusage); } 78193323Sed8 AUE_CREAT OBSOL old creat 79193323Sed9 AUE_LINK NOPROTO { int link(char *path, char *link); } 80193323Sed10 AUE_UNLINK NOPROTO { int unlink(char *path); } 81193323Sed11 AUE_NULL OBSOL execv 82193323Sed12 AUE_CHDIR NOPROTO { int chdir(char *path); } 83193323Sed13 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 84193323Sed14 AUE_MKNOD NOPROTO { int mknod(char *path, int mode, int dev); } 85193323Sed15 AUE_CHMOD NOPROTO { int chmod(char *path, int mode); } 86193323Sed16 AUE_CHOWN NOPROTO { int chown(char *path, int uid, int gid); } 87193323Sed17 AUE_NULL NOPROTO { int obreak(char *nsize); } break \ 88199481Srdivacky obreak_args int 89199481Srdivacky18 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 90199481Srdivacky struct statfs32 *buf, long bufsize, \ 91199481Srdivacky int flags); } 92199481Srdivacky19 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int offset, \ 93199481Srdivacky int whence); } 94199481Srdivacky20 AUE_GETPID NOPROTO { pid_t getpid(void); } 95199481Srdivacky21 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \ 96193323Sed int flags, caddr_t data); } 97193323Sed22 AUE_UMOUNT NOPROTO { int unmount(char *path, int flags); } 98193323Sed23 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 99193323Sed24 AUE_GETUID NOPROTO { uid_t getuid(void); } 100193323Sed25 AUE_GETEUID NOPROTO { uid_t geteuid(void); } 101193323Sed26 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \ 102193323Sed caddr_t addr, int data); } 103193323Sed27 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \ 104193323Sed int flags); } 105193323Sed28 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \ 106193323Sed int flags); } 107193323Sed29 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, uint32_t buf, \ 108193323Sed uint32_t len, int flags, uint32_t from, \ 109193323Sed uint32_t fromlenaddr); } 110193323Sed30 AUE_ACCEPT NOPROTO { int accept(int s, caddr_t name, \ 111193323Sed int *anamelen); } 112193323Sed31 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, caddr_t asa, \ 113193323Sed int *alen); } 114193323Sed32 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, caddr_t asa, \ 115193323Sed int *alen); } 116193323Sed33 AUE_ACCESS NOPROTO { int access(char *path, int amode); } 117193323Sed34 AUE_CHFLAGS NOPROTO { int chflags(const char *path, u_long flags); } 118200581Srdivacky35 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, u_long flags); } 119200581Srdivacky36 AUE_SYNC NOPROTO { int sync(void); } 120193323Sed37 AUE_KILL NOPROTO { int kill(int pid, int signum); } 121193323Sed38 AUE_STAT COMPAT { int freebsd32_stat(char *path, \ 122193323Sed struct ostat32 *ub); } 123193323Sed39 AUE_GETPPID NOPROTO { pid_t getppid(void); } 124193323Sed40 AUE_LSTAT COMPAT { int freebsd32_lstat(char *path, \ 125198090Srdivacky struct ostat *ub); } 126198090Srdivacky41 AUE_DUP NOPROTO { int dup(u_int fd); } 127193323Sed42 AUE_PIPE NOPROTO { int pipe(void); } 128198090Srdivacky43 AUE_GETEGID NOPROTO { gid_t getegid(void); } 129198090Srdivacky44 AUE_PROFILE NOPROTO { int profil(caddr_t samples, size_t size, \ 130198090Srdivacky size_t offset, u_int scale); } 131198090Srdivacky45 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 132198090Srdivacky int facs, int pid); } 133198090Srdivacky46 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 134198090Srdivacky struct osigaction32 *nsa, \ 135198090Srdivacky struct osigaction32 *osa); } 136198090Srdivacky47 AUE_GETGID NOPROTO { gid_t getgid(void); } 137198090Srdivacky48 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 138198090Srdivacky osigset_t mask); } 139198090Srdivacky49 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 140198090Srdivacky u_int namelen); } 141198090Srdivacky50 AUE_SETLOGIN NOPROTO { int setlogin(char *namebuf); } 142198090Srdivacky51 AUE_ACCT NOPROTO { int acct(char *path); } 143198090Srdivacky52 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 144193323Sed53 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 145199481Srdivacky struct sigaltstack32 *ss, \ 146199481Srdivacky struct sigaltstack32 *oss); } 147199481Srdivacky54 AUE_NULL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 148199481Srdivacky struct md_ioctl32 *data); } 149199481Srdivacky55 AUE_REBOOT NOPROTO { int reboot(int opt); } 150193323Sed56 AUE_REVOKE NOPROTO { int revoke(char *path); } 151193323Sed57 AUE_SYMLINK NOPROTO { int symlink(char *path, char *link); } 152193323Sed58 AUE_READLINK NOPROTO { ssize_t readlink(char *path, char *buf, \ 153193323Sed size_t count); } 154193323Sed59 AUE_EXECVE STD { int freebsd32_execve(char *fname, \ 155193323Sed uint32_t *argv, uint32_t *envv); } 156199481Srdivacky60 AUE_UMASK NOPROTO { int umask(int newmask); } umask \ 157199481Srdivacky umask_args int 158199481Srdivacky61 AUE_CHROOT NOPROTO { int chroot(char *path); } 159199481Srdivacky62 AUE_FSTAT COMPAT { int freebsd32_fstat(int fd, \ 160199481Srdivacky struct ostat32 *ub); } 161199481Srdivacky63 AUE_NULL OBSOL ogetkerninfo 162193323Sed64 AUE_NULL COMPAT { int freebsd32_getpagesize( \ 163193323Sed int32_t dummy); } 164193323Sed65 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 165193323Sed int flags); } 166193323Sed66 AUE_VFORK NOPROTO { int vfork(void); } 167193323Sed67 AUE_NULL OBSOL vread 168200581Srdivacky68 AUE_NULL OBSOL vwrite 169200581Srdivacky69 AUE_SBRK NOPROTO { int sbrk(int incr); } 170200581Srdivacky70 AUE_SSTK NOPROTO { int sstk(int incr); } 171200581Srdivacky71 AUE_MMAP COMPAT|NOPROTO { int mmap(void *addr, int len, \ 172200581Srdivacky int prot, int flags, int fd, int pos); } 173200581Srdivacky72 AUE_O_VADVISE NOPROTO { int ovadvise(int anom); } vadvise \ 174200581Srdivacky ovadvise_args int 175200581Srdivacky73 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 176200581Srdivacky74 AUE_MPROTECT STD { int freebsd32_mprotect(const void *addr, \ 177193323Sed size_t len, int prot); } 178193323Sed75 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 179193323Sed int behav); } 180193323Sed76 AUE_NULL OBSOL vhangup 181193323Sed77 AUE_NULL OBSOL vlimit 182193323Sed78 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 183193323Sed char *vec); } 184193323Sed79 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 185193323Sed gid_t *gidset); } 186200581Srdivacky80 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 187193323Sed gid_t *gidset); } 188193323Sed81 AUE_GETPGRP NOPROTO { int getpgrp(void); } 189193323Sed82 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 190200581Srdivacky83 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 191200581Srdivacky struct itimerval32 *itv, \ 192193323Sed struct itimerval32 *oitv); } 193198090Srdivacky84 AUE_NULL OBSOL owait 194193323Sed; XXX implement 195193323Sed85 AUE_SWAPON NOPROTO { int swapon(char *name); } 196193323Sed86 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 197193323Sed struct itimerval32 *itv); } 198195340Sed87 AUE_O_GETHOSTNAME OBSOL ogethostname 199195340Sed88 AUE_O_SETHOSTNAME OBSOL osethostname 200199989Srdivacky89 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 201195340Sed90 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 202195340Sed91 AUE_NULL UNIMPL getdopt 203193323Sed92 AUE_FCNTL NOPROTO { int fcntl(int fd, int cmd, long arg); } 204198090Srdivacky93 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 205198090Srdivacky fd_set *ou, fd_set *ex, \ 206198090Srdivacky struct timeval32 *tv); } 207198090Srdivacky94 AUE_NULL UNIMPL setdopt 208198090Srdivacky95 AUE_FSYNC NOPROTO { int fsync(int fd); } 209198090Srdivacky96 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 210198090Srdivacky int prio); } 211198090Srdivacky97 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 212198090Srdivacky int protocol); } 213198090Srdivacky98 AUE_CONNECT NOPROTO { int connect(int s, caddr_t name, \ 214198090Srdivacky int namelen); } 215198090Srdivacky99 AUE_NULL OBSOL oaccept 216198090Srdivacky100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 217198090Srdivacky101 AUE_NULL OBSOL osend 218198090Srdivacky102 AUE_NULL OBSOL orecv 219198090Srdivacky103 AUE_NULL COMPAT { int freebsd32_sigreturn( \ 220198090Srdivacky struct ia32_sigcontext3 *sigcntxp); } 221198090Srdivacky104 AUE_BIND NOPROTO { int bind(int s, caddr_t name, \ 222198090Srdivacky int namelen); } 223198090Srdivacky105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 224198090Srdivacky int name, caddr_t val, int valsize); } 225198090Srdivacky106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 226198090Srdivacky107 AUE_NULL OBSOL vtimes 227198090Srdivacky108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 228198090Srdivacky struct sigvec32 *nsv, \ 229198090Srdivacky struct sigvec32 *osv); } 230198090Srdivacky109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 231198090Srdivacky110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 232198090Srdivacky111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 233198090Srdivacky112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 234198090Srdivacky struct sigstack32 *nss, \ 235198090Srdivacky struct sigstack32 *oss); } 236198090Srdivacky113 AUE_NULL OBSOL orecvmsg 237198090Srdivacky114 AUE_NULL OBSOL osendmsg 238198090Srdivacky115 AUE_NULL OBSOL vtrace 239198090Srdivacky116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 240198090Srdivacky struct timeval32 *tp, \ 241198090Srdivacky struct timezone *tzp); } 242193323Sed117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 243193323Sed struct rusage32 *rusage); } 244193323Sed118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 245193323Sed int name, caddr_t val, int *avalsize); } 246193323Sed119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 247198090Srdivacky120 AUE_READV STD { int freebsd32_readv(int fd, \ 248198090Srdivacky struct iovec32 *iovp, u_int iovcnt); } 249198090Srdivacky121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 250198090Srdivacky struct iovec32 *iovp, u_int iovcnt); } 251198090Srdivacky122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 252198090Srdivacky struct timeval32 *tv, \ 253198090Srdivacky struct timezone *tzp); } 254198090Srdivacky123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 255198090Srdivacky124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 256198090Srdivacky125 AUE_RECVFROM OBSOL orecvfrom 257198090Srdivacky126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 258193323Sed127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 259198090Srdivacky128 AUE_RENAME NOPROTO { int rename(char *from, char *to); } 260193323Sed129 AUE_TRUNCATE COMPAT|NOPROTO { int truncate(char *path, \ 261193323Sed int length); } 262198090Srdivacky130 AUE_FTRUNCATE COMPAT|NOPROTO { int ftruncate(int fd, int length); } 263200581Srdivacky131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 264200581Srdivacky132 AUE_MKFIFO NOPROTO { int mkfifo(char *path, int mode); } 265200581Srdivacky133 AUE_SENDTO NOPROTO { int sendto(int s, caddr_t buf, \ 266200581Srdivacky size_t len, int flags, caddr_t to, \ 267200581Srdivacky int tolen); } 268200581Srdivacky134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 269200581Srdivacky135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 270193323Sed int protocol, int *rsv); } 271193323Sed136 AUE_MKDIR NOPROTO { int mkdir(char *path, int mode); } 272193323Sed137 AUE_RMDIR NOPROTO { int rmdir(char *path); } 273198090Srdivacky138 AUE_UTIMES STD { int freebsd32_utimes(char *path, \ 274198090Srdivacky struct timeval32 *tptr); } 275198090Srdivacky139 AUE_NULL OBSOL 4.2 sigreturn 276203954Srdivacky140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 277198090Srdivacky struct timeval32 *delta, \ 278198090Srdivacky struct timeval32 *olddelta); } 279198090Srdivacky141 AUE_GETPEERNAME OBSOL ogetpeername 280198090Srdivacky142 AUE_SYSCTL OBSOL ogethostid 281203954Srdivacky143 AUE_SYSCTL OBSOL sethostid 282203954Srdivacky144 AUE_GETRLIMIT OBSOL getrlimit 283198090Srdivacky145 AUE_SETRLIMIT OBSOL setrlimit 284198090Srdivacky146 AUE_KILLPG OBSOL killpg 285193323Sed147 AUE_SETSID NOPROTO { int setsid(void); } 286198090Srdivacky148 AUE_QUOTACTL NOPROTO { int quotactl(char *path, int cmd, int uid, \ 287193323Sed caddr_t arg); } 288193323Sed149 AUE_O_QUOTA OBSOL oquota 289198090Srdivacky150 AUE_GETSOCKNAME OBSOL ogetsockname 290198090Srdivacky 291200581Srdivacky; Syscalls 151-180 inclusive are reserved for vendor-specific 292200581Srdivacky; system calls. (This includes various calls added for compatibity 293200581Srdivacky; with other Unix variants.) 294193323Sed; Some of these calls are now supported by BSD... 295193323Sed151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 296193323Sed152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 297193323Sed153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 298193323Sed; 154 is initialised by the NLM code, if present. 299193323Sed154 AUE_NULL UNIMPL nlm_syscall 300193323Sed; 155 is initialized by the NFS code, if present. 301198090Srdivacky; XXX this is a problem!!! 302198090Srdivacky155 AUE_NFS_SVC UNIMPL nfssvc 303198090Srdivacky156 AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \ 304198090Srdivacky char *buf, u_int count, uint32_t *basep); } 305198090Srdivacky157 AUE_STATFS COMPAT4 { int freebsd32_statfs(char *path, \ 306198090Srdivacky struct statfs32 *buf); } 307198090Srdivacky158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 308198090Srdivacky struct statfs32 *buf); } 309198090Srdivacky159 AUE_NULL UNIMPL nosys 310193323Sed160 AUE_LGETFH UNIMPL lgetfh 311193323Sed161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \ 312193323Sed struct fhandle *fhp); } 313193323Sed162 AUE_NULL OBSOL getdomainname 314193323Sed163 AUE_NULL OBSOL setdomainname 315193323Sed164 AUE_NULL OBSOL uname 316198090Srdivacky165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); } 317198090Srdivacky166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 318198090Srdivacky struct rtprio *rtp); } 319193323Sed167 AUE_NULL UNIMPL nosys 320193323Sed168 AUE_NULL UNIMPL nosys 321193323Sed169 AUE_SEMSYS NOSTD { int freebsd32_semsys(int which, int a2, \ 322193323Sed int a3, int a4, int a5); } 323193323Sed170 AUE_MSGSYS NOSTD { int freebsd32_msgsys(int which, int a2, \ 324193323Sed int a3, int a4, int a5, int a6); } 325193323Sed171 AUE_SHMSYS NOSTD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 326198090Srdivacky uint32_t a3, uint32_t a4); } 327198090Srdivacky172 AUE_NULL UNIMPL nosys 328198090Srdivacky173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 329198090Srdivacky size_t nbyte, int pad, \ 330198090Srdivacky uint32_t offset1, uint32_t offset2); } 331198090Srdivacky174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 332198090Srdivacky const void *buf, size_t nbyte, int pad, \ 333198090Srdivacky uint32_t offset1, uint32_t offset2); } 334198090Srdivacky175 AUE_NULL UNIMPL nosys 335198090Srdivacky176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); } 336193323Sed177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 337193323Sed178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 338193323Sed179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 339193323Sed180 AUE_NULL UNIMPL nosys 340198090Srdivacky 341193323Sed; Syscalls 181-199 are used by/reserved for BSD 342193323Sed181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 343193323Sed182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 344193323Sed183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 345193323Sed184 AUE_NULL UNIMPL lfs_bmapv 346193323Sed185 AUE_NULL UNIMPL lfs_markv 347193323Sed186 AUE_NULL UNIMPL lfs_segclean 348193323Sed187 AUE_NULL UNIMPL lfs_segwait 349193323Sed188 AUE_STAT STD { int freebsd32_stat(char *path, \ 350193323Sed struct stat32 *ub); } 351193323Sed189 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 352193323Sed struct stat32 *ub); } 353193323Sed190 AUE_LSTAT STD { int freebsd32_lstat(char *path, \ 354193323Sed struct stat32 *ub); } 355198090Srdivacky191 AUE_PATHCONF NOPROTO { int pathconf(char *path, int name); } 356193323Sed192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 357193323Sed193 AUE_NULL UNIMPL nosys 358193323Sed194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 359193323Sed struct rlimit *rlp); } getrlimit \ 360193323Sed __getrlimit_args int 361193323Sed195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 362193323Sed struct rlimit *rlp); } setrlimit \ 363198090Srdivacky __setrlimit_args int 364198090Srdivacky196 AUE_GETDIRENTRIES STD { int freebsd32_getdirentries(int fd, \ 365193323Sed char *buf, u_int count, int32_t *basep); } 366193323Sed197 AUE_MMAP COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \ 367193323Sed size_t len, int prot, int flags, int fd, \ 368199481Srdivacky int pad, uint32_t pos1, uint32_t pos2); } 369193323Sed198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 370193323Sed __syscall_args int 371193323Sed199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 372193323Sed uint32_t offset1, uint32_t offset2, \ 373198090Srdivacky int whence); } 374203954Srdivacky200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(char *path, \ 375203954Srdivacky int pad, uint32_t length1, \ 376193323Sed uint32_t length2); } 377193323Sed201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 378193323Sed uint32_t length1, uint32_t length2); } 379198090Srdivacky202 AUE_SYSCTL STD { int freebsd32_sysctl(int *name, \ 380193323Sed u_int namelen, void *old, \ 381193323Sed uint32_t *oldlenp, void *new, \ 382198090Srdivacky uint32_t newlen); } 383198090Srdivacky203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \ 384198090Srdivacky size_t len); } 385198090Srdivacky204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \ 386198090Srdivacky size_t len); } 387198090Srdivacky205 AUE_UNDELETE NOPROTO { int undelete(char *path); } 388193323Sed206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \ 389193323Sed struct timeval32 *tptr); } 390193323Sed207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); } 391200581Srdivacky208 AUE_NULL UNIMPL newreboot (NetBSD) 392200581Srdivacky209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \ 393200581Srdivacky int timeout); } 394200581Srdivacky 395200581Srdivacky; 396200581Srdivacky; The following are reserved for loadable syscalls 397193323Sed; 398198090Srdivacky210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 399198090Srdivacky211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 400193323Sed212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 401198090Srdivacky213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 402198090Srdivacky214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 403193323Sed215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 404193323Sed216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 405193323Sed217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 406193323Sed218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 407193323Sed219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 408193323Sed 409193323Sed; 410193323Sed; The following were introduced with NetBSD/4.4Lite-2 411193323Sed; They are initialized by their respective modules/sysinits 412193323Sed; XXX PROBLEM!! 413193323Sed220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32_semctl( \ 414193323Sed int semid, int semnum, \ 415193323Sed int cmd, union semun32 *arg); } 416193323Sed221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \ 417193323Sed int semflg); } 418193323Sed222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \ 419193323Sed struct sembuf *sops, u_int nsops); } 420198090Srdivacky223 AUE_NULL UNIMPL semconfig 421193323Sed224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \ 422193323Sed int msqid, int cmd, \ 423193323Sed struct msqid_ds32_old *buf); } 424193323Sed225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); } 425193323Sed226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, void *msgp, \ 426193323Sed size_t msgsz, int msgflg); } 427200581Srdivacky227 AUE_MSGRCV NOSTD { int freebsd32_msgrcv(int msqid, void *msgp, \ 428200581Srdivacky size_t msgsz, long msgtyp, int msgflg); } 429200581Srdivacky228 AUE_SHMAT NOSTD|NOPROTO { int shmat(int shmid, void *shmaddr, \ 430193323Sed int shmflg); } 431200581Srdivacky229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \ 432193323Sed int shmid, int cmd, \ 433193323Sed struct shmid_ds32_old *buf); } 434200581Srdivacky230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(void *shmaddr); } 435193323Sed231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \ 436193323Sed int shmflg); } 437193323Sed; 438193323Sed232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \ 439193323Sed struct timespec32 *tp); } 440198090Srdivacky233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \ 441198090Srdivacky const struct timespec32 *tp); } 442198090Srdivacky234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \ 443198090Srdivacky struct timespec32 *tp); } 444198090Srdivacky235 AUE_NULL UNIMPL timer_create 445198090Srdivacky236 AUE_NULL UNIMPL timer_delete 446198090Srdivacky237 AUE_NULL UNIMPL timer_settime 447198090Srdivacky238 AUE_NULL UNIMPL timer_gettime 448198090Srdivacky239 AUE_NULL UNIMPL timer_getoverrun 449193323Sed240 AUE_NULL STD { int freebsd32_nanosleep( \ 450193323Sed const struct timespec32 *rqtp, \ 451198090Srdivacky struct timespec32 *rmtp); } 452198090Srdivacky241 AUE_NULL NOPROTO { int ffclock_getcounter(ffcounter *ffcount); } 453193323Sed242 AUE_NULL NOPROTO { int ffclock_setestimate( \ 454198090Srdivacky struct ffclock_estimate *cest); } 455193323Sed243 AUE_NULL NOPROTO { int ffclock_getestimate( \ 456193323Sed struct ffclock_estimate *cest); } 457193323Sed244 AUE_NULL UNIMPL nosys 458193323Sed245 AUE_NULL UNIMPL nosys 459193323Sed246 AUE_NULL UNIMPL nosys 460193323Sed247 AUE_NULL NOPROTO { int clock_getcpuclockid2(id_t id,\ 461193323Sed int which, clockid_t *clock_id); } 462193323Sed248 AUE_NULL UNIMPL ntp_gettime 463193323Sed249 AUE_NULL UNIMPL nosys 464193323Sed; syscall numbers initially used in OpenBSD 465193323Sed250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \ 466193323Sed int inherit); } 467193323Sed251 AUE_RFORK NOPROTO { int rfork(int flags); } 468193323Sed252 AUE_POLL NOPROTO { int openbsd_poll(struct pollfd *fds, \ 469193323Sed u_int nfds, int timeout); } 470198090Srdivacky253 AUE_ISSETUGID NOPROTO { int issetugid(void); } 471193323Sed254 AUE_LCHOWN NOPROTO { int lchown(char *path, int uid, int gid); } 472193323Sed255 AUE_NULL NOSTD { int freebsd32_aio_read( \ 473193323Sed struct aiocb32 *aiocbp); } 474198090Srdivacky256 AUE_NULL NOSTD { int freebsd32_aio_write( \ 475193323Sed struct aiocb32 *aiocbp); } 476193323Sed257 AUE_NULL NOSTD { int freebsd32_lio_listio(int mode, \ 477193323Sed struct aiocb32 * const *acb_list, \ 478193323Sed int nent, struct sigevent *sig); } 479193323Sed258 AUE_NULL UNIMPL nosys 480193323Sed259 AUE_NULL UNIMPL nosys 481193323Sed260 AUE_NULL UNIMPL nosys 482193323Sed261 AUE_NULL UNIMPL nosys 483193323Sed262 AUE_NULL UNIMPL nosys 484193323Sed263 AUE_NULL UNIMPL nosys 485193323Sed264 AUE_NULL UNIMPL nosys 486193323Sed265 AUE_NULL UNIMPL nosys 487193323Sed266 AUE_NULL UNIMPL nosys 488193323Sed267 AUE_NULL UNIMPL nosys 489193323Sed268 AUE_NULL UNIMPL nosys 490193323Sed269 AUE_NULL UNIMPL nosys 491193323Sed270 AUE_NULL UNIMPL nosys 492193323Sed271 AUE_NULL UNIMPL nosys 493193323Sed272 AUE_O_GETDENTS NOPROTO { int getdents(int fd, char *buf, \ 494193323Sed size_t count); } 495193323Sed273 AUE_NULL UNIMPL nosys 496193323Sed274 AUE_LCHMOD NOPROTO { int lchmod(char *path, mode_t mode); } 497193323Sed275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \ 498193323Sed gid_t gid); } netbsd_lchown \ 499193323Sed lchown_args int 500193323Sed276 AUE_LUTIMES STD { int freebsd32_lutimes(char *path, \ 501193323Sed struct timeval32 *tptr); } 502193323Sed277 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 503193323Sed int flags); } netbsd_msync msync_args int 504203954Srdivacky278 AUE_STAT NOPROTO { int nstat(char *path, struct nstat *ub); } 505193323Sed279 AUE_FSTAT NOPROTO { int nfstat(int fd, struct nstat *sb); } 506193323Sed280 AUE_LSTAT NOPROTO { int nlstat(char *path, struct nstat *ub); } 507193323Sed281 AUE_NULL UNIMPL nosys 508193323Sed282 AUE_NULL UNIMPL nosys 509193323Sed283 AUE_NULL UNIMPL nosys 510193323Sed284 AUE_NULL UNIMPL nosys 511193323Sed285 AUE_NULL UNIMPL nosys 512193323Sed286 AUE_NULL UNIMPL nosys 513193323Sed287 AUE_NULL UNIMPL nosys 514193323Sed288 AUE_NULL UNIMPL nosys 515193323Sed; 289 and 290 from NetBSD (OpenBSD: 267 and 268) 516193323Sed289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \ 517193323Sed struct iovec32 *iovp, \ 518193323Sed u_int iovcnt, \ 519193323Sed uint32_t offset1, uint32_t offset2); } 520193323Sed290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 521193323Sed struct iovec32 *iovp, \ 522193323Sed u_int iovcnt, \ 523193323Sed uint32_t offset1, uint32_t offset2); } 524193323Sed291 AUE_NULL UNIMPL nosys 525193323Sed292 AUE_NULL UNIMPL nosys 526193323Sed293 AUE_NULL UNIMPL nosys 527193323Sed294 AUE_NULL UNIMPL nosys 528193323Sed295 AUE_NULL UNIMPL nosys 529193323Sed296 AUE_NULL UNIMPL nosys 530193323Sed; XXX 297 is 300 in NetBSD 531193323Sed297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \ 532193323Sed const struct fhandle *u_fhp, \ 533193323Sed struct statfs32 *buf); } 534193323Sed298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \ 535193323Sed int flags); } 536193323Sed299 AUE_FHSTAT NOPROTO { int fhstat(const struct fhandle *u_fhp, \ 537193323Sed struct stat *sb); } 538193323Sed; syscall numbers for FreeBSD 539193323Sed300 AUE_NULL NOPROTO { int modnext(int modid); } 540193323Sed301 AUE_NULL STD { int freebsd32_modstat(int modid, \ 541193323Sed struct module_stat32* stat); } 542193323Sed302 AUE_NULL NOPROTO { int modfnext(int modid); } 543193323Sed303 AUE_NULL NOPROTO { int modfind(const char *name); } 544193323Sed304 AUE_MODLOAD NOPROTO { int kldload(const char *file); } 545193323Sed305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); } 546193323Sed306 AUE_NULL NOPROTO { int kldfind(const char *file); } 547193323Sed307 AUE_NULL NOPROTO { int kldnext(int fileid); } 548193323Sed308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \ 549193323Sed struct kld32_file_stat* stat); } 550193323Sed309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); } 551193323Sed310 AUE_GETSID NOPROTO { int getsid(pid_t pid); } 552193323Sed311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 553193323Sed uid_t suid); } 554193323Sed312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 555193323Sed gid_t sgid); } 556193323Sed313 AUE_NULL OBSOL signanosleep 557193323Sed314 AUE_NULL NOSTD { int freebsd32_aio_return( \ 558193323Sed struct aiocb32 *aiocbp); } 559198090Srdivacky315 AUE_NULL NOSTD { int freebsd32_aio_suspend( \ 560198090Srdivacky struct aiocb32 * const * aiocbp, int nent, \ 561193323Sed const struct timespec32 *timeout); } 562193323Sed316 AUE_NULL NOSTD { int freebsd32_aio_cancel(int fd, \ 563198090Srdivacky struct aiocb32 *aiocbp); } 564198090Srdivacky317 AUE_NULL NOSTD { int freebsd32_aio_error( \ 565198090Srdivacky struct aiocb32 *aiocbp); } 566198090Srdivacky318 AUE_NULL NOSTD { int freebsd32_oaio_read( \ 567193323Sed struct oaiocb32 *aiocbp); } 568198090Srdivacky319 AUE_NULL NOSTD { int freebsd32_oaio_write( \ 569198090Srdivacky struct oaiocb32 *aiocbp); } 570198090Srdivacky320 AUE_NULL NOSTD { int freebsd32_olio_listio(int mode, \ 571198090Srdivacky struct oaiocb32 * const *acb_list, \ 572193323Sed int nent, struct osigevent32 *sig); } 573193323Sed321 AUE_NULL NOPROTO { int yield(void); } 574193323Sed322 AUE_NULL OBSOL thr_sleep 575198090Srdivacky323 AUE_NULL OBSOL thr_wakeup 576198090Srdivacky324 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 577193323Sed325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 578198090Srdivacky326 AUE_GETCWD NOPROTO { int __getcwd(u_char *buf, u_int buflen); } 579193323Sed 580193323Sed327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \ 581193323Sed const struct sched_param *param); } 582193323Sed328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \ 583193323Sed struct sched_param *param); } 584193323Sed 585198090Srdivacky329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \ 586193323Sed int policy, \ 587193323Sed const struct sched_param *param); } 588198090Srdivacky330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); } 589193323Sed 590193323Sed331 AUE_NULL NOPROTO { int sched_yield (void); } 591193323Sed332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); } 592193323Sed333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); } 593193323Sed334 AUE_NULL NOPROTO { int sched_rr_get_interval (pid_t pid, \ 594193323Sed struct timespec *interval); } 595198090Srdivacky335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); } 596193323Sed336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 597193323Sed uint32_t offset1, uint32_t offset2, \ 598200581Srdivacky size_t nbytes, struct sf_hdtr32 *hdtr, \ 599193323Sed off_t *sbytes, int flags); } 600200581Srdivacky337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 601200581Srdivacky void *data); } 602200581Srdivacky338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); } 603200581Srdivacky339 AUE_NULL UNIMPL pioctl 604200581Srdivacky340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 605200581Srdivacky const sigset_t *set, sigset_t *oset); } 606200581Srdivacky341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 607200581Srdivacky342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 608200581Srdivacky struct sigaction32 *act, \ 609200581Srdivacky struct sigaction32 *oact); } 610200581Srdivacky343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 611200581Srdivacky344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 612200581Srdivacky const struct freebsd4_freebsd32_ucontext *sigcntxp); } 613193323Sed345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 614193323Sed siginfo_t *info, \ 615193323Sed const struct timespec *timeout); } 616193323Sed346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 617193323Sed siginfo_t *info); } 618193323Sed347 AUE_NULL NOPROTO { int __acl_get_file(const char *path, \ 619193323Sed acl_type_t type, struct acl *aclp); } 620193323Sed348 AUE_NULL NOPROTO { int __acl_set_file(const char *path, \ 621193323Sed acl_type_t type, struct acl *aclp); } 622193323Sed349 AUE_NULL NOPROTO { int __acl_get_fd(int filedes, \ 623193323Sed acl_type_t type, struct acl *aclp); } 624193323Sed350 AUE_NULL NOPROTO { int __acl_set_fd(int filedes, \ 625193323Sed acl_type_t type, struct acl *aclp); } 626193323Sed351 AUE_NULL NOPROTO { int __acl_delete_file(const char *path, \ 627193323Sed acl_type_t type); } 628193323Sed352 AUE_NULL NOPROTO { int __acl_delete_fd(int filedes, \ 629193323Sed acl_type_t type); } 630193323Sed353 AUE_NULL NOPROTO { int __acl_aclcheck_file(const char *path, \ 631193323Sed acl_type_t type, struct acl *aclp); } 632193323Sed354 AUE_NULL NOPROTO { int __acl_aclcheck_fd(int filedes, \ 633193323Sed acl_type_t type, struct acl *aclp); } 634193323Sed355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 635193323Sed const char *filename, int attrnamespace, \ 636193323Sed const char *attrname); } 637193323Sed356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \ 638193323Sed const char *path, int attrnamespace, \ 639193323Sed const char *attrname, void *data, \ 640193323Sed size_t nbytes); } 641193323Sed357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 642193323Sed const char *path, int attrnamespace, \ 643193323Sed const char *attrname, void *data, \ 644193323Sed size_t nbytes); } 645193323Sed358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 646193323Sed const char *path, int attrnamespace, \ 647193323Sed const char *attrname); } 648193323Sed359 AUE_NULL NOSTD { int freebsd32_aio_waitcomplete( \ 649193323Sed struct aiocb32 **aiocbp, \ 650193323Sed struct timespec32 *timeout); } 651193323Sed360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 652193323Sed uid_t *suid); } 653193323Sed361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 654198396Srdivacky gid_t *sgid); } 655193323Sed362 AUE_KQUEUE NOPROTO { int kqueue(void); } 656193323Sed363 AUE_NULL STD { int freebsd32_kevent(int fd, \ 657193323Sed const struct kevent32 *changelist, \ 658193323Sed int nchanges, \ 659193323Sed struct kevent32 *eventlist, int nevents, \ 660193323Sed const struct timespec32 *timeout); } 661198396Srdivacky364 AUE_NULL UNIMPL __cap_get_proc 662193323Sed365 AUE_NULL UNIMPL __cap_set_proc 663198090Srdivacky366 AUE_NULL UNIMPL __cap_get_fd 664193323Sed367 AUE_NULL UNIMPL __cap_get_file 665198396Srdivacky368 AUE_NULL UNIMPL __cap_set_fd 666202375Srdivacky369 AUE_NULL UNIMPL __cap_set_file 667199989Srdivacky370 AUE_NULL UNIMPL nosys 668202375Srdivacky371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \ 669199989Srdivacky int attrnamespace, const char *attrname, \ 670193323Sed void *data, size_t nbytes); } 671193323Sed372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 672198396Srdivacky int attrnamespace, const char *attrname, \ 673202375Srdivacky void *data, size_t nbytes); } 674199989Srdivacky373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 675202375Srdivacky int attrnamespace, \ 676199989Srdivacky const char *attrname); } 677193323Sed374 AUE_NULL NOPROTO { int __setugid(int flag); } 678193323Sed375 AUE_NULL UNIMPL nfsclnt 679193323Sed376 AUE_EACCESS NOPROTO { int eaccess(char *path, int amode); } 680193323Sed377 AUE_NULL UNIMPL afs_syscall 681202878Srdivacky378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 682202878Srdivacky unsigned int iovcnt, int flags); } 683202878Srdivacky379 AUE_NULL UNIMPL kse_exit 684202878Srdivacky380 AUE_NULL UNIMPL kse_wakeup 685202878Srdivacky381 AUE_NULL UNIMPL kse_create 686202878Srdivacky382 AUE_NULL UNIMPL kse_thr_interrupt 687202878Srdivacky383 AUE_NULL UNIMPL kse_release 688202878Srdivacky384 AUE_NULL UNIMPL __mac_get_proc 689198396Srdivacky385 AUE_NULL UNIMPL __mac_set_proc 690193323Sed386 AUE_NULL UNIMPL __mac_get_fd 691193323Sed387 AUE_NULL UNIMPL __mac_get_file 692193323Sed388 AUE_NULL UNIMPL __mac_set_fd 693193323Sed389 AUE_NULL UNIMPL __mac_set_file 694202878Srdivacky390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 695202878Srdivacky char *value, int len); } 696202878Srdivacky391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, \ 697202878Srdivacky u_long flags); } 698202878Srdivacky392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 699202878Srdivacky int count); } 700202878Srdivacky393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 701202878Srdivacky uint32_t offset1, uint32_t offset2, \ 702198396Srdivacky size_t nbytes, struct sf_hdtr32 *hdtr, \ 703193323Sed off_t *sbytes, int flags); } 704193323Sed394 AUE_NULL UNIMPL mac_syscall 705193323Sed395 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs *buf, \ 706193323Sed long bufsize, int flags); } 707202878Srdivacky396 AUE_STATFS NOPROTO { int statfs(char *path, \ 708202878Srdivacky struct statfs *buf); } 709202878Srdivacky397 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs *buf); } 710202878Srdivacky398 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 711202878Srdivacky struct statfs *buf); } 712202878Srdivacky399 AUE_NULL UNIMPL nosys 713202878Srdivacky400 AUE_NULL NOSTD|NOPROTO { int ksem_close(semid_t id); } 714202878Srdivacky401 AUE_NULL NOSTD|NOPROTO { int ksem_post(semid_t id); } 715198396Srdivacky402 AUE_NULL NOSTD|NOPROTO { int ksem_wait(semid_t id); } 716193323Sed403 AUE_NULL NOSTD|NOPROTO { int ksem_trywait(semid_t id); } 717193323Sed404 AUE_NULL NOSTD { int freebsd32_ksem_init(semid_t *idp, \ 718193323Sed unsigned int value); } 719193323Sed405 AUE_NULL NOSTD { int freebsd32_ksem_open(semid_t *idp, \ 720202878Srdivacky const char *name, int oflag, \ 721202878Srdivacky mode_t mode, unsigned int value); } 722202878Srdivacky406 AUE_NULL NOSTD|NOPROTO { int ksem_unlink(const char *name); } 723202878Srdivacky407 AUE_NULL NOSTD|NOPROTO { int ksem_getvalue(semid_t id, \ 724202878Srdivacky int *val); } 725202878Srdivacky408 AUE_NULL NOSTD|NOPROTO { int ksem_destroy(semid_t id); } 726202878Srdivacky409 AUE_NULL UNIMPL __mac_get_pid 727202878Srdivacky410 AUE_NULL UNIMPL __mac_get_link 728198396Srdivacky411 AUE_NULL UNIMPL __mac_set_link 729193323Sed412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \ 730193323Sed const char *path, int attrnamespace, \ 731193323Sed const char *attrname, void *data, \ 732198396Srdivacky size_t nbytes); } 733193323Sed413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \ 734193323Sed const char *path, int attrnamespace, \ 735193323Sed const char *attrname, void *data, \ 736193323Sed size_t nbytes); } 737193323Sed414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \ 738193323Sed const char *path, int attrnamespace, \ 739193323Sed const char *attrname); } 740193323Sed415 AUE_NULL UNIMPL __mac_execve 741193323Sed416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 742193323Sed struct sigaction32 *act, \ 743193323Sed struct sigaction32 *oact); } 744193323Sed417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 745198396Srdivacky const struct freebsd32_ucontext *sigcntxp); } 746193323Sed418 AUE_NULL UNIMPL __xstat 747193323Sed419 AUE_NULL UNIMPL __xfstat 748193323Sed420 AUE_NULL UNIMPL __xlstat 749198396Srdivacky421 AUE_NULL STD { int freebsd32_getcontext( \ 750193323Sed struct freebsd32_ucontext *ucp); } 751193323Sed422 AUE_NULL STD { int freebsd32_setcontext( \ 752200581Srdivacky const struct freebsd32_ucontext *ucp); } 753200581Srdivacky423 AUE_NULL STD { int freebsd32_swapcontext( \ 754200581Srdivacky struct freebsd32_ucontext *oucp, \ 755200581Srdivacky const struct freebsd32_ucontext *ucp); } 756200581Srdivacky424 AUE_SWAPOFF UNIMPL swapoff 757200581Srdivacky425 AUE_NULL NOPROTO { int __acl_get_link(const char *path, \ 758200581Srdivacky acl_type_t type, struct acl *aclp); } 759200581Srdivacky426 AUE_NULL NOPROTO { int __acl_set_link(const char *path, \ 760200581Srdivacky acl_type_t type, struct acl *aclp); } 761202878Srdivacky427 AUE_NULL NOPROTO { int __acl_delete_link(const char *path, \ 762202878Srdivacky acl_type_t type); } 763200581Srdivacky428 AUE_NULL NOPROTO { int __acl_aclcheck_link(const char *path, \ 764200581Srdivacky acl_type_t type, struct acl *aclp); } 765200581Srdivacky429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 766200581Srdivacky int *sig); } 767200581Srdivacky430 AUE_NULL UNIMPL thr_create; 768200581Srdivacky431 AUE_NULL NOPROTO { void thr_exit(long *state); } 769200581Srdivacky432 AUE_NULL NOPROTO { int thr_self(long *id); } 770200581Srdivacky433 AUE_NULL NOPROTO { int thr_kill(long id, int sig); } 771200581Srdivacky434 AUE_NULL STD { int freebsd32_umtx_lock(struct umtx *umtx); } 772200581Srdivacky435 AUE_NULL STD { int freebsd32_umtx_unlock(struct umtx *umtx); } 773200581Srdivacky436 AUE_NULL NOPROTO { int jail_attach(int jid); } 774200581Srdivacky437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \ 775200581Srdivacky int attrnamespace, void *data, \ 776200581Srdivacky size_t nbytes); } 777200581Srdivacky438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \ 778200581Srdivacky const char *path, int attrnamespace, \ 779200581Srdivacky void *data, size_t nbytes); } 780200581Srdivacky439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \ 781200581Srdivacky const char *path, int attrnamespace, \ 782200581Srdivacky void *data, size_t nbytes); } 783200581Srdivacky440 AUE_NULL UNIMPL kse_switchin 784200581Srdivacky441 AUE_NULL NOSTD { int freebsd32_ksem_timedwait(semid_t id, \ 785200581Srdivacky const struct timespec32 *abstime); } 786200581Srdivacky442 AUE_NULL STD { int freebsd32_thr_suspend( \ 787200581Srdivacky const struct timespec32 *timeout); } 788200581Srdivacky443 AUE_NULL NOPROTO { int thr_wake(long id); } 789200581Srdivacky444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 790202878Srdivacky445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 791200581Srdivacky u_int length); } 792200581Srdivacky446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 793200581Srdivacky u_int length); } 794202878Srdivacky447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 795200581Srdivacky448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 796200581Srdivacky449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 797200581Srdivacky450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 798200581Srdivacky451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 799200581Srdivacky struct auditinfo_addr *auditinfo_addr, \ 800200581Srdivacky u_int length); } 801200581Srdivacky452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 802202878Srdivacky struct auditinfo_addr *auditinfo_addr, \ 803200581Srdivacky u_int length); } 804200581Srdivacky453 AUE_AUDITCTL NOPROTO { int auditctl(char *path); } 805200581Srdivacky454 AUE_NULL STD { int freebsd32_umtx_op(void *obj, int op,\ 806200581Srdivacky u_long val, void *uaddr, \ 807200581Srdivacky void *uaddr2); } 808200581Srdivacky455 AUE_NULL STD { int freebsd32_thr_new( \ 809200581Srdivacky struct thr_param32 *param, \ 810200581Srdivacky int param_size); } 811200581Srdivacky456 AUE_NULL NOPROTO { int sigqueue(pid_t pid, int signum, \ 812200581Srdivacky void *value); } 813200581Srdivacky457 AUE_NULL NOSTD { int freebsd32_kmq_open( \ 814200581Srdivacky const char *path, int flags, mode_t mode, \ 815200581Srdivacky const struct mq_attr32 *attr); } 816202878Srdivacky458 AUE_NULL NOSTD { int freebsd32_kmq_setattr(int mqd, \ 817200581Srdivacky const struct mq_attr32 *attr, \ 818200581Srdivacky struct mq_attr32 *oattr); } 819200581Srdivacky459 AUE_NULL NOSTD { int freebsd32_kmq_timedreceive(int mqd, \ 820200581Srdivacky char *msg_ptr, size_t msg_len, \ 821200581Srdivacky unsigned *msg_prio, \ 822200581Srdivacky const struct timespec32 *abs_timeout); } 823200581Srdivacky460 AUE_NULL NOSTD { int freebsd32_kmq_timedsend(int mqd, \ 824200581Srdivacky const char *msg_ptr, size_t msg_len,\ 825200581Srdivacky unsigned msg_prio, \ 826200581Srdivacky const struct timespec32 *abs_timeout);} 827200581Srdivacky461 AUE_NULL NOPROTO|NOSTD { int kmq_notify(int mqd, \ 828200581Srdivacky const struct sigevent *sigev); } 829200581Srdivacky462 AUE_NULL NOPROTO|NOSTD { int kmq_unlink(const char *path); } 830200581Srdivacky463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 831200581Srdivacky464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 832200581Srdivacky465 AUE_NULL NOSTD { int freebsd32_aio_fsync(int op, \ 833200581Srdivacky struct aiocb32 *aiocbp); } 834200581Srdivacky466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 835200581Srdivacky lwpid_t lwpid, struct rtprio *rtp); } 836193323Sed467 AUE_NULL UNIMPL nosys 837193323Sed468 AUE_NULL UNIMPL nosys 838193323Sed469 AUE_NULL UNIMPL __getpath_fromfd 839193323Sed470 AUE_NULL UNIMPL __getpath_fromaddr 840193323Sed471 AUE_NULL NOPROTO { int sctp_peeloff(int sd, uint32_t name); } 841193323Sed472 AUE_NULL NOPROTO { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ 842193323Sed caddr_t to, __socklen_t tolen, \ 843193323Sed struct sctp_sndrcvinfo *sinfo, int flags); } 844198396Srdivacky473 AUE_NULL NOPROTO { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 845193323Sed caddr_t to, __socklen_t tolen, \ 846193323Sed struct sctp_sndrcvinfo *sinfo, int flags); } 847193323Sed474 AUE_NULL NOPROTO { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 848193323Sed struct sockaddr * from, __socklen_t *fromlenaddr, \ 849193323Sed struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 850193323Sed#ifdef PAD64_REQUIRED 851198396Srdivacky475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 852193323Sed void *buf,size_t nbyte, \ 853193323Sed int pad, \ 854193323Sed uint32_t offset1, uint32_t offset2); } 855193323Sed476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 856193323Sed const void *buf, size_t nbyte, \ 857193323Sed int pad, \ 858193323Sed uint32_t offset1, uint32_t offset2); } 859193323Sed477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 860198090Srdivacky size_t len, int prot, int flags, int fd, \ 861193323Sed int pad, \ 862193323Sed uint32_t pos1, uint32_t pos2); } 863193323Sed478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 864193323Sed int pad, \ 865193323Sed uint32_t offset1, uint32_t offset2, \ 866193323Sed int whence); } 867193323Sed479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 868193323Sed int pad, \ 869193323Sed uint32_t length1, uint32_t length2); } 870200581Srdivacky480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 871200581Srdivacky int pad, \ 872200581Srdivacky uint32_t length1, uint32_t length2); } 873200581Srdivacky#else 874200581Srdivacky475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 875200581Srdivacky void *buf,size_t nbyte, \ 876200581Srdivacky uint32_t offset1, uint32_t offset2); } 877200581Srdivacky476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 878200581Srdivacky const void *buf, size_t nbyte, \ 879200581Srdivacky uint32_t offset1, uint32_t offset2); } 880200581Srdivacky477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 881200581Srdivacky size_t len, int prot, int flags, int fd, \ 882200581Srdivacky uint32_t pos1, uint32_t pos2); } 883200581Srdivacky478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 884200581Srdivacky uint32_t offset1, uint32_t offset2, \ 885200581Srdivacky int whence); } 886200581Srdivacky479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 887200581Srdivacky uint32_t length1, uint32_t length2); } 888200581Srdivacky480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 889200581Srdivacky uint32_t length1, uint32_t length2); } 890200581Srdivacky#endif 891200581Srdivacky481 AUE_KILL NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 892200581Srdivacky482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \ 893200581Srdivacky mode_t mode); } 894200581Srdivacky483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 895200581Srdivacky484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 896200581Srdivacky#ifdef PAD64_REQUIRED 897203954Srdivacky485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 898200581Srdivacky int pad, \ 899200581Srdivacky uint32_t id1, uint32_t id2, \ 900200581Srdivacky cpusetid_t setid); } 901200581Srdivacky#else 902200581Srdivacky485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 903203954Srdivacky uint32_t id1, uint32_t id2, \ 904200581Srdivacky cpusetid_t setid); } 905200581Srdivacky#endif 906200581Srdivacky486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 907200581Srdivacky cpuwhich_t which, \ 908200581Srdivacky uint32_t id1, uint32_t id2, \ 909200581Srdivacky cpusetid_t *setid); } 910200581Srdivacky487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 911200581Srdivacky cpulevel_t level, cpuwhich_t which, \ 912200581Srdivacky uint32_t id1, uint32_t id2, \ 913200581Srdivacky size_t cpusetsize, \ 914200581Srdivacky cpuset_t *mask); } 915203954Srdivacky488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 916203954Srdivacky cpulevel_t level, cpuwhich_t which, \ 917200581Srdivacky uint32_t id1, uint32_t id2, \ 918200581Srdivacky size_t cpusetsize, \ 919200581Srdivacky const cpuset_t *mask); } 920199481Srdivacky489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, char *path, int amode, \ 921199481Srdivacky int flag); } 922199481Srdivacky490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 923199481Srdivacky mode_t mode, int flag); } 924199481Srdivacky491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, char *path, uid_t uid, \ 925199481Srdivacky gid_t gid, int flag); } 926199481Srdivacky492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 927199481Srdivacky uint32_t *argv, uint32_t *envv); } 928199481Srdivacky493 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, char *path, \ 929199481Srdivacky struct stat *buf, int flag); } 930199481Srdivacky494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, char *path, \ 931199481Srdivacky struct timeval *times); } 932199481Srdivacky495 AUE_LINKAT NOPROTO { int linkat(int fd1, char *path1, int fd2, \ 933199481Srdivacky char *path2, int flag); } 934199481Srdivacky496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, char *path, \ 935199481Srdivacky mode_t mode); } 936199481Srdivacky497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, char *path, \ 937199481Srdivacky mode_t mode); } 938199481Srdivacky498 AUE_MKNODAT NOPROTO { int mknodat(int fd, char *path, \ 939199481Srdivacky mode_t mode, dev_t dev); } 940199481Srdivacky499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \ 941199481Srdivacky mode_t mode); } 942199481Srdivacky500 AUE_READLINKAT NOPROTO { int readlinkat(int fd, char *path, char *buf, \ 943199481Srdivacky size_t bufsize); } 944199481Srdivacky501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, char *old, int newfd, \ 945199481Srdivacky const char *new); } 946199481Srdivacky502 AUE_SYMLINKAT NOPROTO { int symlinkat(char *path1, int fd, \ 947199481Srdivacky char *path2); } 948199481Srdivacky503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, char *path, \ 949199481Srdivacky int flag); } 950199481Srdivacky504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 951199481Srdivacky; 505 is initialised by the kgssapi code, if present. 952199481Srdivacky505 AUE_NULL UNIMPL gssd_syscall 953199481Srdivacky506 AUE_NULL STD { int freebsd32_jail_get(struct iovec32 *iovp, \ 954199481Srdivacky unsigned int iovcnt, int flags); } 955199481Srdivacky507 AUE_NULL STD { int freebsd32_jail_set(struct iovec32 *iovp, \ 956193323Sed unsigned int iovcnt, int flags); } 957193323Sed508 AUE_NULL NOPROTO { int jail_remove(int jid); } 958193323Sed509 AUE_CLOSEFROM NOPROTO { int closefrom(int lowfd); } 959193323Sed510 AUE_SEMCTL NOSTD { int freebsd32_semctl(int semid, int semnum, \ 960200581Srdivacky int cmd, union semun32 *arg); } 961193323Sed511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \ 962193323Sed struct msqid_ds32 *buf); } 963193323Sed512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \ 964193323Sed struct shmid_ds32 *buf); } 965193323Sed513 AUE_LPATHCONF NOPROTO { int lpathconf(char *path, int name); } 966193323Sed514 AUE_CAP_NEW NOPROTO { int cap_new(int fd, uint64_t rights); } 967193323Sed515 AUE_CAP_RIGHTS_GET NOPROTO { int cap_rights_get(int fd, \ 968193323Sed uint64_t *rightsp); } 969200581Srdivacky516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); } 970200581Srdivacky517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); } 971193323Sed518 AUE_PDFORK UNIMPL pdfork 972193323Sed519 AUE_PDKILL UNIMPL pdkill 973193323Sed520 AUE_PDGETPID UNIMPL pdgetpid 974202878Srdivacky521 AUE_PDWAIT UNIMPL pdwait 975202878Srdivacky522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \ 976203954Srdivacky fd_set *ou, fd_set *ex, \ 977202878Srdivacky const struct timespec32 *ts, \ 978202878Srdivacky const sigset_t *sm); } 979202878Srdivacky523 AUE_NULL NOPROTO { int getloginclass(char *namebuf, \ 980202878Srdivacky size_t namelen); } 981202878Srdivacky524 AUE_NULL NOPROTO { int setloginclass(const char *namebuf); } 982202878Srdivacky525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \ 983202878Srdivacky size_t inbuflen, void *outbufp, \ 984202878Srdivacky size_t outbuflen); } 985202878Srdivacky526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \ 986202878Srdivacky size_t inbuflen, void *outbufp, \ 987202878Srdivacky size_t outbuflen); } 988202878Srdivacky527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \ 989202878Srdivacky size_t inbuflen, void *outbufp, \ 990202878Srdivacky size_t outbuflen); } 991203954Srdivacky528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \ 992202878Srdivacky size_t inbuflen, void *outbufp, \ 993202878Srdivacky size_t outbuflen); } 994202878Srdivacky529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \ 995202878Srdivacky size_t inbuflen, void *outbufp, \ 996202878Srdivacky size_t outbuflen); } 997202878Srdivacky530 AUE_NULL STD { int freebsd32_posix_fallocate(int fd,\ 998202878Srdivacky uint32_t offset1, uint32_t offset2,\ 999193323Sed uint32_t len1, uint32_t len2); } 1000193323Sed531 AUE_NULL STD { int freebsd32_posix_fadvise(int fd, \ 1001193323Sed uint32_t offset1, uint32_t offset2,\ 1002193323Sed uint32_t len1, uint32_t len2, \ 1003193323Sed int advice); } 1004200581Srdivacky532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, int id, \ 1005200581Srdivacky int *status, int options, \ 1006200581Srdivacky struct wrusage32 *wrusage, \ 1007200581Srdivacky siginfo_t *info); } 1008200581Srdivacky 1009200581Srdivacky533 AUE_CAP_RIGHTS_LIMIT NOPROTO { int cap_rights_limit(int fd, \ 1010200581Srdivacky uint64_t rights); } 1011200581Srdivacky534 AUE_CAP_IOCTLS_LIMIT NOPROTO { int cap_ioctls_limit(int fd, \ 1012200581Srdivacky const u_long *cmds, size_t ncmds); } 1013200581Srdivacky535 AUE_CAP_IOCTLS_GET NOPROTO { ssize_t cap_ioctls_get(int fd, \ 1014200581Srdivacky u_long *cmds, size_t maxcmds); } 1015200581Srdivacky536 AUE_CAP_FCNTLS_LIMIT NOPROTO { int cap_fcntls_limit(int fd, \ 1016200581Srdivacky uint32_t fcntlrights); } 1017200581Srdivacky537 AUE_CAP_FCNTLS_GET NOPROTO { int cap_fcntls_get(int fd, \ 1018200581Srdivacky uint32_t *fcntlrightsp); } 1019200581Srdivacky538 AUE_BINDAT NOPROTO { int bindat(int fd, int s, caddr_t name, \ 1020200581Srdivacky int namelen); } 1021200581Srdivacky539 AUE_CONNECTAT NOPROTO { int connectat(int fd, int s, caddr_t name, \ 1022200581Srdivacky int namelen); } 1023200581Srdivacky540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \ 1024200581Srdivacky u_long flags, int atflag); } 1025200581Srdivacky