1 $FreeBSD$ 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 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, COMPAT4, COMPAT6, 16; COMPAT7, COMPAT11, NODEF, NOARGS, NOPROTO, NOSTD 17; The COMPAT* options may be combined with one or more NO* 18; options separated by '|' with no spaces (e.g. COMPAT|NOARGS) 19; name pseudo-prototype of syscall routine 20; If one of the following alts is different, then all appear: 21; altname name of system call if different 22; alttag name of args struct tag if different from [o]`name'"_args" 23; altrtyp return type if not int (bogus - syscalls always return int) 24; for UNIMPL/OBSOL, name continues with comments 25 26; types: 27; STD always included 28; COMPAT included on COMPAT #ifdef 29; COMPAT4 included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat) 30; COMPAT6 included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat) 31; COMPAT7 included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat) 32; COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat) 33; COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat) 34; OBSOL obsolete, not included in system, only specifies name 35; UNIMPL not implemented, placeholder only 36; NOSTD implemented but as a lkm that can be statically 37; compiled in; sysent entry will be filled with lkmressys 38; so the SYSCALL_MODULE macro works 39; NOARGS same as STD except do not create structure in sys/sysproto.h 40; NODEF same as STD except only have the entry in the syscall table 41; added. Meaning - do not create structure or function 42; prototype in sys/sysproto.h 43; NOPROTO same as STD except do not create structure or 44; function prototype in sys/sysproto.h. Does add a 45; definition to syscall.h besides adding a sysent. 46 47; #ifdef's, etc. may be included, and are copied to the output files. 48 49#include <sys/param.h> 50#include <sys/sysent.h> 51#include <sys/sysproto.h> 52#include <sys/mount.h> 53#include <sys/socket.h> 54#include <compat/freebsd32/freebsd32.h> 55#include <compat/freebsd32/freebsd32_proto.h> 56 57#if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 58#define PAD64_REQUIRED 59#endif 60 61; Reserved/unimplemented system calls in the range 0-150 inclusive 62; are reserved for use in future Berkeley releases. 63; Additional system calls implemented in vendor and other 64; redistributions should be placed in the reserved range at the end 65; of the current calls. 66 670 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int 681 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \ 69 sys_exit_args void 702 AUE_FORK NOPROTO { int fork(void); } 713 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \ 72 size_t nbyte); } 734 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \ 74 size_t nbyte); } 755 AUE_OPEN_RWTC NOPROTO { int open(char *path, int flags, \ 76 int mode); } 776 AUE_CLOSE NOPROTO { int close(int fd); } 787 AUE_WAIT4 STD { int freebsd32_wait4(int pid, int *status, \ 79 int options, struct rusage32 *rusage); } 808 AUE_CREAT OBSOL old creat 819 AUE_LINK NOPROTO { int link(char *path, char *link); } 8210 AUE_UNLINK NOPROTO { int unlink(char *path); } 8311 AUE_NULL OBSOL execv 8412 AUE_CHDIR NOPROTO { int chdir(char *path); } 8513 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 8614 AUE_MKNOD COMPAT11|NOPROTO { int mknod(char *path, \ 87 int mode, uint32_t dev); } 8815 AUE_CHMOD NOPROTO { int chmod(char *path, int mode); } 8916 AUE_CHOWN NOPROTO { int chown(char *path, int uid, int gid); } 9017 AUE_NULL NOPROTO { caddr_t break(char *nsize); } 9118 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 92 struct statfs32 *buf, long bufsize, \ 93 int mode); } 9419 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int offset, \ 95 int whence); } 9620 AUE_GETPID NOPROTO { pid_t getpid(void); } 9721 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \ 98 int flags, caddr_t data); } 9922 AUE_UMOUNT NOPROTO { int unmount(char *path, int flags); } 10023 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 10124 AUE_GETUID NOPROTO { uid_t getuid(void); } 10225 AUE_GETEUID NOPROTO { uid_t geteuid(void); } 10326 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \ 104 caddr_t addr, int data); } 10527 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \ 106 int flags); } 10728 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \ 108 int flags); } 10929 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, uint32_t buf, \ 110 uint32_t len, int flags, uint32_t from, \ 111 uint32_t fromlenaddr); } 11230 AUE_ACCEPT NOPROTO { int accept(int s, caddr_t name, \ 113 int *anamelen); } 11431 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, caddr_t asa, \ 115 int *alen); } 11632 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, caddr_t asa, \ 117 int *alen); } 11833 AUE_ACCESS NOPROTO { int access(char *path, int amode); } 11934 AUE_CHFLAGS NOPROTO { int chflags(const char *path, u_long flags); } 12035 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, u_long flags); } 12136 AUE_SYNC NOPROTO { int sync(void); } 12237 AUE_KILL NOPROTO { int kill(int pid, int signum); } 12338 AUE_STAT COMPAT { int freebsd32_stat(char *path, \ 124 struct ostat32 *ub); } 12539 AUE_GETPPID NOPROTO { pid_t getppid(void); } 12640 AUE_LSTAT COMPAT { int freebsd32_lstat(char *path, \ 127 struct ostat *ub); } 12841 AUE_DUP NOPROTO { int dup(u_int fd); } 12942 AUE_PIPE COMPAT10 { int freebsd32_pipe(void); } 13043 AUE_GETEGID NOPROTO { gid_t getegid(void); } 13144 AUE_PROFILE NOPROTO { int profil(caddr_t samples, size_t size, \ 132 size_t offset, u_int scale); } 13345 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 134 int facs, int pid); } 13546 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 136 struct osigaction32 *nsa, \ 137 struct osigaction32 *osa); } 13847 AUE_GETGID NOPROTO { gid_t getgid(void); } 13948 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 140 osigset_t mask); } 14149 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 142 u_int namelen); } 14350 AUE_SETLOGIN NOPROTO { int setlogin(char *namebuf); } 14451 AUE_ACCT NOPROTO { int acct(char *path); } 14552 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 14653 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 147 struct sigaltstack32 *ss, \ 148 struct sigaltstack32 *oss); } 14954 AUE_IOCTL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 150 struct md_ioctl32 *data); } 15155 AUE_REBOOT NOPROTO { int reboot(int opt); } 15256 AUE_REVOKE NOPROTO { int revoke(char *path); } 15357 AUE_SYMLINK NOPROTO { int symlink(char *path, char *link); } 15458 AUE_READLINK NOPROTO { ssize_t readlink(char *path, char *buf, \ 155 size_t count); } 15659 AUE_EXECVE STD { int freebsd32_execve(char *fname, \ 157 uint32_t *argv, uint32_t *envv); } 15860 AUE_UMASK NOPROTO { int umask(int newmask); } 15961 AUE_CHROOT NOPROTO { int chroot(char *path); } 16062 AUE_FSTAT COMPAT { int freebsd32_fstat(int fd, \ 161 struct ostat32 *ub); } 16263 AUE_NULL OBSOL ogetkerninfo 16364 AUE_NULL COMPAT { int freebsd32_getpagesize( \ 164 int32_t dummy); } 16565 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 166 int flags); } 16766 AUE_VFORK NOPROTO { int vfork(void); } 16867 AUE_NULL OBSOL vread 16968 AUE_NULL OBSOL vwrite 17069 AUE_SBRK NOPROTO { int sbrk(int incr); } 17170 AUE_SSTK NOPROTO { int sstk(int incr); } 17271 AUE_MMAP COMPAT|NOPROTO { int mmap(void *addr, int len, \ 173 int prot, int flags, int fd, int pos); } 17472 AUE_O_VADVISE COMPAT11|NOPROTO { int vadvise(int anom); } 17573 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 17674 AUE_MPROTECT STD { int freebsd32_mprotect(void *addr, \ 177 size_t len, int prot); } 17875 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 179 int behav); } 18076 AUE_NULL OBSOL vhangup 18177 AUE_NULL OBSOL vlimit 18278 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 183 char *vec); } 18479 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 185 gid_t *gidset); } 18680 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 187 gid_t *gidset); } 18881 AUE_GETPGRP NOPROTO { int getpgrp(void); } 18982 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 19083 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 191 struct itimerval32 *itv, \ 192 struct itimerval32 *oitv); } 19384 AUE_NULL OBSOL owait 194; XXX implement 19585 AUE_SWAPON NOPROTO { int swapon(char *name); } 19686 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 197 struct itimerval32 *itv); } 19887 AUE_O_GETHOSTNAME OBSOL ogethostname 19988 AUE_O_SETHOSTNAME OBSOL osethostname 20089 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 20190 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 20291 AUE_NULL UNIMPL getdopt 20392 AUE_FCNTL STD { int freebsd32_fcntl(int fd, int cmd, \ 204 int arg); } 20593 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 206 fd_set *ou, fd_set *ex, \ 207 struct timeval32 *tv); } 20894 AUE_NULL UNIMPL setdopt 20995 AUE_FSYNC NOPROTO { int fsync(int fd); } 21096 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 211 int prio); } 21297 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 213 int protocol); } 21498 AUE_CONNECT NOPROTO { int connect(int s, caddr_t name, \ 215 int namelen); } 21699 AUE_NULL OBSOL oaccept 217100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 218101 AUE_NULL OBSOL osend 219102 AUE_NULL OBSOL orecv 220103 AUE_SIGRETURN COMPAT { int freebsd32_sigreturn( \ 221 struct ia32_sigcontext3 *sigcntxp); } 222104 AUE_BIND NOPROTO { int bind(int s, caddr_t name, \ 223 int namelen); } 224105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 225 int name, caddr_t val, int valsize); } 226106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 227107 AUE_NULL OBSOL vtimes 228108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 229 struct sigvec32 *nsv, \ 230 struct sigvec32 *osv); } 231109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 232110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 233111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 234112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 235 struct sigstack32 *nss, \ 236 struct sigstack32 *oss); } 237113 AUE_NULL OBSOL orecvmsg 238114 AUE_NULL OBSOL osendmsg 239115 AUE_NULL OBSOL vtrace 240116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 241 struct timeval32 *tp, \ 242 struct timezone *tzp); } 243117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 244 struct rusage32 *rusage); } 245118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 246 int name, caddr_t val, int *avalsize); } 247119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 248120 AUE_READV STD { int freebsd32_readv(int fd, \ 249 struct iovec32 *iovp, u_int iovcnt); } 250121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 251 struct iovec32 *iovp, u_int iovcnt); } 252122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 253 struct timeval32 *tv, \ 254 struct timezone *tzp); } 255123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 256124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 257125 AUE_RECVFROM OBSOL orecvfrom 258126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 259127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 260128 AUE_RENAME NOPROTO { int rename(char *from, char *to); } 261129 AUE_TRUNCATE COMPAT|NOPROTO { int truncate(char *path, \ 262 int length); } 263130 AUE_FTRUNCATE COMPAT|NOPROTO { int ftruncate(int fd, int length); } 264131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 265132 AUE_MKFIFO NOPROTO { int mkfifo(char *path, int mode); } 266133 AUE_SENDTO NOPROTO { int sendto(int s, caddr_t buf, \ 267 size_t len, int flags, caddr_t to, \ 268 int tolen); } 269134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 270135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 271 int protocol, int *rsv); } 272136 AUE_MKDIR NOPROTO { int mkdir(char *path, int mode); } 273137 AUE_RMDIR NOPROTO { int rmdir(char *path); } 274138 AUE_UTIMES STD { int freebsd32_utimes(char *path, \ 275 struct timeval32 *tptr); } 276139 AUE_NULL OBSOL 4.2 sigreturn 277140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 278 struct timeval32 *delta, \ 279 struct timeval32 *olddelta); } 280141 AUE_GETPEERNAME OBSOL ogetpeername 281142 AUE_SYSCTL OBSOL ogethostid 282143 AUE_SYSCTL OBSOL sethostid 283144 AUE_GETRLIMIT OBSOL getrlimit 284145 AUE_SETRLIMIT OBSOL setrlimit 285146 AUE_KILLPG OBSOL killpg 286147 AUE_SETSID NOPROTO { int setsid(void); } 287148 AUE_QUOTACTL NOPROTO { int quotactl(char *path, int cmd, int uid, \ 288 caddr_t arg); } 289149 AUE_O_QUOTA OBSOL oquota 290150 AUE_GETSOCKNAME OBSOL ogetsockname 291 292; Syscalls 151-180 inclusive are reserved for vendor-specific 293; system calls. (This includes various calls added for compatibity 294; with other Unix variants.) 295; Some of these calls are now supported by BSD... 296151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 297152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 298153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 299; 154 is initialised by the NLM code, if present. 300154 AUE_NULL UNIMPL nlm_syscall 301; 155 is initialized by the NFS code, if present. 302; XXX this is a problem!!! 303155 AUE_NFS_SVC UNIMPL nfssvc 304156 AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \ 305 char *buf, u_int count, uint32_t *basep); } 306157 AUE_STATFS COMPAT4 { int freebsd32_statfs(char *path, \ 307 struct statfs32 *buf); } 308158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 309 struct statfs32 *buf); } 310159 AUE_NULL UNIMPL nosys 311160 AUE_LGETFH UNIMPL lgetfh 312161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \ 313 struct fhandle *fhp); } 314162 AUE_SYSCTL OBSOL getdomainname 315163 AUE_SYSCTL OBSOL setdomainname 316164 AUE_NULL OBSOL uname 317165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); } 318166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 319 struct rtprio *rtp); } 320167 AUE_NULL UNIMPL nosys 321168 AUE_NULL UNIMPL nosys 322169 AUE_SEMSYS NOSTD { int freebsd32_semsys(int which, int a2, \ 323 int a3, int a4, int a5); } 324170 AUE_MSGSYS NOSTD { int freebsd32_msgsys(int which, int a2, \ 325 int a3, int a4, int a5, int a6); } 326171 AUE_SHMSYS NOSTD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 327 uint32_t a3, uint32_t a4); } 328172 AUE_NULL UNIMPL nosys 329173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 330 size_t nbyte, int pad, \ 331 uint32_t offset1, uint32_t offset2); } 332174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 333 const void *buf, size_t nbyte, int pad, \ 334 uint32_t offset1, uint32_t offset2); } 335175 AUE_NULL UNIMPL nosys 336176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); } 337177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 338178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 339179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 340180 AUE_NULL UNIMPL nosys 341 342; Syscalls 181-199 are used by/reserved for BSD 343181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 344182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 345183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 346184 AUE_NULL OBSOL lfs_bmapv 347185 AUE_NULL OBSOL lfs_markv 348186 AUE_NULL OBSOL lfs_segclean 349187 AUE_NULL OBSOL lfs_segwait 350188 AUE_STAT COMPAT11 { int freebsd32_stat(char *path, \ 351 struct freebsd11_stat32 *ub); } 352189 AUE_FSTAT COMPAT11 { int freebsd32_fstat(int fd, \ 353 struct freebsd11_stat32 *ub); } 354190 AUE_LSTAT COMPAT11 { int freebsd32_lstat(char *path, \ 355 struct freebsd11_stat32 *ub); } 356191 AUE_PATHCONF NOPROTO { int pathconf(char *path, int name); } 357192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 358193 AUE_NULL UNIMPL nosys 359194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 360 struct rlimit *rlp); } getrlimit \ 361 __getrlimit_args int 362195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 363 struct rlimit *rlp); } setrlimit \ 364 __setrlimit_args int 365196 AUE_GETDIRENTRIES COMPAT11 { int freebsd32_getdirentries(int fd, \ 366 char *buf, u_int count, int32_t *basep); } 367197 AUE_MMAP COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \ 368 size_t len, int prot, int flags, int fd, \ 369 int pad, uint32_t pos1, uint32_t pos2); } 370198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 371 __syscall_args int 372199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 373 uint32_t offset1, uint32_t offset2, \ 374 int whence); } 375200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(char *path, \ 376 int pad, uint32_t length1, \ 377 uint32_t length2); } 378201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 379 uint32_t length1, uint32_t length2); } 380202 AUE_SYSCTL STD { int freebsd32___sysctl(int *name, \ 381 u_int namelen, void *old, \ 382 uint32_t *oldlenp, void *new, \ 383 uint32_t newlen); } 384203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \ 385 size_t len); } 386204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \ 387 size_t len); } 388205 AUE_UNDELETE NOPROTO { int undelete(char *path); } 389206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \ 390 struct timeval32 *tptr); } 391207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); } 392208 AUE_NULL UNIMPL nosys 393209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \ 394 int timeout); } 395 396; 397; The following are reserved for loadable syscalls 398; 399210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 400211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 401212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 402213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 403214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 404215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 405216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 406217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 407218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 408219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 409 410220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32_semctl( \ 411 int semid, int semnum, \ 412 int cmd, union semun32 *arg); } 413221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \ 414 int semflg); } 415222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \ 416 struct sembuf *sops, u_int nsops); } 417223 AUE_NULL OBSOL semconfig 418224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \ 419 int msqid, int cmd, \ 420 struct msqid_ds32_old *buf); } 421225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); } 422226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, void *msgp, \ 423 size_t msgsz, int msgflg); } 424227 AUE_MSGRCV NOSTD { int freebsd32_msgrcv(int msqid, void *msgp, \ 425 size_t msgsz, long msgtyp, int msgflg); } 426228 AUE_SHMAT NOSTD|NOPROTO { int shmat(int shmid, void *shmaddr, \ 427 int shmflg); } 428229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \ 429 int shmid, int cmd, \ 430 struct shmid_ds32_old *buf); } 431230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(void *shmaddr); } 432231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \ 433 int shmflg); } 434; 435232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \ 436 struct timespec32 *tp); } 437233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \ 438 const struct timespec32 *tp); } 439234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \ 440 struct timespec32 *tp); } 441235 AUE_NULL STD { int freebsd32_ktimer_create(\ 442 clockid_t clock_id, \ 443 struct sigevent32 *evp, int *timerid); } 444236 AUE_NULL NOPROTO { int ktimer_delete(int timerid); } 445237 AUE_NULL STD { int freebsd32_ktimer_settime(int timerid,\ 446 int flags, \ 447 const struct itimerspec32 *value, \ 448 struct itimerspec32 *ovalue); } 449238 AUE_NULL STD { int freebsd32_ktimer_gettime(int timerid,\ 450 struct itimerspec32 *value); } 451239 AUE_NULL NOPROTO { int ktimer_getoverrun(int timerid); } 452240 AUE_NULL STD { int freebsd32_nanosleep( \ 453 const struct timespec32 *rqtp, \ 454 struct timespec32 *rmtp); } 455241 AUE_NULL NOPROTO { int ffclock_getcounter(ffcounter *ffcount); } 456242 AUE_NULL NOPROTO { int ffclock_setestimate( \ 457 struct ffclock_estimate *cest); } 458243 AUE_NULL NOPROTO { int ffclock_getestimate( \ 459 struct ffclock_estimate *cest); } 460244 AUE_NULL STD { int freebsd32_clock_nanosleep( \ 461 clockid_t clock_id, int flags, \ 462 const struct timespec32 *rqtp, \ 463 struct timespec32 *rmtp); } 464245 AUE_NULL UNIMPL nosys 465246 AUE_NULL UNIMPL nosys 466247 AUE_NULL STD { int freebsd32_clock_getcpuclockid2(\ 467 uint32_t id1, uint32_t id2,\ 468 int which, clockid_t *clock_id); } 469248 AUE_NULL UNIMPL ntp_gettime 470249 AUE_NULL UNIMPL nosys 471250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \ 472 int inherit); } 473251 AUE_RFORK NOPROTO { int rfork(int flags); } 474252 AUE_POLL OBSOL openbsd_poll 475253 AUE_ISSETUGID NOPROTO { int issetugid(void); } 476254 AUE_LCHOWN NOPROTO { int lchown(char *path, int uid, int gid); } 477255 AUE_AIO_READ STD { int freebsd32_aio_read( \ 478 struct aiocb32 *aiocbp); } 479256 AUE_AIO_WRITE STD { int freebsd32_aio_write( \ 480 struct aiocb32 *aiocbp); } 481257 AUE_LIO_LISTIO STD { int freebsd32_lio_listio(int mode, \ 482 struct aiocb32 * const *acb_list, \ 483 int nent, struct sigevent32 *sig); } 484258 AUE_NULL UNIMPL nosys 485259 AUE_NULL UNIMPL nosys 486260 AUE_NULL UNIMPL nosys 487261 AUE_NULL UNIMPL nosys 488262 AUE_NULL UNIMPL nosys 489263 AUE_NULL UNIMPL nosys 490264 AUE_NULL UNIMPL nosys 491265 AUE_NULL UNIMPL nosys 492266 AUE_NULL UNIMPL nosys 493267 AUE_NULL UNIMPL nosys 494268 AUE_NULL UNIMPL nosys 495269 AUE_NULL UNIMPL nosys 496270 AUE_NULL UNIMPL nosys 497271 AUE_NULL UNIMPL nosys 498272 AUE_O_GETDENTS COMPAT11 { int freebsd32_getdents(int fd, char *buf, \ 499 int count); } 500273 AUE_NULL UNIMPL nosys 501274 AUE_LCHMOD NOPROTO { int lchmod(char *path, mode_t mode); } 502275 AUE_NULL OBSOL netbsd_lchown 503276 AUE_LUTIMES STD { int freebsd32_lutimes(char *path, \ 504 struct timeval32 *tptr); } 505277 AUE_NULL OBSOL netbsd_msync 506278 AUE_STAT COMPAT11|NOPROTO { int nstat(char *path, struct nstat *ub); } 507279 AUE_FSTAT COMPAT11|NOPROTO { int nfstat(int fd, struct nstat *sb); } 508280 AUE_LSTAT COMPAT11|NOPROTO { int nlstat(char *path, struct nstat *ub); } 509281 AUE_NULL UNIMPL nosys 510282 AUE_NULL UNIMPL nosys 511283 AUE_NULL UNIMPL nosys 512284 AUE_NULL UNIMPL nosys 513285 AUE_NULL UNIMPL nosys 514286 AUE_NULL UNIMPL nosys 515287 AUE_NULL UNIMPL nosys 516288 AUE_NULL UNIMPL nosys 517289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \ 518 struct iovec32 *iovp, \ 519 u_int iovcnt, \ 520 uint32_t offset1, uint32_t offset2); } 521290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 522 struct iovec32 *iovp, \ 523 u_int iovcnt, \ 524 uint32_t offset1, uint32_t offset2); } 525291 AUE_NULL UNIMPL nosys 526292 AUE_NULL UNIMPL nosys 527293 AUE_NULL UNIMPL nosys 528294 AUE_NULL UNIMPL nosys 529295 AUE_NULL UNIMPL nosys 530296 AUE_NULL UNIMPL nosys 531297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \ 532 const struct fhandle *u_fhp, \ 533 struct statfs32 *buf); } 534298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \ 535 int flags); } 536299 AUE_FHSTAT COMPAT11 { int freebsd32_fhstat( \ 537 const struct fhandle *u_fhp, \ 538 struct freebsd11_stat32 *sb); } 539; syscall numbers for FreeBSD 540300 AUE_NULL NOPROTO { int modnext(int modid); } 541301 AUE_NULL STD { int freebsd32_modstat(int modid, \ 542 struct module_stat32* stat); } 543302 AUE_NULL NOPROTO { int modfnext(int modid); } 544303 AUE_NULL NOPROTO { int modfind(const char *name); } 545304 AUE_MODLOAD NOPROTO { int kldload(const char *file); } 546305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); } 547306 AUE_NULL NOPROTO { int kldfind(const char *file); } 548307 AUE_NULL NOPROTO { int kldnext(int fileid); } 549308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \ 550 struct kld32_file_stat* stat); } 551309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); } 552310 AUE_GETSID NOPROTO { int getsid(pid_t pid); } 553311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 554 uid_t suid); } 555312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 556 gid_t sgid); } 557313 AUE_NULL OBSOL signanosleep 558314 AUE_AIO_RETURN STD { int freebsd32_aio_return( \ 559 struct aiocb32 *aiocbp); } 560315 AUE_AIO_SUSPEND STD { int freebsd32_aio_suspend( \ 561 struct aiocb32 * const * aiocbp, int nent, \ 562 const struct timespec32 *timeout); } 563316 AUE_AIO_CANCEL NOPROTO { int aio_cancel(int fd, \ 564 struct aiocb *aiocbp); } 565317 AUE_AIO_ERROR STD { int freebsd32_aio_error( \ 566 struct aiocb32 *aiocbp); } 567318 AUE_AIO_READ COMPAT6 { int freebsd32_aio_read( \ 568 struct oaiocb32 *aiocbp); } 569319 AUE_AIO_WRITE COMPAT6 { int freebsd32_aio_write( \ 570 struct oaiocb32 *aiocbp); } 571320 AUE_LIO_LISTIO COMPAT6 { int freebsd32_lio_listio(int mode, \ 572 struct oaiocb32 * const *acb_list, \ 573 int nent, struct osigevent32 *sig); } 574321 AUE_NULL NOPROTO { int yield(void); } 575322 AUE_NULL OBSOL thr_sleep 576323 AUE_NULL OBSOL thr_wakeup 577324 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 578325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 579326 AUE_GETCWD NOPROTO { int __getcwd(char *buf, size_t buflen); } 580 581327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \ 582 const struct sched_param *param); } 583328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \ 584 struct sched_param *param); } 585 586329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \ 587 int policy, \ 588 const struct sched_param *param); } 589330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); } 590 591331 AUE_NULL NOPROTO { int sched_yield (void); } 592332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); } 593333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); } 594334 AUE_NULL STD { int freebsd32_sched_rr_get_interval ( \ 595 pid_t pid, \ 596 struct timespec32 *interval); } 597335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); } 598336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 599 uint32_t offset1, uint32_t offset2, \ 600 size_t nbytes, struct sf_hdtr32 *hdtr, \ 601 off_t *sbytes, int flags); } 602337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 603 void *data); } 604338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); } 605339 AUE_NULL UNIMPL pioctl 606340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 607 const sigset_t *set, sigset_t *oset); } 608341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 609342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 610 struct sigaction32 *act, \ 611 struct sigaction32 *oact); } 612343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 613344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 614 const struct freebsd4_freebsd32_ucontext *sigcntxp); } 615345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 616 siginfo_t *info, \ 617 const struct timespec *timeout); } 618346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 619 siginfo_t *info); } 620347 AUE_ACL_GET_FILE NOPROTO { int __acl_get_file(const char *path, \ 621 acl_type_t type, struct acl *aclp); } 622348 AUE_ACL_SET_FILE NOPROTO { int __acl_set_file(const char *path, \ 623 acl_type_t type, struct acl *aclp); } 624349 AUE_ACL_GET_FD NOPROTO { int __acl_get_fd(int filedes, \ 625 acl_type_t type, struct acl *aclp); } 626350 AUE_ACL_SET_FD NOPROTO { int __acl_set_fd(int filedes, \ 627 acl_type_t type, struct acl *aclp); } 628351 AUE_ACL_DELETE_FILE NOPROTO { int __acl_delete_file(const char *path, \ 629 acl_type_t type); } 630352 AUE_ACL_DELETE_FD NOPROTO { int __acl_delete_fd(int filedes, \ 631 acl_type_t type); } 632353 AUE_ACL_CHECK_FILE NOPROTO { int __acl_aclcheck_file(const char *path, \ 633 acl_type_t type, struct acl *aclp); } 634354 AUE_ACL_CHECK_FD NOPROTO { int __acl_aclcheck_fd(int filedes, \ 635 acl_type_t type, struct acl *aclp); } 636355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 637 const char *filename, int attrnamespace, \ 638 const char *attrname); } 639356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \ 640 const char *path, int attrnamespace, \ 641 const char *attrname, void *data, \ 642 size_t nbytes); } 643357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 644 const char *path, int attrnamespace, \ 645 const char *attrname, void *data, \ 646 size_t nbytes); } 647358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 648 const char *path, int attrnamespace, \ 649 const char *attrname); } 650359 AUE_AIO_WAITCOMPLETE STD { int freebsd32_aio_waitcomplete( \ 651 struct aiocb32 **aiocbp, \ 652 struct timespec32 *timeout); } 653360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 654 uid_t *suid); } 655361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 656 gid_t *sgid); } 657362 AUE_KQUEUE NOPROTO { int kqueue(void); } 658363 AUE_KEVENT COMPAT11 { int freebsd32_kevent(int fd, \ 659 const struct kevent32_freebsd11 * \ 660 changelist, \ 661 int nchanges, \ 662 struct kevent32_freebsd11 *eventlist, \ 663 int nevents, \ 664 const struct timespec32 *timeout); } 665364 AUE_NULL OBSOL __cap_get_proc 666365 AUE_NULL OBSOL __cap_set_proc 667366 AUE_NULL OBSOL __cap_get_fd 668367 AUE_NULL OBSOL __cap_get_file 669368 AUE_NULL OBSOL __cap_set_fd 670369 AUE_NULL OBSOL __cap_set_file 671370 AUE_NULL UNIMPL nosys 672371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \ 673 int attrnamespace, const char *attrname, \ 674 void *data, size_t nbytes); } 675372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 676 int attrnamespace, const char *attrname, \ 677 void *data, size_t nbytes); } 678373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 679 int attrnamespace, \ 680 const char *attrname); } 681374 AUE_SETUGID NOPROTO { int __setugid(int flag); } 682375 AUE_NULL OBSOL nfsclnt 683376 AUE_EACCESS NOPROTO { int eaccess(char *path, int amode); } 684377 AUE_NULL UNIMPL afs_syscall 685378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 686 unsigned int iovcnt, int flags); } 687379 AUE_NULL OBSOL kse_exit 688380 AUE_NULL OBSOL kse_wakeup 689381 AUE_NULL OBSOL kse_create 690382 AUE_NULL OBSOL kse_thr_interrupt 691383 AUE_NULL OBSOL kse_release 692384 AUE_NULL UNIMPL __mac_get_proc 693385 AUE_NULL UNIMPL __mac_set_proc 694386 AUE_NULL UNIMPL __mac_get_fd 695387 AUE_NULL UNIMPL __mac_get_file 696388 AUE_NULL UNIMPL __mac_set_fd 697389 AUE_NULL UNIMPL __mac_set_file 698390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 699 char *value, int len); } 700391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, \ 701 u_long flags); } 702392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 703 int count); } 704393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 705 uint32_t offset1, uint32_t offset2, \ 706 size_t nbytes, struct sf_hdtr32 *hdtr, \ 707 off_t *sbytes, int flags); } 708394 AUE_NULL UNIMPL mac_syscall 709395 AUE_GETFSSTAT COMPAT11|NOPROTO { int getfsstat( \ 710 struct freebsd11_statfs *buf, \ 711 long bufsize, int mode); } 712396 AUE_STATFS COMPAT11|NOPROTO { int statfs(char *path, \ 713 struct statfs *buf); } 714397 AUE_FSTATFS COMPAT11|NOPROTO { int fstatfs(int fd, \ 715 struct freebsd11_statfs *buf); } 716398 AUE_FHSTATFS COMPAT11|NOPROTO { int fhstatfs( \ 717 const struct fhandle *u_fhp, \ 718 struct freebsd11_statfs *buf); } 719399 AUE_NULL UNIMPL nosys 720400 AUE_SEMCLOSE NOSTD|NOPROTO { int ksem_close(semid_t id); } 721401 AUE_SEMPOST NOSTD|NOPROTO { int ksem_post(semid_t id); } 722402 AUE_SEMWAIT NOSTD|NOPROTO { int ksem_wait(semid_t id); } 723403 AUE_SEMTRYWAIT NOSTD|NOPROTO { int ksem_trywait(semid_t id); } 724404 AUE_SEMINIT NOSTD { int freebsd32_ksem_init(semid_t *idp, \ 725 unsigned int value); } 726405 AUE_SEMOPEN NOSTD { int freebsd32_ksem_open(semid_t *idp, \ 727 const char *name, int oflag, \ 728 mode_t mode, unsigned int value); } 729406 AUE_SEMUNLINK NOSTD|NOPROTO { int ksem_unlink(const char *name); } 730407 AUE_SEMGETVALUE NOSTD|NOPROTO { int ksem_getvalue(semid_t id, \ 731 int *val); } 732408 AUE_SEMDESTROY NOSTD|NOPROTO { int ksem_destroy(semid_t id); } 733409 AUE_NULL UNIMPL __mac_get_pid 734410 AUE_NULL UNIMPL __mac_get_link 735411 AUE_NULL UNIMPL __mac_set_link 736412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \ 737 const char *path, int attrnamespace, \ 738 const char *attrname, void *data, \ 739 size_t nbytes); } 740413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \ 741 const char *path, int attrnamespace, \ 742 const char *attrname, void *data, \ 743 size_t nbytes); } 744414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \ 745 const char *path, int attrnamespace, \ 746 const char *attrname); } 747415 AUE_NULL UNIMPL __mac_execve 748416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 749 struct sigaction32 *act, \ 750 struct sigaction32 *oact); } 751417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 752 const struct freebsd32_ucontext *sigcntxp); } 753418 AUE_NULL UNIMPL __xstat 754419 AUE_NULL UNIMPL __xfstat 755420 AUE_NULL UNIMPL __xlstat 756421 AUE_NULL STD { int freebsd32_getcontext( \ 757 struct freebsd32_ucontext *ucp); } 758422 AUE_NULL STD { int freebsd32_setcontext( \ 759 const struct freebsd32_ucontext *ucp); } 760423 AUE_NULL STD { int freebsd32_swapcontext( \ 761 struct freebsd32_ucontext *oucp, \ 762 const struct freebsd32_ucontext *ucp); } 763424 AUE_SWAPOFF UNIMPL swapoff 764425 AUE_ACL_GET_LINK NOPROTO { int __acl_get_link(const char *path, \ 765 acl_type_t type, struct acl *aclp); } 766426 AUE_ACL_SET_LINK NOPROTO { int __acl_set_link(const char *path, \ 767 acl_type_t type, struct acl *aclp); } 768427 AUE_ACL_DELETE_LINK NOPROTO { int __acl_delete_link(const char *path, \ 769 acl_type_t type); } 770428 AUE_ACL_CHECK_LINK NOPROTO { int __acl_aclcheck_link(const char *path, \ 771 acl_type_t type, struct acl *aclp); } 772429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 773 int *sig); } 774430 AUE_THR_CREATE UNIMPL thr_create; 775431 AUE_THR_EXIT NOPROTO { void thr_exit(long *state); } 776432 AUE_NULL NOPROTO { int thr_self(long *id); } 777433 AUE_THR_KILL NOPROTO { int thr_kill(long id, int sig); } 778434 AUE_NULL UNIMPL nosys 779435 AUE_NULL UNIMPL nosys 780436 AUE_JAIL_ATTACH NOPROTO { int jail_attach(int jid); } 781437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \ 782 int attrnamespace, void *data, \ 783 size_t nbytes); } 784438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \ 785 const char *path, int attrnamespace, \ 786 void *data, size_t nbytes); } 787439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \ 788 const char *path, int attrnamespace, \ 789 void *data, size_t nbytes); } 790440 AUE_NULL OBSOL kse_switchin 791441 AUE_SEMWAIT NOSTD { int freebsd32_ksem_timedwait(semid_t id, \ 792 const struct timespec32 *abstime); } 793442 AUE_NULL STD { int freebsd32_thr_suspend( \ 794 const struct timespec32 *timeout); } 795443 AUE_NULL NOPROTO { int thr_wake(long id); } 796444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 797445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 798 u_int length); } 799446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 800 u_int length); } 801447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 802448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 803449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 804450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 805451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 806 struct auditinfo_addr *auditinfo_addr, \ 807 u_int length); } 808452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 809 struct auditinfo_addr *auditinfo_addr, \ 810 u_int length); } 811453 AUE_AUDITCTL NOPROTO { int auditctl(char *path); } 812454 AUE_NULL STD { int freebsd32__umtx_op(void *obj, int op,\ 813 u_long val, void *uaddr, \ 814 void *uaddr2); } 815455 AUE_THR_NEW STD { int freebsd32_thr_new( \ 816 struct thr_param32 *param, \ 817 int param_size); } 818456 AUE_NULL STD { int freebsd32_sigqueue(pid_t pid, \ 819 int signum, int value); } 820457 AUE_MQ_OPEN NOSTD { int freebsd32_kmq_open( \ 821 const char *path, int flags, mode_t mode, \ 822 const struct mq_attr32 *attr); } 823458 AUE_MQ_SETATTR NOSTD { int freebsd32_kmq_setattr(int mqd, \ 824 const struct mq_attr32 *attr, \ 825 struct mq_attr32 *oattr); } 826459 AUE_MQ_TIMEDRECEIVE NOSTD { int freebsd32_kmq_timedreceive(int mqd, \ 827 char *msg_ptr, size_t msg_len, \ 828 unsigned *msg_prio, \ 829 const struct timespec32 *abs_timeout); } 830460 AUE_MQ_TIMEDSEND NOSTD { int freebsd32_kmq_timedsend(int mqd, \ 831 const char *msg_ptr, size_t msg_len,\ 832 unsigned msg_prio, \ 833 const struct timespec32 *abs_timeout);} 834461 AUE_MQ_NOTIFY NOSTD { int freebsd32_kmq_notify(int mqd, \ 835 const struct sigevent32 *sigev); } 836462 AUE_MQ_UNLINK NOPROTO|NOSTD { int kmq_unlink(const char *path); } 837463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 838464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 839465 AUE_AIO_FSYNC STD { int freebsd32_aio_fsync(int op, \ 840 struct aiocb32 *aiocbp); } 841466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 842 lwpid_t lwpid, struct rtprio *rtp); } 843467 AUE_NULL UNIMPL nosys 844468 AUE_NULL UNIMPL nosys 845469 AUE_NULL UNIMPL __getpath_fromfd 846470 AUE_NULL UNIMPL __getpath_fromaddr 847471 AUE_SCTP_PEELOFF NOPROTO|NOSTD { int sctp_peeloff(int sd, uint32_t name); } 848472 AUE_SCTP_GENERIC_SENDMSG NOPROTO|NOSTD { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ 849 caddr_t to, __socklen_t tolen, \ 850 struct sctp_sndrcvinfo *sinfo, int flags); } 851473 AUE_SCTP_GENERIC_SENDMSG_IOV NOPROTO|NOSTD { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 852 caddr_t to, __socklen_t tolen, \ 853 struct sctp_sndrcvinfo *sinfo, int flags); } 854474 AUE_SCTP_GENERIC_RECVMSG NOPROTO|NOSTD { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 855 struct sockaddr * from, __socklen_t *fromlenaddr, \ 856 struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 857#ifdef PAD64_REQUIRED 858475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 859 void *buf,size_t nbyte, \ 860 int pad, \ 861 uint32_t offset1, uint32_t offset2); } 862476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 863 const void *buf, size_t nbyte, \ 864 int pad, \ 865 uint32_t offset1, uint32_t offset2); } 866477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 867 size_t len, int prot, int flags, int fd, \ 868 int pad, \ 869 uint32_t pos1, uint32_t pos2); } 870478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 871 int pad, \ 872 uint32_t offset1, uint32_t offset2, \ 873 int whence); } 874479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 875 int pad, \ 876 uint32_t length1, uint32_t length2); } 877480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 878 int pad, \ 879 uint32_t length1, uint32_t length2); } 880#else 881475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 882 void *buf,size_t nbyte, \ 883 uint32_t offset1, uint32_t offset2); } 884476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 885 const void *buf, size_t nbyte, \ 886 uint32_t offset1, uint32_t offset2); } 887477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 888 size_t len, int prot, int flags, int fd, \ 889 uint32_t pos1, uint32_t pos2); } 890478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 891 uint32_t offset1, uint32_t offset2, \ 892 int whence); } 893479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 894 uint32_t length1, uint32_t length2); } 895480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 896 uint32_t length1, uint32_t length2); } 897#endif 898481 AUE_THR_KILL2 NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 899482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \ 900 mode_t mode); } 901483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 902484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 903#ifdef PAD64_REQUIRED 904485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 905 int pad, \ 906 uint32_t id1, uint32_t id2, \ 907 cpusetid_t setid); } 908#else 909485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 910 uint32_t id1, uint32_t id2, \ 911 cpusetid_t setid); } 912#endif 913486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 914 cpuwhich_t which, \ 915 uint32_t id1, uint32_t id2, \ 916 cpusetid_t *setid); } 917487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 918 cpulevel_t level, cpuwhich_t which, \ 919 uint32_t id1, uint32_t id2, \ 920 size_t cpusetsize, \ 921 cpuset_t *mask); } 922488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 923 cpulevel_t level, cpuwhich_t which, \ 924 uint32_t id1, uint32_t id2, \ 925 size_t cpusetsize, \ 926 const cpuset_t *mask); } 927489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, char *path, int amode, \ 928 int flag); } 929490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 930 mode_t mode, int flag); } 931491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, char *path, uid_t uid, \ 932 gid_t gid, int flag); } 933492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 934 uint32_t *argv, uint32_t *envv); } 935493 AUE_FSTATAT COMPAT11 { int freebsd32_fstatat(int fd, \ 936 char *path, struct freebsd11_stat32 *buf, \ 937 int flag); } 938494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, char *path, \ 939 struct timeval *times); } 940495 AUE_LINKAT NOPROTO { int linkat(int fd1, char *path1, int fd2, \ 941 char *path2, int flag); } 942496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, char *path, \ 943 mode_t mode); } 944497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, char *path, \ 945 mode_t mode); } 946498 AUE_MKNODAT COMPAT11|NOPROTO { int mknodat(int fd, char *path, \ 947 mode_t mode, uint32_t dev); } 948499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \ 949 mode_t mode); } 950500 AUE_READLINKAT NOPROTO { int readlinkat(int fd, char *path, char *buf, \ 951 size_t bufsize); } 952501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, char *old, int newfd, \ 953 const char *new); } 954502 AUE_SYMLINKAT NOPROTO { int symlinkat(char *path1, int fd, \ 955 char *path2); } 956503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, char *path, \ 957 int flag); } 958504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 959; 505 is initialised by the kgssapi code, if present. 960505 AUE_NULL UNIMPL gssd_syscall 961506 AUE_JAIL_GET STD { int freebsd32_jail_get(struct iovec32 *iovp, \ 962 unsigned int iovcnt, int flags); } 963507 AUE_JAIL_SET STD { int freebsd32_jail_set(struct iovec32 *iovp, \ 964 unsigned int iovcnt, int flags); } 965508 AUE_JAIL_REMOVE NOPROTO { int jail_remove(int jid); } 966509 AUE_CLOSEFROM NOPROTO { int closefrom(int lowfd); } 967510 AUE_SEMCTL NOSTD { int freebsd32_semctl(int semid, int semnum, \ 968 int cmd, union semun32 *arg); } 969511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \ 970 struct msqid_ds32 *buf); } 971512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \ 972 struct shmid_ds32 *buf); } 973513 AUE_LPATHCONF NOPROTO { int lpathconf(char *path, int name); } 974514 AUE_NULL OBSOL cap_new 975515 AUE_CAP_RIGHTS_GET NOPROTO { int __cap_rights_get(int version, \ 976 int fd, cap_rights_t *rightsp); } 977516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); } 978517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); } 979518 AUE_PDFORK NOPROTO { int pdfork(int *fdp, int flags); } 980519 AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); } 981520 AUE_PDGETPID NOPROTO { int pdgetpid(int fd, pid_t *pidp); } 982521 AUE_PDWAIT UNIMPL pdwait4 983522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \ 984 fd_set *ou, fd_set *ex, \ 985 const struct timespec32 *ts, \ 986 const sigset_t *sm); } 987523 AUE_GETLOGINCLASS NOPROTO { int getloginclass(char *namebuf, \ 988 size_t namelen); } 989524 AUE_SETLOGINCLASS NOPROTO { int setloginclass(const char *namebuf); } 990525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \ 991 size_t inbuflen, void *outbufp, \ 992 size_t outbuflen); } 993526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \ 994 size_t inbuflen, void *outbufp, \ 995 size_t outbuflen); } 996527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \ 997 size_t inbuflen, void *outbufp, \ 998 size_t outbuflen); } 999528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \ 1000 size_t inbuflen, void *outbufp, \ 1001 size_t outbuflen); } 1002529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \ 1003 size_t inbuflen, void *outbufp, \ 1004 size_t outbuflen); } 1005#ifdef PAD64_REQUIRED 1006530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd, \ 1007 int pad, \ 1008 uint32_t offset1, uint32_t offset2,\ 1009 uint32_t len1, uint32_t len2); } 1010531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \ 1011 int pad, \ 1012 uint32_t offset1, uint32_t offset2,\ 1013 uint32_t len1, uint32_t len2, \ 1014 int advice); } 1015532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, int pad, \ 1016 uint32_t id1, uint32_t id2, \ 1017 int *status, int options, \ 1018 struct wrusage32 *wrusage, \ 1019 siginfo_t *info); } 1020#else 1021530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd,\ 1022 uint32_t offset1, uint32_t offset2,\ 1023 uint32_t len1, uint32_t len2); } 1024531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \ 1025 uint32_t offset1, uint32_t offset2,\ 1026 uint32_t len1, uint32_t len2, \ 1027 int advice); } 1028532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, \ 1029 uint32_t id1, uint32_t id2, \ 1030 int *status, int options, \ 1031 struct wrusage32 *wrusage, \ 1032 siginfo_t *info); } 1033#endif 1034533 AUE_CAP_RIGHTS_LIMIT NOPROTO { \ 1035 int cap_rights_limit(int fd, \ 1036 cap_rights_t *rightsp); } 1037534 AUE_CAP_IOCTLS_LIMIT STD { \ 1038 int freebsd32_cap_ioctls_limit(int fd, \ 1039 const uint32_t *cmds, size_t ncmds); } 1040535 AUE_CAP_IOCTLS_GET STD { \ 1041 ssize_t freebsd32_cap_ioctls_get(int fd, \ 1042 uint32_t *cmds, size_t maxcmds); } 1043536 AUE_CAP_FCNTLS_LIMIT NOPROTO { int cap_fcntls_limit(int fd, \ 1044 uint32_t fcntlrights); } 1045537 AUE_CAP_FCNTLS_GET NOPROTO { int cap_fcntls_get(int fd, \ 1046 uint32_t *fcntlrightsp); } 1047538 AUE_BINDAT NOPROTO { int bindat(int fd, int s, caddr_t name, \ 1048 int namelen); } 1049539 AUE_CONNECTAT NOPROTO { int connectat(int fd, int s, caddr_t name, \ 1050 int namelen); } 1051540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \ 1052 u_long flags, int atflag); } 1053541 AUE_ACCEPT NOPROTO { int accept4(int s, \ 1054 struct sockaddr * __restrict name, \ 1055 __socklen_t * __restrict anamelen, \ 1056 int flags); } 1057542 AUE_PIPE NOPROTO { int pipe2(int *fildes, int flags); } 1058543 AUE_AIO_MLOCK STD { int freebsd32_aio_mlock( \ 1059 struct aiocb32 *aiocbp); } 1060#ifdef PAD64_REQUIRED 1061544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, int pad, \ 1062 uint32_t id1, uint32_t id2, int com, \ 1063 void *data); } 1064#else 1065544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, \ 1066 uint32_t id1, uint32_t id2, int com, \ 1067 void *data); } 1068#endif 1069545 AUE_POLL STD { int freebsd32_ppoll(struct pollfd *fds, \ 1070 u_int nfds, const struct timespec32 *ts, \ 1071 const sigset_t *set); } 1072546 AUE_FUTIMES STD { int freebsd32_futimens(int fd, \ 1073 struct timespec *times); } 1074547 AUE_FUTIMESAT STD { int freebsd32_utimensat(int fd, \ 1075 char *path, \ 1076 struct timespec *times, int flag); } 1077548 AUE_NULL OBSOL numa_getaffinity 1078549 AUE_NULL OBSOL numa_setaffinity 1079550 AUE_FSYNC NOPROTO { int fdatasync(int fd); } 1080551 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 1081 struct stat32 *ub); } 1082552 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, \ 1083 char *path, struct stat32 *buf, \ 1084 int flag); } 1085553 AUE_FHSTAT STD { int freebsd32_fhstat( \ 1086 const struct fhandle *u_fhp, \ 1087 struct stat32 *sb); } 1088554 AUE_GETDIRENTRIES NOPROTO { ssize_t getdirentries( \ 1089 int fd, char *buf, size_t count, \ 1090 off_t *basep); } 1091555 AUE_STATFS NOPROTO { int statfs(char *path, \ 1092 struct statfs32 *buf); } 1093556 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs32 *buf); } 1094557 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs32 *buf, \ 1095 long bufsize, int mode); } 1096558 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 1097 struct statfs32 *buf); } 1098#ifdef PAD64_REQUIRED 1099559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \ 1100 char *path, mode_t mode, \ 1101 int pad, uint32_t dev1, uint32_t dev2); } 1102#else 1103559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \ 1104 char *path, mode_t mode, \ 1105 uint32_t dev1, uint32_t dev2); } 1106#endif 1107560 AUE_KEVENT STD { int freebsd32_kevent(int fd, \ 1108 const struct kevent32 *changelist, \ 1109 int nchanges, \ 1110 struct kevent32 *eventlist, \ 1111 int nevents, \ 1112 const struct timespec32 *timeout); } 1113561 AUE_NULL STD { int freebsd32_cpuset_getdomain(cpulevel_t level, \ 1114 cpuwhich_t which, uint32_t id1, uint32_t id2, \ 1115 size_t domainsetsize, domainset_t *mask, \ 1116 int *policy); } 1117562 AUE_NULL STD { int freebsd32_cpuset_setdomain(cpulevel_t level, \ 1118 cpuwhich_t which, uint32_t id1, uint32_t id2, \ 1119 size_t domainsetsize, domainset_t *mask, \ 1120 int policy); } 1121563 AUE_NULL NOPROTO { int getrandom(void *buf, size_t buflen, \ 1122 unsigned int flags); } 1123564 AUE_NULL NOPROTO { int getfhat( int fd, char *path, \ 1124 struct fhandle *fhp, int flags); } 1125565 AUE_NULL NOPROTO { int fhlink( struct fhandle *fhp, const char *to ); } 1126566 AUE_NULL NOPROTO { int fhlinkat( struct fhandle *fhp, int tofd, \ 1127 const char *to); } 1128567 AUE_NULL NOPROTO { int fhreadlink( struct fhandle *fhp, char *buf, \ 1129 size_t bufsize); } 1130 1131; vim: syntax=off 1132