syscalls.master revision 220791
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 220791 2011-04-18 16:32:22Z mdf $ 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, 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 psuedo-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 COMPAT4 #ifdef (FreeBSD 4 compat) 30; COMPAT6 included on COMPAT6 #ifdef (FreeBSD 6 compat) 31; COMPAT7 included on COMPAT7 #ifdef (FreeBSD 7 compat) 32; OBSOL obsolete, not included in system, only specifies name 33; UNIMPL not implemented, placeholder only 34; NOSTD implemented but as a lkm that can be statically 35; compiled in; sysent entry will be filled with lkmressys 36; so the SYSCALL_MODULE macro works 37; NOARGS same as STD except do not create structure in sys/sysproto.h 38; NODEF same as STD except only have the entry in the syscall table 39; added. Meaning - do not create structure or function 40; prototype in sys/sysproto.h 41; NOPROTO same as STD except do not create structure or 42; function prototype in sys/sysproto.h. Does add a 43; definition to syscall.h besides adding a sysent. 44 45; #ifdef's, etc. may be included, and are copied to the output files. 46 47#include <sys/param.h> 48#include <sys/sysent.h> 49#include <sys/sysproto.h> 50#include <sys/mount.h> 51#include <sys/socket.h> 52#include <compat/freebsd32/freebsd32.h> 53#include <compat/freebsd32/freebsd32_proto.h> 54 55#if !defined(PAD64_REQUIRED) && defined(__powerpc__) 56#define PAD64_REQUIRED 57#endif 58 59; Reserved/unimplemented system calls in the range 0-150 inclusive 60; are reserved for use in future Berkeley releases. 61; Additional system calls implemented in vendor and other 62; redistributions should be placed in the reserved range at the end 63; of the current calls. 64 650 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int 661 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \ 67 sys_exit_args void 682 AUE_FORK NOPROTO { int fork(void); } 693 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \ 70 size_t nbyte); } 714 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \ 72 size_t nbyte); } 735 AUE_OPEN_RWTC NOPROTO { int open(char *path, int flags, \ 74 int mode); } 756 AUE_CLOSE NOPROTO { int close(int fd); } 767 AUE_WAIT4 STD { int freebsd32_wait4(int pid, int *status, \ 77 int options, struct rusage32 *rusage); } 788 AUE_CREAT OBSOL old creat 799 AUE_LINK NOPROTO { int link(char *path, char *link); } 8010 AUE_UNLINK NOPROTO { int unlink(char *path); } 8111 AUE_NULL OBSOL execv 8212 AUE_CHDIR NOPROTO { int chdir(char *path); } 8313 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 8414 AUE_MKNOD NOPROTO { int mknod(char *path, int mode, int dev); } 8515 AUE_CHMOD NOPROTO { int chmod(char *path, int mode); } 8616 AUE_CHOWN NOPROTO { int chown(char *path, int uid, int gid); } 8717 AUE_NULL NOPROTO { int obreak(char *nsize); } break \ 88 obreak_args int 8918 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 90 struct statfs32 *buf, long bufsize, \ 91 int flags); } 9219 AUE_LSEEK OBSOL olseek 9320 AUE_GETPID NOPROTO { pid_t getpid(void); } 9421 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \ 95 int flags, caddr_t data); } 9622 AUE_UMOUNT NOPROTO { int unmount(char *path, int flags); } 9723 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 9824 AUE_GETUID NOPROTO { uid_t getuid(void); } 9925 AUE_GETEUID NOPROTO { uid_t geteuid(void); } 10026 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \ 101 caddr_t addr, int data); } 10227 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \ 103 int flags); } 10428 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \ 105 int flags); } 10629 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, u_int32_t buf, \ 107 u_int32_t len, int flags, u_int32_t from, \ 108 u_int32_t fromlenaddr); } 10930 AUE_ACCEPT NOPROTO { int accept(int s, caddr_t name, \ 110 int *anamelen); } 11131 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, caddr_t asa, \ 112 int *alen); } 11332 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, caddr_t asa, \ 114 int *alen); } 11533 AUE_ACCESS NOPROTO { int access(char *path, int flags); } 11634 AUE_CHFLAGS NOPROTO { int chflags(char *path, int flags); } 11735 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, int flags); } 11836 AUE_SYNC NOPROTO { int sync(void); } 11937 AUE_KILL NOPROTO { int kill(int pid, int signum); } 12038 AUE_STAT COMPAT { int freebsd32_stat(char *path, \ 121 struct ostat32 *ub); } 12239 AUE_GETPPID NOPROTO { pid_t getppid(void); } 12340 AUE_LSTAT COMPAT { int freebsd32_lstat(char *path, \ 124 struct ostat *ub); } 12541 AUE_DUP NOPROTO { int dup(u_int fd); } 12642 AUE_PIPE NOPROTO { int pipe(void); } 12743 AUE_GETEGID NOPROTO { gid_t getegid(void); } 12844 AUE_PROFILE NOPROTO { int profil(caddr_t samples, size_t size, \ 129 size_t offset, u_int scale); } 13045 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 131 int facs, int pid); } 13246 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 133 struct osigaction32 *nsa, \ 134 struct osigaction32 *osa); } 13547 AUE_GETGID NOPROTO { gid_t getgid(void); } 13648 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 137 osigset_t mask); } 13849 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 139 u_int namelen); } 14050 AUE_SETLOGIN NOPROTO { int setlogin(char *namebuf); } 14151 AUE_ACCT NOPROTO { int acct(char *path); } 14252 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 14353 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 144 struct sigaltstack32 *ss, \ 145 struct sigaltstack32 *oss); } 14654 AUE_NULL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 147 struct md_ioctl32 *data); } 14855 AUE_REBOOT NOPROTO { int reboot(int opt); } 14956 AUE_REVOKE NOPROTO { int revoke(char *path); } 15057 AUE_SYMLINK NOPROTO { int symlink(char *path, char *link); } 15158 AUE_READLINK NOPROTO { ssize_t readlink(char *path, char *buf, \ 152 size_t count); } 15359 AUE_EXECVE STD { int freebsd32_execve(char *fname, \ 154 u_int32_t *argv, u_int32_t *envv); } 15560 AUE_UMASK NOPROTO { int umask(int newmask); } umask \ 156 umask_args int 15761 AUE_CHROOT NOPROTO { int chroot(char *path); } 15862 AUE_FSTAT COMPAT { int freebsd32_fstat(int fd, \ 159 struct ostat32 *ub); } 16063 AUE_NULL OBSOL ogetkerninfo 16164 AUE_NULL COMPAT { int freebsd32_getpagesize( \ 162 int32_t dummy); } 16365 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 164 int flags); } 16566 AUE_VFORK NOPROTO { int vfork(void); } 16667 AUE_NULL OBSOL vread 16768 AUE_NULL OBSOL vwrite 16869 AUE_SBRK NOPROTO { int sbrk(int incr); } 16970 AUE_SSTK NOPROTO { int sstk(int incr); } 17071 AUE_MMAP OBSOL ommap 17172 AUE_O_VADVISE NOPROTO { int ovadvise(int anom); } vadvise \ 172 ovadvise_args int 17373 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 17474 AUE_MPROTECT NOPROTO { int mprotect(const void *addr, \ 175 size_t len, int prot); } 17675 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 177 int behav); } 17876 AUE_NULL OBSOL vhangup 17977 AUE_NULL OBSOL vlimit 18078 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 181 char *vec); } 18279 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 183 gid_t *gidset); } 18480 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 185 gid_t *gidset); } 18681 AUE_GETPGRP NOPROTO { int getpgrp(void); } 18782 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 18883 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 189 struct itimerval32 *itv, \ 190 struct itimerval32 *oitv); } 19184 AUE_NULL OBSOL owait 192; XXX implement 19385 AUE_SWAPON NOPROTO { int swapon(char *name); } 19486 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 195 struct itimerval32 *itv); } 19687 AUE_O_GETHOSTNAME OBSOL ogethostname 19788 AUE_O_SETHOSTNAME OBSOL osethostname 19889 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 19990 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 20091 AUE_NULL UNIMPL getdopt 20192 AUE_FCNTL NOPROTO { int fcntl(int fd, int cmd, long arg); } 20293 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 203 fd_set *ou, fd_set *ex, \ 204 struct timeval32 *tv); } 20594 AUE_NULL UNIMPL setdopt 20695 AUE_FSYNC NOPROTO { int fsync(int fd); } 20796 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 208 int prio); } 20997 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 210 int protocol); } 21198 AUE_CONNECT NOPROTO { int connect(int s, caddr_t name, \ 212 int namelen); } 21399 AUE_NULL OBSOL oaccept 214100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 215101 AUE_NULL OBSOL osend 216102 AUE_NULL OBSOL orecv 217103 AUE_NULL COMPAT { int freebsd32_sigreturn( \ 218 struct ia32_sigcontext3 *sigcntxp); } 219104 AUE_BIND NOPROTO { int bind(int s, caddr_t name, \ 220 int namelen); } 221105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 222 int name, caddr_t val, int valsize); } 223106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 224107 AUE_NULL OBSOL vtimes 225108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 226 struct sigvec32 *nsv, \ 227 struct sigvec32 *osv); } 228109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 229110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 230111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 231112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 232 struct sigstack32 *nss, \ 233 struct sigstack32 *oss); } 234113 AUE_NULL OBSOL orecvmsg 235114 AUE_NULL OBSOL osendmsg 236115 AUE_NULL OBSOL vtrace 237116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 238 struct timeval32 *tp, \ 239 struct timezone *tzp); } 240117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 241 struct rusage32 *rusage); } 242118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 243 int name, caddr_t val, int *avalsize); } 244119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 245120 AUE_READV STD { int freebsd32_readv(int fd, \ 246 struct iovec32 *iovp, u_int iovcnt); } 247121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 248 struct iovec32 *iovp, u_int iovcnt); } 249122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 250 struct timeval32 *tv, \ 251 struct timezone *tzp); } 252123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 253124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 254125 AUE_RECVFROM OBSOL orecvfrom 255126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 256127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 257128 AUE_RENAME NOPROTO { int rename(char *from, char *to); } 258129 AUE_TRUNCATE OBSOL otruncate 259130 AUE_FTRUNCATE OBSOL ftruncate 260131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 261132 AUE_MKFIFO NOPROTO { int mkfifo(char *path, int mode); } 262133 AUE_SENDTO NOPROTO { int sendto(int s, caddr_t buf, \ 263 size_t len, int flags, caddr_t to, \ 264 int tolen); } 265134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 266135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 267 int protocol, int *rsv); } 268136 AUE_MKDIR NOPROTO { int mkdir(char *path, int mode); } 269137 AUE_RMDIR NOPROTO { int rmdir(char *path); } 270138 AUE_UTIMES STD { int freebsd32_utimes(char *path, \ 271 struct timeval32 *tptr); } 272139 AUE_NULL OBSOL 4.2 sigreturn 273140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 274 struct timeval32 *delta, \ 275 struct timeval32 *olddelta); } 276141 AUE_GETPEERNAME OBSOL ogetpeername 277142 AUE_SYSCTL OBSOL ogethostid 278143 AUE_SYSCTL OBSOL sethostid 279144 AUE_GETRLIMIT OBSOL getrlimit 280145 AUE_SETRLIMIT OBSOL setrlimit 281146 AUE_KILLPG OBSOL killpg 282147 AUE_SETSID NOPROTO { int setsid(void); } 283148 AUE_QUOTACTL NOPROTO { int quotactl(char *path, int cmd, int uid, \ 284 caddr_t arg); } 285149 AUE_O_QUOTA OBSOL oquota 286150 AUE_GETSOCKNAME OBSOL ogetsockname 287 288; Syscalls 151-180 inclusive are reserved for vendor-specific 289; system calls. (This includes various calls added for compatibity 290; with other Unix variants.) 291; Some of these calls are now supported by BSD... 292151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 293152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 294153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 295; 154 is initialised by the NLM code, if present. 296154 AUE_NULL UNIMPL nlm_syscall 297; 155 is initialized by the NFS code, if present. 298; XXX this is a problem!!! 299155 AUE_NFS_SVC UNIMPL nfssvc 300156 AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \ 301 char *buf, u_int count, uint32_t *basep); } 302157 AUE_STATFS COMPAT4 { int freebsd32_statfs(char *path, \ 303 struct statfs32 *buf); } 304158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 305 struct statfs32 *buf); } 306159 AUE_NULL UNIMPL nosys 307160 AUE_LGETFH UNIMPL lgetfh 308161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \ 309 struct fhandle *fhp); } 310162 AUE_NULL OBSOL getdomainname 311163 AUE_NULL OBSOL setdomainname 312164 AUE_NULL OBSOL uname 313165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); } 314166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 315 struct rtprio *rtp); } 316167 AUE_NULL UNIMPL nosys 317168 AUE_NULL UNIMPL nosys 318169 AUE_SEMSYS NOSTD { int freebsd32_semsys(int which, int a2, \ 319 int a3, int a4, int a5); } 320170 AUE_MSGSYS NOSTD { int freebsd32_msgsys(int which, int a2, \ 321 int a3, int a4, int a5, int a6); } 322171 AUE_SHMSYS NOSTD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 323 uint32_t a3, uint32_t a4); } 324172 AUE_NULL UNIMPL nosys 325173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 326 size_t nbyte, int pad, \ 327 u_int32_t offset1, u_int32_t offset2); } 328174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 329 const void *buf, size_t nbyte, int pad, \ 330 u_int32_t offset1, u_int32_t offset2); } 331175 AUE_NULL UNIMPL nosys 332176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); } 333177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 334178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 335179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 336180 AUE_NULL UNIMPL nosys 337 338; Syscalls 181-199 are used by/reserved for BSD 339181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 340182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 341183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 342184 AUE_NULL UNIMPL lfs_bmapv 343185 AUE_NULL UNIMPL lfs_markv 344186 AUE_NULL UNIMPL lfs_segclean 345187 AUE_NULL UNIMPL lfs_segwait 346188 AUE_STAT STD { int freebsd32_stat(char *path, \ 347 struct stat32 *ub); } 348189 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 349 struct stat32 *ub); } 350190 AUE_LSTAT STD { int freebsd32_lstat(char *path, \ 351 struct stat32 *ub); } 352191 AUE_PATHCONF NOPROTO { int pathconf(char *path, int name); } 353192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 354193 AUE_NULL UNIMPL nosys 355194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 356 struct rlimit *rlp); } getrlimit \ 357 __getrlimit_args int 358195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 359 struct rlimit *rlp); } setrlimit \ 360 __setrlimit_args int 361196 AUE_GETDIRENTRIES STD { int freebsd32_getdirentries(int fd, \ 362 char *buf, u_int count, int32_t *basep); } 363197 AUE_MMAP COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \ 364 size_t len, int prot, int flags, int fd, \ 365 int pad, u_int32_t pos1, u_int32_t pos2); } 366198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 367 __syscall_args int 368199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 369 u_int32_t offset1, u_int32_t offset2, \ 370 int whence); } 371200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(char *path, \ 372 int pad, u_int32_t length1, \ 373 u_int32_t length2); } 374201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 375 u_int32_t length1, u_int32_t length2); } 376202 AUE_SYSCTL STD { int freebsd32_sysctl(int *name, \ 377 u_int namelen, void *old, \ 378 u_int32_t *oldlenp, void *new, \ 379 u_int32_t newlen); } 380203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \ 381 size_t len); } 382204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \ 383 size_t len); } 384205 AUE_UNDELETE NOPROTO { int undelete(char *path); } 385206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \ 386 struct timeval32 *tptr); } 387207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); } 388208 AUE_NULL UNIMPL newreboot (NetBSD) 389209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \ 390 int timeout); } 391 392; 393; The following are reserved for loadable syscalls 394; 395210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 396211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 397212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 398213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 399214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 400215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 401216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 402217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 403218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 404219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 405 406; 407; The following were introduced with NetBSD/4.4Lite-2 408; They are initialized by their respective modules/sysinits 409; XXX PROBLEM!! 410220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32_semctl( \ 411 int semid, int semnum, \ 412 int cmd, union semun32 *arg); } 413221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \ 414 int semflg); } 415222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \ 416 struct sembuf *sops, u_int nsops); } 417223 AUE_NULL UNIMPL semconfig 418224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \ 419 int msqid, int cmd, \ 420 struct msqid_ds32_old *buf); } 421225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); } 422226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, void *msgp, \ 423 size_t msgsz, int msgflg); } 424227 AUE_MSGRCV NOSTD { int freebsd32_msgrcv(int msqid, void *msgp, \ 425 size_t msgsz, long msgtyp, int msgflg); } 426228 AUE_SHMAT NOSTD|NOPROTO { int shmat(int shmid, void *shmaddr, \ 427 int shmflg); } 428229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \ 429 int shmid, int cmd, \ 430 struct shmid_ds32_old *buf); } 431230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(void *shmaddr); } 432231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \ 433 int shmflg); } 434; 435232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \ 436 struct timespec32 *tp); } 437233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \ 438 const struct timespec32 *tp); } 439234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \ 440 struct timespec32 *tp); } 441235 AUE_NULL UNIMPL timer_create 442236 AUE_NULL UNIMPL timer_delete 443237 AUE_NULL UNIMPL timer_settime 444238 AUE_NULL UNIMPL timer_gettime 445239 AUE_NULL UNIMPL timer_getoverrun 446240 AUE_NULL STD { int freebsd32_nanosleep( \ 447 const struct timespec32 *rqtp, \ 448 struct timespec32 *rmtp); } 449241 AUE_NULL UNIMPL nosys 450242 AUE_NULL UNIMPL nosys 451243 AUE_NULL UNIMPL nosys 452244 AUE_NULL UNIMPL nosys 453245 AUE_NULL UNIMPL nosys 454246 AUE_NULL UNIMPL nosys 455247 AUE_NULL UNIMPL nosys 456248 AUE_NULL UNIMPL ntp_gettime 457249 AUE_NULL UNIMPL nosys 458; syscall numbers initially used in OpenBSD 459250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \ 460 int inherit); } 461251 AUE_RFORK NOPROTO { int rfork(int flags); } 462252 AUE_POLL NOPROTO { int openbsd_poll(struct pollfd *fds, \ 463 u_int nfds, int timeout); } 464253 AUE_ISSETUGID NOPROTO { int issetugid(void); } 465254 AUE_LCHOWN NOPROTO { int lchown(char *path, int uid, int gid); } 466255 AUE_NULL NOSTD { int freebsd32_aio_read( \ 467 struct aiocb32 *aiocbp); } 468256 AUE_NULL NOSTD { int freebsd32_aio_write( \ 469 struct aiocb32 *aiocbp); } 470257 AUE_NULL NOSTD { int freebsd32_lio_listio(int mode, \ 471 struct aiocb32 * const *acb_list, \ 472 int nent, struct sigevent *sig); } 473258 AUE_NULL UNIMPL nosys 474259 AUE_NULL UNIMPL nosys 475260 AUE_NULL UNIMPL nosys 476261 AUE_NULL UNIMPL nosys 477262 AUE_NULL UNIMPL nosys 478263 AUE_NULL UNIMPL nosys 479264 AUE_NULL UNIMPL nosys 480265 AUE_NULL UNIMPL nosys 481266 AUE_NULL UNIMPL nosys 482267 AUE_NULL UNIMPL nosys 483268 AUE_NULL UNIMPL nosys 484269 AUE_NULL UNIMPL nosys 485270 AUE_NULL UNIMPL nosys 486271 AUE_NULL UNIMPL nosys 487272 AUE_O_GETDENTS NOPROTO { int getdents(int fd, char *buf, \ 488 size_t count); } 489273 AUE_NULL UNIMPL nosys 490274 AUE_LCHMOD NOPROTO { int lchmod(char *path, mode_t mode); } 491275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \ 492 gid_t gid); } netbsd_lchown \ 493 lchown_args int 494276 AUE_LUTIMES STD { int freebsd32_lutimes(char *path, \ 495 struct timeval32 *tptr); } 496277 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 497 int flags); } netbsd_msync msync_args int 498278 AUE_STAT NOPROTO { int nstat(char *path, struct nstat *ub); } 499279 AUE_FSTAT NOPROTO { int nfstat(int fd, struct nstat *sb); } 500280 AUE_LSTAT NOPROTO { int nlstat(char *path, struct nstat *ub); } 501281 AUE_NULL UNIMPL nosys 502282 AUE_NULL UNIMPL nosys 503283 AUE_NULL UNIMPL nosys 504284 AUE_NULL UNIMPL nosys 505285 AUE_NULL UNIMPL nosys 506286 AUE_NULL UNIMPL nosys 507287 AUE_NULL UNIMPL nosys 508288 AUE_NULL UNIMPL nosys 509; 289 and 290 from NetBSD (OpenBSD: 267 and 268) 510289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \ 511 struct iovec32 *iovp, \ 512 u_int iovcnt, \ 513 u_int32_t offset1, u_int32_t offset2); } 514290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 515 struct iovec32 *iovp, \ 516 u_int iovcnt, \ 517 u_int32_t offset1, u_int32_t offset2); } 518291 AUE_NULL UNIMPL nosys 519292 AUE_NULL UNIMPL nosys 520293 AUE_NULL UNIMPL nosys 521294 AUE_NULL UNIMPL nosys 522295 AUE_NULL UNIMPL nosys 523296 AUE_NULL UNIMPL nosys 524; XXX 297 is 300 in NetBSD 525297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \ 526 const struct fhandle *u_fhp, \ 527 struct statfs32 *buf); } 528298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \ 529 int flags); } 530299 AUE_FHSTAT NOPROTO { int fhstat(const struct fhandle *u_fhp, \ 531 struct stat *sb); } 532; syscall numbers for FreeBSD 533300 AUE_NULL NOPROTO { int modnext(int modid); } 534301 AUE_NULL STD { int freebsd32_modstat(int modid, \ 535 struct module_stat32* stat); } 536302 AUE_NULL NOPROTO { int modfnext(int modid); } 537303 AUE_NULL NOPROTO { int modfind(const char *name); } 538304 AUE_MODLOAD NOPROTO { int kldload(const char *file); } 539305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); } 540306 AUE_NULL NOPROTO { int kldfind(const char *file); } 541307 AUE_NULL NOPROTO { int kldnext(int fileid); } 542308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \ 543 struct kld32_file_stat* stat); } 544309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); } 545310 AUE_GETSID NOPROTO { int getsid(pid_t pid); } 546311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 547 uid_t suid); } 548312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 549 gid_t sgid); } 550313 AUE_NULL OBSOL signanosleep 551314 AUE_NULL NOSTD { int freebsd32_aio_return( \ 552 struct aiocb32 *aiocbp); } 553315 AUE_NULL NOSTD { int freebsd32_aio_suspend( \ 554 struct aiocb32 * const * aiocbp, int nent, \ 555 const struct timespec32 *timeout); } 556316 AUE_NULL NOSTD { int freebsd32_aio_cancel(int fd, \ 557 struct aiocb32 *aiocbp); } 558317 AUE_NULL NOSTD { int freebsd32_aio_error( \ 559 struct aiocb32 *aiocbp); } 560318 AUE_NULL NOSTD { int freebsd32_oaio_read( \ 561 struct oaiocb32 *aiocbp); } 562319 AUE_NULL NOSTD { int freebsd32_oaio_write( \ 563 struct oaiocb32 *aiocbp); } 564320 AUE_NULL NOSTD { int freebsd32_olio_listio(int mode, \ 565 struct oaiocb32 * const *acb_list, \ 566 int nent, struct osigevent32 *sig); } 567321 AUE_NULL NOPROTO { int yield(void); } 568322 AUE_NULL OBSOL thr_sleep 569323 AUE_NULL OBSOL thr_wakeup 570324 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 571325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 572326 AUE_GETCWD NOPROTO { int __getcwd(u_char *buf, u_int buflen); } 573 574327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \ 575 const struct sched_param *param); } 576328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \ 577 struct sched_param *param); } 578 579329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \ 580 int policy, \ 581 const struct sched_param *param); } 582330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); } 583 584331 AUE_NULL NOPROTO { int sched_yield (void); } 585332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); } 586333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); } 587334 AUE_NULL NOPROTO { int sched_rr_get_interval (pid_t pid, \ 588 struct timespec *interval); } 589335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); } 590336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 591 u_int32_t offset1, u_int32_t offset2, \ 592 size_t nbytes, struct sf_hdtr32 *hdtr, \ 593 off_t *sbytes, int flags); } 594337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 595 void *data); } 596338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); } 597339 AUE_NULL UNIMPL pioctl 598340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 599 const sigset_t *set, sigset_t *oset); } 600341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 601342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 602 struct sigaction32 *act, \ 603 struct sigaction32 *oact); } 604343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 605344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 606 const struct freebsd4_freebsd32_ucontext *sigcntxp); } 607345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 608 siginfo_t *info, \ 609 const struct timespec *timeout); } 610346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 611 siginfo_t *info); } 612347 AUE_NULL NOPROTO { int __acl_get_file(const char *path, \ 613 acl_type_t type, struct acl *aclp); } 614348 AUE_NULL NOPROTO { int __acl_set_file(const char *path, \ 615 acl_type_t type, struct acl *aclp); } 616349 AUE_NULL NOPROTO { int __acl_get_fd(int filedes, \ 617 acl_type_t type, struct acl *aclp); } 618350 AUE_NULL NOPROTO { int __acl_set_fd(int filedes, \ 619 acl_type_t type, struct acl *aclp); } 620351 AUE_NULL NOPROTO { int __acl_delete_file(const char *path, \ 621 acl_type_t type); } 622352 AUE_NULL NOPROTO { int __acl_delete_fd(int filedes, \ 623 acl_type_t type); } 624353 AUE_NULL NOPROTO { int __acl_aclcheck_file(const char *path, \ 625 acl_type_t type, struct acl *aclp); } 626354 AUE_NULL NOPROTO { int __acl_aclcheck_fd(int filedes, \ 627 acl_type_t type, struct acl *aclp); } 628355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 629 const char *filename, int attrnamespace, \ 630 const char *attrname); } 631356 AUE_EXTATTR_SET_FILE NOPROTO { int extattr_set_file( \ 632 const char *path, int attrnamespace, \ 633 const char *attrname, void *data, \ 634 size_t nbytes); } 635357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 636 const char *path, int attrnamespace, \ 637 const char *attrname, void *data, \ 638 size_t nbytes); } 639358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 640 const char *path, int attrnamespace, \ 641 const char *attrname); } 642359 AUE_NULL NOSTD { int freebsd32_aio_waitcomplete( \ 643 struct aiocb32 **aiocbp, \ 644 struct timespec32 *timeout); } 645360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 646 uid_t *suid); } 647361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 648 gid_t *sgid); } 649362 AUE_KQUEUE NOPROTO { int kqueue(void); } 650363 AUE_NULL STD { int freebsd32_kevent(int fd, \ 651 const struct kevent32 *changelist, \ 652 int nchanges, \ 653 struct kevent32 *eventlist, int nevents, \ 654 const struct timespec32 *timeout); } 655364 AUE_NULL UNIMPL __cap_get_proc 656365 AUE_NULL UNIMPL __cap_set_proc 657366 AUE_NULL UNIMPL __cap_get_fd 658367 AUE_NULL UNIMPL __cap_get_file 659368 AUE_NULL UNIMPL __cap_set_fd 660369 AUE_NULL UNIMPL __cap_set_file 661370 AUE_NULL UNIMPL nosys 662371 AUE_EXTATTR_SET_FD NOPROTO { int extattr_set_fd(int fd, \ 663 int attrnamespace, const char *attrname, \ 664 void *data, size_t nbytes); } 665372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 666 int attrnamespace, const char *attrname, \ 667 void *data, size_t nbytes); } 668373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 669 int attrnamespace, \ 670 const char *attrname); } 671374 AUE_NULL NOPROTO { int __setugid(int flag); } 672375 AUE_NULL UNIMPL nfsclnt 673376 AUE_EACCESS NOPROTO { int eaccess(char *path, int flags); } 674377 AUE_NULL UNIMPL afs_syscall 675378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 676 unsigned int iovcnt, int flags); } 677379 AUE_NULL UNIMPL kse_exit 678380 AUE_NULL UNIMPL kse_wakeup 679381 AUE_NULL UNIMPL kse_create 680382 AUE_NULL UNIMPL kse_thr_interrupt 681383 AUE_NULL UNIMPL kse_release 682384 AUE_NULL UNIMPL __mac_get_proc 683385 AUE_NULL UNIMPL __mac_set_proc 684386 AUE_NULL UNIMPL __mac_get_fd 685387 AUE_NULL UNIMPL __mac_get_file 686388 AUE_NULL UNIMPL __mac_set_fd 687389 AUE_NULL UNIMPL __mac_set_file 688390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 689 char *value, int len); } 690391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, int flags); } 691392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 692 int count); } 693393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 694 u_int32_t offset1, u_int32_t offset2, \ 695 size_t nbytes, struct sf_hdtr32 *hdtr, \ 696 off_t *sbytes, int flags); } 697394 AUE_NULL UNIMPL mac_syscall 698395 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs *buf, \ 699 long bufsize, int flags); } 700396 AUE_STATFS NOPROTO { int statfs(char *path, \ 701 struct statfs *buf); } 702397 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs *buf); } 703398 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 704 struct statfs *buf); } 705399 AUE_NULL UNIMPL nosys 706400 AUE_NULL NOSTD|NOPROTO { int ksem_close(semid_t id); } 707401 AUE_NULL NOSTD|NOPROTO { int ksem_post(semid_t id); } 708402 AUE_NULL NOSTD|NOPROTO { int ksem_wait(semid_t id); } 709403 AUE_NULL NOSTD|NOPROTO { int ksem_trywait(semid_t id); } 710404 AUE_NULL NOSTD { int freebsd32_ksem_init(semid_t *idp, \ 711 unsigned int value); } 712405 AUE_NULL NOSTD { int freebsd32_ksem_open(semid_t *idp, \ 713 const char *name, int oflag, \ 714 mode_t mode, unsigned int value); } 715406 AUE_NULL NOSTD|NOPROTO { int ksem_unlink(const char *name); } 716407 AUE_NULL NOSTD|NOPROTO { int ksem_getvalue(semid_t id, \ 717 int *val); } 718408 AUE_NULL NOSTD|NOPROTO { int ksem_destroy(semid_t id); } 719409 AUE_NULL UNIMPL __mac_get_pid 720410 AUE_NULL UNIMPL __mac_get_link 721411 AUE_NULL UNIMPL __mac_set_link 722412 AUE_EXTATTR_SET_LINK NOPROTO { int extattr_set_link( \ 723 const char *path, int attrnamespace, \ 724 const char *attrname, void *data, \ 725 size_t nbytes); } 726413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \ 727 const char *path, int attrnamespace, \ 728 const char *attrname, void *data, \ 729 size_t nbytes); } 730414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \ 731 const char *path, int attrnamespace, \ 732 const char *attrname); } 733415 AUE_NULL UNIMPL __mac_execve 734416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 735 struct sigaction32 *act, \ 736 struct sigaction32 *oact); } 737417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 738 const struct freebsd32_ucontext *sigcntxp); } 739418 AUE_NULL UNIMPL __xstat 740419 AUE_NULL UNIMPL __xfstat 741420 AUE_NULL UNIMPL __xlstat 742421 AUE_NULL STD { int freebsd32_getcontext( \ 743 struct freebsd32_ucontext *ucp); } 744422 AUE_NULL STD { int freebsd32_setcontext( \ 745 const struct freebsd32_ucontext *ucp); } 746423 AUE_NULL STD { int freebsd32_swapcontext( \ 747 struct freebsd32_ucontext *oucp, \ 748 const struct freebsd32_ucontext *ucp); } 749424 AUE_SWAPOFF UNIMPL swapoff 750425 AUE_NULL NOPROTO { int __acl_get_link(const char *path, \ 751 acl_type_t type, struct acl *aclp); } 752426 AUE_NULL NOPROTO { int __acl_set_link(const char *path, \ 753 acl_type_t type, struct acl *aclp); } 754427 AUE_NULL NOPROTO { int __acl_delete_link(const char *path, \ 755 acl_type_t type); } 756428 AUE_NULL NOPROTO { int __acl_aclcheck_link(const char *path, \ 757 acl_type_t type, struct acl *aclp); } 758429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 759 int *sig); } 760430 AUE_NULL UNIMPL thr_create; 761431 AUE_NULL NOPROTO { void thr_exit(long *state); } 762432 AUE_NULL NOPROTO { int thr_self(long *id); } 763433 AUE_NULL NOPROTO { int thr_kill(long id, int sig); } 764434 AUE_NULL STD { int freebsd32_umtx_lock(struct umtx *umtx); } 765435 AUE_NULL STD { int freebsd32_umtx_unlock(struct umtx *umtx); } 766436 AUE_NULL NOPROTO { int jail_attach(int jid); } 767437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \ 768 int attrnamespace, void *data, \ 769 size_t nbytes); } 770438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \ 771 const char *path, int attrnamespace, \ 772 void *data, size_t nbytes); } 773439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \ 774 const char *path, int attrnamespace, \ 775 void *data, size_t nbytes); } 776440 AUE_NULL UNIMPL kse_switchin 777441 AUE_NULL NOSTD { int freebsd32_ksem_timedwait(semid_t id, \ 778 const struct timespec32 *abstime); } 779442 AUE_NULL STD { int freebsd32_thr_suspend( \ 780 const struct timespec32 *timeout); } 781443 AUE_NULL NOPROTO { int thr_wake(long id); } 782444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 783445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 784 u_int length); } 785446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 786 u_int length); } 787447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 788448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 789449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 790450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 791451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 792 struct auditinfo_addr *auditinfo_addr, \ 793 u_int length); } 794452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 795 struct auditinfo_addr *auditinfo_addr, \ 796 u_int length); } 797453 AUE_AUDITCTL NOPROTO { int auditctl(char *path); } 798454 AUE_NULL STD { int freebsd32_umtx_op(void *obj, int op,\ 799 u_long val, void *uaddr, \ 800 void *uaddr2); } 801455 AUE_NULL STD { int freebsd32_thr_new( \ 802 struct thr_param32 *param, \ 803 int param_size); } 804456 AUE_NULL NOPROTO { int sigqueue(pid_t pid, int signum, \ 805 void *value); } 806457 AUE_NULL NOSTD { int freebsd32_kmq_open( \ 807 const char *path, int flags, mode_t mode, \ 808 const struct mq_attr32 *attr); } 809458 AUE_NULL NOSTD { int freebsd32_kmq_setattr(int mqd, \ 810 const struct mq_attr32 *attr, \ 811 struct mq_attr32 *oattr); } 812459 AUE_NULL NOSTD { int freebsd32_kmq_timedreceive(int mqd, \ 813 char *msg_ptr, size_t msg_len, \ 814 unsigned *msg_prio, \ 815 const struct timespec32 *abs_timeout); } 816460 AUE_NULL NOSTD { int freebsd32_kmq_timedsend(int mqd, \ 817 const char *msg_ptr, size_t msg_len,\ 818 unsigned msg_prio, \ 819 const struct timespec32 *abs_timeout);} 820461 AUE_NULL NOPROTO|NOSTD { int kmq_notify(int mqd, \ 821 const struct sigevent *sigev); } 822462 AUE_NULL NOPROTO|NOSTD { int kmq_unlink(const char *path); } 823463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 824464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 825465 AUE_NULL NOSTD { int freebsd32_aio_fsync(int op, \ 826 struct aiocb32 *aiocbp); } 827466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 828 lwpid_t lwpid, struct rtprio *rtp); } 829467 AUE_NULL UNIMPL nosys 830468 AUE_NULL UNIMPL nosys 831469 AUE_NULL UNIMPL __getpath_fromfd 832470 AUE_NULL UNIMPL __getpath_fromaddr 833471 AUE_NULL NOPROTO { int sctp_peeloff(int sd, uint32_t name); } 834472 AUE_NULL NOPROTO { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ 835 caddr_t to, __socklen_t tolen, \ 836 struct sctp_sndrcvinfo *sinfo, int flags); } 837473 AUE_NULL NOPROTO { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 838 caddr_t to, __socklen_t tolen, \ 839 struct sctp_sndrcvinfo *sinfo, int flags); } 840474 AUE_NULL NOPROTO { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 841 struct sockaddr * from, __socklen_t *fromlenaddr, \ 842 struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 843#ifdef PAD64_REQUIRED 844475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 845 void *buf,size_t nbyte, \ 846 int pad, \ 847 u_int32_t offset1, u_int32_t offset2); } 848476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 849 const void *buf, size_t nbyte, \ 850 int pad, \ 851 u_int32_t offset1, u_int32_t offset2); } 852477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 853 size_t len, int prot, int flags, int fd, \ 854 int pad, \ 855 u_int32_t pos1, u_int32_t pos2); } 856478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 857 int pad, \ 858 u_int32_t offset1, u_int32_t offset2, \ 859 int whence); } 860479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 861 int pad, \ 862 u_int32_t length1, u_int32_t length2); } 863480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 864 int pad, \ 865 u_int32_t length1, u_int32_t length2); } 866#else 867475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 868 void *buf,size_t nbyte, \ 869 u_int32_t offset1, u_int32_t offset2); } 870476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 871 const void *buf, size_t nbyte, \ 872 u_int32_t offset1, u_int32_t offset2); } 873477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 874 size_t len, int prot, int flags, int fd, \ 875 u_int32_t pos1, u_int32_t pos2); } 876478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 877 u_int32_t offset1, u_int32_t offset2, \ 878 int whence); } 879479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 880 u_int32_t length1, u_int32_t length2); } 881480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 882 u_int32_t length1, u_int32_t length2); } 883#endif 884481 AUE_KILL NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 885482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \ 886 mode_t mode); } 887483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 888484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 889#ifdef PAD64_REQUIRED 890485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 891 int pad, \ 892 u_int32_t id1, u_int32_t id2, \ 893 cpusetid_t setid); } 894#else 895485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 896 u_int32_t id1, u_int32_t id2, \ 897 cpusetid_t setid); } 898#endif 899486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 900 cpuwhich_t which, \ 901 u_int32_t id1, u_int32_t id2, \ 902 cpusetid_t *setid); } 903487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 904 cpulevel_t level, cpuwhich_t which, \ 905 u_int32_t id1, u_int32_t id2, \ 906 size_t cpusetsize, \ 907 cpuset_t *mask); } 908488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 909 cpulevel_t level, cpuwhich_t which, \ 910 u_int32_t id1, u_int32_t id2, \ 911 size_t cpusetsize, \ 912 const cpuset_t *mask); } 913489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, char *path, int mode, \ 914 int flag); } 915490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 916 mode_t mode, int flag); } 917491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, char *path, uid_t uid, \ 918 gid_t gid, int flag); } 919492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 920 u_int32_t *argv, u_int32_t *envv); } 921493 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, char *path, \ 922 struct stat *buf, int flag); } 923494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, char *path, \ 924 struct timeval *times); } 925495 AUE_LINKAT NOPROTO { int linkat(int fd1, char *path1, int fd2, \ 926 char *path2, int flag); } 927496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, char *path, \ 928 mode_t mode); } 929497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, char *path, \ 930 mode_t mode); } 931498 AUE_MKNODAT NOPROTO { int mknodat(int fd, char *path, \ 932 mode_t mode, dev_t dev); } 933499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \ 934 mode_t mode); } 935500 AUE_READLINKAT NOPROTO { int readlinkat(int fd, char *path, char *buf, \ 936 size_t bufsize); } 937501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, char *old, int newfd, \ 938 const char *new); } 939502 AUE_SYMLINKAT NOPROTO { int symlinkat(char *path1, int fd, \ 940 char *path2); } 941503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, char *path, \ 942 int flag); } 943504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 944; 505 is initialised by the kgssapi code, if present. 945505 AUE_NULL UNIMPL gssd_syscall 946506 AUE_NULL STD { int freebsd32_jail_get(struct iovec32 *iovp, \ 947 unsigned int iovcnt, int flags); } 948507 AUE_NULL STD { int freebsd32_jail_set(struct iovec32 *iovp, \ 949 unsigned int iovcnt, int flags); } 950508 AUE_NULL NOPROTO { int jail_remove(int jid); } 951509 AUE_CLOSEFROM NOPROTO { int closefrom(int lowfd); } 952510 AUE_SEMCTL NOSTD { int freebsd32_semctl(int semid, int semnum, \ 953 int cmd, union semun32 *arg); } 954511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \ 955 struct msqid_ds32 *buf); } 956512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \ 957 struct shmid_ds32 *buf); } 958513 AUE_LPATHCONF NOPROTO { int lpathconf(char *path, int name); } 959514 AUE_CAP_NEW UNIMPL cap_new 960515 AUE_CAP_GETRIGHTS UNIMPL cap_getrights 961516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); } 962517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); } 963518 AUE_PDFORK UNIMPL pdfork 964519 AUE_PDKILL UNIMPL pdkill 965520 AUE_PDGETPID UNIMPL pdgetpid 966521 AUE_PDWAIT UNIMPL pdwait 967522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \ 968 fd_set *ou, fd_set *ex, \ 969 const struct timespec32 *ts, \ 970 const sigset_t *sm); } 971523 AUE_NULL NOPROTO { int getloginclass(char *namebuf, \ 972 size_t namelen); } 973524 AUE_NULL NOPROTO { int setloginclass(const char *namebuf); } 974525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \ 975 size_t inbuflen, void *outbufp, \ 976 size_t outbuflen); } 977526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \ 978 size_t inbuflen, void *outbufp, \ 979 size_t outbuflen); } 980527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \ 981 size_t inbuflen, void *outbufp, \ 982 size_t outbuflen); } 983528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \ 984 size_t inbuflen, void *outbufp, \ 985 size_t outbuflen); } 986529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \ 987 size_t inbuflen, void *outbufp, \ 988 size_t outbuflen); } 989530 AUE_NULL STD { int freebsd32_posix_fallocate(int fd,\ 990 uint32_t offsetlo, uint32_t offsethi,\ 991 uint32_t lenlo, uint32_t lenhi); } 992531 AUE_NULL UNIMPL posix_fadvise 993