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(__amd64__) 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(const char *path, int flags, \ 76 mode_t 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(const char *path, \ 82 const char *link); } 8310 AUE_UNLINK NOPROTO { int unlink(const char *path); } 8411 AUE_NULL OBSOL execv 8512 AUE_CHDIR NOPROTO { int chdir(const char *path); } 8613 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 8714 AUE_MKNOD COMPAT11|NOPROTO { int mknod(const char *path, \ 88 int mode, uint32_t dev); } 8915 AUE_CHMOD NOPROTO { int chmod(const char *path, mode_t mode); } 9016 AUE_CHOWN NOPROTO { int chown(const char *path, int uid, int gid); } 9117 AUE_NULL NOPROTO { void *break(char *nsize); } 9218 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 93 struct statfs32 *buf, long bufsize, \ 94 int mode); } 9519 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int offset, \ 96 int whence); } 9720 AUE_GETPID NOPROTO { pid_t getpid(void); } 9821 AUE_MOUNT NOPROTO { int mount(const char *type, \ 99 const char *path, \ 100 int flags, void *data); } 10122 AUE_UMOUNT NOPROTO { int unmount(const char *path, int flags); } 10223 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 10324 AUE_GETUID NOPROTO { uid_t getuid(void); } 10425 AUE_GETEUID NOPROTO { uid_t geteuid(void); } 10526 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \ 106 caddr_t addr, int data); } 10727 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \ 108 int flags); } 10928 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \ 110 int flags); } 11129 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, void *buf, \ 112 uint32_t len, int flags, \ 113 struct sockaddr *from, \ 114 uint32_t fromlenaddr); } 11530 AUE_ACCEPT NOPROTO { int accept(int s, struct sockaddr *name, \ 116 int *anamelen); } 11731 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, \ 118 struct sockaddr *asa, \ 119 int *alen); } 12032 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, \ 121 struct sockaddr *asa, \ 122 int *alen); } 12333 AUE_ACCESS NOPROTO { int access(const char *path, int amode); } 12434 AUE_CHFLAGS NOPROTO { int chflags(const char *path, u_long flags); } 12535 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, u_long flags); } 12636 AUE_SYNC NOPROTO { int sync(void); } 12737 AUE_KILL NOPROTO { int kill(int pid, int signum); } 12838 AUE_STAT COMPAT { int freebsd32_stat(const char *path, \ 129 struct ostat32 *ub); } 13039 AUE_GETPPID NOPROTO { pid_t getppid(void); } 13140 AUE_LSTAT COMPAT { int freebsd32_lstat(const char *path, \ 132 struct ostat *ub); } 13341 AUE_DUP NOPROTO { int dup(u_int fd); } 13442 AUE_PIPE COMPAT10 { int freebsd32_pipe(void); } 13543 AUE_GETEGID NOPROTO { gid_t getegid(void); } 13644 AUE_PROFILE NOPROTO { int profil(char *samples, size_t size, \ 137 size_t offset, u_int scale); } 13845 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 139 int facs, int pid); } 14046 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 141 struct osigaction32 *nsa, \ 142 struct osigaction32 *osa); } 14347 AUE_GETGID NOPROTO { gid_t getgid(void); } 14448 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 145 osigset_t mask); } 14649 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 147 u_int namelen); } 14850 AUE_SETLOGIN NOPROTO { int setlogin(const char *namebuf); } 14951 AUE_ACCT NOPROTO { int acct(const char *path); } 15052 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 15153 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 152 struct sigaltstack32 *ss, \ 153 struct sigaltstack32 *oss); } 15454 AUE_IOCTL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 155 struct md_ioctl32 *data); } 15655 AUE_REBOOT NOPROTO { int reboot(int opt); } 15756 AUE_REVOKE NOPROTO { int revoke(const char *path); } 15857 AUE_SYMLINK NOPROTO { int symlink(const char *path, \ 159 const char *link); } 16058 AUE_READLINK NOPROTO { ssize_t readlink(const char *path, char *buf, \ 161 size_t count); } 16259 AUE_EXECVE STD { int freebsd32_execve(const char *fname, \ 163 uint32_t *argv, uint32_t *envv); } 16460 AUE_UMASK NOPROTO { int umask(mode_t newmask); } 16561 AUE_CHROOT NOPROTO { int chroot(const char *path); } 16662 AUE_FSTAT COMPAT { int freebsd32_fstat(int fd, \ 167 struct ostat32 *ub); } 16863 AUE_NULL OBSOL ogetkerninfo 16964 AUE_NULL COMPAT { int freebsd32_getpagesize( \ 170 int32_t dummy); } 17165 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 172 int flags); } 17366 AUE_VFORK NOPROTO { int vfork(void); } 17467 AUE_NULL OBSOL vread 17568 AUE_NULL OBSOL vwrite 17669 AUE_SBRK NOPROTO { int sbrk(int incr); } 17770 AUE_SSTK NOPROTO { int sstk(int incr); } 17871 AUE_MMAP COMPAT|NOPROTO { void *mmap(void *addr, int len, \ 179 int prot, int flags, int fd, int pos); } 18072 AUE_O_VADVISE COMPAT11|NOPROTO { int vadvise(int anom); } 18173 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 18274 AUE_MPROTECT STD { int freebsd32_mprotect(void *addr, \ 183 size_t len, int prot); } 18475 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 185 int behav); } 18676 AUE_NULL OBSOL vhangup 18777 AUE_NULL OBSOL vlimit 18878 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 189 char *vec); } 19079 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 191 gid_t *gidset); } 19280 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 193 gid_t *gidset); } 19481 AUE_GETPGRP NOPROTO { int getpgrp(void); } 19582 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 19683 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 197 struct itimerval32 *itv, \ 198 struct itimerval32 *oitv); } 19984 AUE_NULL OBSOL owait 200; XXX implement 20185 AUE_SWAPON NOPROTO { int swapon(const char *name); } 20286 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 203 struct itimerval32 *itv); } 20487 AUE_O_GETHOSTNAME OBSOL ogethostname 20588 AUE_O_SETHOSTNAME OBSOL osethostname 20689 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 20790 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 20891 AUE_NULL UNIMPL getdopt 20992 AUE_FCNTL STD { int freebsd32_fcntl(int fd, int cmd, \ 210 int arg); } 21193 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 212 fd_set *ou, fd_set *ex, \ 213 struct timeval32 *tv); } 21494 AUE_NULL UNIMPL setdopt 21595 AUE_FSYNC NOPROTO { int fsync(int fd); } 21696 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 217 int prio); } 21897 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 219 int protocol); } 22098 AUE_CONNECT NOPROTO { int connect(int s, \ 221 const struct sockaddr *name, \ 222 int namelen); } 22399 AUE_NULL OBSOL oaccept 224100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 225101 AUE_NULL OBSOL osend 226102 AUE_NULL OBSOL orecv 227103 AUE_SIGRETURN COMPAT { int freebsd32_sigreturn( \ 228 struct ia32_sigcontext3 *sigcntxp); } 229104 AUE_BIND NOPROTO { int bind(int s, const struct sockaddr *name, \ 230 int namelen); } 231105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 232 int name, const void *val, int valsize); } 233106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 234107 AUE_NULL OBSOL vtimes 235108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 236 struct sigvec32 *nsv, \ 237 struct sigvec32 *osv); } 238109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 239110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 240111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 241112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 242 struct sigstack32 *nss, \ 243 struct sigstack32 *oss); } 244113 AUE_NULL OBSOL orecvmsg 245114 AUE_NULL OBSOL osendmsg 246115 AUE_NULL OBSOL vtrace 247116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 248 struct timeval32 *tp, \ 249 struct timezone *tzp); } 250117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 251 struct rusage32 *rusage); } 252118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 253 int name, void *val, int *avalsize); } 254119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 255120 AUE_READV STD { int freebsd32_readv(int fd, \ 256 struct iovec32 *iovp, u_int iovcnt); } 257121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 258 struct iovec32 *iovp, u_int iovcnt); } 259122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 260 struct timeval32 *tv, \ 261 struct timezone *tzp); } 262123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 263124 AUE_FCHMOD NOPROTO { int fchmod(int fd, mode_t mode); } 264125 AUE_RECVFROM OBSOL orecvfrom 265126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 266127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 267128 AUE_RENAME NOPROTO { int rename(const char *from, \ 268 const char *to); } 269129 AUE_TRUNCATE COMPAT|NOPROTO { int truncate(const char *path, \ 270 int length); } 271130 AUE_FTRUNCATE COMPAT|NOPROTO { int ftruncate(int fd, int length); } 272131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 273132 AUE_MKFIFO NOPROTO { int mkfifo(const char *path, mode_t mode); } 274133 AUE_SENDTO NOPROTO { int sendto(int s, const void *buf, \ 275 size_t len, int flags, \ 276 const struct sockaddr *to, \ 277 int tolen); } 278134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 279135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 280 int protocol, int *rsv); } 281136 AUE_MKDIR NOPROTO { int mkdir(const char *path, mode_t mode); } 282137 AUE_RMDIR NOPROTO { int rmdir(const char *path); } 283138 AUE_UTIMES STD { int freebsd32_utimes(const char *path, \ 284 struct timeval32 *tptr); } 285139 AUE_NULL OBSOL 4.2 sigreturn 286140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 287 struct timeval32 *delta, \ 288 struct timeval32 *olddelta); } 289141 AUE_GETPEERNAME OBSOL ogetpeername 290142 AUE_SYSCTL OBSOL ogethostid 291143 AUE_SYSCTL OBSOL sethostid 292144 AUE_GETRLIMIT OBSOL getrlimit 293145 AUE_SETRLIMIT OBSOL setrlimit 294146 AUE_KILLPG OBSOL killpg 295147 AUE_SETSID NOPROTO { int setsid(void); } 296148 AUE_QUOTACTL NOPROTO { int quotactl(const char *path, int cmd, \ 297 int uid, void *arg); } 298149 AUE_O_QUOTA OBSOL oquota 299150 AUE_GETSOCKNAME OBSOL ogetsockname 300 301; Syscalls 151-180 inclusive are reserved for vendor-specific 302; system calls. (This includes various calls added for compatibity 303; with other Unix variants.) 304; Some of these calls are now supported by BSD... 305151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 306152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 307153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 308; 154 is initialised by the NLM code, if present. 309154 AUE_NULL UNIMPL nlm_syscall 310; 155 is initialized by the NFS code, if present. 311; XXX this is a problem!!! 312155 AUE_NFS_SVC UNIMPL nfssvc 313156 AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \ 314 char *buf, u_int count, uint32_t *basep); } 315157 AUE_STATFS COMPAT4 { int freebsd32_statfs(const char *path, \ 316 struct statfs32 *buf); } 317158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 318 struct statfs32 *buf); } 319159 AUE_NULL UNIMPL nosys 320160 AUE_LGETFH UNIMPL lgetfh 321161 AUE_NFS_GETFH NOPROTO { int getfh(const char *fname, \ 322 struct fhandle *fhp); } 323162 AUE_SYSCTL OBSOL getdomainname 324163 AUE_SYSCTL OBSOL setdomainname 325164 AUE_NULL OBSOL uname 326165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); } 327166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 328 struct rtprio *rtp); } 329167 AUE_NULL UNIMPL nosys 330168 AUE_NULL UNIMPL nosys 331169 AUE_SEMSYS NOSTD { int freebsd32_semsys(int which, int a2, \ 332 int a3, int a4, int a5); } 333170 AUE_MSGSYS NOSTD { int freebsd32_msgsys(int which, int a2, \ 334 int a3, int a4, int a5, int a6); } 335171 AUE_SHMSYS NOSTD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 336 uint32_t a3, uint32_t a4); } 337172 AUE_NULL UNIMPL nosys 338173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 339 size_t nbyte, int pad, \ 340 uint32_t offset1, uint32_t offset2); } 341174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 342 const void *buf, size_t nbyte, int pad, \ 343 uint32_t offset1, uint32_t offset2); } 344175 AUE_NULL UNIMPL nosys 345176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); } 346177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 347178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 348179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 349180 AUE_NULL UNIMPL nosys 350 351; Syscalls 181-199 are used by/reserved for BSD 352181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 353182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 354183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 355184 AUE_NULL OBSOL lfs_bmapv 356185 AUE_NULL OBSOL lfs_markv 357186 AUE_NULL OBSOL lfs_segclean 358187 AUE_NULL OBSOL lfs_segwait 359188 AUE_STAT COMPAT11 { int freebsd32_stat(const char *path, \ 360 struct freebsd11_stat32 *ub); } 361189 AUE_FSTAT COMPAT11 { int freebsd32_fstat(int fd, \ 362 struct freebsd11_stat32 *ub); } 363190 AUE_LSTAT COMPAT11 { int freebsd32_lstat(const char *path, \ 364 struct freebsd11_stat32 *ub); } 365191 AUE_PATHCONF NOPROTO { int pathconf(const char *path, int name); } 366192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 367193 AUE_NULL UNIMPL nosys 368194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 369 struct rlimit *rlp); } getrlimit \ 370 __getrlimit_args int 371195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 372 struct rlimit *rlp); } setrlimit \ 373 __setrlimit_args int 374196 AUE_GETDIRENTRIES COMPAT11 { int freebsd32_getdirentries(int fd, \ 375 char *buf, u_int count, int32_t *basep); } 376197 AUE_MMAP COMPAT6 { void *freebsd32_mmap(void *addr, \ 377 size_t len, int prot, int flags, int fd, \ 378 int pad, uint32_t pos1, uint32_t pos2); } 379198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 380 __syscall_args int 381199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 382 uint32_t offset1, uint32_t offset2, \ 383 int whence); } 384200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(const char *path, \ 385 int pad, uint32_t length1, \ 386 uint32_t length2); } 387201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 388 uint32_t length1, uint32_t length2); } 389202 AUE_SYSCTL STD { int freebsd32___sysctl(int *name, \ 390 u_int namelen, void *old, \ 391 uint32_t *oldlenp, const void *new, \ 392 uint32_t newlen); } 393203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \ 394 size_t len); } 395204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \ 396 size_t len); } 397205 AUE_UNDELETE NOPROTO { int undelete(const char *path); } 398206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \ 399 struct timeval32 *tptr); } 400207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); } 401208 AUE_NULL UNIMPL nosys 402209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \ 403 int timeout); } 404 405; 406; The following are reserved for loadable syscalls 407; 408210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 409211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 410212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 411213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 412214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 413215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 414216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 415217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 416218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 417219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 418 419220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32_semctl( \ 420 int semid, int semnum, \ 421 int cmd, union semun32 *arg); } 422221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \ 423 int semflg); } 424222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \ 425 struct sembuf *sops, u_int nsops); } 426223 AUE_NULL OBSOL semconfig 427224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \ 428 int msqid, int cmd, \ 429 struct msqid_ds32_old *buf); } 430225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); } 431226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, void *msgp, \ 432 size_t msgsz, int msgflg); } 433227 AUE_MSGRCV NOSTD { int freebsd32_msgrcv(int msqid, void *msgp, \ 434 size_t msgsz, long msgtyp, int msgflg); } 435228 AUE_SHMAT NOSTD|NOPROTO { void *shmat(int shmid, void *shmaddr, \ 436 int shmflg); } 437229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \ 438 int shmid, int cmd, \ 439 struct shmid_ds32_old *buf); } 440230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(void *shmaddr); } 441231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \ 442 int shmflg); } 443; 444232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \ 445 struct timespec32 *tp); } 446233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \ 447 const struct timespec32 *tp); } 448234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \ 449 struct timespec32 *tp); } 450235 AUE_NULL STD { int freebsd32_ktimer_create(\ 451 clockid_t clock_id, \ 452 struct sigevent32 *evp, int *timerid); } 453236 AUE_NULL NOPROTO { int ktimer_delete(int timerid); } 454237 AUE_NULL STD { int freebsd32_ktimer_settime(int timerid,\ 455 int flags, \ 456 const struct itimerspec32 *value, \ 457 struct itimerspec32 *ovalue); } 458238 AUE_NULL STD { int freebsd32_ktimer_gettime(int timerid,\ 459 struct itimerspec32 *value); } 460239 AUE_NULL NOPROTO { int ktimer_getoverrun(int timerid); } 461240 AUE_NULL STD { int freebsd32_nanosleep( \ 462 const struct timespec32 *rqtp, \ 463 struct timespec32 *rmtp); } 464241 AUE_NULL NOPROTO { int ffclock_getcounter(ffcounter *ffcount); } 465242 AUE_NULL NOPROTO { int ffclock_setestimate( \ 466 struct ffclock_estimate *cest); } 467243 AUE_NULL NOPROTO { int ffclock_getestimate( \ 468 struct ffclock_estimate *cest); } 469244 AUE_NULL STD { int freebsd32_clock_nanosleep( \ 470 clockid_t clock_id, int flags, \ 471 const struct timespec32 *rqtp, \ 472 struct timespec32 *rmtp); } 473245 AUE_NULL UNIMPL nosys 474246 AUE_NULL UNIMPL nosys 475247 AUE_NULL STD { int freebsd32_clock_getcpuclockid2(\ 476 uint32_t id1, uint32_t id2,\ 477 int which, clockid_t *clock_id); } 478248 AUE_NULL UNIMPL ntp_gettime 479249 AUE_NULL UNIMPL nosys 480250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \ 481 int inherit); } 482251 AUE_RFORK NOPROTO { int rfork(int flags); } 483252 AUE_POLL OBSOL openbsd_poll 484253 AUE_ISSETUGID NOPROTO { int issetugid(void); } 485254 AUE_LCHOWN NOPROTO { int lchown(const char *path, int uid, \ 486 int gid); } 487255 AUE_AIO_READ STD { int freebsd32_aio_read( \ 488 struct aiocb32 *aiocbp); } 489256 AUE_AIO_WRITE STD { int freebsd32_aio_write( \ 490 struct aiocb32 *aiocbp); } 491257 AUE_LIO_LISTIO STD { int freebsd32_lio_listio(int mode, \ 492 struct aiocb32 * const *acb_list, \ 493 int nent, struct sigevent32 *sig); } 494258 AUE_NULL UNIMPL nosys 495259 AUE_NULL UNIMPL nosys 496260 AUE_NULL UNIMPL nosys 497261 AUE_NULL UNIMPL nosys 498262 AUE_NULL UNIMPL nosys 499263 AUE_NULL UNIMPL nosys 500264 AUE_NULL UNIMPL nosys 501265 AUE_NULL UNIMPL nosys 502266 AUE_NULL UNIMPL nosys 503267 AUE_NULL UNIMPL nosys 504268 AUE_NULL UNIMPL nosys 505269 AUE_NULL UNIMPL nosys 506270 AUE_NULL UNIMPL nosys 507271 AUE_NULL UNIMPL nosys 508272 AUE_O_GETDENTS COMPAT11 { int freebsd32_getdents(int fd, char *buf, \ 509 int count); } 510273 AUE_NULL UNIMPL nosys 511274 AUE_LCHMOD NOPROTO { int lchmod(const char *path, mode_t mode); } 512275 AUE_NULL OBSOL netbsd_lchown 513276 AUE_LUTIMES STD { int freebsd32_lutimes(const char *path, \ 514 struct timeval32 *tptr); } 515277 AUE_NULL OBSOL netbsd_msync 516278 AUE_STAT COMPAT11|NOPROTO { int nstat(const char *path, \ 517 struct nstat *ub); } 518279 AUE_FSTAT COMPAT11|NOPROTO { int nfstat(int fd, struct nstat *sb); } 519280 AUE_LSTAT COMPAT11|NOPROTO { int nlstat(const char *path, \ 520 struct nstat *ub); } 521281 AUE_NULL UNIMPL nosys 522282 AUE_NULL UNIMPL nosys 523283 AUE_NULL UNIMPL nosys 524284 AUE_NULL UNIMPL nosys 525285 AUE_NULL UNIMPL nosys 526286 AUE_NULL UNIMPL nosys 527287 AUE_NULL UNIMPL nosys 528288 AUE_NULL UNIMPL nosys 529289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \ 530 struct iovec32 *iovp, \ 531 u_int iovcnt, \ 532 uint32_t offset1, uint32_t offset2); } 533290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 534 struct iovec32 *iovp, \ 535 u_int iovcnt, \ 536 uint32_t offset1, uint32_t offset2); } 537291 AUE_NULL UNIMPL nosys 538292 AUE_NULL UNIMPL nosys 539293 AUE_NULL UNIMPL nosys 540294 AUE_NULL UNIMPL nosys 541295 AUE_NULL UNIMPL nosys 542296 AUE_NULL UNIMPL nosys 543297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \ 544 const struct fhandle *u_fhp, \ 545 struct statfs32 *buf); } 546298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \ 547 int flags); } 548299 AUE_FHSTAT COMPAT11 { int freebsd32_fhstat( \ 549 const struct fhandle *u_fhp, \ 550 struct freebsd11_stat32 *sb); } 551; syscall numbers for FreeBSD 552300 AUE_NULL NOPROTO { int modnext(int modid); } 553301 AUE_NULL STD { int freebsd32_modstat(int modid, \ 554 struct module_stat32* stat); } 555302 AUE_NULL NOPROTO { int modfnext(int modid); } 556303 AUE_NULL NOPROTO { int modfind(const char *name); } 557304 AUE_MODLOAD NOPROTO { int kldload(const char *file); } 558305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); } 559306 AUE_NULL NOPROTO { int kldfind(const char *file); } 560307 AUE_NULL NOPROTO { int kldnext(int fileid); } 561308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \ 562 struct kld32_file_stat* stat); } 563309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); } 564310 AUE_GETSID NOPROTO { int getsid(pid_t pid); } 565311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 566 uid_t suid); } 567312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 568 gid_t sgid); } 569313 AUE_NULL OBSOL signanosleep 570314 AUE_AIO_RETURN STD { int freebsd32_aio_return( \ 571 struct aiocb32 *aiocbp); } 572315 AUE_AIO_SUSPEND STD { int freebsd32_aio_suspend( \ 573 struct aiocb32 * const * aiocbp, int nent, \ 574 const struct timespec32 *timeout); } 575316 AUE_AIO_CANCEL NOPROTO { int aio_cancel(int fd, \ 576 struct aiocb *aiocbp); } 577317 AUE_AIO_ERROR STD { int freebsd32_aio_error( \ 578 struct aiocb32 *aiocbp); } 579318 AUE_AIO_READ COMPAT6 { int freebsd32_aio_read( \ 580 struct oaiocb32 *aiocbp); } 581319 AUE_AIO_WRITE COMPAT6 { int freebsd32_aio_write( \ 582 struct oaiocb32 *aiocbp); } 583320 AUE_LIO_LISTIO COMPAT6 { int freebsd32_lio_listio(int mode, \ 584 struct oaiocb32 * const *acb_list, \ 585 int nent, struct osigevent32 *sig); } 586321 AUE_NULL NOPROTO { int yield(void); } 587322 AUE_NULL OBSOL thr_sleep 588323 AUE_NULL OBSOL thr_wakeup 589324 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 590325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 591326 AUE_GETCWD NOPROTO { int __getcwd(char *buf, size_t buflen); } 592 593327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \ 594 const struct sched_param *param); } 595328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \ 596 struct sched_param *param); } 597 598329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \ 599 int policy, \ 600 const struct sched_param *param); } 601330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); } 602 603331 AUE_NULL NOPROTO { int sched_yield (void); } 604332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); } 605333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); } 606334 AUE_NULL STD { int freebsd32_sched_rr_get_interval ( \ 607 pid_t pid, \ 608 struct timespec32 *interval); } 609335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); } 610336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 611 uint32_t offset1, uint32_t offset2, \ 612 size_t nbytes, struct sf_hdtr32 *hdtr, \ 613 off_t *sbytes, int flags); } 614337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 615 void *data); } 616338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); } 617339 AUE_NULL UNIMPL pioctl 618340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 619 const sigset_t *set, sigset_t *oset); } 620341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 621342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 622 struct sigaction32 *act, \ 623 struct sigaction32 *oact); } 624343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 625344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 626 const struct freebsd4_freebsd32_ucontext *sigcntxp); } 627345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 628 siginfo_t *info, \ 629 const struct timespec *timeout); } 630346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 631 siginfo_t *info); } 632347 AUE_ACL_GET_FILE NOPROTO { int __acl_get_file(const char *path, \ 633 acl_type_t type, struct acl *aclp); } 634348 AUE_ACL_SET_FILE NOPROTO { int __acl_set_file(const char *path, \ 635 acl_type_t type, struct acl *aclp); } 636349 AUE_ACL_GET_FD NOPROTO { int __acl_get_fd(int filedes, \ 637 acl_type_t type, struct acl *aclp); } 638350 AUE_ACL_SET_FD NOPROTO { int __acl_set_fd(int filedes, \ 639 acl_type_t type, struct acl *aclp); } 640351 AUE_ACL_DELETE_FILE NOPROTO { int __acl_delete_file(const char *path, \ 641 acl_type_t type); } 642352 AUE_ACL_DELETE_FD NOPROTO { int __acl_delete_fd(int filedes, \ 643 acl_type_t type); } 644353 AUE_ACL_CHECK_FILE NOPROTO { int __acl_aclcheck_file(const char *path, \ 645 acl_type_t type, struct acl *aclp); } 646354 AUE_ACL_CHECK_FD NOPROTO { int __acl_aclcheck_fd(int filedes, \ 647 acl_type_t type, struct acl *aclp); } 648355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 649 const char *filename, int attrnamespace, \ 650 const char *attrname); } 651356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \ 652 const char *path, int attrnamespace, \ 653 const char *attrname, void *data, \ 654 size_t nbytes); } 655357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 656 const char *path, int attrnamespace, \ 657 const char *attrname, void *data, \ 658 size_t nbytes); } 659358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 660 const char *path, int attrnamespace, \ 661 const char *attrname); } 662359 AUE_AIO_WAITCOMPLETE STD { int freebsd32_aio_waitcomplete( \ 663 struct aiocb32 **aiocbp, \ 664 struct timespec32 *timeout); } 665360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 666 uid_t *suid); } 667361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 668 gid_t *sgid); } 669362 AUE_KQUEUE NOPROTO { int kqueue(void); } 670363 AUE_KEVENT COMPAT11 { int freebsd32_kevent(int fd, \ 671 const struct kevent32_freebsd11 * \ 672 changelist, \ 673 int nchanges, \ 674 struct kevent32_freebsd11 *eventlist, \ 675 int nevents, \ 676 const struct timespec32 *timeout); } 677364 AUE_NULL OBSOL __cap_get_proc 678365 AUE_NULL OBSOL __cap_set_proc 679366 AUE_NULL OBSOL __cap_get_fd 680367 AUE_NULL OBSOL __cap_get_file 681368 AUE_NULL OBSOL __cap_set_fd 682369 AUE_NULL OBSOL __cap_set_file 683370 AUE_NULL UNIMPL nosys 684371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \ 685 int attrnamespace, const char *attrname, \ 686 void *data, size_t nbytes); } 687372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 688 int attrnamespace, const char *attrname, \ 689 void *data, size_t nbytes); } 690373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 691 int attrnamespace, \ 692 const char *attrname); } 693374 AUE_SETUGID NOPROTO { int __setugid(int flag); } 694375 AUE_NULL OBSOL nfsclnt 695376 AUE_EACCESS NOPROTO { int eaccess(const char *path, int amode); } 696377 AUE_NULL UNIMPL afs_syscall 697378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 698 unsigned int iovcnt, int flags); } 699379 AUE_NULL OBSOL kse_exit 700380 AUE_NULL OBSOL kse_wakeup 701381 AUE_NULL OBSOL kse_create 702382 AUE_NULL OBSOL kse_thr_interrupt 703383 AUE_NULL OBSOL kse_release 704384 AUE_NULL UNIMPL __mac_get_proc 705385 AUE_NULL UNIMPL __mac_set_proc 706386 AUE_NULL UNIMPL __mac_get_fd 707387 AUE_NULL UNIMPL __mac_get_file 708388 AUE_NULL UNIMPL __mac_set_fd 709389 AUE_NULL UNIMPL __mac_set_file 710390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 711 char *value, int len); } 712391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, \ 713 u_long flags); } 714392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 715 int count); } 716393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 717 uint32_t offset1, uint32_t offset2, \ 718 size_t nbytes, struct sf_hdtr32 *hdtr, \ 719 off_t *sbytes, int flags); } 720394 AUE_NULL UNIMPL mac_syscall 721395 AUE_GETFSSTAT COMPAT11|NOPROTO { int getfsstat( \ 722 struct freebsd11_statfs *buf, \ 723 long bufsize, int mode); } 724396 AUE_STATFS COMPAT11|NOPROTO { int statfs(const char *path, \ 725 struct statfs *buf); } 726397 AUE_FSTATFS COMPAT11|NOPROTO { int fstatfs(int fd, \ 727 struct freebsd11_statfs *buf); } 728398 AUE_FHSTATFS COMPAT11|NOPROTO { int fhstatfs( \ 729 const struct fhandle *u_fhp, \ 730 struct freebsd11_statfs *buf); } 731399 AUE_NULL UNIMPL nosys 732400 AUE_SEMCLOSE NOSTD|NOPROTO { int ksem_close(semid_t id); } 733401 AUE_SEMPOST NOSTD|NOPROTO { int ksem_post(semid_t id); } 734402 AUE_SEMWAIT NOSTD|NOPROTO { int ksem_wait(semid_t id); } 735403 AUE_SEMTRYWAIT NOSTD|NOPROTO { int ksem_trywait(semid_t id); } 736404 AUE_SEMINIT NOSTD { int freebsd32_ksem_init(semid_t *idp, \ 737 unsigned int value); } 738405 AUE_SEMOPEN NOSTD { int freebsd32_ksem_open(semid_t *idp, \ 739 const char *name, int oflag, \ 740 mode_t mode, unsigned int value); } 741406 AUE_SEMUNLINK NOSTD|NOPROTO { int ksem_unlink(const char *name); } 742407 AUE_SEMGETVALUE NOSTD|NOPROTO { int ksem_getvalue(semid_t id, \ 743 int *val); } 744408 AUE_SEMDESTROY NOSTD|NOPROTO { int ksem_destroy(semid_t id); } 745409 AUE_NULL UNIMPL __mac_get_pid 746410 AUE_NULL UNIMPL __mac_get_link 747411 AUE_NULL UNIMPL __mac_set_link 748412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \ 749 const char *path, int attrnamespace, \ 750 const char *attrname, void *data, \ 751 size_t nbytes); } 752413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \ 753 const char *path, int attrnamespace, \ 754 const char *attrname, void *data, \ 755 size_t nbytes); } 756414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \ 757 const char *path, int attrnamespace, \ 758 const char *attrname); } 759415 AUE_NULL UNIMPL __mac_execve 760416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 761 struct sigaction32 *act, \ 762 struct sigaction32 *oact); } 763417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 764 const struct freebsd32_ucontext *sigcntxp); } 765418 AUE_NULL UNIMPL __xstat 766419 AUE_NULL UNIMPL __xfstat 767420 AUE_NULL UNIMPL __xlstat 768421 AUE_NULL STD { int freebsd32_getcontext( \ 769 struct freebsd32_ucontext *ucp); } 770422 AUE_NULL STD { int freebsd32_setcontext( \ 771 const struct freebsd32_ucontext *ucp); } 772423 AUE_NULL STD { int freebsd32_swapcontext( \ 773 struct freebsd32_ucontext *oucp, \ 774 const struct freebsd32_ucontext *ucp); } 775424 AUE_SWAPOFF UNIMPL swapoff 776425 AUE_ACL_GET_LINK NOPROTO { int __acl_get_link(const char *path, \ 777 acl_type_t type, struct acl *aclp); } 778426 AUE_ACL_SET_LINK NOPROTO { int __acl_set_link(const char *path, \ 779 acl_type_t type, struct acl *aclp); } 780427 AUE_ACL_DELETE_LINK NOPROTO { int __acl_delete_link(const char *path, \ 781 acl_type_t type); } 782428 AUE_ACL_CHECK_LINK NOPROTO { int __acl_aclcheck_link(const char *path, \ 783 acl_type_t type, struct acl *aclp); } 784429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 785 int *sig); } 786430 AUE_THR_CREATE UNIMPL thr_create; 787431 AUE_THR_EXIT NOPROTO { void thr_exit(long *state); } 788432 AUE_NULL NOPROTO { int thr_self(long *id); } 789433 AUE_THR_KILL NOPROTO { int thr_kill(long id, int sig); } 790434 AUE_NULL UNIMPL nosys 791435 AUE_NULL UNIMPL nosys 792436 AUE_JAIL_ATTACH NOPROTO { int jail_attach(int jid); } 793437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \ 794 int attrnamespace, void *data, \ 795 size_t nbytes); } 796438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \ 797 const char *path, int attrnamespace, \ 798 void *data, size_t nbytes); } 799439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \ 800 const char *path, int attrnamespace, \ 801 void *data, size_t nbytes); } 802440 AUE_NULL OBSOL kse_switchin 803441 AUE_SEMWAIT NOSTD { int freebsd32_ksem_timedwait(semid_t id, \ 804 const struct timespec32 *abstime); } 805442 AUE_NULL STD { int freebsd32_thr_suspend( \ 806 const struct timespec32 *timeout); } 807443 AUE_NULL NOPROTO { int thr_wake(long id); } 808444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 809445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 810 u_int length); } 811446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 812 u_int length); } 813447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 814448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 815449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 816450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 817451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 818 struct auditinfo_addr *auditinfo_addr, \ 819 u_int length); } 820452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 821 struct auditinfo_addr *auditinfo_addr, \ 822 u_int length); } 823453 AUE_AUDITCTL NOPROTO { int auditctl(const char *path); } 824454 AUE_NULL STD { int freebsd32__umtx_op(void *obj, int op,\ 825 u_long val, void *uaddr, \ 826 void *uaddr2); } 827455 AUE_THR_NEW STD { int freebsd32_thr_new( \ 828 struct thr_param32 *param, \ 829 int param_size); } 830456 AUE_NULL STD { int freebsd32_sigqueue(pid_t pid, \ 831 int signum, int value); } 832457 AUE_MQ_OPEN NOSTD { int freebsd32_kmq_open( \ 833 const char *path, int flags, mode_t mode, \ 834 const struct mq_attr32 *attr); } 835458 AUE_MQ_SETATTR NOSTD { int freebsd32_kmq_setattr(int mqd, \ 836 const struct mq_attr32 *attr, \ 837 struct mq_attr32 *oattr); } 838459 AUE_MQ_TIMEDRECEIVE NOSTD { int freebsd32_kmq_timedreceive(int mqd, \ 839 char *msg_ptr, size_t msg_len, \ 840 unsigned *msg_prio, \ 841 const struct timespec32 *abs_timeout); } 842460 AUE_MQ_TIMEDSEND NOSTD { int freebsd32_kmq_timedsend(int mqd, \ 843 const char *msg_ptr, size_t msg_len,\ 844 unsigned msg_prio, \ 845 const struct timespec32 *abs_timeout);} 846461 AUE_MQ_NOTIFY NOSTD { int freebsd32_kmq_notify(int mqd, \ 847 const struct sigevent32 *sigev); } 848462 AUE_MQ_UNLINK NOPROTO|NOSTD { int kmq_unlink(const char *path); } 849463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 850464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 851465 AUE_AIO_FSYNC STD { int freebsd32_aio_fsync(int op, \ 852 struct aiocb32 *aiocbp); } 853466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 854 lwpid_t lwpid, struct rtprio *rtp); } 855467 AUE_NULL UNIMPL nosys 856468 AUE_NULL UNIMPL nosys 857469 AUE_NULL UNIMPL __getpath_fromfd 858470 AUE_NULL UNIMPL __getpath_fromaddr 859471 AUE_SCTP_PEELOFF NOPROTO|NOSTD { int sctp_peeloff(int sd, uint32_t name); } 860472 AUE_SCTP_GENERIC_SENDMSG NOPROTO|NOSTD { int sctp_generic_sendmsg( \ 861 int sd, void *msg, int mlen, \ 862 struct sockaddr *to, __socklen_t tolen, \ 863 struct sctp_sndrcvinfo *sinfo, int flags); } 864473 AUE_SCTP_GENERIC_SENDMSG_IOV NOPROTO|NOSTD { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 865 struct sockaddr *to, __socklen_t tolen, \ 866 struct sctp_sndrcvinfo *sinfo, int flags); } 867474 AUE_SCTP_GENERIC_RECVMSG NOPROTO|NOSTD { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 868 struct sockaddr * from, __socklen_t *fromlenaddr, \ 869 struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 870#ifdef PAD64_REQUIRED 871475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 872 void *buf,size_t nbyte, \ 873 int pad, \ 874 uint32_t offset1, uint32_t offset2); } 875476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 876 const void *buf, size_t nbyte, \ 877 int pad, \ 878 uint32_t offset1, uint32_t offset2); } 879477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \ 880 size_t len, int prot, int flags, int fd, \ 881 int pad, \ 882 uint32_t pos1, uint32_t pos2); } 883478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 884 int pad, \ 885 uint32_t offset1, uint32_t offset2, \ 886 int whence); } 887479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \ 888 int pad, \ 889 uint32_t length1, uint32_t length2); } 890480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 891 int pad, \ 892 uint32_t length1, uint32_t length2); } 893#else 894475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 895 void *buf,size_t nbyte, \ 896 uint32_t offset1, uint32_t offset2); } 897476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 898 const void *buf, size_t nbyte, \ 899 uint32_t offset1, uint32_t offset2); } 900477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \ 901 size_t len, int prot, int flags, int fd, \ 902 uint32_t pos1, uint32_t pos2); } 903478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 904 uint32_t offset1, uint32_t offset2, \ 905 int whence); } 906479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \ 907 uint32_t length1, uint32_t length2); } 908480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 909 uint32_t length1, uint32_t length2); } 910#endif 911481 AUE_THR_KILL2 NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 912482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \ 913 mode_t mode); } 914483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 915484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 916#ifdef PAD64_REQUIRED 917485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 918 int pad, \ 919 uint32_t id1, uint32_t id2, \ 920 cpusetid_t setid); } 921#else 922485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 923 uint32_t id1, uint32_t id2, \ 924 cpusetid_t setid); } 925#endif 926486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 927 cpuwhich_t which, \ 928 uint32_t id1, uint32_t id2, \ 929 cpusetid_t *setid); } 930487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 931 cpulevel_t level, cpuwhich_t which, \ 932 uint32_t id1, uint32_t id2, \ 933 size_t cpusetsize, \ 934 cpuset_t *mask); } 935488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 936 cpulevel_t level, cpuwhich_t which, \ 937 uint32_t id1, uint32_t id2, \ 938 size_t cpusetsize, \ 939 const cpuset_t *mask); } 940489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, const char *path, \ 941 int amode, int flag); } 942490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 943 mode_t mode, int flag); } 944491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, const char *path, \ 945 uid_t uid, gid_t gid, int flag); } 946492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 947 uint32_t *argv, uint32_t *envv); } 948493 AUE_FSTATAT COMPAT11 { int freebsd32_fstatat(int fd, \ 949 const char *path, \ 950 struct freebsd11_stat32 *buf, \ 951 int flag); } 952494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, \ 953 const char *path, \ 954 struct timeval *times); } 955495 AUE_LINKAT NOPROTO { int linkat(int fd1, const char *path1, \ 956 int fd2, const char *path2, int flag); } 957496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, const char *path, \ 958 mode_t mode); } 959497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, const char *path, \ 960 mode_t mode); } 961498 AUE_MKNODAT COMPAT11|NOPROTO { int mknodat(int fd, \ 962 const char *path, mode_t mode, \ 963 uint32_t dev); } 964499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, const char *path, \ 965 int flag, mode_t mode); } 966500 AUE_READLINKAT NOPROTO { ssize_t readlinkat(int fd, const char *path, \ 967 char *buf, size_t bufsize); } 968501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, const char *old, \ 969 int newfd, const char *new); } 970502 AUE_SYMLINKAT NOPROTO { int symlinkat(const char *path1, int fd, \ 971 const char *path2); } 972503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, const char *path, \ 973 int flag); } 974504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 975; 505 is initialised by the kgssapi code, if present. 976505 AUE_NULL UNIMPL gssd_syscall 977506 AUE_JAIL_GET STD { int freebsd32_jail_get(struct iovec32 *iovp, \ 978 unsigned int iovcnt, int flags); } 979507 AUE_JAIL_SET STD { int freebsd32_jail_set(struct iovec32 *iovp, \ 980 unsigned int iovcnt, int flags); } 981508 AUE_JAIL_REMOVE NOPROTO { int jail_remove(int jid); } 982509 AUE_CLOSEFROM NOPROTO { int closefrom(int lowfd); } 983510 AUE_SEMCTL NOSTD { int freebsd32_semctl(int semid, int semnum, \ 984 int cmd, union semun32 *arg); } 985511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \ 986 struct msqid_ds32 *buf); } 987512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \ 988 struct shmid_ds32 *buf); } 989513 AUE_LPATHCONF NOPROTO { int lpathconf(const char *path, int name); } 990514 AUE_NULL OBSOL cap_new 991515 AUE_CAP_RIGHTS_GET NOPROTO { int __cap_rights_get(int version, \ 992 int fd, cap_rights_t *rightsp); } 993516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); } 994517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); } 995518 AUE_PDFORK NOPROTO { int pdfork(int *fdp, int flags); } 996519 AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); } 997520 AUE_PDGETPID NOPROTO { int pdgetpid(int fd, pid_t *pidp); } 998521 AUE_PDWAIT UNIMPL pdwait4 999522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \ 1000 fd_set *ou, fd_set *ex, \ 1001 const struct timespec32 *ts, \ 1002 const sigset_t *sm); } 1003523 AUE_GETLOGINCLASS NOPROTO { int getloginclass(char *namebuf, \ 1004 size_t namelen); } 1005524 AUE_SETLOGINCLASS NOPROTO { int setloginclass(const char *namebuf); } 1006525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \ 1007 size_t inbuflen, void *outbufp, \ 1008 size_t outbuflen); } 1009526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \ 1010 size_t inbuflen, void *outbufp, \ 1011 size_t outbuflen); } 1012527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \ 1013 size_t inbuflen, void *outbufp, \ 1014 size_t outbuflen); } 1015528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \ 1016 size_t inbuflen, void *outbufp, \ 1017 size_t outbuflen); } 1018529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \ 1019 size_t inbuflen, void *outbufp, \ 1020 size_t outbuflen); } 1021#ifdef PAD64_REQUIRED 1022530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd, \ 1023 int pad, \ 1024 uint32_t offset1, uint32_t offset2,\ 1025 uint32_t len1, uint32_t len2); } 1026531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \ 1027 int pad, \ 1028 uint32_t offset1, uint32_t offset2,\ 1029 uint32_t len1, uint32_t len2, \ 1030 int advice); } 1031532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, int pad, \ 1032 uint32_t id1, uint32_t id2, \ 1033 int *status, int options, \ 1034 struct wrusage32 *wrusage, \ 1035 siginfo_t *info); } 1036#else 1037530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd,\ 1038 uint32_t offset1, uint32_t offset2,\ 1039 uint32_t len1, uint32_t len2); } 1040531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \ 1041 uint32_t offset1, uint32_t offset2,\ 1042 uint32_t len1, uint32_t len2, \ 1043 int advice); } 1044532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, \ 1045 uint32_t id1, uint32_t id2, \ 1046 int *status, int options, \ 1047 struct wrusage32 *wrusage, \ 1048 siginfo_t *info); } 1049#endif 1050533 AUE_CAP_RIGHTS_LIMIT NOPROTO { \ 1051 int cap_rights_limit(int fd, \ 1052 cap_rights_t *rightsp); } 1053534 AUE_CAP_IOCTLS_LIMIT STD { \ 1054 int freebsd32_cap_ioctls_limit(int fd, \ 1055 const uint32_t *cmds, size_t ncmds); } 1056535 AUE_CAP_IOCTLS_GET STD { \ 1057 ssize_t freebsd32_cap_ioctls_get(int fd, \ 1058 uint32_t *cmds, size_t maxcmds); } 1059536 AUE_CAP_FCNTLS_LIMIT NOPROTO { int cap_fcntls_limit(int fd, \ 1060 uint32_t fcntlrights); } 1061537 AUE_CAP_FCNTLS_GET NOPROTO { int cap_fcntls_get(int fd, \ 1062 uint32_t *fcntlrightsp); } 1063538 AUE_BINDAT NOPROTO { int bindat(int fd, int s, \ 1064 const struct sockaddr *name, \ 1065 int namelen); } 1066539 AUE_CONNECTAT NOPROTO { int connectat(int fd, int s, \ 1067 const struct sockaddr *name, \ 1068 int namelen); } 1069540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \ 1070 u_long flags, int atflag); } 1071541 AUE_ACCEPT NOPROTO { int accept4(int s, \ 1072 struct sockaddr *name, \ 1073 __socklen_t *anamelen, \ 1074 int flags); } 1075542 AUE_PIPE NOPROTO { int pipe2(int *fildes, int flags); } 1076543 AUE_AIO_MLOCK STD { int freebsd32_aio_mlock( \ 1077 struct aiocb32 *aiocbp); } 1078#ifdef PAD64_REQUIRED 1079544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, int pad, \ 1080 uint32_t id1, uint32_t id2, int com, \ 1081 void *data); } 1082#else 1083544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, \ 1084 uint32_t id1, uint32_t id2, int com, \ 1085 void *data); } 1086#endif 1087545 AUE_POLL STD { int freebsd32_ppoll(struct pollfd *fds, \ 1088 u_int nfds, const struct timespec32 *ts, \ 1089 const sigset_t *set); } 1090546 AUE_FUTIMES STD { int freebsd32_futimens(int fd, \ 1091 struct timespec *times); } 1092547 AUE_FUTIMESAT STD { int freebsd32_utimensat(int fd, \ 1093 const char *path, \ 1094 struct timespec *times, int flag); } 1095548 AUE_NULL OBSOL numa_getaffinity 1096549 AUE_NULL OBSOL numa_setaffinity 1097550 AUE_FSYNC NOPROTO { int fdatasync(int fd); } 1098551 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 1099 struct stat32 *ub); } 1100552 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, \ 1101 const char *path, struct stat32 *buf, \ 1102 int flag); } 1103553 AUE_FHSTAT STD { int freebsd32_fhstat( \ 1104 const struct fhandle *u_fhp, \ 1105 struct stat32 *sb); } 1106554 AUE_GETDIRENTRIES NOPROTO { ssize_t getdirentries( \ 1107 int fd, char *buf, size_t count, \ 1108 off_t *basep); } 1109555 AUE_STATFS NOPROTO { int statfs(const char *path, \ 1110 struct statfs32 *buf); } 1111556 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs32 *buf); } 1112557 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs32 *buf, \ 1113 long bufsize, int mode); } 1114558 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 1115 struct statfs32 *buf); } 1116#ifdef PAD64_REQUIRED 1117559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \ 1118 const char *path, mode_t mode, \ 1119 int pad, uint32_t dev1, uint32_t dev2); } 1120#else 1121559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \ 1122 const char *path, mode_t mode, \ 1123 uint32_t dev1, uint32_t dev2); } 1124#endif 1125560 AUE_KEVENT STD { int freebsd32_kevent(int fd, \ 1126 const struct kevent32 *changelist, \ 1127 int nchanges, \ 1128 struct kevent32 *eventlist, \ 1129 int nevents, \ 1130 const struct timespec32 *timeout); } 1131561 AUE_NULL STD { int freebsd32_cpuset_getdomain(cpulevel_t level, \ 1132 cpuwhich_t which, uint32_t id1, uint32_t id2, \ 1133 size_t domainsetsize, domainset_t *mask, \ 1134 int *policy); } 1135562 AUE_NULL STD { int freebsd32_cpuset_setdomain(cpulevel_t level, \ 1136 cpuwhich_t which, uint32_t id1, uint32_t id2, \ 1137 size_t domainsetsize, domainset_t *mask, \ 1138 int policy); } 1139563 AUE_NULL NOPROTO { int getrandom(void *buf, size_t buflen, \ 1140 unsigned int flags); } 1141564 AUE_NULL NOPROTO { int getfhat( int fd, char *path, \ 1142 struct fhandle *fhp, int flags); } 1143565 AUE_NULL NOPROTO { int fhlink( struct fhandle *fhp, const char *to ); } 1144566 AUE_NULL NOPROTO { int fhlinkat( struct fhandle *fhp, int tofd, \ 1145 const char *to); } 1146567 AUE_NULL NOPROTO { int fhreadlink( struct fhandle *fhp, char *buf, \ 1147 size_t bufsize); } 1148568 AUE_UNLINKAT NOPROTO { int funlinkat(int dfd, const char *path, int fd, \ 1149 int flag); } 1150569 AUE_NULL NOPROTO { ssize_t copy_file_range(int infd, \ 1151 off_t *inoffp, int outfd, off_t *outoffp, \ 1152 size_t len, unsigned int flags); } 1153570 AUE_SYSCTL STD { int freebsd32___sysctlbyname(const char *name, \ 1154 size_t namelen, void *old, uint32_t *oldlenp, \ 1155 void *new, size_t newlen); } 1156 1157; vim: syntax=off 1158