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, COMPAT12, 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; COMPAT12 included on COMPAT_FREEBSD12 #ifdef (FreeBSD 12 compat) 35; OBSOL obsolete, not included in system, only specifies name 36; UNIMPL not implemented, placeholder only 37; NOSTD implemented but as a lkm that can be statically 38; compiled in; sysent entry will be filled with lkmressys 39; so the SYSCALL_MODULE macro works 40; NOARGS same as STD except do not create structure in sys/sysproto.h 41; NODEF same as STD except only have the entry in the syscall table 42; added. Meaning - do not create structure or function 43; prototype in sys/sysproto.h 44; NOPROTO same as STD except do not create structure or 45; function prototype in sys/sysproto.h. Does add a 46; definition to syscall.h besides adding a sysent. 47 48; #ifdef's, etc. may be included, and are copied to the output files. 49 50#include <sys/param.h> 51#include <sys/sysent.h> 52#include <sys/sysproto.h> 53#include <sys/mount.h> 54#include <sys/socket.h> 55#include <compat/freebsd32/freebsd32.h> 56#include <compat/freebsd32/freebsd32_proto.h> 57 58#if !defined(PAD64_REQUIRED) && !defined(__amd64__) 59#define PAD64_REQUIRED 60#endif 61 62; Reserved/unimplemented system calls in the range 0-150 inclusive 63; are reserved for use in future Berkeley releases. 64; Additional system calls implemented in vendor and other 65; redistributions should be placed in the reserved range at the end 66; of the current calls. 67 680 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int 691 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \ 70 sys_exit_args void 712 AUE_FORK NOPROTO { int fork(void); } 723 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \ 73 size_t nbyte); } 744 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \ 75 size_t nbyte); } 765 AUE_OPEN_RWTC NOPROTO { int open(const char *path, int flags, \ 77 mode_t mode); } 786 AUE_CLOSE NOPROTO { int close(int fd); } 797 AUE_WAIT4 STD { int freebsd32_wait4(int pid, int *status, \ 80 int options, struct rusage32 *rusage); } 818 AUE_CREAT OBSOL old creat 829 AUE_LINK NOPROTO { int link(const char *path, \ 83 const char *link); } 8410 AUE_UNLINK NOPROTO { int unlink(const char *path); } 8511 AUE_NULL OBSOL execv 8612 AUE_CHDIR NOPROTO { int chdir(const char *path); } 8713 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 8814 AUE_MKNOD COMPAT11|NOPROTO { int mknod(const char *path, \ 89 int mode, uint32_t dev); } 9015 AUE_CHMOD NOPROTO { int chmod(const char *path, mode_t mode); } 9116 AUE_CHOWN NOPROTO { int chown(const char *path, int uid, int gid); } 9217 AUE_NULL NOPROTO { void *break(char *nsize); } 9318 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 94 struct statfs32 *buf, long bufsize, \ 95 int mode); } 9619 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int offset, \ 97 int whence); } 9820 AUE_GETPID NOPROTO { pid_t getpid(void); } 9921 AUE_MOUNT NOPROTO { int mount(const char *type, \ 100 const char *path, \ 101 int flags, void *data); } 10222 AUE_UMOUNT NOPROTO { int unmount(const char *path, int flags); } 10323 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 10424 AUE_GETUID NOPROTO { uid_t getuid(void); } 10525 AUE_GETEUID NOPROTO { uid_t geteuid(void); } 10626 AUE_PTRACE STD { int freebsd32_ptrace(int req, pid_t pid, \ 107 caddr_t addr, int data); } 10827 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \ 109 int flags); } 11028 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \ 111 int flags); } 11229 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, void *buf, \ 113 uint32_t len, int flags, \ 114 struct sockaddr *from, \ 115 uint32_t fromlenaddr); } 11630 AUE_ACCEPT NOPROTO { int accept(int s, struct sockaddr *name, \ 117 int *anamelen); } 11831 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, \ 119 struct sockaddr *asa, \ 120 int *alen); } 12132 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, \ 122 struct sockaddr *asa, \ 123 int *alen); } 12433 AUE_ACCESS NOPROTO { int access(const char *path, int amode); } 12534 AUE_CHFLAGS NOPROTO { int chflags(const char *path, u_long flags); } 12635 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, u_long flags); } 12736 AUE_SYNC NOPROTO { int sync(void); } 12837 AUE_KILL NOPROTO { int kill(int pid, int signum); } 12938 AUE_STAT COMPAT { int freebsd32_stat(const char *path, \ 130 struct ostat32 *ub); } 13139 AUE_GETPPID NOPROTO { pid_t getppid(void); } 13240 AUE_LSTAT COMPAT { int freebsd32_lstat(const char *path, \ 133 struct ostat *ub); } 13441 AUE_DUP NOPROTO { int dup(u_int fd); } 13542 AUE_PIPE COMPAT10 { int freebsd32_pipe(void); } 13643 AUE_GETEGID NOPROTO { gid_t getegid(void); } 13744 AUE_PROFILE NOPROTO { int profil(char *samples, size_t size, \ 138 size_t offset, u_int scale); } 13945 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 140 int facs, int pid); } 14146 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 142 struct osigaction32 *nsa, \ 143 struct osigaction32 *osa); } 14447 AUE_GETGID NOPROTO { gid_t getgid(void); } 14548 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 146 osigset_t mask); } 14749 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 148 u_int namelen); } 14950 AUE_SETLOGIN NOPROTO { int setlogin(const char *namebuf); } 15051 AUE_ACCT NOPROTO { int acct(const char *path); } 15152 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 15253 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 153 struct sigaltstack32 *ss, \ 154 struct sigaltstack32 *oss); } 15554 AUE_IOCTL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 156 struct md_ioctl32 *data); } 15755 AUE_REBOOT NOPROTO { int reboot(int opt); } 15856 AUE_REVOKE NOPROTO { int revoke(const char *path); } 15957 AUE_SYMLINK NOPROTO { int symlink(const char *path, \ 160 const char *link); } 16158 AUE_READLINK NOPROTO { ssize_t readlink(const char *path, char *buf, \ 162 size_t count); } 16359 AUE_EXECVE STD { int freebsd32_execve(const char *fname, \ 164 uint32_t *argv, uint32_t *envv); } 16560 AUE_UMASK NOPROTO { int umask(mode_t newmask); } 16661 AUE_CHROOT NOPROTO { int chroot(const char *path); } 16762 AUE_FSTAT COMPAT { int freebsd32_fstat(int fd, \ 168 struct ostat32 *ub); } 16963 AUE_NULL OBSOL ogetkerninfo 17064 AUE_NULL COMPAT { int freebsd32_getpagesize( \ 171 int32_t dummy); } 17265 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 173 int flags); } 17466 AUE_VFORK NOPROTO { int vfork(void); } 17567 AUE_NULL OBSOL vread 17668 AUE_NULL OBSOL vwrite 17769 AUE_SBRK NOPROTO { int sbrk(int incr); } 17870 AUE_SSTK NOPROTO { int sstk(int incr); } 17971 AUE_MMAP COMPAT|NOPROTO { void *mmap(void *addr, int len, \ 180 int prot, int flags, int fd, int pos); } 18172 AUE_O_VADVISE COMPAT11|NOPROTO { int vadvise(int anom); } 18273 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 18374 AUE_MPROTECT STD { int freebsd32_mprotect(void *addr, \ 184 size_t len, int prot); } 18575 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 186 int behav); } 18776 AUE_NULL OBSOL vhangup 18877 AUE_NULL OBSOL vlimit 18978 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 190 char *vec); } 19179 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 192 gid_t *gidset); } 19380 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 194 gid_t *gidset); } 19581 AUE_GETPGRP NOPROTO { int getpgrp(void); } 19682 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 19783 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 198 struct itimerval32 *itv, \ 199 struct itimerval32 *oitv); } 20084 AUE_NULL OBSOL owait 201; XXX implement 20285 AUE_SWAPON NOPROTO { int swapon(const char *name); } 20386 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 204 struct itimerval32 *itv); } 20587 AUE_O_GETHOSTNAME OBSOL ogethostname 20688 AUE_O_SETHOSTNAME OBSOL osethostname 20789 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 20890 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 20991 AUE_NULL UNIMPL getdopt 21092 AUE_FCNTL STD { int freebsd32_fcntl(int fd, int cmd, \ 211 int arg); } 21293 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 213 fd_set *ou, fd_set *ex, \ 214 struct timeval32 *tv); } 21594 AUE_NULL UNIMPL setdopt 21695 AUE_FSYNC NOPROTO { int fsync(int fd); } 21796 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 218 int prio); } 21997 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 220 int protocol); } 22198 AUE_CONNECT NOPROTO { int connect(int s, \ 222 const struct sockaddr *name, \ 223 int namelen); } 22499 AUE_NULL OBSOL oaccept 225100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 226101 AUE_NULL OBSOL osend 227102 AUE_NULL OBSOL orecv 228103 AUE_SIGRETURN COMPAT { int freebsd32_sigreturn( \ 229 struct ia32_sigcontext3 *sigcntxp); } 230104 AUE_BIND NOPROTO { int bind(int s, const struct sockaddr *name, \ 231 int namelen); } 232105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 233 int name, const void *val, int valsize); } 234106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 235107 AUE_NULL OBSOL vtimes 236108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 237 struct sigvec32 *nsv, \ 238 struct sigvec32 *osv); } 239109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 240110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 241111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 242112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 243 struct sigstack32 *nss, \ 244 struct sigstack32 *oss); } 245113 AUE_NULL OBSOL orecvmsg 246114 AUE_NULL OBSOL osendmsg 247115 AUE_NULL OBSOL vtrace 248116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 249 struct timeval32 *tp, \ 250 struct timezone *tzp); } 251117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 252 struct rusage32 *rusage); } 253118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 254 int name, void *val, int *avalsize); } 255119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 256120 AUE_READV STD { int freebsd32_readv(int fd, \ 257 struct iovec32 *iovp, u_int iovcnt); } 258121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 259 struct iovec32 *iovp, u_int iovcnt); } 260122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 261 struct timeval32 *tv, \ 262 struct timezone *tzp); } 263123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 264124 AUE_FCHMOD NOPROTO { int fchmod(int fd, mode_t mode); } 265125 AUE_RECVFROM OBSOL orecvfrom 266126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 267127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 268128 AUE_RENAME NOPROTO { int rename(const char *from, \ 269 const char *to); } 270129 AUE_TRUNCATE COMPAT|NOPROTO { int truncate(const char *path, \ 271 int length); } 272130 AUE_FTRUNCATE COMPAT|NOPROTO { int ftruncate(int fd, int length); } 273131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 274132 AUE_MKFIFO NOPROTO { int mkfifo(const char *path, mode_t mode); } 275133 AUE_SENDTO NOPROTO { int sendto(int s, const void *buf, \ 276 size_t len, int flags, \ 277 const struct sockaddr *to, \ 278 int tolen); } 279134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 280135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 281 int protocol, int *rsv); } 282136 AUE_MKDIR NOPROTO { int mkdir(const char *path, mode_t mode); } 283137 AUE_RMDIR NOPROTO { int rmdir(const char *path); } 284138 AUE_UTIMES STD { int freebsd32_utimes(const char *path, \ 285 struct timeval32 *tptr); } 286139 AUE_NULL OBSOL 4.2 sigreturn 287140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 288 struct timeval32 *delta, \ 289 struct timeval32 *olddelta); } 290141 AUE_GETPEERNAME OBSOL ogetpeername 291142 AUE_SYSCTL OBSOL ogethostid 292143 AUE_SYSCTL OBSOL sethostid 293144 AUE_GETRLIMIT OBSOL getrlimit 294145 AUE_SETRLIMIT OBSOL setrlimit 295146 AUE_KILLPG OBSOL killpg 296147 AUE_SETSID NOPROTO { int setsid(void); } 297148 AUE_QUOTACTL NOPROTO { int quotactl(const char *path, int cmd, \ 298 int uid, void *arg); } 299149 AUE_O_QUOTA OBSOL oquota 300150 AUE_GETSOCKNAME OBSOL ogetsockname 301 302; Syscalls 151-180 inclusive are reserved for vendor-specific 303; system calls. (This includes various calls added for compatibity 304; with other Unix variants.) 305; Some of these calls are now supported by BSD... 306151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 307152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 308153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 309; 154 is initialised by the NLM code, if present. 310154 AUE_NULL UNIMPL nlm_syscall 311; 155 is initialized by the NFS code, if present. 312; XXX this is a problem!!! 313155 AUE_NFS_SVC UNIMPL nfssvc 314156 AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \ 315 char *buf, u_int count, uint32_t *basep); } 316157 AUE_STATFS COMPAT4 { int freebsd32_statfs(const char *path, \ 317 struct statfs32 *buf); } 318158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 319 struct statfs32 *buf); } 320159 AUE_NULL UNIMPL nosys 321160 AUE_LGETFH UNIMPL lgetfh 322161 AUE_NFS_GETFH NOPROTO { int getfh(const char *fname, \ 323 struct fhandle *fhp); } 324162 AUE_SYSCTL OBSOL getdomainname 325163 AUE_SYSCTL OBSOL setdomainname 326164 AUE_NULL OBSOL uname 327165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); } 328166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 329 struct rtprio *rtp); } 330167 AUE_NULL UNIMPL nosys 331168 AUE_NULL UNIMPL nosys 332169 AUE_SEMSYS NOSTD { int freebsd32_semsys(int which, int a2, \ 333 int a3, int a4, int a5); } 334170 AUE_MSGSYS NOSTD { int freebsd32_msgsys(int which, int a2, \ 335 int a3, int a4, int a5, int a6); } 336171 AUE_SHMSYS NOSTD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 337 uint32_t a3, uint32_t a4); } 338172 AUE_NULL UNIMPL nosys 339173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 340 size_t nbyte, int pad, \ 341 uint32_t offset1, uint32_t offset2); } 342174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 343 const void *buf, size_t nbyte, int pad, \ 344 uint32_t offset1, uint32_t offset2); } 345175 AUE_NULL UNIMPL nosys 346176 AUE_NTP_ADJTIME STD { int freebsd32_ntp_adjtime( \ 347 struct timex32 *tp); } 348177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 349178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 350179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 351180 AUE_NULL UNIMPL nosys 352 353; Syscalls 181-199 are used by/reserved for BSD 354181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 355182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 356183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 357184 AUE_NULL OBSOL lfs_bmapv 358185 AUE_NULL OBSOL lfs_markv 359186 AUE_NULL OBSOL lfs_segclean 360187 AUE_NULL OBSOL lfs_segwait 361188 AUE_STAT COMPAT11 { int freebsd32_stat(const char *path, \ 362 struct freebsd11_stat32 *ub); } 363189 AUE_FSTAT COMPAT11 { int freebsd32_fstat(int fd, \ 364 struct freebsd11_stat32 *ub); } 365190 AUE_LSTAT COMPAT11 { int freebsd32_lstat(const char *path, \ 366 struct freebsd11_stat32 *ub); } 367191 AUE_PATHCONF NOPROTO { int pathconf(const char *path, int name); } 368192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 369193 AUE_NULL UNIMPL nosys 370194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 371 struct rlimit *rlp); } getrlimit \ 372 __getrlimit_args int 373195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 374 struct rlimit *rlp); } setrlimit \ 375 __setrlimit_args int 376196 AUE_GETDIRENTRIES COMPAT11 { int freebsd32_getdirentries(int fd, \ 377 char *buf, u_int count, int32_t *basep); } 378197 AUE_MMAP COMPAT6 { void *freebsd32_mmap(void *addr, \ 379 size_t len, int prot, int flags, int fd, \ 380 int pad, uint32_t pos1, uint32_t pos2); } 381198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 382 __syscall_args int 383199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 384 uint32_t offset1, uint32_t offset2, \ 385 int whence); } 386200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(const char *path, \ 387 int pad, uint32_t length1, \ 388 uint32_t length2); } 389201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 390 uint32_t length1, uint32_t length2); } 391202 AUE_SYSCTL STD { int freebsd32___sysctl(int *name, \ 392 u_int namelen, void *old, \ 393 uint32_t *oldlenp, const void *new, \ 394 uint32_t newlen); } 395203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \ 396 size_t len); } 397204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \ 398 size_t len); } 399205 AUE_UNDELETE NOPROTO { int undelete(const char *path); } 400206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \ 401 struct timeval32 *tptr); } 402207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); } 403208 AUE_NULL UNIMPL nosys 404209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \ 405 int timeout); } 406 407; 408; The following are reserved for loadable syscalls 409; 410210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 411211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 412212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 413213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 414214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 415215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 416216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 417217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 418218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 419219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 420 421220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32_semctl( \ 422 int semid, int semnum, \ 423 int cmd, union semun32 *arg); } 424221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \ 425 int semflg); } 426222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \ 427 struct sembuf *sops, u_int nsops); } 428223 AUE_NULL OBSOL semconfig 429224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \ 430 int msqid, int cmd, \ 431 struct msqid_ds32_old *buf); } 432225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); } 433226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, void *msgp, \ 434 size_t msgsz, int msgflg); } 435227 AUE_MSGRCV NOSTD { int freebsd32_msgrcv(int msqid, void *msgp, \ 436 size_t msgsz, long msgtyp, int msgflg); } 437228 AUE_SHMAT NOSTD|NOPROTO { void *shmat(int shmid, void *shmaddr, \ 438 int shmflg); } 439229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \ 440 int shmid, int cmd, \ 441 struct shmid_ds32_old *buf); } 442230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(void *shmaddr); } 443231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \ 444 int shmflg); } 445; 446232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \ 447 struct timespec32 *tp); } 448233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \ 449 const struct timespec32 *tp); } 450234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \ 451 struct timespec32 *tp); } 452235 AUE_NULL STD { int freebsd32_ktimer_create(\ 453 clockid_t clock_id, \ 454 struct sigevent32 *evp, int *timerid); } 455236 AUE_NULL NOPROTO { int ktimer_delete(int timerid); } 456237 AUE_NULL STD { int freebsd32_ktimer_settime(int timerid,\ 457 int flags, \ 458 const struct itimerspec32 *value, \ 459 struct itimerspec32 *ovalue); } 460238 AUE_NULL STD { int freebsd32_ktimer_gettime(int timerid,\ 461 struct itimerspec32 *value); } 462239 AUE_NULL NOPROTO { int ktimer_getoverrun(int timerid); } 463240 AUE_NULL STD { int freebsd32_nanosleep( \ 464 const struct timespec32 *rqtp, \ 465 struct timespec32 *rmtp); } 466241 AUE_NULL NOPROTO { int ffclock_getcounter(ffcounter *ffcount); } 467242 AUE_NULL NOPROTO { int ffclock_setestimate( \ 468 struct ffclock_estimate *cest); } 469243 AUE_NULL NOPROTO { int ffclock_getestimate( \ 470 struct ffclock_estimate *cest); } 471244 AUE_NULL STD { int freebsd32_clock_nanosleep( \ 472 clockid_t clock_id, int flags, \ 473 const struct timespec32 *rqtp, \ 474 struct timespec32 *rmtp); } 475245 AUE_NULL UNIMPL nosys 476246 AUE_NULL UNIMPL nosys 477247 AUE_NULL STD { int freebsd32_clock_getcpuclockid2(\ 478 uint32_t id1, uint32_t id2,\ 479 int which, clockid_t *clock_id); } 480248 AUE_NULL UNIMPL ntp_gettime 481249 AUE_NULL UNIMPL nosys 482250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \ 483 int inherit); } 484251 AUE_RFORK NOPROTO { int rfork(int flags); } 485252 AUE_POLL OBSOL openbsd_poll 486253 AUE_ISSETUGID NOPROTO { int issetugid(void); } 487254 AUE_LCHOWN NOPROTO { int lchown(const char *path, int uid, \ 488 int gid); } 489255 AUE_AIO_READ STD { int freebsd32_aio_read( \ 490 struct aiocb32 *aiocbp); } 491256 AUE_AIO_WRITE STD { int freebsd32_aio_write( \ 492 struct aiocb32 *aiocbp); } 493257 AUE_LIO_LISTIO STD { int freebsd32_lio_listio(int mode, \ 494 struct aiocb32 * const *acb_list, \ 495 int nent, struct sigevent32 *sig); } 496258 AUE_NULL UNIMPL nosys 497259 AUE_NULL UNIMPL nosys 498260 AUE_NULL UNIMPL nosys 499261 AUE_NULL UNIMPL nosys 500262 AUE_NULL UNIMPL nosys 501263 AUE_NULL UNIMPL nosys 502264 AUE_NULL UNIMPL nosys 503265 AUE_NULL UNIMPL nosys 504266 AUE_NULL UNIMPL nosys 505267 AUE_NULL UNIMPL nosys 506268 AUE_NULL UNIMPL nosys 507269 AUE_NULL UNIMPL nosys 508270 AUE_NULL UNIMPL nosys 509271 AUE_NULL UNIMPL nosys 510272 AUE_O_GETDENTS COMPAT11 { int freebsd32_getdents(int fd, char *buf, \ 511 int count); } 512273 AUE_NULL UNIMPL nosys 513274 AUE_LCHMOD NOPROTO { int lchmod(const char *path, mode_t mode); } 514275 AUE_NULL OBSOL netbsd_lchown 515276 AUE_LUTIMES STD { int freebsd32_lutimes(const char *path, \ 516 struct timeval32 *tptr); } 517277 AUE_NULL OBSOL netbsd_msync 518278 AUE_STAT COMPAT11|NOPROTO { int nstat(const char *path, \ 519 struct nstat *ub); } 520279 AUE_FSTAT COMPAT11|NOPROTO { int nfstat(int fd, struct nstat *sb); } 521280 AUE_LSTAT COMPAT11|NOPROTO { int nlstat(const char *path, \ 522 struct nstat *ub); } 523281 AUE_NULL UNIMPL nosys 524282 AUE_NULL UNIMPL nosys 525283 AUE_NULL UNIMPL nosys 526284 AUE_NULL UNIMPL nosys 527285 AUE_NULL UNIMPL nosys 528286 AUE_NULL UNIMPL nosys 529287 AUE_NULL UNIMPL nosys 530288 AUE_NULL UNIMPL nosys 531289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \ 532 struct iovec32 *iovp, \ 533 u_int iovcnt, \ 534 uint32_t offset1, uint32_t offset2); } 535290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 536 struct iovec32 *iovp, \ 537 u_int iovcnt, \ 538 uint32_t offset1, uint32_t offset2); } 539291 AUE_NULL UNIMPL nosys 540292 AUE_NULL UNIMPL nosys 541293 AUE_NULL UNIMPL nosys 542294 AUE_NULL UNIMPL nosys 543295 AUE_NULL UNIMPL nosys 544296 AUE_NULL UNIMPL nosys 545297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \ 546 const struct fhandle *u_fhp, \ 547 struct statfs32 *buf); } 548298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \ 549 int flags); } 550299 AUE_FHSTAT COMPAT11 { int freebsd32_fhstat( \ 551 const struct fhandle *u_fhp, \ 552 struct freebsd11_stat32 *sb); } 553; syscall numbers for FreeBSD 554300 AUE_NULL NOPROTO { int modnext(int modid); } 555301 AUE_NULL STD { int freebsd32_modstat(int modid, \ 556 struct module_stat32 *stat); } 557302 AUE_NULL NOPROTO { int modfnext(int modid); } 558303 AUE_NULL NOPROTO { int modfind(const char *name); } 559304 AUE_MODLOAD NOPROTO { int kldload(const char *file); } 560305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); } 561306 AUE_NULL NOPROTO { int kldfind(const char *file); } 562307 AUE_NULL NOPROTO { int kldnext(int fileid); } 563308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \ 564 struct kld32_file_stat *stat); } 565309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); } 566310 AUE_GETSID NOPROTO { int getsid(pid_t pid); } 567311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 568 uid_t suid); } 569312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 570 gid_t sgid); } 571313 AUE_NULL OBSOL signanosleep 572314 AUE_AIO_RETURN STD { int freebsd32_aio_return( \ 573 struct aiocb32 *aiocbp); } 574315 AUE_AIO_SUSPEND STD { int freebsd32_aio_suspend( \ 575 struct aiocb32 * const * aiocbp, int nent, \ 576 const struct timespec32 *timeout); } 577316 AUE_AIO_CANCEL NOPROTO { int aio_cancel(int fd, \ 578 struct aiocb *aiocbp); } 579317 AUE_AIO_ERROR STD { int freebsd32_aio_error( \ 580 struct aiocb32 *aiocbp); } 581318 AUE_AIO_READ COMPAT6 { int freebsd32_aio_read( \ 582 struct oaiocb32 *aiocbp); } 583319 AUE_AIO_WRITE COMPAT6 { int freebsd32_aio_write( \ 584 struct oaiocb32 *aiocbp); } 585320 AUE_LIO_LISTIO COMPAT6 { int freebsd32_lio_listio(int mode, \ 586 struct oaiocb32 * const *acb_list, \ 587 int nent, struct osigevent32 *sig); } 588321 AUE_NULL NOPROTO { int yield(void); } 589322 AUE_NULL OBSOL thr_sleep 590323 AUE_NULL OBSOL thr_wakeup 591324 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 592325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 593326 AUE_GETCWD NOPROTO { int __getcwd(char *buf, size_t buflen); } 594 595327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \ 596 const struct sched_param *param); } 597328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \ 598 struct sched_param *param); } 599 600329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \ 601 int policy, \ 602 const struct sched_param *param); } 603330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); } 604 605331 AUE_NULL NOPROTO { int sched_yield (void); } 606332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); } 607333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); } 608334 AUE_NULL STD { int freebsd32_sched_rr_get_interval ( \ 609 pid_t pid, \ 610 struct timespec32 *interval); } 611335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); } 612336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 613 uint32_t offset1, uint32_t offset2, \ 614 size_t nbytes, struct sf_hdtr32 *hdtr, \ 615 off_t *sbytes, int flags); } 616337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 617 void *data); } 618338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); } 619339 AUE_NULL UNIMPL pioctl 620340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 621 const sigset_t *set, sigset_t *oset); } 622341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 623342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 624 struct sigaction32 *act, \ 625 struct sigaction32 *oact); } 626343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 627344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 628 const struct freebsd4_freebsd32_ucontext *sigcntxp); } 629345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 630 siginfo_t *info, \ 631 const struct timespec *timeout); } 632346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 633 siginfo_t *info); } 634347 AUE_ACL_GET_FILE NOPROTO { int __acl_get_file(const char *path, \ 635 acl_type_t type, struct acl *aclp); } 636348 AUE_ACL_SET_FILE NOPROTO { int __acl_set_file(const char *path, \ 637 acl_type_t type, struct acl *aclp); } 638349 AUE_ACL_GET_FD NOPROTO { int __acl_get_fd(int filedes, \ 639 acl_type_t type, struct acl *aclp); } 640350 AUE_ACL_SET_FD NOPROTO { int __acl_set_fd(int filedes, \ 641 acl_type_t type, struct acl *aclp); } 642351 AUE_ACL_DELETE_FILE NOPROTO { int __acl_delete_file(const char *path, \ 643 acl_type_t type); } 644352 AUE_ACL_DELETE_FD NOPROTO { int __acl_delete_fd(int filedes, \ 645 acl_type_t type); } 646353 AUE_ACL_CHECK_FILE NOPROTO { int __acl_aclcheck_file(const char *path, \ 647 acl_type_t type, struct acl *aclp); } 648354 AUE_ACL_CHECK_FD NOPROTO { int __acl_aclcheck_fd(int filedes, \ 649 acl_type_t type, struct acl *aclp); } 650355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 651 const char *filename, int attrnamespace, \ 652 const char *attrname); } 653356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \ 654 const char *path, int attrnamespace, \ 655 const char *attrname, void *data, \ 656 size_t nbytes); } 657357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 658 const char *path, int attrnamespace, \ 659 const char *attrname, void *data, \ 660 size_t nbytes); } 661358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 662 const char *path, int attrnamespace, \ 663 const char *attrname); } 664359 AUE_AIO_WAITCOMPLETE STD { int freebsd32_aio_waitcomplete( \ 665 struct aiocb32 **aiocbp, \ 666 struct timespec32 *timeout); } 667360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 668 uid_t *suid); } 669361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 670 gid_t *sgid); } 671362 AUE_KQUEUE NOPROTO { int kqueue(void); } 672363 AUE_KEVENT COMPAT11 { int freebsd32_kevent(int fd, \ 673 const struct kevent32_freebsd11 * \ 674 changelist, \ 675 int nchanges, \ 676 struct kevent32_freebsd11 *eventlist, \ 677 int nevents, \ 678 const struct timespec32 *timeout); } 679364 AUE_NULL OBSOL __cap_get_proc 680365 AUE_NULL OBSOL __cap_set_proc 681366 AUE_NULL OBSOL __cap_get_fd 682367 AUE_NULL OBSOL __cap_get_file 683368 AUE_NULL OBSOL __cap_set_fd 684369 AUE_NULL OBSOL __cap_set_file 685370 AUE_NULL UNIMPL nosys 686371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \ 687 int attrnamespace, const char *attrname, \ 688 void *data, size_t nbytes); } 689372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 690 int attrnamespace, const char *attrname, \ 691 void *data, size_t nbytes); } 692373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 693 int attrnamespace, \ 694 const char *attrname); } 695374 AUE_SETUGID NOPROTO { int __setugid(int flag); } 696375 AUE_NULL OBSOL nfsclnt 697376 AUE_EACCESS NOPROTO { int eaccess(const char *path, int amode); } 698377 AUE_NULL UNIMPL afs_syscall 699378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 700 unsigned int iovcnt, int flags); } 701379 AUE_NULL OBSOL kse_exit 702380 AUE_NULL OBSOL kse_wakeup 703381 AUE_NULL OBSOL kse_create 704382 AUE_NULL OBSOL kse_thr_interrupt 705383 AUE_NULL OBSOL kse_release 706384 AUE_NULL UNIMPL __mac_get_proc 707385 AUE_NULL UNIMPL __mac_set_proc 708386 AUE_NULL UNIMPL __mac_get_fd 709387 AUE_NULL UNIMPL __mac_get_file 710388 AUE_NULL UNIMPL __mac_set_fd 711389 AUE_NULL UNIMPL __mac_set_file 712390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 713 char *value, int len); } 714391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, \ 715 u_long flags); } 716392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 717 int count); } 718393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 719 uint32_t offset1, uint32_t offset2, \ 720 size_t nbytes, struct sf_hdtr32 *hdtr, \ 721 off_t *sbytes, int flags); } 722394 AUE_NULL UNIMPL mac_syscall 723395 AUE_GETFSSTAT COMPAT11|NOPROTO { int getfsstat( \ 724 struct freebsd11_statfs *buf, \ 725 long bufsize, int mode); } 726396 AUE_STATFS COMPAT11|NOPROTO { int statfs(const char *path, \ 727 struct statfs *buf); } 728397 AUE_FSTATFS COMPAT11|NOPROTO { int fstatfs(int fd, \ 729 struct freebsd11_statfs *buf); } 730398 AUE_FHSTATFS COMPAT11|NOPROTO { int fhstatfs( \ 731 const struct fhandle *u_fhp, \ 732 struct freebsd11_statfs *buf); } 733399 AUE_NULL UNIMPL nosys 734400 AUE_SEMCLOSE NOSTD|NOPROTO { int ksem_close(semid_t id); } 735401 AUE_SEMPOST NOSTD|NOPROTO { int ksem_post(semid_t id); } 736402 AUE_SEMWAIT NOSTD|NOPROTO { int ksem_wait(semid_t id); } 737403 AUE_SEMTRYWAIT NOSTD|NOPROTO { int ksem_trywait(semid_t id); } 738404 AUE_SEMINIT NOSTD { int freebsd32_ksem_init(semid_t *idp, \ 739 unsigned int value); } 740405 AUE_SEMOPEN NOSTD { int freebsd32_ksem_open(semid_t *idp, \ 741 const char *name, int oflag, \ 742 mode_t mode, unsigned int value); } 743406 AUE_SEMUNLINK NOSTD|NOPROTO { int ksem_unlink(const char *name); } 744407 AUE_SEMGETVALUE NOSTD|NOPROTO { int ksem_getvalue(semid_t id, \ 745 int *val); } 746408 AUE_SEMDESTROY NOSTD|NOPROTO { int ksem_destroy(semid_t id); } 747409 AUE_NULL UNIMPL __mac_get_pid 748410 AUE_NULL UNIMPL __mac_get_link 749411 AUE_NULL UNIMPL __mac_set_link 750412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \ 751 const char *path, int attrnamespace, \ 752 const char *attrname, void *data, \ 753 size_t nbytes); } 754413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \ 755 const char *path, int attrnamespace, \ 756 const char *attrname, void *data, \ 757 size_t nbytes); } 758414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \ 759 const char *path, int attrnamespace, \ 760 const char *attrname); } 761415 AUE_NULL UNIMPL __mac_execve 762416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 763 struct sigaction32 *act, \ 764 struct sigaction32 *oact); } 765417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 766 const struct freebsd32_ucontext *sigcntxp); } 767418 AUE_NULL UNIMPL __xstat 768419 AUE_NULL UNIMPL __xfstat 769420 AUE_NULL UNIMPL __xlstat 770421 AUE_NULL STD { int freebsd32_getcontext( \ 771 struct freebsd32_ucontext *ucp); } 772422 AUE_NULL STD { int freebsd32_setcontext( \ 773 const struct freebsd32_ucontext *ucp); } 774423 AUE_NULL STD { int freebsd32_swapcontext( \ 775 struct freebsd32_ucontext *oucp, \ 776 const struct freebsd32_ucontext *ucp); } 777424 AUE_SWAPOFF UNIMPL freebsd13_swapoff 778425 AUE_ACL_GET_LINK NOPROTO { int __acl_get_link(const char *path, \ 779 acl_type_t type, struct acl *aclp); } 780426 AUE_ACL_SET_LINK NOPROTO { int __acl_set_link(const char *path, \ 781 acl_type_t type, struct acl *aclp); } 782427 AUE_ACL_DELETE_LINK NOPROTO { int __acl_delete_link(const char *path, \ 783 acl_type_t type); } 784428 AUE_ACL_CHECK_LINK NOPROTO { int __acl_aclcheck_link(const char *path, \ 785 acl_type_t type, struct acl *aclp); } 786429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 787 int *sig); } 788430 AUE_THR_CREATE UNIMPL thr_create; 789431 AUE_THR_EXIT NOPROTO { void thr_exit(long *state); } 790432 AUE_NULL NOPROTO { int thr_self(long *id); } 791433 AUE_THR_KILL NOPROTO { int thr_kill(long id, int sig); } 792434 AUE_NULL COMPAT10 { int freebsd32_umtx_lock( \ 793 struct umtx *umtx); } 794435 AUE_NULL COMPAT10 { int freebsd32_umtx_unlock( \ 795 struct umtx *umtx); } 796436 AUE_JAIL_ATTACH NOPROTO { int jail_attach(int jid); } 797437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \ 798 int attrnamespace, void *data, \ 799 size_t nbytes); } 800438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \ 801 const char *path, int attrnamespace, \ 802 void *data, size_t nbytes); } 803439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \ 804 const char *path, int attrnamespace, \ 805 void *data, size_t nbytes); } 806440 AUE_NULL OBSOL kse_switchin 807441 AUE_SEMWAIT NOSTD { int freebsd32_ksem_timedwait(semid_t id, \ 808 const struct timespec32 *abstime); } 809442 AUE_NULL STD { int freebsd32_thr_suspend( \ 810 const struct timespec32 *timeout); } 811443 AUE_NULL NOPROTO { int thr_wake(long id); } 812444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 813445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 814 u_int length); } 815446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 816 u_int length); } 817447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 818448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 819449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 820450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 821451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 822 struct auditinfo_addr *auditinfo_addr, \ 823 u_int length); } 824452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 825 struct auditinfo_addr *auditinfo_addr, \ 826 u_int length); } 827453 AUE_AUDITCTL NOPROTO { int auditctl(const char *path); } 828454 AUE_NULL STD { int freebsd32__umtx_op(void *obj, int op,\ 829 u_long val, void *uaddr, \ 830 void *uaddr2); } 831455 AUE_THR_NEW STD { int freebsd32_thr_new( \ 832 struct thr_param32 *param, \ 833 int param_size); } 834456 AUE_NULL STD { int freebsd32_sigqueue(pid_t pid, \ 835 int signum, int value); } 836457 AUE_MQ_OPEN NOSTD { int freebsd32_kmq_open( \ 837 const char *path, int flags, mode_t mode, \ 838 const struct mq_attr32 *attr); } 839458 AUE_MQ_SETATTR NOSTD { int freebsd32_kmq_setattr(int mqd, \ 840 const struct mq_attr32 *attr, \ 841 struct mq_attr32 *oattr); } 842459 AUE_MQ_TIMEDRECEIVE NOSTD { int freebsd32_kmq_timedreceive(int mqd, \ 843 char *msg_ptr, size_t msg_len, \ 844 unsigned *msg_prio, \ 845 const struct timespec32 *abs_timeout); } 846460 AUE_MQ_TIMEDSEND NOSTD { int freebsd32_kmq_timedsend(int mqd, \ 847 const char *msg_ptr, size_t msg_len,\ 848 unsigned msg_prio, \ 849 const struct timespec32 *abs_timeout);} 850461 AUE_MQ_NOTIFY NOSTD { int freebsd32_kmq_notify(int mqd, \ 851 const struct sigevent32 *sigev); } 852462 AUE_MQ_UNLINK NOPROTO|NOSTD { int kmq_unlink(const char *path); } 853463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 854464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 855465 AUE_AIO_FSYNC STD { int freebsd32_aio_fsync(int op, \ 856 struct aiocb32 *aiocbp); } 857466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 858 lwpid_t lwpid, struct rtprio *rtp); } 859467 AUE_NULL UNIMPL nosys 860468 AUE_NULL UNIMPL nosys 861469 AUE_NULL UNIMPL __getpath_fromfd 862470 AUE_NULL UNIMPL __getpath_fromaddr 863471 AUE_SCTP_PEELOFF NOPROTO|NOSTD { int sctp_peeloff(int sd, uint32_t name); } 864472 AUE_SCTP_GENERIC_SENDMSG NOPROTO|NOSTD { int sctp_generic_sendmsg( \ 865 int sd, void *msg, int mlen, \ 866 struct sockaddr *to, __socklen_t tolen, \ 867 struct sctp_sndrcvinfo *sinfo, int flags); } 868473 AUE_SCTP_GENERIC_SENDMSG_IOV NOPROTO|NOSTD { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 869 struct sockaddr *to, __socklen_t tolen, \ 870 struct sctp_sndrcvinfo *sinfo, int flags); } 871474 AUE_SCTP_GENERIC_RECVMSG NOPROTO|NOSTD { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 872 struct sockaddr * from, __socklen_t *fromlenaddr, \ 873 struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 874#ifdef PAD64_REQUIRED 875475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 876 void *buf,size_t nbyte, \ 877 int pad, \ 878 uint32_t offset1, uint32_t offset2); } 879476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 880 const void *buf, size_t nbyte, \ 881 int pad, \ 882 uint32_t offset1, uint32_t offset2); } 883477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \ 884 size_t len, int prot, int flags, int fd, \ 885 int pad, \ 886 uint32_t pos1, uint32_t pos2); } 887478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 888 int pad, \ 889 uint32_t offset1, uint32_t offset2, \ 890 int whence); } 891479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \ 892 int pad, \ 893 uint32_t length1, uint32_t length2); } 894480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 895 int pad, \ 896 uint32_t length1, uint32_t length2); } 897#else 898475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 899 void *buf,size_t nbyte, \ 900 uint32_t offset1, uint32_t offset2); } 901476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 902 const void *buf, size_t nbyte, \ 903 uint32_t offset1, uint32_t offset2); } 904477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \ 905 size_t len, int prot, int flags, int fd, \ 906 uint32_t pos1, uint32_t pos2); } 907478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 908 uint32_t offset1, uint32_t offset2, \ 909 int whence); } 910479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \ 911 uint32_t length1, uint32_t length2); } 912480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 913 uint32_t length1, uint32_t length2); } 914#endif 915481 AUE_THR_KILL2 NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 916482 AUE_SHMOPEN COMPAT12|NOPROTO { int shm_open( \ 917 const char *path, int flags, mode_t mode); } 918483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 919484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 920#ifdef PAD64_REQUIRED 921485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 922 int pad, \ 923 uint32_t id1, uint32_t id2, \ 924 cpusetid_t setid); } 925#else 926485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 927 uint32_t id1, uint32_t id2, \ 928 cpusetid_t setid); } 929#endif 930486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 931 cpuwhich_t which, \ 932 uint32_t id1, uint32_t id2, \ 933 cpusetid_t *setid); } 934487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 935 cpulevel_t level, cpuwhich_t which, \ 936 uint32_t id1, uint32_t id2, \ 937 size_t cpusetsize, \ 938 cpuset_t *mask); } 939488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 940 cpulevel_t level, cpuwhich_t which, \ 941 uint32_t id1, uint32_t id2, \ 942 size_t cpusetsize, \ 943 const cpuset_t *mask); } 944489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, const char *path, \ 945 int amode, int flag); } 946490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 947 mode_t mode, int flag); } 948491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, const char *path, \ 949 uid_t uid, gid_t gid, int flag); } 950492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 951 uint32_t *argv, uint32_t *envv); } 952493 AUE_FSTATAT COMPAT11 { int freebsd32_fstatat(int fd, \ 953 const char *path, \ 954 struct freebsd11_stat32 *buf, \ 955 int flag); } 956494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, \ 957 const char *path, \ 958 struct timeval *times); } 959495 AUE_LINKAT NOPROTO { int linkat(int fd1, const char *path1, \ 960 int fd2, const char *path2, int flag); } 961496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, const char *path, \ 962 mode_t mode); } 963497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, const char *path, \ 964 mode_t mode); } 965498 AUE_MKNODAT COMPAT11|NOPROTO { int mknodat(int fd, \ 966 const char *path, mode_t mode, \ 967 uint32_t dev); } 968499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, const char *path, \ 969 int flag, mode_t mode); } 970500 AUE_READLINKAT NOPROTO { ssize_t readlinkat(int fd, const char *path, \ 971 char *buf, size_t bufsize); } 972501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, const char *old, \ 973 int newfd, const char *new); } 974502 AUE_SYMLINKAT NOPROTO { int symlinkat(const char *path1, int fd, \ 975 const char *path2); } 976503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, const char *path, \ 977 int flag); } 978504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 979; 505 is initialised by the kgssapi code, if present. 980505 AUE_NULL UNIMPL gssd_syscall 981506 AUE_JAIL_GET STD { int freebsd32_jail_get(struct iovec32 *iovp, \ 982 unsigned int iovcnt, int flags); } 983507 AUE_JAIL_SET STD { int freebsd32_jail_set(struct iovec32 *iovp, \ 984 unsigned int iovcnt, int flags); } 985508 AUE_JAIL_REMOVE NOPROTO { int jail_remove(int jid); } 986509 AUE_CLOSEFROM COMPAT12|NOPROTO { int closefrom(int lowfd); } 987510 AUE_SEMCTL NOSTD { int freebsd32_semctl(int semid, int semnum, \ 988 int cmd, union semun32 *arg); } 989511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \ 990 struct msqid_ds32 *buf); } 991512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \ 992 struct shmid_ds32 *buf); } 993513 AUE_LPATHCONF NOPROTO { int lpathconf(const char *path, int name); } 994514 AUE_NULL OBSOL cap_new 995515 AUE_CAP_RIGHTS_GET NOPROTO { int __cap_rights_get(int version, \ 996 int fd, cap_rights_t *rightsp); } 997516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); } 998517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); } 999518 AUE_PDFORK NOPROTO { int pdfork(int *fdp, int flags); } 1000519 AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); } 1001520 AUE_PDGETPID NOPROTO { int pdgetpid(int fd, pid_t *pidp); } 1002521 AUE_PDWAIT UNIMPL pdwait4 1003522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \ 1004 fd_set *ou, fd_set *ex, \ 1005 const struct timespec32 *ts, \ 1006 const sigset_t *sm); } 1007523 AUE_GETLOGINCLASS NOPROTO { int getloginclass(char *namebuf, \ 1008 size_t namelen); } 1009524 AUE_SETLOGINCLASS NOPROTO { int setloginclass(const char *namebuf); } 1010525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \ 1011 size_t inbuflen, void *outbufp, \ 1012 size_t outbuflen); } 1013526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \ 1014 size_t inbuflen, void *outbufp, \ 1015 size_t outbuflen); } 1016527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \ 1017 size_t inbuflen, void *outbufp, \ 1018 size_t outbuflen); } 1019528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \ 1020 size_t inbuflen, void *outbufp, \ 1021 size_t outbuflen); } 1022529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \ 1023 size_t inbuflen, void *outbufp, \ 1024 size_t outbuflen); } 1025#ifdef PAD64_REQUIRED 1026530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd, \ 1027 int pad, \ 1028 uint32_t offset1, uint32_t offset2,\ 1029 uint32_t len1, uint32_t len2); } 1030531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \ 1031 int pad, \ 1032 uint32_t offset1, uint32_t offset2,\ 1033 uint32_t len1, uint32_t len2, \ 1034 int advice); } 1035532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, int pad, \ 1036 uint32_t id1, uint32_t id2, \ 1037 int *status, int options, \ 1038 struct wrusage32 *wrusage, \ 1039 siginfo_t *info); } 1040#else 1041530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd,\ 1042 uint32_t offset1, uint32_t offset2,\ 1043 uint32_t len1, uint32_t len2); } 1044531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \ 1045 uint32_t offset1, uint32_t offset2,\ 1046 uint32_t len1, uint32_t len2, \ 1047 int advice); } 1048532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, \ 1049 uint32_t id1, uint32_t id2, \ 1050 int *status, int options, \ 1051 struct wrusage32 *wrusage, \ 1052 siginfo_t *info); } 1053#endif 1054533 AUE_CAP_RIGHTS_LIMIT NOPROTO { \ 1055 int cap_rights_limit(int fd, \ 1056 cap_rights_t *rightsp); } 1057534 AUE_CAP_IOCTLS_LIMIT STD { \ 1058 int freebsd32_cap_ioctls_limit(int fd, \ 1059 const uint32_t *cmds, size_t ncmds); } 1060535 AUE_CAP_IOCTLS_GET STD { \ 1061 ssize_t freebsd32_cap_ioctls_get(int fd, \ 1062 uint32_t *cmds, size_t maxcmds); } 1063536 AUE_CAP_FCNTLS_LIMIT NOPROTO { int cap_fcntls_limit(int fd, \ 1064 uint32_t fcntlrights); } 1065537 AUE_CAP_FCNTLS_GET NOPROTO { int cap_fcntls_get(int fd, \ 1066 uint32_t *fcntlrightsp); } 1067538 AUE_BINDAT NOPROTO { int bindat(int fd, int s, \ 1068 const struct sockaddr *name, \ 1069 int namelen); } 1070539 AUE_CONNECTAT NOPROTO { int connectat(int fd, int s, \ 1071 const struct sockaddr *name, \ 1072 int namelen); } 1073540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \ 1074 u_long flags, int atflag); } 1075541 AUE_ACCEPT NOPROTO { int accept4(int s, \ 1076 struct sockaddr *name, \ 1077 __socklen_t *anamelen, \ 1078 int flags); } 1079542 AUE_PIPE NOPROTO { int pipe2(int *fildes, int flags); } 1080543 AUE_AIO_MLOCK STD { int freebsd32_aio_mlock( \ 1081 struct aiocb32 *aiocbp); } 1082#ifdef PAD64_REQUIRED 1083544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, int pad, \ 1084 uint32_t id1, uint32_t id2, int com, \ 1085 void *data); } 1086#else 1087544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, \ 1088 uint32_t id1, uint32_t id2, int com, \ 1089 void *data); } 1090#endif 1091545 AUE_POLL STD { int freebsd32_ppoll(struct pollfd *fds, \ 1092 u_int nfds, const struct timespec32 *ts, \ 1093 const sigset_t *set); } 1094546 AUE_FUTIMES STD { int freebsd32_futimens(int fd, \ 1095 struct timespec *times); } 1096547 AUE_FUTIMESAT STD { int freebsd32_utimensat(int fd, \ 1097 const char *path, \ 1098 struct timespec *times, int flag); } 1099548 AUE_NULL OBSOL numa_getaffinity 1100549 AUE_NULL OBSOL numa_setaffinity 1101550 AUE_FSYNC NOPROTO { int fdatasync(int fd); } 1102551 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 1103 struct stat32 *ub); } 1104552 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, \ 1105 const char *path, struct stat32 *buf, \ 1106 int flag); } 1107553 AUE_FHSTAT STD { int freebsd32_fhstat( \ 1108 const struct fhandle *u_fhp, \ 1109 struct stat32 *sb); } 1110554 AUE_GETDIRENTRIES NOPROTO { ssize_t getdirentries( \ 1111 int fd, char *buf, size_t count, \ 1112 off_t *basep); } 1113555 AUE_STATFS NOPROTO { int statfs(const char *path, \ 1114 struct statfs32 *buf); } 1115556 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs32 *buf); } 1116557 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs32 *buf, \ 1117 long bufsize, int mode); } 1118558 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 1119 struct statfs32 *buf); } 1120#ifdef PAD64_REQUIRED 1121559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \ 1122 const char *path, mode_t mode, \ 1123 int pad, uint32_t dev1, uint32_t dev2); } 1124#else 1125559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \ 1126 const char *path, mode_t mode, \ 1127 uint32_t dev1, uint32_t dev2); } 1128#endif 1129560 AUE_KEVENT STD { int freebsd32_kevent(int fd, \ 1130 const struct kevent32 *changelist, \ 1131 int nchanges, \ 1132 struct kevent32 *eventlist, \ 1133 int nevents, \ 1134 const struct timespec32 *timeout); } 1135561 AUE_NULL STD { int freebsd32_cpuset_getdomain(cpulevel_t level, \ 1136 cpuwhich_t which, uint32_t id1, uint32_t id2, \ 1137 size_t domainsetsize, domainset_t *mask, \ 1138 int *policy); } 1139562 AUE_NULL STD { int freebsd32_cpuset_setdomain(cpulevel_t level, \ 1140 cpuwhich_t which, uint32_t id1, uint32_t id2, \ 1141 size_t domainsetsize, domainset_t *mask, \ 1142 int policy); } 1143563 AUE_NULL NOPROTO { int getrandom(void *buf, size_t buflen, \ 1144 unsigned int flags); } 1145564 AUE_NULL NOPROTO { int getfhat( int fd, char *path, \ 1146 struct fhandle *fhp, int flags); } 1147565 AUE_NULL NOPROTO { int fhlink( struct fhandle *fhp, const char *to ); } 1148566 AUE_NULL NOPROTO { int fhlinkat( struct fhandle *fhp, int tofd, \ 1149 const char *to); } 1150567 AUE_NULL NOPROTO { int fhreadlink( struct fhandle *fhp, char *buf, \ 1151 size_t bufsize); } 1152568 AUE_UNLINKAT NOPROTO { int funlinkat(int dfd, const char *path, int fd, \ 1153 int flag); } 1154569 AUE_NULL NOPROTO { ssize_t copy_file_range(int infd, \ 1155 off_t *inoffp, int outfd, off_t *outoffp, \ 1156 size_t len, unsigned int flags); } 1157570 AUE_SYSCTL STD { int freebsd32___sysctlbyname(const char *name, \ 1158 size_t namelen, void *old, uint32_t *oldlenp, \ 1159 void *new, size_t newlen); } 1160571 AUE_SHMOPEN NOPROTO { int shm_open2( \ 1161 const char *path, int flags, mode_t mode, \ 1162 int shmflags, const char *name); } 1163572 AUE_SHMRENAME NOPROTO { int shm_rename(const char *path_from, \ 1164 const char *path_to, int flags); } 1165573 AUE_NULL NOPROTO { int sigfastblock(int cmd, uint32_t *ptr); } 1166574 AUE_REALPATHAT NOPROTO { int __realpathat(int fd, const char *path, \ 1167 char *buf, size_t size, int flags); } 1168575 AUE_CLOSERANGE NOPROTO { int close_range(u_int lowfd, u_int highfd, \ 1169 int flags); } 1170; 576 is initialised by the krpc code, if present. 1171576 AUE_NULL NOSTD|NOPROTO { int rpctls_syscall(int op, \ 1172 const char *path); } 1173577 AUE_SPECIALFD NOPROTO { int __specialfd(int type, const void *req, \ 1174 size_t len); } 1175578 AUE_AIO_WRITEV STD { int freebsd32_aio_writev( \ 1176 struct aiocb32 *aiocbp); } 1177579 AUE_AIO_READV STD { int freebsd32_aio_readv( \ 1178 struct aiocb32 *aiocbp); } 1179580 AUE_NULL UNIMPL fspacectl 1180581 AUE_NULL NOPROTO { int sched_getcpu(void); } 1181582 AUE_NULL UNIMPL swapoff 1182; vim: syntax=off 1183