syscalls.master revision 205014
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 205014 2010-03-11 14:49:06Z nwhitehorn $ 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 UNIMPL ostat 12139 AUE_GETPPID NOPROTO { pid_t getppid(void); } 12240 AUE_LSTAT UNIMPL olstat 12341 AUE_DUP NOPROTO { int dup(u_int fd); } 12442 AUE_PIPE NOPROTO { int pipe(void); } 12543 AUE_GETEGID NOPROTO { gid_t getegid(void); } 12644 AUE_PROFILE NOPROTO { int profil(caddr_t samples, size_t size, \ 127 size_t offset, u_int scale); } 12845 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 129 int facs, int pid); } 13046 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 131 struct osigaction32 *nsa, \ 132 struct osigaction32 *osa); } 13347 AUE_GETGID NOPROTO { gid_t getgid(void); } 13448 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 135 osigset_t mask); } 13649 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 137 u_int namelen); } 13850 AUE_SETLOGIN NOPROTO { int setlogin(char *namebuf); } 13951 AUE_ACCT NOPROTO { int acct(char *path); } 14052 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 14153 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 142 struct sigaltstack32 *ss, \ 143 struct sigaltstack32 *oss); } 14454 AUE_NULL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 145 struct md_ioctl32 *data); } 14655 AUE_REBOOT NOPROTO { int reboot(int opt); } 14756 AUE_REVOKE NOPROTO { int revoke(char *path); } 14857 AUE_SYMLINK NOPROTO { int symlink(char *path, char *link); } 14958 AUE_READLINK NOPROTO { ssize_t readlink(char *path, char *buf, \ 150 size_t count); } 15159 AUE_EXECVE STD { int freebsd32_execve(char *fname, \ 152 u_int32_t *argv, u_int32_t *envv); } 15360 AUE_UMASK NOPROTO { int umask(int newmask); } umask \ 154 umask_args int 15561 AUE_CHROOT NOPROTO { int chroot(char *path); } 15662 AUE_FSTAT OBSOL ofstat 15763 AUE_NULL OBSOL ogetkerninfo 15864 AUE_NULL OBSOL ogetpagesize 15965 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 160 int flags); } 16166 AUE_VFORK NOPROTO { int vfork(void); } 16267 AUE_NULL OBSOL vread 16368 AUE_NULL OBSOL vwrite 16469 AUE_SBRK NOPROTO { int sbrk(int incr); } 16570 AUE_SSTK NOPROTO { int sstk(int incr); } 16671 AUE_MMAP OBSOL ommap 16772 AUE_O_VADVISE NOPROTO { int ovadvise(int anom); } vadvise \ 168 ovadvise_args int 16973 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 17074 AUE_MPROTECT NOPROTO { int mprotect(const void *addr, \ 171 size_t len, int prot); } 17275 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 173 int behav); } 17476 AUE_NULL OBSOL vhangup 17577 AUE_NULL OBSOL vlimit 17678 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 177 char *vec); } 17879 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 179 gid_t *gidset); } 18080 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 181 gid_t *gidset); } 18281 AUE_GETPGRP NOPROTO { int getpgrp(void); } 18382 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 18483 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 185 struct itimerval32 *itv, \ 186 struct itimerval32 *oitv); } 18784 AUE_NULL OBSOL owait 188; XXX implement 18985 AUE_SWAPON NOPROTO { int swapon(char *name); } 19086 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 191 struct itimerval32 *itv); } 19287 AUE_O_GETHOSTNAME OBSOL ogethostname 19388 AUE_O_SETHOSTNAME OBSOL osethostname 19489 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 19590 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 19691 AUE_NULL UNIMPL getdopt 19792 AUE_FCNTL NOPROTO { int fcntl(int fd, int cmd, long arg); } 19893 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 199 fd_set *ou, fd_set *ex, \ 200 struct timeval32 *tv); } 20194 AUE_NULL UNIMPL setdopt 20295 AUE_FSYNC NOPROTO { int fsync(int fd); } 20396 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 204 int prio); } 20597 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 206 int protocol); } 20798 AUE_CONNECT NOPROTO { int connect(int s, caddr_t name, \ 208 int namelen); } 20999 AUE_NULL OBSOL oaccept 210100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 211101 AUE_NULL OBSOL osend 212102 AUE_NULL OBSOL orecv 213103 AUE_NULL OBSOL osigreturn 214104 AUE_BIND NOPROTO { int bind(int s, caddr_t name, \ 215 int namelen); } 216105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 217 int name, caddr_t val, int valsize); } 218106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 219107 AUE_NULL OBSOL vtimes 220108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 221 struct sigvec32 *nsv, \ 222 struct sigvec32 *osv); } 223109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 224110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 225111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 226112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 227 struct sigstack32 *nss, \ 228 struct sigstack32 *oss); } 229113 AUE_NULL OBSOL orecvmsg 230114 AUE_NULL OBSOL osendmsg 231115 AUE_NULL OBSOL vtrace 232116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 233 struct timeval32 *tp, \ 234 struct timezone *tzp); } 235117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 236 struct rusage32 *rusage); } 237118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 238 int name, caddr_t val, int *avalsize); } 239119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 240120 AUE_READV STD { int freebsd32_readv(int fd, \ 241 struct iovec32 *iovp, u_int iovcnt); } 242121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 243 struct iovec32 *iovp, u_int iovcnt); } 244122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 245 struct timeval32 *tv, \ 246 struct timezone *tzp); } 247123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 248124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 249125 AUE_RECVFROM OBSOL orecvfrom 250126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 251127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 252128 AUE_RENAME NOPROTO { int rename(char *from, char *to); } 253129 AUE_TRUNCATE OBSOL otruncate 254130 AUE_FTRUNCATE OBSOL ftruncate 255131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 256132 AUE_MKFIFO NOPROTO { int mkfifo(char *path, int mode); } 257133 AUE_SENDTO NOPROTO { int sendto(int s, caddr_t buf, \ 258 size_t len, int flags, caddr_t to, \ 259 int tolen); } 260134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 261135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 262 int protocol, int *rsv); } 263136 AUE_MKDIR NOPROTO { int mkdir(char *path, int mode); } 264137 AUE_RMDIR NOPROTO { int rmdir(char *path); } 265138 AUE_UTIMES STD { int freebsd32_utimes(char *path, \ 266 struct timeval32 *tptr); } 267139 AUE_NULL OBSOL 4.2 sigreturn 268140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 269 struct timeval32 *delta, \ 270 struct timeval32 *olddelta); } 271141 AUE_GETPEERNAME OBSOL ogetpeername 272142 AUE_SYSCTL OBSOL ogethostid 273143 AUE_SYSCTL OBSOL sethostid 274144 AUE_GETRLIMIT OBSOL getrlimit 275145 AUE_SETRLIMIT OBSOL setrlimit 276146 AUE_KILLPG OBSOL killpg 277147 AUE_SETSID NOPROTO { int setsid(void); } 278148 AUE_QUOTACTL NOPROTO { int quotactl(char *path, int cmd, int uid, \ 279 caddr_t arg); } 280149 AUE_O_QUOTA OBSOL oquota 281150 AUE_GETSOCKNAME OBSOL ogetsockname 282 283; Syscalls 151-180 inclusive are reserved for vendor-specific 284; system calls. (This includes various calls added for compatibity 285; with other Unix variants.) 286; Some of these calls are now supported by BSD... 287151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 288152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 289153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 290; 154 is initialised by the NLM code, if present. 291154 AUE_NULL UNIMPL nlm_syscall 292; 155 is initialized by the NFS code, if present. 293; XXX this is a problem!!! 294155 AUE_NFS_SVC UNIMPL nfssvc 295156 AUE_GETDIRENTRIES OBSOL ogetdirentries 296157 AUE_STATFS COMPAT4 { int freebsd32_statfs(char *path, \ 297 struct statfs32 *buf); } 298158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 299 struct statfs32 *buf); } 300159 AUE_NULL UNIMPL nosys 301160 AUE_LGETFH UNIMPL lgetfh 302161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \ 303 struct fhandle *fhp); } 304162 AUE_NULL OBSOL getdomainname 305163 AUE_NULL OBSOL setdomainname 306164 AUE_NULL OBSOL uname 307165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); } 308166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 309 struct rtprio *rtp); } 310167 AUE_NULL UNIMPL nosys 311168 AUE_NULL UNIMPL nosys 312169 AUE_SEMSYS STD { int freebsd32_semsys(int which, int a2, \ 313 int a3, int a4, int a5); } 314170 AUE_MSGSYS STD { int freebsd32_msgsys(int which, int a2, \ 315 int a3, int a4, int a5, int a6); } 316171 AUE_SHMSYS STD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 317 uint32_t a3, uint32_t a4); } 318172 AUE_NULL UNIMPL nosys 319173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 320 size_t nbyte, int pad, \ 321 u_int32_t offset1, u_int32_t offset2); } 322174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 323 const void *buf, size_t nbyte, int pad, \ 324 u_int32_t offset1, u_int32_t offset2); } 325175 AUE_NULL UNIMPL nosys 326176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); } 327177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 328178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 329179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 330180 AUE_NULL UNIMPL nosys 331 332; Syscalls 181-199 are used by/reserved for BSD 333181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 334182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 335183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 336184 AUE_NULL UNIMPL lfs_bmapv 337185 AUE_NULL UNIMPL lfs_markv 338186 AUE_NULL UNIMPL lfs_segclean 339187 AUE_NULL UNIMPL lfs_segwait 340188 AUE_STAT STD { int freebsd32_stat(char *path, \ 341 struct stat32 *ub); } 342189 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 343 struct stat32 *ub); } 344190 AUE_LSTAT STD { int freebsd32_lstat(char *path, \ 345 struct stat32 *ub); } 346191 AUE_PATHCONF NOPROTO { int pathconf(char *path, int name); } 347192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 348193 AUE_NULL UNIMPL nosys 349194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 350 struct rlimit *rlp); } getrlimit \ 351 __getrlimit_args int 352195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 353 struct rlimit *rlp); } setrlimit \ 354 __setrlimit_args int 355196 AUE_GETDIRENTRIES STD { int freebsd32_getdirentries(int fd, \ 356 char *buf, u_int count, int32_t *basep); } 357197 AUE_MMAP COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \ 358 size_t len, int prot, int flags, int fd, \ 359 int pad, u_int32_t pos1, u_int32_t pos2); } 360198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 361 __syscall_args int 362199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 363 u_int32_t offset1, u_int32_t offset2, \ 364 int whence); } 365200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(char *path, \ 366 int pad, u_int32_t length1, \ 367 u_int32_t length2); } 368201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 369 u_int32_t length1, u_int32_t length2); } 370202 AUE_SYSCTL STD { int freebsd32_sysctl(int *name, \ 371 u_int namelen, void *old, \ 372 u_int32_t *oldlenp, void *new, \ 373 u_int32_t newlen); } 374203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \ 375 size_t len); } 376204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \ 377 size_t len); } 378205 AUE_UNDELETE NOPROTO { int undelete(char *path); } 379206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \ 380 struct timeval32 *tptr); } 381207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); } 382208 AUE_NULL UNIMPL newreboot (NetBSD) 383209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \ 384 int timeout); } 385 386; 387; The following are reserved for loadable syscalls 388; 389210 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 390211 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 391212 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 392213 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 393214 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 394215 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 395216 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 396217 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 397218 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 398219 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 399 400; 401; The following were introduced with NetBSD/4.4Lite-2 402; They are initialized by their respective modules/sysinits 403; XXX PROBLEM!! 404220 AUE_SEMCTL COMPAT7 { int freebsd32_semctl(int semid, int semnum, \ 405 int cmd, union semun32 *arg); } 406221 AUE_SEMGET NOPROTO { int semget(key_t key, int nsems, \ 407 int semflg); } 408222 AUE_SEMOP NOPROTO { int semop(int semid, struct sembuf *sops, \ 409 u_int nsops); } 410223 AUE_NULL UNIMPL semconfig 411224 AUE_MSGCTL COMPAT7 { int freebsd32_msgctl(int msqid, int cmd, \ 412 struct msqid_ds32_old *buf); } 413225 AUE_MSGGET NOPROTO { int msgget(key_t key, int msgflg); } 414226 AUE_MSGSND STD { int freebsd32_msgsnd(int msqid, void *msgp, \ 415 size_t msgsz, int msgflg); } 416227 AUE_MSGRCV STD { int freebsd32_msgrcv(int msqid, void *msgp, \ 417 size_t msgsz, long msgtyp, int msgflg); } 418228 AUE_SHMAT NOPROTO { int shmat(int shmid, void *shmaddr, \ 419 int shmflg); } 420229 AUE_SHMCTL COMPAT7 { int freebsd32_shmctl(int shmid, int cmd, \ 421 struct shmid_ds32_old *buf); } 422230 AUE_SHMDT NOPROTO { int shmdt(void *shmaddr); } 423231 AUE_SHMGET NOPROTO { int shmget(key_t key, int size, \ 424 int shmflg); } 425; 426232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \ 427 struct timespec32 *tp); } 428233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \ 429 const struct timespec32 *tp); } 430234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \ 431 struct timespec32 *tp); } 432235 AUE_NULL UNIMPL timer_create 433236 AUE_NULL UNIMPL timer_delete 434237 AUE_NULL UNIMPL timer_settime 435238 AUE_NULL UNIMPL timer_gettime 436239 AUE_NULL UNIMPL timer_getoverrun 437240 AUE_NULL STD { int freebsd32_nanosleep( \ 438 const struct timespec32 *rqtp, \ 439 struct timespec32 *rmtp); } 440241 AUE_NULL UNIMPL nosys 441242 AUE_NULL UNIMPL nosys 442243 AUE_NULL UNIMPL nosys 443244 AUE_NULL UNIMPL nosys 444245 AUE_NULL UNIMPL nosys 445246 AUE_NULL UNIMPL nosys 446247 AUE_NULL UNIMPL nosys 447248 AUE_NULL UNIMPL ntp_gettime 448249 AUE_NULL UNIMPL nosys 449; syscall numbers initially used in OpenBSD 450250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \ 451 int inherit); } 452251 AUE_RFORK NOPROTO { int rfork(int flags); } 453252 AUE_POLL NOPROTO { int openbsd_poll(struct pollfd *fds, \ 454 u_int nfds, int timeout); } 455253 AUE_ISSETUGID NOPROTO { int issetugid(void); } 456254 AUE_LCHOWN NOPROTO { int lchown(char *path, int uid, int gid); } 457255 AUE_NULL NOSTD { int freebsd32_aio_read( \ 458 struct aiocb32 *aiocbp); } 459256 AUE_NULL NOSTD { int freebsd32_aio_write( \ 460 struct aiocb32 *aiocbp); } 461257 AUE_NULL NOSTD { int freebsd32_lio_listio(int mode, \ 462 struct aiocb32 * const *acb_list, \ 463 int nent, struct sigevent *sig); } 464258 AUE_NULL UNIMPL nosys 465259 AUE_NULL UNIMPL nosys 466260 AUE_NULL UNIMPL nosys 467261 AUE_NULL UNIMPL nosys 468262 AUE_NULL UNIMPL nosys 469263 AUE_NULL UNIMPL nosys 470264 AUE_NULL UNIMPL nosys 471265 AUE_NULL UNIMPL nosys 472266 AUE_NULL UNIMPL nosys 473267 AUE_NULL UNIMPL nosys 474268 AUE_NULL UNIMPL nosys 475269 AUE_NULL UNIMPL nosys 476270 AUE_NULL UNIMPL nosys 477271 AUE_NULL UNIMPL nosys 478272 AUE_O_GETDENTS NOPROTO { int getdents(int fd, char *buf, \ 479 size_t count); } 480273 AUE_NULL UNIMPL nosys 481274 AUE_LCHMOD NOPROTO { int lchmod(char *path, mode_t mode); } 482275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \ 483 gid_t gid); } netbsd_lchown \ 484 lchown_args int 485276 AUE_LUTIMES STD { int freebsd32_lutimes(char *path, \ 486 struct timeval32 *tptr); } 487277 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 488 int flags); } netbsd_msync msync_args int 489278 AUE_STAT NOPROTO { int nstat(char *path, struct nstat *ub); } 490279 AUE_FSTAT NOPROTO { int nfstat(int fd, struct nstat *sb); } 491280 AUE_LSTAT NOPROTO { int nlstat(char *path, struct nstat *ub); } 492281 AUE_NULL UNIMPL nosys 493282 AUE_NULL UNIMPL nosys 494283 AUE_NULL UNIMPL nosys 495284 AUE_NULL UNIMPL nosys 496285 AUE_NULL UNIMPL nosys 497286 AUE_NULL UNIMPL nosys 498287 AUE_NULL UNIMPL nosys 499288 AUE_NULL UNIMPL nosys 500; 289 and 290 from NetBSD (OpenBSD: 267 and 268) 501289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \ 502 struct iovec32 *iovp, \ 503 u_int iovcnt, \ 504 u_int32_t offset1, u_int32_t offset2); } 505290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 506 struct iovec32 *iovp, \ 507 u_int iovcnt, \ 508 u_int32_t offset1, u_int32_t offset2); } 509291 AUE_NULL UNIMPL nosys 510292 AUE_NULL UNIMPL nosys 511293 AUE_NULL UNIMPL nosys 512294 AUE_NULL UNIMPL nosys 513295 AUE_NULL UNIMPL nosys 514296 AUE_NULL UNIMPL nosys 515; XXX 297 is 300 in NetBSD 516297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \ 517 const struct fhandle *u_fhp, \ 518 struct statfs32 *buf); } 519298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \ 520 int flags); } 521299 AUE_FHSTAT NOPROTO { int fhstat(const struct fhandle *u_fhp, \ 522 struct stat *sb); } 523; syscall numbers for FreeBSD 524300 AUE_NULL NOPROTO { int modnext(int modid); } 525301 AUE_NULL STD { int freebsd32_modstat(int modid, \ 526 struct module_stat32* stat); } 527302 AUE_NULL NOPROTO { int modfnext(int modid); } 528303 AUE_NULL NOPROTO { int modfind(const char *name); } 529304 AUE_MODLOAD NOPROTO { int kldload(const char *file); } 530305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); } 531306 AUE_NULL NOPROTO { int kldfind(const char *file); } 532307 AUE_NULL NOPROTO { int kldnext(int fileid); } 533308 AUE_NULL NOPROTO { int kldstat(int fileid, \ 534 struct kld_file_stat* stat); } 535309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); } 536310 AUE_GETSID NOPROTO { int getsid(pid_t pid); } 537311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 538 uid_t suid); } 539312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 540 gid_t sgid); } 541313 AUE_NULL OBSOL signanosleep 542314 AUE_NULL NOSTD { int freebsd32_aio_return( \ 543 struct aiocb32 *aiocbp); } 544315 AUE_NULL NOSTD { int freebsd32_aio_suspend( \ 545 struct aiocb32 * const * aiocbp, int nent, \ 546 const struct timespec32 *timeout); } 547316 AUE_NULL NOSTD { int freebsd32_aio_cancel(int fd, \ 548 struct aiocb32 *aiocbp); } 549317 AUE_NULL NOSTD { int freebsd32_aio_error( \ 550 struct aiocb32 *aiocbp); } 551318 AUE_NULL NOSTD { int freebsd32_oaio_read( \ 552 struct oaiocb32 *aiocbp); } 553319 AUE_NULL NOSTD { int freebsd32_oaio_write( \ 554 struct oaiocb32 *aiocbp); } 555320 AUE_NULL NOSTD { int freebsd32_olio_listio(int mode, \ 556 struct oaiocb32 * const *acb_list, \ 557 int nent, struct osigevent32 *sig); } 558321 AUE_NULL NOPROTO { int yield(void); } 559322 AUE_NULL OBSOL thr_sleep 560323 AUE_NULL OBSOL thr_wakeup 561324 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 562325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 563326 AUE_GETCWD NOPROTO { int __getcwd(u_char *buf, u_int buflen); } 564 565327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \ 566 const struct sched_param *param); } 567328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \ 568 struct sched_param *param); } 569 570329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \ 571 int policy, \ 572 const struct sched_param *param); } 573330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); } 574 575331 AUE_NULL NOPROTO { int sched_yield (void); } 576332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); } 577333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); } 578334 AUE_NULL NOPROTO { int sched_rr_get_interval (pid_t pid, \ 579 struct timespec *interval); } 580335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); } 581336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 582 u_int32_t offset1, u_int32_t offset2, \ 583 size_t nbytes, struct sf_hdtr32 *hdtr, \ 584 off_t *sbytes, int flags); } 585337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 586 void *data); } 587338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); } 588339 AUE_NULL UNIMPL pioctl 589340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 590 const sigset_t *set, sigset_t *oset); } 591341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 592342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 593 struct sigaction32 *act, \ 594 struct sigaction32 *oact); } 595343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 596344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 597 const struct freebsd4_freebsd32_ucontext *sigcntxp); } 598345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 599 siginfo_t *info, \ 600 const struct timespec *timeout); } 601346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 602 siginfo_t *info); } 603347 AUE_NULL NOPROTO { int __acl_get_file(const char *path, \ 604 acl_type_t type, struct acl *aclp); } 605348 AUE_NULL NOPROTO { int __acl_set_file(const char *path, \ 606 acl_type_t type, struct acl *aclp); } 607349 AUE_NULL NOPROTO { int __acl_get_fd(int filedes, \ 608 acl_type_t type, struct acl *aclp); } 609350 AUE_NULL NOPROTO { int __acl_set_fd(int filedes, \ 610 acl_type_t type, struct acl *aclp); } 611351 AUE_NULL NOPROTO { int __acl_delete_file(const char *path, \ 612 acl_type_t type); } 613352 AUE_NULL NOPROTO { int __acl_delete_fd(int filedes, \ 614 acl_type_t type); } 615353 AUE_NULL NOPROTO { int __acl_aclcheck_file(const char *path, \ 616 acl_type_t type, struct acl *aclp); } 617354 AUE_NULL NOPROTO { int __acl_aclcheck_fd(int filedes, \ 618 acl_type_t type, struct acl *aclp); } 619355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 620 const char *filename, int attrnamespace, \ 621 const char *attrname); } 622356 AUE_EXTATTR_SET_FILE NOPROTO { int extattr_set_file( \ 623 const char *path, int attrnamespace, \ 624 const char *attrname, void *data, \ 625 size_t nbytes); } 626357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 627 const char *path, int attrnamespace, \ 628 const char *attrname, void *data, \ 629 size_t nbytes); } 630358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 631 const char *path, int attrnamespace, \ 632 const char *attrname); } 633359 AUE_NULL NOSTD { int freebsd32_aio_waitcomplete( \ 634 struct aiocb32 **aiocbp, \ 635 struct timespec32 *timeout); } 636360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 637 uid_t *suid); } 638361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 639 gid_t *sgid); } 640362 AUE_KQUEUE NOPROTO { int kqueue(void); } 641363 AUE_NULL STD { int freebsd32_kevent(int fd, \ 642 const struct kevent32 *changelist, \ 643 int nchanges, \ 644 struct kevent32 *eventlist, int nevents, \ 645 const struct timespec32 *timeout); } 646364 AUE_NULL UNIMPL __cap_get_proc 647365 AUE_NULL UNIMPL __cap_set_proc 648366 AUE_NULL UNIMPL __cap_get_fd 649367 AUE_NULL UNIMPL __cap_get_file 650368 AUE_NULL UNIMPL __cap_set_fd 651369 AUE_NULL UNIMPL __cap_set_file 652370 AUE_NULL UNIMPL nosys 653371 AUE_EXTATTR_SET_FD NOPROTO { int extattr_set_fd(int fd, \ 654 int attrnamespace, const char *attrname, \ 655 void *data, size_t nbytes); } 656372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 657 int attrnamespace, const char *attrname, \ 658 void *data, size_t nbytes); } 659373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 660 int attrnamespace, \ 661 const char *attrname); } 662374 AUE_NULL NOPROTO { int __setugid(int flag); } 663375 AUE_NULL UNIMPL nfsclnt 664376 AUE_EACCESS NOPROTO { int eaccess(char *path, int flags); } 665377 AUE_NULL UNIMPL afs_syscall 666378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 667 unsigned int iovcnt, int flags); } 668379 AUE_NULL UNIMPL kse_exit 669380 AUE_NULL UNIMPL kse_wakeup 670381 AUE_NULL UNIMPL kse_create 671382 AUE_NULL UNIMPL kse_thr_interrupt 672383 AUE_NULL UNIMPL kse_release 673384 AUE_NULL UNIMPL __mac_get_proc 674385 AUE_NULL UNIMPL __mac_set_proc 675386 AUE_NULL UNIMPL __mac_get_fd 676387 AUE_NULL UNIMPL __mac_get_file 677388 AUE_NULL UNIMPL __mac_set_fd 678389 AUE_NULL UNIMPL __mac_set_file 679390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 680 char *value, int len); } 681391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, int flags); } 682392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 683 int count); } 684393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 685 u_int32_t offset1, u_int32_t offset2, \ 686 size_t nbytes, struct sf_hdtr32 *hdtr, \ 687 off_t *sbytes, int flags); } 688394 AUE_NULL UNIMPL mac_syscall 689395 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs *buf, \ 690 long bufsize, int flags); } 691396 AUE_STATFS NOPROTO { int statfs(char *path, \ 692 struct statfs *buf); } 693397 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs *buf); } 694398 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 695 struct statfs *buf); } 696399 AUE_NULL UNIMPL nosys 697; XXX implement these? 698400 AUE_NULL UNIMPL ksem_close 699401 AUE_NULL UNIMPL ksem_post 700402 AUE_NULL UNIMPL ksem_wait 701403 AUE_NULL UNIMPL ksem_trywait 702404 AUE_NULL UNIMPL ksem_init 703405 AUE_NULL UNIMPL ksem_open 704406 AUE_NULL UNIMPL ksem_unlink 705407 AUE_NULL UNIMPL ksem_getvalue 706408 AUE_NULL UNIMPL ksem_destroy 707409 AUE_NULL UNIMPL __mac_get_pid 708410 AUE_NULL UNIMPL __mac_get_link 709411 AUE_NULL UNIMPL __mac_set_link 710412 AUE_EXTATTR_SET_LINK NOPROTO { int extattr_set_link( \ 711 const char *path, int attrnamespace, \ 712 const char *attrname, void *data, \ 713 size_t nbytes); } 714413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \ 715 const char *path, int attrnamespace, \ 716 const char *attrname, void *data, \ 717 size_t nbytes); } 718414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \ 719 const char *path, int attrnamespace, \ 720 const char *attrname); } 721415 AUE_NULL UNIMPL __mac_execve 722416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 723 struct sigaction32 *act, \ 724 struct sigaction32 *oact); } 725417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 726 const struct freebsd32_ucontext *sigcntxp); } 727418 AUE_NULL UNIMPL __xstat 728419 AUE_NULL UNIMPL __xfstat 729420 AUE_NULL UNIMPL __xlstat 730421 AUE_NULL STD { int freebsd32_getcontext( \ 731 struct freebsd32_ucontext *ucp); } 732422 AUE_NULL STD { int freebsd32_setcontext( \ 733 const struct freebsd32_ucontext *ucp); } 734423 AUE_NULL STD { int freebsd32_swapcontext( \ 735 struct freebsd32_ucontext *oucp, \ 736 const struct freebsd32_ucontext *ucp); } 737424 AUE_SWAPOFF UNIMPL swapoff 738425 AUE_NULL NOPROTO { int __acl_get_link(const char *path, \ 739 acl_type_t type, struct acl *aclp); } 740426 AUE_NULL NOPROTO { int __acl_set_link(const char *path, \ 741 acl_type_t type, struct acl *aclp); } 742427 AUE_NULL NOPROTO { int __acl_delete_link(const char *path, \ 743 acl_type_t type); } 744428 AUE_NULL NOPROTO { int __acl_aclcheck_link(const char *path, \ 745 acl_type_t type, struct acl *aclp); } 746429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 747 int *sig); } 748430 AUE_NULL UNIMPL thr_create; 749431 AUE_NULL NOPROTO { void thr_exit(long *state); } 750432 AUE_NULL NOPROTO { int thr_self(long *id); } 751433 AUE_NULL NOPROTO { int thr_kill(long id, int sig); } 752434 AUE_NULL STD { int freebsd32_umtx_lock(struct umtx *umtx); } 753435 AUE_NULL STD { int freebsd32_umtx_unlock(struct umtx *umtx); } 754436 AUE_NULL NOPROTO { int jail_attach(int jid); } 755437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \ 756 int attrnamespace, void *data, \ 757 size_t nbytes); } 758438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \ 759 const char *path, int attrnamespace, \ 760 void *data, size_t nbytes); } 761439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \ 762 const char *path, int attrnamespace, \ 763 void *data, size_t nbytes); } 764440 AUE_NULL UNIMPL kse_switchin 765441 AUE_NULL UNIMPL ksem_timedwait 766442 AUE_NULL STD { int freebsd32_thr_suspend( \ 767 const struct timespec32 *timeout); } 768443 AUE_NULL NOPROTO { int thr_wake(long id); } 769444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 770445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 771 u_int length); } 772446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 773 u_int length); } 774447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 775448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 776449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 777450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 778451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 779 struct auditinfo_addr *auditinfo_addr, \ 780 u_int length); } 781452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 782 struct auditinfo_addr *auditinfo_addr, \ 783 u_int length); } 784453 AUE_AUDITCTL NOPROTO { int auditctl(char *path); } 785454 AUE_NULL STD { int freebsd32_umtx_op(void *obj, int op,\ 786 u_long val, void *uaddr, \ 787 void *uaddr2); } 788455 AUE_NULL STD { int freebsd32_thr_new( \ 789 struct thr_param32 *param, \ 790 int param_size); } 791456 AUE_NULL NOPROTO { int sigqueue(pid_t pid, int signum, \ 792 void *value); } 793457 AUE_NULL UNIMPL kmq_open 794458 AUE_NULL UNIMPL kmq_setattr 795459 AUE_NULL UNIMPL kmq_timedreceive 796460 AUE_NULL UNIMPL kmq_timedsend 797461 AUE_NULL UNIMPL kmq_notify 798462 AUE_NULL UNIMPL kmq_unlink 799463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 800464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 801465 AUE_NULL NOSTD { int freebsd32_aio_fsync(int op, \ 802 struct aiocb32 *aiocbp); } 803466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 804 lwpid_t lwpid, struct rtprio *rtp); } 805467 AUE_NULL UNIMPL nosys 806468 AUE_NULL UNIMPL nosys 807469 AUE_NULL UNIMPL __getpath_fromfd 808470 AUE_NULL UNIMPL __getpath_fromaddr 809471 AUE_NULL NOPROTO { int sctp_peeloff(int sd, uint32_t name); } 810472 AUE_NULL NOPROTO { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ 811 caddr_t to, __socklen_t tolen, \ 812 struct sctp_sndrcvinfo *sinfo, int flags); } 813473 AUE_NULL NOPROTO { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 814 caddr_t to, __socklen_t tolen, \ 815 struct sctp_sndrcvinfo *sinfo, int flags); } 816474 AUE_NULL NOPROTO { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 817 struct sockaddr * from, __socklen_t *fromlenaddr, \ 818 struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 819#ifdef PAD64_REQUIRED 820475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 821 void *buf,size_t nbyte, \ 822 int pad, \ 823 u_int32_t offset1, u_int32_t offset2); } 824476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 825 const void *buf, size_t nbyte, \ 826 int pad, \ 827 u_int32_t offset1, u_int32_t offset2); } 828477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 829 size_t len, int prot, int flags, int fd, \ 830 int pad, \ 831 u_int32_t pos1, u_int32_t pos2); } 832478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 833 int pad, \ 834 u_int32_t offset1, u_int32_t offset2, \ 835 int whence); } 836479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 837 int pad, \ 838 u_int32_t length1, u_int32_t length2); } 839480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 840 int pad, \ 841 u_int32_t length1, u_int32_t length2); } 842#else 843475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 844 void *buf,size_t nbyte, \ 845 u_int32_t offset1, u_int32_t offset2); } 846476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 847 const void *buf, size_t nbyte, \ 848 u_int32_t offset1, u_int32_t offset2); } 849477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 850 size_t len, int prot, int flags, int fd, \ 851 u_int32_t pos1, u_int32_t pos2); } 852478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 853 u_int32_t offset1, u_int32_t offset2, \ 854 int whence); } 855479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 856 u_int32_t length1, u_int32_t length2); } 857480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 858 u_int32_t length1, u_int32_t length2); } 859#endif 860481 AUE_KILL NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 861482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \ 862 mode_t mode); } 863483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 864484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 865#ifdef PAD64_REQUIRED 866485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 867 int pad, \ 868 u_int32_t id1, u_int32_t id2, \ 869 cpusetid_t setid); } 870#else 871485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 872 u_int32_t id1, u_int32_t id2, \ 873 cpusetid_t setid); } 874#endif 875486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 876 cpuwhich_t which, \ 877 u_int32_t id1, u_int32_t id2, \ 878 cpusetid_t *setid); } 879487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 880 cpulevel_t level, cpuwhich_t which, \ 881 u_int32_t id1, u_int32_t id2, \ 882 size_t cpusetsize, \ 883 cpuset_t *mask); } 884488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 885 cpulevel_t level, cpuwhich_t which, \ 886 u_int32_t id1, u_int32_t id2, \ 887 size_t cpusetsize, \ 888 const cpuset_t *mask); } 889489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, char *path, int mode, \ 890 int flag); } 891490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 892 mode_t mode, int flag); } 893491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, char *path, uid_t uid, \ 894 gid_t gid, int flag); } 895492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 896 u_int32_t *argv, u_int32_t *envv); } 897493 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, char *path, \ 898 struct stat *buf, int flag); } 899494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, char *path, \ 900 struct timeval *times); } 901495 AUE_LINKAT NOPROTO { int linkat(int fd1, char *path1, int fd2, \ 902 char *path2, int flag); } 903496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, char *path, \ 904 mode_t mode); } 905497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, char *path, \ 906 mode_t mode); } 907498 AUE_MKNODAT NOPROTO { int mknodat(int fd, char *path, \ 908 mode_t mode, dev_t dev); } 909499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \ 910 mode_t mode); } 911500 AUE_READLINKAT NOPROTO { int readlinkat(int fd, char *path, char *buf, \ 912 size_t bufsize); } 913501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, char *old, int newfd, \ 914 const char *new); } 915502 AUE_SYMLINKAT NOPROTO { int symlinkat(char *path1, int fd, \ 916 char *path2); } 917503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, char *path, \ 918 int flag); } 919504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 920; 505 is initialised by the kgssapi code, if present. 921505 AUE_NULL UNIMPL gssd_syscall 922506 AUE_NULL STD { int freebsd32_jail_get(struct iovec32 *iovp, \ 923 unsigned int iovcnt, int flags); } 924507 AUE_NULL STD { int freebsd32_jail_set(struct iovec32 *iovp, \ 925 unsigned int iovcnt, int flags); } 926508 AUE_NULL NOPROTO { int jail_remove(int jid); } 927509 AUE_CLOSEFROM NOPROTO { int closefrom(int lowfd); } 928510 AUE_SEMCTL STD { int freebsd32_semctl(int semid, int semnum, \ 929 int cmd, union semun32 *arg); } 930511 AUE_MSGCTL STD { int freebsd32_msgctl(int msqid, int cmd, \ 931 struct msqid_ds32 *buf); } 932512 AUE_SHMCTL STD { int freebsd32_shmctl(int shmid, int cmd, \ 933 struct shmid_ds32 *buf); } 934513 AUE_LPATHCONF NOPROTO { int lpathconf(char *path, int name); } 935514 AUE_CAP_NEW UNIMPL cap_new 936515 AUE_CAP_GETRIGHTS UNIMPL cap_getrights 937516 AUE_CAP_ENTER UNIMPL cap_enter 938517 AUE_CAP_GETMODE UNIMPL cap_getmode 939518 AUE_PDFORK UNIMPL pdfork 940519 AUE_PDKILL UNIMPL pdkill 941520 AUE_PDGETPID UNIMPL pdgetpid 942521 AUE_PDWAIT UNIMPL pdwait 943522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \ 944 fd_set *ou, fd_set *ex, \ 945 const struct timespec32 *ts, \ 946 const sigset_t *sm); } 947