syscalls.master revision 194262
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 194262 2009-06-15 20:38:55Z jhb $ 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 nargs 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, CPT_NOA, LIBCOMPAT, 16; NODEF, NOARGS, NOPROTO, NOIMPL, NOSTD, COMPAT4 17; name psuedo-prototype of syscall routine 18; If one of the following alts is different, then all appear: 19; altname name of system call if different 20; alttag name of args struct tag if different from [o]`name'"_args" 21; altrtyp return type if not int (bogus - syscalls always return int) 22; for UNIMPL/OBSOL, name continues with comments 23 24; types: 25; STD always included 26; COMPAT included on COMPAT #ifdef 27; COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat) 28; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 29; OBSOL obsolete, not included in system, only specifies name 30; UNIMPL not implemented, placeholder only 31; NOSTD implemented but as a lkm that can be statically 32; compiled in; sysent entry will be filled with lkmsys 33; so the SYSCALL_MODULE macro works 34; NOARGS same as STD except do not create structure in sys/sysproto.h 35; NODEF same as STD except only have the entry in the syscall table 36; added. Meaning - do not create structure or function 37; prototype in sys/sysproto.h 38; NOPROTO same as STD except do not create structure or 39; function prototype in sys/sysproto.h. Does add a 40; definition to syscall.h besides adding a sysent. 41 42; #ifdef's, etc. may be included, and are copied to the output files. 43 44#include <sys/param.h> 45#include <sys/sysent.h> 46#include <sys/sysproto.h> 47#include <sys/mount.h> 48#include <sys/socket.h> 49#include <compat/freebsd32/freebsd32.h> 50#include <compat/freebsd32/freebsd32_proto.h> 51 52; Reserved/unimplemented system calls in the range 0-150 inclusive 53; are reserved for use in future Berkeley releases. 54; Additional system calls implemented in vendor and other 55; redistributions should be placed in the reserved range at the end 56; of the current calls. 57 580 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int 591 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \ 60 sys_exit_args void 612 AUE_FORK NOPROTO { int fork(void); } 623 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \ 63 size_t nbyte); } 644 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \ 65 size_t nbyte); } 665 AUE_OPEN_RWTC NOPROTO { int open(char *path, int flags, \ 67 int mode); } 686 AUE_CLOSE NOPROTO { int close(int fd); } 697 AUE_WAIT4 STD { int freebsd32_wait4(int pid, int *status, \ 70 int options, struct rusage32 *rusage); } 718 AUE_CREAT OBSOL old creat 729 AUE_LINK NOPROTO { int link(char *path, char *link); } 7310 AUE_UNLINK NOPROTO { int unlink(char *path); } 7411 AUE_NULL OBSOL execv 7512 AUE_CHDIR NOPROTO { int chdir(char *path); } 7613 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 7714 AUE_MKNOD NOPROTO { int mknod(char *path, int mode, int dev); } 7815 AUE_CHMOD NOPROTO { int chmod(char *path, int mode); } 7916 AUE_CHOWN NOPROTO { int chown(char *path, int uid, int gid); } 8017 AUE_NULL NOPROTO { int obreak(char *nsize); } break \ 81 obreak_args int 8218 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 83 struct statfs32 *buf, long bufsize, \ 84 int flags); } 8519 AUE_LSEEK OBSOL olseek 8620 AUE_GETPID NOPROTO { pid_t getpid(void); } 8721 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \ 88 int flags, caddr_t data); } 8922 AUE_UMOUNT NOPROTO { int unmount(char *path, int flags); } 9023 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 9124 AUE_GETUID NOPROTO { uid_t getuid(void); } 9225 AUE_GETEUID NOPROTO { uid_t geteuid(void); } 9326 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \ 94 caddr_t addr, int data); } 9527 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \ 96 int flags); } 9728 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \ 98 int flags); } 9929 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, u_int32_t buf, \ 100 u_int32_t len, int flags, u_int32_t from, \ 101 u_int32_t fromlenaddr); } 10230 AUE_ACCEPT NOPROTO { int accept(int s, caddr_t name, \ 103 int *anamelen); } 10431 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, caddr_t asa, \ 105 int *alen); } 10632 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, caddr_t asa, \ 107 int *alen); } 10833 AUE_ACCESS NOPROTO { int access(char *path, int flags); } 10934 AUE_CHFLAGS NOPROTO { int chflags(char *path, int flags); } 11035 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, int flags); } 11136 AUE_SYNC NOPROTO { int sync(void); } 11237 AUE_KILL NOPROTO { int kill(int pid, int signum); } 11338 AUE_STAT UNIMPL ostat 11439 AUE_GETPPID NOPROTO { pid_t getppid(void); } 11540 AUE_LSTAT UNIMPL olstat 11641 AUE_DUP NOPROTO { int dup(u_int fd); } 11742 AUE_PIPE NOPROTO { int pipe(void); } 11843 AUE_GETEGID NOPROTO { gid_t getegid(void); } 11944 AUE_PROFILE NOPROTO { int profil(caddr_t samples, size_t size, \ 120 size_t offset, u_int scale); } 12145 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \ 122 int facs, int pid); } 12346 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \ 124 struct osigaction32 *nsa, \ 125 struct osigaction32 *osa); } 12647 AUE_GETGID NOPROTO { gid_t getgid(void); } 12748 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \ 128 osigset_t mask); } 12949 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \ 130 u_int namelen); } 13150 AUE_SETLOGIN NOPROTO { int setlogin(char *namebuf); } 13251 AUE_ACCT NOPROTO { int acct(char *path); } 13352 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); } 13453 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \ 135 struct sigaltstack32 *ss, \ 136 struct sigaltstack32 *oss); } 13754 AUE_NULL STD { int freebsd32_ioctl(int fd, uint32_t com, \ 138 struct md_ioctl32 *data); } 13955 AUE_REBOOT NOPROTO { int reboot(int opt); } 14056 AUE_REVOKE NOPROTO { int revoke(char *path); } 14157 AUE_SYMLINK NOPROTO { int symlink(char *path, char *link); } 14258 AUE_READLINK NOPROTO { ssize_t readlink(char *path, char *buf, \ 143 size_t count); } 14459 AUE_EXECVE STD { int freebsd32_execve(char *fname, \ 145 u_int32_t *argv, u_int32_t *envv); } 14660 AUE_UMASK NOPROTO { int umask(int newmask); } umask \ 147 umask_args int 14861 AUE_CHROOT NOPROTO { int chroot(char *path); } 14962 AUE_FSTAT OBSOL ofstat 15063 AUE_NULL OBSOL ogetkerninfo 15164 AUE_NULL OBSOL ogetpagesize 15265 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 153 int flags); } 15466 AUE_VFORK NOPROTO { int vfork(void); } 15567 AUE_NULL OBSOL vread 15668 AUE_NULL OBSOL vwrite 15769 AUE_SBRK NOPROTO { int sbrk(int incr); } 15870 AUE_SSTK NOPROTO { int sstk(int incr); } 15971 AUE_MMAP OBSOL ommap 16072 AUE_O_VADVISE NOPROTO { int ovadvise(int anom); } vadvise \ 161 ovadvise_args int 16273 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); } 16374 AUE_MPROTECT NOPROTO { int mprotect(const void *addr, \ 164 size_t len, int prot); } 16575 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 166 int behav); } 16776 AUE_NULL OBSOL vhangup 16877 AUE_NULL OBSOL vlimit 16978 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \ 170 char *vec); } 17179 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \ 172 gid_t *gidset); } 17380 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \ 174 gid_t *gidset); } 17581 AUE_GETPGRP NOPROTO { int getpgrp(void); } 17682 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 17783 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \ 178 struct itimerval32 *itv, \ 179 struct itimerval32 *oitv); } 18084 AUE_NULL OBSOL owait 181; XXX implement 18285 AUE_SWAPON NOPROTO { int swapon(char *name); } 18386 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \ 184 struct itimerval32 *itv); } 18587 AUE_O_GETHOSTNAME OBSOL ogethostname 18688 AUE_O_SETHOSTNAME OBSOL osethostname 18789 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); } 18890 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 18991 AUE_NULL UNIMPL getdopt 19092 AUE_FCNTL NOPROTO { int fcntl(int fd, int cmd, long arg); } 19193 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \ 192 fd_set *ou, fd_set *ex, \ 193 struct timeval32 *tv); } 194; XXX need to override for big-endian - little-endian should work fine. 19594 AUE_NULL UNIMPL setdopt 19695 AUE_FSYNC NOPROTO { int fsync(int fd); } 19796 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 198 int prio); } 19997 AUE_SOCKET NOPROTO { int socket(int domain, int type, \ 200 int protocol); } 20198 AUE_CONNECT NOPROTO { int connect(int s, caddr_t name, \ 202 int namelen); } 20399 AUE_NULL OBSOL oaccept 204100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); } 205101 AUE_NULL OBSOL osend 206102 AUE_NULL OBSOL orecv 207103 AUE_NULL OBSOL osigreturn 208104 AUE_BIND NOPROTO { int bind(int s, caddr_t name, \ 209 int namelen); } 210105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \ 211 int name, caddr_t val, int valsize); } 212106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); } 213107 AUE_NULL OBSOL vtimes 214108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \ 215 struct sigvec32 *nsv, \ 216 struct sigvec32 *osv); } 217109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); } 218110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); } 219111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); } 220112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \ 221 struct sigstack32 *nss, \ 222 struct sigstack32 *oss); } 223113 AUE_NULL OBSOL orecvmsg 224114 AUE_NULL OBSOL osendmsg 225115 AUE_NULL OBSOL vtrace 226116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \ 227 struct timeval32 *tp, \ 228 struct timezone *tzp); } 229117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \ 230 struct rusage32 *rusage); } 231118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \ 232 int name, caddr_t val, int *avalsize); } 233119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 234120 AUE_READV STD { int freebsd32_readv(int fd, \ 235 struct iovec32 *iovp, u_int iovcnt); } 236121 AUE_WRITEV STD { int freebsd32_writev(int fd, \ 237 struct iovec32 *iovp, u_int iovcnt); } 238122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \ 239 struct timeval32 *tv, \ 240 struct timezone *tzp); } 241123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 242124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 243125 AUE_RECVFROM OBSOL orecvfrom 244126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); } 245127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); } 246128 AUE_RENAME NOPROTO { int rename(char *from, char *to); } 247129 AUE_TRUNCATE OBSOL otruncate 248130 AUE_FTRUNCATE OBSOL ftruncate 249131 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 250132 AUE_MKFIFO NOPROTO { int mkfifo(char *path, int mode); } 251133 AUE_SENDTO NOPROTO { int sendto(int s, caddr_t buf, \ 252 size_t len, int flags, caddr_t to, \ 253 int tolen); } 254134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); } 255135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \ 256 int protocol, int *rsv); } 257136 AUE_MKDIR NOPROTO { int mkdir(char *path, int mode); } 258137 AUE_RMDIR NOPROTO { int rmdir(char *path); } 259138 AUE_UTIMES STD { int freebsd32_utimes(char *path, \ 260 struct timeval32 *tptr); } 261139 AUE_NULL OBSOL 4.2 sigreturn 262140 AUE_ADJTIME STD { int freebsd32_adjtime( \ 263 struct timeval32 *delta, \ 264 struct timeval32 *olddelta); } 265141 AUE_GETPEERNAME OBSOL ogetpeername 266142 AUE_SYSCTL OBSOL ogethostid 267143 AUE_SYSCTL OBSOL sethostid 268144 AUE_GETRLIMIT OBSOL getrlimit 269145 AUE_SETRLIMIT OBSOL setrlimit 270146 AUE_KILLPG OBSOL killpg 271147 AUE_SETSID NOPROTO { int setsid(void); } 272148 AUE_QUOTACTL NOPROTO { int quotactl(char *path, int cmd, int uid, \ 273 caddr_t arg); } 274149 AUE_O_QUOTA OBSOL oquota 275150 AUE_GETSOCKNAME OBSOL ogetsockname 276 277; Syscalls 151-180 inclusive are reserved for vendor-specific 278; system calls. (This includes various calls added for compatibity 279; with other Unix variants.) 280; Some of these calls are now supported by BSD... 281151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 282152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 283153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 284; 154 is initialised by the NLM code, if present. 285154 AUE_NULL UNIMPL nlm_syscall 286; 155 is initialized by the NFS code, if present. 287; XXX this is a problem!!! 288155 AUE_NFS_SVC UNIMPL nfssvc 289156 AUE_GETDIRENTRIES OBSOL ogetdirentries 290157 AUE_STATFS COMPAT4 { int freebsd32_statfs(char *path, \ 291 struct statfs32 *buf); } 292158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \ 293 struct statfs32 *buf); } 294159 AUE_NULL UNIMPL nosys 295160 AUE_LGETFH UNIMPL lgetfh 296161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \ 297 struct fhandle *fhp); } 298162 AUE_NULL OBSOL getdomainname 299163 AUE_NULL OBSOL setdomainname 300164 AUE_NULL OBSOL uname 301165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); } 302166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ 303 struct rtprio *rtp); } 304167 AUE_NULL UNIMPL nosys 305168 AUE_NULL UNIMPL nosys 306169 AUE_SEMSYS STD { int freebsd32_semsys(int which, int a2, \ 307 int a3, int a4, int a5); } 308170 AUE_MSGSYS STD { int freebsd32_msgsys(int which, int a2, \ 309 int a3, int a4, int a5, int a6); } 310171 AUE_SHMSYS STD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \ 311 uint32_t a3, uint32_t a4); } 312172 AUE_NULL UNIMPL nosys 313173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \ 314 size_t nbyte, int pad, \ 315 u_int32_t offsetlo, u_int32_t offsethi); } 316; XXX note - bigendian is different 317174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \ 318 const void *buf, size_t nbyte, int pad, \ 319 u_int32_t offsetlo, u_int32_t offsethi); } 320; XXX note - bigendian is different 321175 AUE_NULL UNIMPL nosys 322176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); } 323177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 324178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 325179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 326180 AUE_NULL UNIMPL nosys 327 328; Syscalls 181-199 are used by/reserved for BSD 329181 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 330182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); } 331183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); } 332184 AUE_NULL UNIMPL lfs_bmapv 333185 AUE_NULL UNIMPL lfs_markv 334186 AUE_NULL UNIMPL lfs_segclean 335187 AUE_NULL UNIMPL lfs_segwait 336188 AUE_STAT STD { int freebsd32_stat(char *path, \ 337 struct stat32 *ub); } 338189 AUE_FSTAT STD { int freebsd32_fstat(int fd, \ 339 struct stat32 *ub); } 340190 AUE_LSTAT STD { int freebsd32_lstat(char *path, \ 341 struct stat32 *ub); } 342191 AUE_PATHCONF NOPROTO { int pathconf(char *path, int name); } 343192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); } 344193 AUE_NULL UNIMPL nosys 345194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \ 346 struct rlimit *rlp); } getrlimit \ 347 __getrlimit_args int 348195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \ 349 struct rlimit *rlp); } setrlimit \ 350 __setrlimit_args int 351196 AUE_GETDIRENTRIES STD { int freebsd32_getdirentries(int fd, \ 352 char *buf, u_int count, int32_t *basep); } 353197 AUE_MMAP COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \ 354 size_t len, int prot, int flags, int fd, \ 355 int pad, u_int32_t poslo, \ 356 u_int32_t poshi); } 357198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 358 __syscall_args int 359; XXX note - bigendian is different 360199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \ 361 u_int32_t offsetlo, u_int32_t offsethi, \ 362 int whence); } 363; XXX note - bigendian is different 364200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(char *path, \ 365 int pad, u_int32_t lengthlo, \ 366 u_int32_t lengthhi); } 367; XXX note - bigendian is different 368201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \ 369 u_int32_t lengthlo, u_int32_t lengthhi); } 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 thier respective modules/sysinits 403; XXX PROBLEM!! 404220 AUE_SEMCTL STD { 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 STD { int freebsd32_msgctl(int msqid, int cmd, \ 412 struct msqid_ds32 *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 STD { int freebsd32_shmctl(int shmid, int cmd, \ 421 struct shmid_ds *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, off_t offset); } 504; XXX note - bigendian is different 505290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \ 506 struct iovec32 *iovp, \ 507 u_int iovcnt, off_t offset); } 508; XXX note - bigendian is different 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); } 581; XXX note - bigendian is different 582336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \ 583 u_int32_t offsetlo, u_int32_t offsethi, \ 584 size_t nbytes, struct sf_hdtr32 *hdtr, \ 585 off_t *sbytes, int flags); } 586337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \ 587 void *data); } 588338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); } 589339 AUE_NULL UNIMPL pioctl 590340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \ 591 const sigset_t *set, sigset_t *oset); } 592341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); } 593342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \ 594 struct sigaction32 *act, \ 595 struct sigaction32 *oact); } 596343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); } 597344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \ 598 const struct freebsd4_freebsd32_ucontext *sigcntxp); } 599345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \ 600 siginfo_t *info, \ 601 const struct timespec *timeout); } 602346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \ 603 siginfo_t *info); } 604347 AUE_NULL NOPROTO { int __acl_get_file(const char *path, \ 605 acl_type_t type, struct acl *aclp); } 606348 AUE_NULL NOPROTO { int __acl_set_file(const char *path, \ 607 acl_type_t type, struct acl *aclp); } 608349 AUE_NULL NOPROTO { int __acl_get_fd(int filedes, \ 609 acl_type_t type, struct acl *aclp); } 610350 AUE_NULL NOPROTO { int __acl_set_fd(int filedes, \ 611 acl_type_t type, struct acl *aclp); } 612351 AUE_NULL NOPROTO { int __acl_delete_file(const char *path, \ 613 acl_type_t type); } 614352 AUE_NULL NOPROTO { int __acl_delete_fd(int filedes, \ 615 acl_type_t type); } 616353 AUE_NULL NOPROTO { int __acl_aclcheck_file(const char *path, \ 617 acl_type_t type, struct acl *aclp); } 618354 AUE_NULL NOPROTO { int __acl_aclcheck_fd(int filedes, \ 619 acl_type_t type, struct acl *aclp); } 620355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ 621 const char *filename, int attrnamespace, \ 622 const char *attrname); } 623356 AUE_EXTATTR_SET_FILE NOPROTO { int extattr_set_file( \ 624 const char *path, int attrnamespace, \ 625 const char *attrname, void *data, \ 626 size_t nbytes); } 627357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \ 628 const char *path, int attrnamespace, \ 629 const char *attrname, void *data, \ 630 size_t nbytes); } 631358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \ 632 const char *path, int attrnamespace, \ 633 const char *attrname); } 634359 AUE_NULL NOSTD { int freebsd32_aio_waitcomplete( \ 635 struct aiocb32 **aiocbp, \ 636 struct timespec32 *timeout); } 637360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 638 uid_t *suid); } 639361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 640 gid_t *sgid); } 641362 AUE_KQUEUE NOPROTO { int kqueue(void); } 642363 AUE_NULL STD { int freebsd32_kevent(int fd, \ 643 const struct kevent32 *changelist, \ 644 int nchanges, \ 645 struct kevent32 *eventlist, int nevents, \ 646 const struct timespec32 *timeout); } 647364 AUE_NULL UNIMPL __cap_get_proc 648365 AUE_NULL UNIMPL __cap_set_proc 649366 AUE_NULL UNIMPL __cap_get_fd 650367 AUE_NULL UNIMPL __cap_get_file 651368 AUE_NULL UNIMPL __cap_set_fd 652369 AUE_NULL UNIMPL __cap_set_file 653370 AUE_NULL UNIMPL nosys 654371 AUE_EXTATTR_SET_FD NOPROTO { int extattr_set_fd(int fd, \ 655 int attrnamespace, const char *attrname, \ 656 void *data, size_t nbytes); } 657372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ 658 int attrnamespace, const char *attrname, \ 659 void *data, size_t nbytes); } 660373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \ 661 int attrnamespace, \ 662 const char *attrname); } 663374 AUE_NULL NOPROTO { int __setugid(int flag); } 664375 AUE_NULL UNIMPL nfsclnt 665376 AUE_EACCESS NOPROTO { int eaccess(char *path, int flags); } 666377 AUE_NULL UNIMPL afs_syscall 667378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \ 668 unsigned int iovcnt, int flags); } 669379 AUE_NULL UNIMPL kse_exit 670380 AUE_NULL UNIMPL kse_wakeup 671381 AUE_NULL UNIMPL kse_create 672382 AUE_NULL UNIMPL kse_thr_interrupt 673383 AUE_NULL UNIMPL kse_release 674384 AUE_NULL UNIMPL __mac_get_proc 675385 AUE_NULL UNIMPL __mac_set_proc 676386 AUE_NULL UNIMPL __mac_get_fd 677387 AUE_NULL UNIMPL __mac_get_file 678388 AUE_NULL UNIMPL __mac_set_fd 679389 AUE_NULL UNIMPL __mac_set_file 680390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \ 681 char *value, int len); } 682391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, int flags); } 683392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \ 684 int count); } 685393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \ 686 u_int32_t offsetlo, u_int32_t offsethi, \ 687 size_t nbytes, struct sf_hdtr32 *hdtr, \ 688 off_t *sbytes, int flags); } 689394 AUE_NULL UNIMPL mac_syscall 690395 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs *buf, \ 691 long bufsize, int flags); } 692396 AUE_STATFS NOPROTO { int statfs(char *path, \ 693 struct statfs *buf); } 694397 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs *buf); } 695398 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ 696 struct statfs *buf); } 697399 AUE_NULL UNIMPL nosys 698; XXX implement these? 699400 AUE_NULL UNIMPL ksem_close 700401 AUE_NULL UNIMPL ksem_post 701402 AUE_NULL UNIMPL ksem_wait 702403 AUE_NULL UNIMPL ksem_trywait 703404 AUE_NULL UNIMPL ksem_init 704405 AUE_NULL UNIMPL ksem_open 705406 AUE_NULL UNIMPL ksem_unlink 706407 AUE_NULL UNIMPL ksem_getvalue 707408 AUE_NULL UNIMPL ksem_destroy 708409 AUE_NULL UNIMPL __mac_get_pid 709410 AUE_NULL UNIMPL __mac_get_link 710411 AUE_NULL UNIMPL __mac_set_link 711412 AUE_EXTATTR_SET_LINK NOPROTO { int extattr_set_link( \ 712 const char *path, int attrnamespace, \ 713 const char *attrname, void *data, \ 714 size_t nbytes); } 715413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \ 716 const char *path, int attrnamespace, \ 717 const char *attrname, void *data, \ 718 size_t nbytes); } 719414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \ 720 const char *path, int attrnamespace, \ 721 const char *attrname); } 722415 AUE_NULL UNIMPL __mac_execve 723416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \ 724 struct sigaction32 *act, \ 725 struct sigaction32 *oact); } 726417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \ 727 const struct freebsd32_ucontext *sigcntxp); } 728418 AUE_NULL UNIMPL __xstat 729419 AUE_NULL UNIMPL __xfstat 730420 AUE_NULL UNIMPL __xlstat 731421 AUE_NULL STD { int freebsd32_getcontext( \ 732 struct freebsd32_ucontext *ucp); } 733422 AUE_NULL STD { int freebsd32_setcontext( \ 734 const struct freebsd32_ucontext *ucp); } 735423 AUE_NULL STD { int freebsd32_swapcontext( \ 736 struct freebsd32_ucontext *oucp, \ 737 const struct freebsd32_ucontext *ucp); } 738424 AUE_SWAPOFF UNIMPL swapoff 739425 AUE_NULL UNIMPL __acl_get_link 740426 AUE_NULL UNIMPL __acl_set_link 741427 AUE_NULL UNIMPL __acl_delete_link 742428 AUE_NULL UNIMPL __acl_aclcheck_link 743429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ 744 int *sig); } 745430 AUE_NULL UNIMPL thr_create; 746431 AUE_NULL NOPROTO { void thr_exit(long *state); } 747432 AUE_NULL NOPROTO { int thr_self(long *id); } 748433 AUE_NULL NOPROTO { int thr_kill(long id, int sig); } 749434 AUE_NULL STD { int freebsd32_umtx_lock(struct umtx *umtx); } 750435 AUE_NULL STD { int freebsd32_umtx_unlock(struct umtx *umtx); } 751436 AUE_NULL NOPROTO { int jail_attach(int jid); } 752437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \ 753 int attrnamespace, void *data, \ 754 size_t nbytes); } 755438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \ 756 const char *path, int attrnamespace, \ 757 void *data, size_t nbytes); } 758439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \ 759 const char *path, int attrnamespace, \ 760 void *data, size_t nbytes); } 761440 AUE_NULL UNIMPL kse_switchin 762441 AUE_NULL UNIMPL ksem_timedwait 763442 AUE_NULL STD { int freebsd32_thr_suspend( \ 764 const struct timespec32 *timeout); } 765443 AUE_NULL NOPROTO { int thr_wake(long id); } 766444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); } 767445 AUE_AUDIT NOPROTO { int audit(const void *record, \ 768 u_int length); } 769446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \ 770 u_int length); } 771447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); } 772448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); } 773449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); } 774450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); } 775451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \ 776 struct auditinfo_addr *auditinfo_addr, \ 777 u_int length); } 778452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \ 779 struct auditinfo_addr *auditinfo_addr, \ 780 u_int length); } 781453 AUE_AUDITCTL NOPROTO { int auditctl(char *path); } 782454 AUE_NULL STD { int freebsd32_umtx_op(void *obj, int op,\ 783 u_long val, void *uaddr, \ 784 void *uaddr2); } 785455 AUE_NULL STD { int freebsd32_thr_new( \ 786 struct thr_param32 *param, \ 787 int param_size); } 788456 AUE_NULL NOPROTO { int sigqueue(pid_t pid, int signum, \ 789 void *value); } 790457 AUE_NULL UNIMPL kmq_open 791458 AUE_NULL UNIMPL kmq_setattr 792459 AUE_NULL UNIMPL kmq_timedreceive 793460 AUE_NULL UNIMPL kmq_timedsend 794461 AUE_NULL UNIMPL kmq_notify 795462 AUE_NULL UNIMPL kmq_unlink 796463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); } 797464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); } 798465 AUE_NULL NOSTD { int freebsd32_aio_fsync(int op, \ 799 struct aiocb32 *aiocbp); } 800466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \ 801 lwpid_t lwpid, struct rtprio *rtp); } 802467 AUE_NULL UNIMPL nosys 803468 AUE_NULL UNIMPL nosys 804469 AUE_NULL UNIMPL __getpath_fromfd 805470 AUE_NULL UNIMPL __getpath_fromaddr 806471 AUE_NULL NOPROTO { int sctp_peeloff(int sd, uint32_t name); } 807472 AUE_NULL NOPROTO { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ 808 caddr_t to, __socklen_t tolen, \ 809 struct sctp_sndrcvinfo *sinfo, int flags); } 810473 AUE_NULL NOPROTO { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 811 caddr_t to, __socklen_t tolen, \ 812 struct sctp_sndrcvinfo *sinfo, int flags); } 813474 AUE_NULL NOPROTO { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 814 struct sockaddr * from, __socklen_t *fromlenaddr, \ 815 struct sctp_sndrcvinfo *sinfo, int *msg_flags); } 816475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \ 817 void *buf,size_t nbyte, \ 818 u_int32_t offsetlo, u_int32_t offsethi); } 819476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \ 820 const void *buf, size_t nbyte, \ 821 u_int32_t offsetlo, u_int32_t offsethi); } 822477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \ 823 size_t len, int prot, int flags, int fd, \ 824 u_int32_t poslo, u_int32_t poshi); } 825478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \ 826 u_int32_t offsetlo, u_int32_t offsethi, \ 827 int whence); } 828479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \ 829 u_int32_t lengthlo, u_int32_t lengthhi); } 830480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \ 831 u_int32_t lengthlo, u_int32_t lengthhi); } 832481 AUE_KILL NOPROTO { int thr_kill2(pid_t pid, long id, int sig); } 833482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \ 834 mode_t mode); } 835483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); } 836484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); } 837485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \ 838 uint32_t idlo, uint32_t idhi, \ 839 cpusetid_t setid); } 840486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \ 841 cpuwhich_t which, \ 842 uint32_t idlo, uint32_t idhi, \ 843 cpusetid_t *setid); } 844487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \ 845 cpulevel_t level, cpuwhich_t which, \ 846 uint32_t idlo, uint32_t idhi, \ 847 size_t cpusetsize, \ 848 cpuset_t *mask); } 849488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \ 850 cpulevel_t level, cpuwhich_t which, \ 851 uint32_t idlo, uint32_t idhi, \ 852 size_t cpusetsize, \ 853 const cpuset_t *mask); } 854489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, char *path, int mode, \ 855 int flag); } 856490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \ 857 mode_t mode, int flag); } 858491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, char *path, uid_t uid, \ 859 gid_t gid, int flag); } 860492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \ 861 u_int32_t *argv, u_int32_t *envv); } 862493 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, char *path, \ 863 struct stat *buf, int flag); } 864494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, char *path, \ 865 struct timeval *times); } 866495 AUE_LINKAT NOPROTO { int linkat(int fd1, char *path1, int fd2, \ 867 char *path2, int flag); } 868496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, char *path, \ 869 mode_t mode); } 870497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, char *path, \ 871 mode_t mode); } 872498 AUE_MKNODAT NOPROTO { int mknodat(int fd, char *path, \ 873 mode_t mode, dev_t dev); } 874499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \ 875 mode_t mode); } 876500 AUE_READLINKAT NOPROTO { int readlinkat(int fd, char *path, char *buf, \ 877 size_t bufsize); } 878501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, char *old, int newfd, \ 879 const char *new); } 880502 AUE_SYMLINKAT NOPROTO { int symlinkat(char *path1, int fd, \ 881 char *path2); } 882503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, char *path, \ 883 int flag); } 884504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); } 885; 505 is initialised by the kgssapi code, if present. 886505 AUE_NULL UNIMPL gssd_syscall 887506 AUE_NULL STD { int freebsd32_jail_get(struct iovec32 *iovp, \ 888 unsigned int iovcnt, int flags); } 889507 AUE_NULL STD { int freebsd32_jail_set(struct iovec32 *iovp, \ 890 unsigned int iovcnt, int flags); } 891508 AUE_NULL NOPROTO { int jail_remove(int jid); } 892509 AUE_CLOSEFROM NOPROTO { int closefrom(int lowfd); } 893