syscalls.master revision 155327
1147078Sgshapiro $FreeBSD: head/sys/kern/syscalls.master 155327 2006-02-05 02:18:46Z davidxu $ 2261194Sgshapiro; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 3147078Sgshapiro; 4147078Sgshapiro; System call name/number master file. 5147078Sgshapiro; Processed to created init_sysent.c, syscalls.c and syscall.h. 6147078Sgshapiro 7147078Sgshapiro; Columns: number audit [M]type name alt{name,tag,rtyp}/comments 8147078Sgshapiro; number system call number, must be in order 9147078Sgshapiro; audit the audit event associated with the system call 10147078Sgshapiro; A value of AUE_NULL means no auditing, but it also means that 11266527Sgshapiro; there is no audit event for the call at this time. For the 12147078Sgshapiro; case where the event exists, but we don't want auditing, the 13147078Sgshapiro; event should be #defined to AUE_NULL in audit_kevents.h. 14147078Sgshapiro; type one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA, 15147078Sgshapiro; [M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL, 16203004Sgshapiro; [M]NOSTD, [M]COMPAT4 17147078Sgshapiro; name psuedo-prototype of syscall routine 18147078Sgshapiro; If one of the following alts is different, then all appear: 19157001Sgshapiro; altname name of system call if different 20147078Sgshapiro; alttag name of args struct tag if different from [o]`name'"_args" 21147078Sgshapiro; altrtyp return type if not int (bogus - syscalls always return int) 22147078Sgshapiro; for UNIMPL/OBSOL, name continues with comments 23147078Sgshapiro 24147078Sgshapiro; types: 25147078Sgshapiro; [M] e.g. like MSTD -- means the system call is MP-safe. If no 26147078Sgshapiro; M prefix is used, the syscall wrapper will obtain the Giant 27147078Sgshapiro; lock for the syscall. 28147078Sgshapiro; STD always included 29147078Sgshapiro; COMPAT included on COMPAT #ifdef 30147078Sgshapiro; COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat) 31147078Sgshapiro; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 32147078Sgshapiro; OBSOL obsolete, not included in system, only specifies name 33147078Sgshapiro; UNIMPL not implemented, placeholder only 34147078Sgshapiro; NOSTD implemented but as a lkm that can be statically 35147078Sgshapiro; compiled in sysent entry will be filled with lkmsys 36147078Sgshapiro; so the SYSCALL_MODULE macro works 37147078Sgshapiro; 38147078Sgshapiro; Please copy any additions and changes to the following compatability tables: 39147078Sgshapiro; sys/compat/freebsd32/syscalls.master 40147078Sgshapiro 41147078Sgshapiro; #ifdef's, etc. may be included, and are copied to the output files. 42157001Sgshapiro 43147078Sgshapiro#include <sys/param.h> 44147078Sgshapiro#include <sys/sysent.h> 45147078Sgshapiro#include <sys/sysproto.h> 46147078Sgshapiro 47147078Sgshapiro; Reserved/unimplemented system calls in the range 0-150 inclusive 48147078Sgshapiro; are reserved for use in future Berkeley releases. 49147078Sgshapiro; Additional system calls implemented in vendor and other 50147078Sgshapiro; redistributions should be placed in the reserved range at the end 51147078Sgshapiro; of the current calls. 52147078Sgshapiro 53147078Sgshapiro0 AUE_NULL MSTD { int nosys(void); } syscall nosys_args int 54147078Sgshapiro1 AUE_EXIT MSTD { void sys_exit(int rval); } exit \ 55147078Sgshapiro sys_exit_args void 56147078Sgshapiro2 AUE_FORK MSTD { int fork(void); } 57147078Sgshapiro3 AUE_NULL MSTD { ssize_t read(int fd, void *buf, \ 58147078Sgshapiro size_t nbyte); } 59147078Sgshapiro4 AUE_NULL MSTD { ssize_t write(int fd, const void *buf, \ 60147078Sgshapiro size_t nbyte); } 61147078Sgshapiro5 AUE_OPEN_RWTC MSTD { int open(char *path, int flags, int mode); } 62147078Sgshapiro; XXX should be { int open(const char *path, int flags, ...); } 63147078Sgshapiro; but we're not ready for `const' or varargs. 64147078Sgshapiro; XXX man page says `mode_t mode'. 65147078Sgshapiro6 AUE_CLOSE MSTD { int close(int fd); } 66147078Sgshapiro7 AUE_WAIT4 MSTD { int wait4(int pid, int *status, \ 67147078Sgshapiro int options, struct rusage *rusage); } \ 68147078Sgshapiro wait4 wait_args int 69147078Sgshapiro8 AUE_O_CREAT MCOMPAT { int creat(char *path, int mode); } 70147078Sgshapiro9 AUE_LINK MSTD { int link(char *path, char *link); } 71147078Sgshapiro10 AUE_UNLINK MSTD { int unlink(char *path); } 72157001Sgshapiro11 AUE_NULL OBSOL execv 73147078Sgshapiro12 AUE_CHDIR MSTD { int chdir(char *path); } 74147078Sgshapiro13 AUE_FCHDIR MSTD { int fchdir(int fd); } 75147078Sgshapiro14 AUE_MKNOD MSTD { int mknod(char *path, int mode, int dev); } 76147078Sgshapiro15 AUE_CHMOD MSTD { int chmod(char *path, int mode); } 77157001Sgshapiro16 AUE_CHOWN MSTD { int chown(char *path, int uid, int gid); } 78147078Sgshapiro17 AUE_NULL MSTD { int obreak(char *nsize); } break \ 79147078Sgshapiro obreak_args int 80147078Sgshapiro18 AUE_GETFSSTAT MCOMPAT4 { int getfsstat(struct ostatfs *buf, \ 81147078Sgshapiro long bufsize, int flags); } 82147078Sgshapiro19 AUE_LSEEK MCOMPAT { long lseek(int fd, long offset, \ 83147078Sgshapiro int whence); } 84147078Sgshapiro20 AUE_GETPID MSTD { pid_t getpid(void); } 85147078Sgshapiro21 AUE_MOUNT STD { int mount(char *type, char *path, \ 86147078Sgshapiro int flags, caddr_t data); } 87147078Sgshapiro; XXX `path' should have type `const char *' but we're not ready for that. 88147078Sgshapiro22 AUE_UMOUNT STD { int unmount(char *path, int flags); } 89147078Sgshapiro23 AUE_SETUID MSTD { int setuid(uid_t uid); } 90147078Sgshapiro24 AUE_GETUID MSTD { uid_t getuid(void); } 91147078Sgshapiro25 AUE_GETEUID MSTD { uid_t geteuid(void); } 92147078Sgshapiro26 AUE_PTRACE MSTD { int ptrace(int req, pid_t pid, \ 93147078Sgshapiro caddr_t addr, int data); } 94147078Sgshapiro27 AUE_RECVMSG MSTD { int recvmsg(int s, struct msghdr *msg, \ 95147078Sgshapiro int flags); } 96147078Sgshapiro28 AUE_SENDMSG MSTD { int sendmsg(int s, struct msghdr *msg, \ 97147078Sgshapiro int flags); } 98147078Sgshapiro29 AUE_RECVFROM MSTD { int recvfrom(int s, caddr_t buf, \ 99147078Sgshapiro size_t len, int flags, \ 100147078Sgshapiro struct sockaddr * __restrict from, \ 101147078Sgshapiro __socklen_t * __restrict fromlenaddr); } 102147078Sgshapiro30 AUE_ACCEPT MSTD { int accept(int s, \ 103147078Sgshapiro struct sockaddr * __restrict name, \ 104147078Sgshapiro __socklen_t * __restrict anamelen); } 105147078Sgshapiro31 AUE_GETPEERNAME MSTD { int getpeername(int fdes, \ 106147078Sgshapiro struct sockaddr * __restrict asa, \ 107147078Sgshapiro __socklen_t * __restrict alen); } 108147078Sgshapiro32 AUE_GETSOCKNAME MSTD { int getsockname(int fdes, \ 109147078Sgshapiro struct sockaddr * __restrict asa, \ 110147078Sgshapiro __socklen_t * __restrict alen); } 111147078Sgshapiro33 AUE_ACCESS MSTD { int access(char *path, int flags); } 112147078Sgshapiro34 AUE_CHFLAGS MSTD { int chflags(char *path, int flags); } 113147078Sgshapiro35 AUE_FCHFLAGS MSTD { int fchflags(int fd, int flags); } 114147078Sgshapiro36 AUE_SYNC MSTD { int sync(void); } 115147078Sgshapiro37 AUE_KILL MSTD { int kill(int pid, int signum); } 116147078Sgshapiro38 AUE_STAT MCOMPAT { int stat(char *path, struct ostat *ub); } 117147078Sgshapiro39 AUE_GETPPID MSTD { pid_t getppid(void); } 118147078Sgshapiro40 AUE_LSTAT MCOMPAT { int lstat(char *path, struct ostat *ub); } 119147078Sgshapiro41 AUE_DUP MSTD { int dup(u_int fd); } 120147078Sgshapiro42 AUE_PIPE MSTD { int pipe(void); } 121147078Sgshapiro43 AUE_GETEGID MSTD { gid_t getegid(void); } 122147078Sgshapiro44 AUE_PROFILE MSTD { int profil(caddr_t samples, size_t size, \ 123147078Sgshapiro size_t offset, u_int scale); } 124147078Sgshapiro45 AUE_KTRACE MSTD { int ktrace(const char *fname, int ops, \ 125147078Sgshapiro int facs, int pid); } 126147078Sgshapiro46 AUE_SIGACTION MCOMPAT { int sigaction(int signum, \ 127147078Sgshapiro struct osigaction *nsa, \ 128147078Sgshapiro struct osigaction *osa); } 129147078Sgshapiro47 AUE_GETGID MSTD { gid_t getgid(void); } 130147078Sgshapiro48 AUE_SIGPROCMASK MCOMPAT { int sigprocmask(int how, osigset_t mask); } 131147078Sgshapiro; XXX note nonstandard (bogus) calling convention - the libc stub passes 132147078Sgshapiro; us the mask, not a pointer to it, and we return the old mask as the 133147078Sgshapiro; (int) return value. 134147078Sgshapiro49 AUE_GETLOGIN MSTD { int getlogin(char *namebuf, u_int \ 135147078Sgshapiro namelen); } 136147078Sgshapiro50 AUE_SETLOGIN MSTD { int setlogin(char *namebuf); } 137147078Sgshapiro51 AUE_ACCT MSTD { int acct(char *path); } 138147078Sgshapiro52 AUE_SIGPENDING MCOMPAT { int sigpending(void); } 139147078Sgshapiro53 AUE_SIGPENDING MSTD { int sigaltstack(stack_t *ss, \ 140147078Sgshapiro stack_t *oss); } 141147078Sgshapiro54 AUE_IOCTL MSTD { int ioctl(int fd, u_long com, \ 142147078Sgshapiro caddr_t data); } 143147078Sgshapiro55 AUE_REBOOT MSTD { int reboot(int opt); } 144147078Sgshapiro56 AUE_REVOKE MSTD { int revoke(char *path); } 145147078Sgshapiro57 AUE_SYMLINK MSTD { int symlink(char *path, char *link); } 146147078Sgshapiro58 AUE_READLINK MSTD { int readlink(char *path, char *buf, \ 147147078Sgshapiro int count); } 148147078Sgshapiro59 AUE_EXECVE MSTD { int execve(char *fname, char **argv, \ 149147078Sgshapiro char **envv); } 150147078Sgshapiro60 AUE_UMASK MSTD { int umask(int newmask); } umask umask_args \ 151147078Sgshapiro int 152147078Sgshapiro61 AUE_CHROOT MSTD { int chroot(char *path); } 153147078Sgshapiro62 AUE_FSTAT MCOMPAT { int fstat(int fd, struct ostat *sb); } 154147078Sgshapiro63 AUE_NULL MCOMPAT { int getkerninfo(int op, char *where, \ 155147078Sgshapiro size_t *size, int arg); } getkerninfo \ 156147078Sgshapiro getkerninfo_args int 157147078Sgshapiro64 AUE_O_GETPAGESIZE MCOMPAT { int getpagesize(void); } getpagesize \ 158147078Sgshapiro getpagesize_args int 159147078Sgshapiro65 AUE_MSYNC MSTD { int msync(void *addr, size_t len, \ 160147078Sgshapiro int flags); } 161147078Sgshapiro66 AUE_VFORK MSTD { int vfork(void); } 162147078Sgshapiro67 AUE_NULL OBSOL vread 163147078Sgshapiro68 AUE_NULL OBSOL vwrite 164147078Sgshapiro69 AUE_SBRK MSTD { int sbrk(int incr); } 165147078Sgshapiro70 AUE_SSTK MSTD { int sstk(int incr); } 166147078Sgshapiro71 AUE_MMAP MCOMPAT { int mmap(void *addr, int len, int prot, \ 167147078Sgshapiro int flags, int fd, long pos); } 168147078Sgshapiro72 AUE_O_VADVISE MSTD { int ovadvise(int anom); } vadvise \ 169147078Sgshapiro ovadvise_args int 170147078Sgshapiro73 AUE_MUNMAP MSTD { int munmap(void *addr, size_t len); } 171147078Sgshapiro74 AUE_MPROTECT MSTD { int mprotect(const void *addr, size_t len, \ 172147078Sgshapiro int prot); } 173147078Sgshapiro75 AUE_MADVISE MSTD { int madvise(void *addr, size_t len, \ 174147078Sgshapiro int behav); } 175147078Sgshapiro76 AUE_NULL OBSOL vhangup 176147078Sgshapiro77 AUE_NULL OBSOL vlimit 177147078Sgshapiro78 AUE_MINCORE MSTD { int mincore(const void *addr, size_t len, \ 178147078Sgshapiro char *vec); } 179147078Sgshapiro79 AUE_GETGROUPS MSTD { int getgroups(u_int gidsetsize, \ 180147078Sgshapiro gid_t *gidset); } 181147078Sgshapiro80 AUE_SETGROUPS MSTD { int setgroups(u_int gidsetsize, \ 182147078Sgshapiro gid_t *gidset); } 183147078Sgshapiro81 AUE_GETPGRP MSTD { int getpgrp(void); } 184147078Sgshapiro82 AUE_SETPGRP MSTD { int setpgid(int pid, int pgid); } 185147078Sgshapiro83 AUE_SETITIMER MSTD { int setitimer(u_int which, struct \ 186147078Sgshapiro itimerval *itv, struct itimerval *oitv); } 187147078Sgshapiro84 AUE_O_WAIT MCOMPAT { int wait(void); } 188147078Sgshapiro85 AUE_SWAPON MSTD { int swapon(char *name); } 189147078Sgshapiro86 AUE_GETITIMER MSTD { int getitimer(u_int which, \ 190147078Sgshapiro struct itimerval *itv); } 191147078Sgshapiro87 AUE_O_GETHOSTNAME MCOMPAT { int gethostname(char *hostname, \ 192147078Sgshapiro u_int len); } gethostname \ 193147078Sgshapiro gethostname_args int 194147078Sgshapiro88 AUE_O_SETHOSTNAME MCOMPAT { int sethostname(char *hostname, \ 195147078Sgshapiro u_int len); } sethostname \ 196147078Sgshapiro sethostname_args int 197147078Sgshapiro89 AUE_GETDTABLESIZE MSTD { int getdtablesize(void); } 198147078Sgshapiro90 AUE_DUP2 MSTD { int dup2(u_int from, u_int to); } 199147078Sgshapiro91 AUE_NULL UNIMPL getdopt 200147078Sgshapiro92 AUE_FCNTL MSTD { int fcntl(int fd, int cmd, long arg); } 201147078Sgshapiro; XXX should be { int fcntl(int fd, int cmd, ...); } 202147078Sgshapiro; but we're not ready for varargs. 203147078Sgshapiro93 AUE_SELECT MSTD { int select(int nd, fd_set *in, fd_set *ou, \ 204203004Sgshapiro fd_set *ex, struct timeval *tv); } 205203004Sgshapiro94 AUE_NULL UNIMPL setdopt 206203004Sgshapiro95 AUE_FSYNC MSTD { int fsync(int fd); } 207203004Sgshapiro96 AUE_SETPRIORITY MSTD { int setpriority(int which, int who, \ 208203004Sgshapiro int prio); } 209203004Sgshapiro97 AUE_SOCKET MSTD { int socket(int domain, int type, \ 210203004Sgshapiro int protocol); } 211203004Sgshapiro98 AUE_CONNECT MSTD { int connect(int s, caddr_t name, \ 212203004Sgshapiro int namelen); } 213203004Sgshapiro99 AUE_ACCEPT MCPT_NOA { int accept(int s, caddr_t name, \ 214203004Sgshapiro int *anamelen); } accept accept_args int 215203004Sgshapiro100 AUE_GETPRIORITY MSTD { int getpriority(int which, int who); } 216203004Sgshapiro101 AUE_O_SEND MCOMPAT { int send(int s, caddr_t buf, int len, \ 217203004Sgshapiro int flags); } 218203004Sgshapiro102 AUE_O_RECV MCOMPAT { int recv(int s, caddr_t buf, int len, \ 219203004Sgshapiro int flags); } 220203004Sgshapiro103 AUE_SIGRETURN MCOMPAT { int sigreturn( \ 221203004Sgshapiro struct osigcontext *sigcntxp); } 222203004Sgshapiro104 AUE_BIND MSTD { int bind(int s, caddr_t name, \ 223203004Sgshapiro int namelen); } 224203004Sgshapiro105 AUE_SETSOCKOPT MSTD { int setsockopt(int s, int level, int name, \ 225203004Sgshapiro caddr_t val, int valsize); } 226203004Sgshapiro106 AUE_LISTEN MSTD { int listen(int s, int backlog); } 227203004Sgshapiro107 AUE_NULL OBSOL vtimes 228203004Sgshapiro108 AUE_O_SIGVEC MCOMPAT { int sigvec(int signum, struct sigvec *nsv, \ 229203004Sgshapiro struct sigvec *osv); } 230203004Sgshapiro109 AUE_O_SIGBLOCK MCOMPAT { int sigblock(int mask); } 231203004Sgshapiro110 AUE_O_SIGSETMASK MCOMPAT { int sigsetmask(int mask); } 232203004Sgshapiro111 AUE_SIGSUSPEND MCOMPAT { int sigsuspend(osigset_t mask); } 233203004Sgshapiro; XXX note nonstandard (bogus) calling convention - the libc stub passes 234203004Sgshapiro; us the mask, not a pointer to it. 235203004Sgshapiro112 AUE_O_SIGSTACK MCOMPAT { int sigstack(struct sigstack *nss, \ 236203004Sgshapiro struct sigstack *oss); } 237203004Sgshapiro113 AUE_O_RECVMSG MCOMPAT { int recvmsg(int s, struct omsghdr *msg, \ 238203004Sgshapiro int flags); } 239203004Sgshapiro114 AUE_O_SENDMSG MCOMPAT { int sendmsg(int s, caddr_t msg, \ 240203004Sgshapiro int flags); } 241203004Sgshapiro115 AUE_NULL OBSOL vtrace 242203004Sgshapiro116 AUE_GETTIMEOFDAY MSTD { int gettimeofday(struct timeval *tp, \ 243203004Sgshapiro struct timezone *tzp); } 244203004Sgshapiro117 AUE_GETRUSAGE MSTD { int getrusage(int who, \ 245147078Sgshapiro struct rusage *rusage); } 246118 AUE_GTSOCKOPT MSTD { int getsockopt(int s, int level, int name, \ 247 caddr_t val, int *avalsize); } 248119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 249120 AUE_READV MSTD { int readv(int fd, struct iovec *iovp, \ 250 u_int iovcnt); } 251121 AUE_WRITEV MSTD { int writev(int fd, struct iovec *iovp, \ 252 u_int iovcnt); } 253122 AUE_SETTIMEOFDAY MSTD { int settimeofday(struct timeval *tv, \ 254 struct timezone *tzp); } 255123 AUE_FCHOWN MSTD { int fchown(int fd, int uid, int gid); } 256124 AUE_FCHMOD MSTD { int fchmod(int fd, int mode); } 257125 AUE_RECVFROM MCPT_NOA { int recvfrom(int s, caddr_t buf, \ 258 size_t len, int flags, caddr_t from, int \ 259 *fromlenaddr); } recvfrom recvfrom_args \ 260 int 261126 AUE_SETREUID MSTD { int setreuid(int ruid, int euid); } 262127 AUE_SETREGID MSTD { int setregid(int rgid, int egid); } 263128 AUE_RENAME MSTD { int rename(char *from, char *to); } 264129 AUE_O_TRUNCATE MCOMPAT { int truncate(char *path, long length); } 265130 AUE_O_FTRUNCATE MCOMPAT { int ftruncate(int fd, long length); } 266131 AUE_FLOCK MSTD { int flock(int fd, int how); } 267132 AUE_MKFIFO MSTD { int mkfifo(char *path, int mode); } 268133 AUE_SENDTO MSTD { int sendto(int s, caddr_t buf, size_t len, \ 269 int flags, caddr_t to, int tolen); } 270134 AUE_SHUTDOWN MSTD { int shutdown(int s, int how); } 271135 AUE_SOCKETPAIR MSTD { int socketpair(int domain, int type, \ 272 int protocol, int *rsv); } 273136 AUE_MKDIR MSTD { int mkdir(char *path, int mode); } 274137 AUE_RMDIR MSTD { int rmdir(char *path); } 275138 AUE_UTIMES MSTD { int utimes(char *path, \ 276 struct timeval *tptr); } 277139 AUE_NULL OBSOL 4.2 sigreturn 278140 AUE_ADJTIME MSTD { int adjtime(struct timeval *delta, \ 279 struct timeval *olddelta); } 280141 AUE_O_GETPEERNAME MCOMPAT { int getpeername(int fdes, caddr_t asa, \ 281 int *alen); } 282142 AUE_O_GETHOSTID MCOMPAT { long gethostid(void); } 283143 AUE_O_SETHOSTID MCOMPAT { int sethostid(long hostid); } 284144 AUE_O_GETRLIMIT MCOMPAT { int getrlimit(u_int which, struct \ 285 orlimit *rlp); } 286145 AUE_O_SETRLIMIT MCOMPAT { int setrlimit(u_int which, \ 287 struct orlimit *rlp); } 288146 AUE_O_KILLPG MCOMPAT { int killpg(int pgid, int signum); } 289147 AUE_SETSID MSTD { int setsid(void); } 290148 AUE_QUOTACTL MSTD { int quotactl(char *path, int cmd, int uid, \ 291 caddr_t arg); } 292149 AUE_O_QUOTA MCOMPAT { int quota(void); } 293150 AUE_GETSOCKNAME MCPT_NOA { int getsockname(int fdec, \ 294 caddr_t asa, int *alen); } getsockname \ 295 getsockname_args int 296 297; Syscalls 151-180 inclusive are reserved for vendor-specific 298; system calls. (This includes various calls added for compatibity 299; with other Unix variants.) 300; Some of these calls are now supported by BSD... 301151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 302152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 303153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 304154 AUE_NULL UNIMPL nosys 305; 155 is initialized by the NFS code, if present. 306155 AUE_NFSSVC MNOIMPL { int nfssvc(int flag, caddr_t argp); } 307156 AUE_GETDIRENTRIES COMPAT { int getdirentries(int fd, char *buf, \ 308 u_int count, long *basep); } 309157 AUE_STATFS MCOMPAT4 { int statfs(char *path, \ 310 struct ostatfs *buf); } 311158 AUE_FSTATFS MCOMPAT4 { int fstatfs(int fd, \ 312 struct ostatfs *buf); } 313159 AUE_NULL UNIMPL nosys 314160 AUE_LGETFH MSTD { int lgetfh(char *fname, \ 315 struct fhandle *fhp); } 316161 AUE_NFS_GETFH MSTD { int getfh(char *fname, \ 317 struct fhandle *fhp); } 318162 AUE_SYSCTL MSTD { int getdomainname(char *domainname, \ 319 int len); } 320163 AUE_SYSCTL MSTD { int setdomainname(char *domainname, \ 321 int len); } 322164 AUE_NULL MSTD { int uname(struct utsname *name); } 323165 AUE_NULL MSTD { int sysarch(int op, char *parms); } 324166 AUE_NULL MSTD { int rtprio(int function, pid_t pid, \ 325 struct rtprio *rtp); } 326167 AUE_NULL UNIMPL nosys 327168 AUE_NULL UNIMPL nosys 328; 169 is initialized by the SYSVSEM code if present or loaded 329169 AUE_SEMSYS MNOSTD { int semsys(int which, int a2, int a3, \ 330 int a4, int a5); } 331; 169 is initialized by the SYSVMSG code if present or loaded 332; XXX should be { int semsys(int which, ...); } 333170 AUE_MSGSYS MNOSTD { int msgsys(int which, int a2, int a3, \ 334 int a4, int a5, int a6); } 335; 169 is initialized by the SYSVSHM code if present or loaded 336; XXX should be { int msgsys(int which, ...); } 337171 AUE_SHMSYS MNOSTD { int shmsys(int which, int a2, int a3, \ 338 int a4); } 339; XXX should be { int shmsys(int which, ...); } 340172 AUE_NULL UNIMPL nosys 341173 AUE_PREAD MSTD { ssize_t pread(int fd, void *buf, \ 342 size_t nbyte, int pad, off_t offset); } 343174 AUE_PWRITE MSTD { ssize_t pwrite(int fd, const void *buf, \ 344 size_t nbyte, int pad, off_t offset); } 345175 AUE_NULL UNIMPL nosys 346176 AUE_ADJTIME MSTD { int ntp_adjtime(struct timex *tp); } 347177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 348178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 349179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 350180 AUE_NULL UNIMPL nosys 351 352; Syscalls 181-199 are used by/reserved for BSD 353181 AUE_SETGID MSTD { int setgid(gid_t gid); } 354182 AUE_SETEGID MSTD { int setegid(gid_t egid); } 355183 AUE_SETEUID MSTD { int seteuid(uid_t euid); } 356184 AUE_NULL UNIMPL lfs_bmapv 357185 AUE_NULL UNIMPL lfs_markv 358186 AUE_NULL UNIMPL lfs_segclean 359187 AUE_NULL UNIMPL lfs_segwait 360188 AUE_STAT MSTD { int stat(char *path, struct stat *ub); } 361189 AUE_FSTAT MSTD { int fstat(int fd, struct stat *sb); } 362190 AUE_LSTAT MSTD { int lstat(char *path, struct stat *ub); } 363191 AUE_PATHCONF MSTD { int pathconf(char *path, int name); } 364192 AUE_FPATHCONF MSTD { int fpathconf(int fd, int name); } 365193 AUE_NULL UNIMPL nosys 366194 AUE_GETRLIMIT MSTD { int getrlimit(u_int which, \ 367 struct rlimit *rlp); } getrlimit \ 368 __getrlimit_args int 369195 AUE_SETRLIMIT MSTD { int setrlimit(u_int which, \ 370 struct rlimit *rlp); } setrlimit \ 371 __setrlimit_args int 372196 AUE_GETDIRENTRIES MSTD { int getdirentries(int fd, char *buf, \ 373 u_int count, long *basep); } 374197 AUE_MMAP MSTD { caddr_t mmap(caddr_t addr, size_t len, \ 375 int prot, int flags, int fd, int pad, \ 376 off_t pos); } 377198 AUE_NULL MSTD { int nosys(void); } __syscall \ 378 __syscall_args int 379199 AUE_LSEEK MSTD { off_t lseek(int fd, int pad, off_t offset, \ 380 int whence); } 381200 AUE_TRUNCATE MSTD { int truncate(char *path, int pad, \ 382 off_t length); } 383201 AUE_FTRUNCATE MSTD { int ftruncate(int fd, int pad, \ 384 off_t length); } 385202 AUE_SYSCTL MSTD { int __sysctl(int *name, u_int namelen, \ 386 void *old, size_t *oldlenp, void *new, \ 387 size_t newlen); } __sysctl sysctl_args int 388203 AUE_MLOCK MSTD { int mlock(const void *addr, size_t len); } 389204 AUE_MUNLOCK MSTD { int munlock(const void *addr, size_t len); } 390205 AUE_UNDELETE MSTD { int undelete(char *path); } 391206 AUE_FUTIMES MSTD { int futimes(int fd, struct timeval *tptr); } 392207 AUE_GETPGID MSTD { int getpgid(pid_t pid); } 393208 AUE_NULL UNIMPL newreboot (NetBSD) 394209 AUE_POLL MSTD { int poll(struct pollfd *fds, u_int nfds, \ 395 int timeout); } 396 397; 398; The following are reserved for loadable syscalls 399; 400210 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 401211 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 402212 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 403213 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 404214 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 405215 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 406216 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 407217 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 408218 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 409219 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 410 411; 412; The following were introduced with NetBSD/4.4Lite-2 413220 AUE_SEMCTL MNOSTD { int __semctl(int semid, int semnum, \ 414 int cmd, union semun *arg); } 415221 AUE_SEMGET MNOSTD { int semget(key_t key, int nsems, \ 416 int semflg); } 417222 AUE_SEMOP MNOSTD { int semop(int semid, struct sembuf *sops, \ 418 size_t nsops); } 419223 AUE_NULL UNIMPL semconfig 420224 AUE_MSGCTL MNOSTD { int msgctl(int msqid, int cmd, \ 421 struct msqid_ds *buf); } 422225 AUE_MSGGET MNOSTD { int msgget(key_t key, int msgflg); } 423226 AUE_MSGSND MNOSTD { int msgsnd(int msqid, const void *msgp, \ 424 size_t msgsz, int msgflg); } 425227 AUE_MSGRCV MNOSTD { int msgrcv(int msqid, void *msgp, \ 426 size_t msgsz, long msgtyp, int msgflg); } 427228 AUE_SHMAT MNOSTD { int shmat(int shmid, const void *shmaddr, \ 428 int shmflg); } 429229 AUE_SHMCTL MNOSTD { int shmctl(int shmid, int cmd, \ 430 struct shmid_ds *buf); } 431230 AUE_SHMDT MNOSTD { int shmdt(const void *shmaddr); } 432231 AUE_SHMGET MNOSTD { int shmget(key_t key, size_t size, \ 433 int shmflg); } 434; 435232 AUE_NULL MSTD { int clock_gettime(clockid_t clock_id, \ 436 struct timespec *tp); } 437233 AUE_NULL MSTD { int clock_settime(clockid_t clock_id, \ 438 const struct timespec *tp); } 439234 AUE_NULL MSTD { int clock_getres(clockid_t clock_id, \ 440 struct timespec *tp); } 441235 AUE_NULL MSTD { int timer_create(clockid_t clock_id, \ 442 struct sigevent *evp, timer_t *timerid); } 443236 AUE_NULL MSTD { int timer_delete(timer_t timerid); } 444237 AUE_NULL MSTD { int timer_settime(timer_t timerid, int flags, \ 445 const struct itimerspec *value, \ 446 struct itimerspec *ovalue); } 447238 AUE_NULL MSTD { int timer_gettime(timer_t timerid, struct \ 448 itimerspec *value); } 449239 AUE_NULL MSTD { int timer_getoverrun(timer_t timerid); } 450240 AUE_NULL MSTD { int nanosleep(const struct timespec *rqtp, \ 451 struct timespec *rmtp); } 452241 AUE_NULL UNIMPL nosys 453242 AUE_NULL UNIMPL nosys 454243 AUE_NULL UNIMPL nosys 455244 AUE_NULL UNIMPL nosys 456245 AUE_NULL UNIMPL nosys 457246 AUE_NULL UNIMPL nosys 458247 AUE_NULL UNIMPL nosys 459248 AUE_NULL MSTD { int ntp_gettime(struct ntptimeval *ntvp); } 460249 AUE_NULL UNIMPL nosys 461; syscall numbers initially used in OpenBSD 462250 AUE_MINHERIT MSTD { int minherit(void *addr, size_t len, \ 463 int inherit); } 464251 AUE_RFORK MSTD { int rfork(int flags); } 465252 AUE_POLL MSTD { int openbsd_poll(struct pollfd *fds, \ 466 u_int nfds, int timeout); } 467253 AUE_ISSETUGID MSTD { int issetugid(void); } 468254 AUE_LCHOWN MSTD { int lchown(char *path, int uid, int gid); } 469255 AUE_NULL MNOSTD { int aio_read(struct aiocb *aiocbp); } 470256 AUE_NULL MNOSTD { int aio_write(struct aiocb *aiocbp); } 471257 AUE_NULL MNOSTD { int lio_listio(int mode, \ 472 struct aiocb * const *acb_list, \ 473 int nent, struct sigevent *sig); } 474258 AUE_NULL UNIMPL nosys 475259 AUE_NULL UNIMPL nosys 476260 AUE_NULL UNIMPL nosys 477261 AUE_NULL UNIMPL nosys 478262 AUE_NULL UNIMPL nosys 479263 AUE_NULL UNIMPL nosys 480264 AUE_NULL UNIMPL nosys 481265 AUE_NULL UNIMPL nosys 482266 AUE_NULL UNIMPL nosys 483267 AUE_NULL UNIMPL nosys 484268 AUE_NULL UNIMPL nosys 485269 AUE_NULL UNIMPL nosys 486270 AUE_NULL UNIMPL nosys 487271 AUE_NULL UNIMPL nosys 488272 AUE_O_GETDENTS MSTD { int getdents(int fd, char *buf, \ 489 size_t count); } 490273 AUE_NULL UNIMPL nosys 491274 AUE_LCHMOD MSTD { int lchmod(char *path, mode_t mode); } 492275 AUE_LCHOWN MNOPROTO { int lchown(char *path, uid_t uid, \ 493 gid_t gid); } netbsd_lchown lchown_args \ 494 int 495276 AUE_LUTIMES MSTD { int lutimes(char *path, \ 496 struct timeval *tptr); } 497277 AUE_MSYNC MNOPROTO { int msync(void *addr, size_t len, \ 498 int flags); } netbsd_msync msync_args int 499278 AUE_STAT MSTD { int nstat(char *path, struct nstat *ub); } 500279 AUE_FSTAT MSTD { int nfstat(int fd, struct nstat *sb); } 501280 AUE_LSTAT MSTD { int nlstat(char *path, struct nstat *ub); } 502281 AUE_NULL UNIMPL nosys 503282 AUE_NULL UNIMPL nosys 504283 AUE_NULL UNIMPL nosys 505284 AUE_NULL UNIMPL nosys 506285 AUE_NULL UNIMPL nosys 507286 AUE_NULL UNIMPL nosys 508287 AUE_NULL UNIMPL nosys 509288 AUE_NULL UNIMPL nosys 510; 289 and 290 from NetBSD (OpenBSD: 267 and 268) 511289 AUE_NULL MSTD { ssize_t preadv(int fd, struct iovec *iovp, \ 512 u_int iovcnt, off_t offset); } 513290 AUE_NULL MSTD { ssize_t pwritev(int fd, struct iovec *iovp, \ 514 u_int iovcnt, off_t offset); } 515291 AUE_NULL UNIMPL nosys 516292 AUE_NULL UNIMPL nosys 517293 AUE_NULL UNIMPL nosys 518294 AUE_NULL UNIMPL nosys 519295 AUE_NULL UNIMPL nosys 520296 AUE_NULL UNIMPL nosys 521; XXX 297 is 300 in NetBSD 522297 AUE_FHSTATFS MCOMPAT4 { int fhstatfs( \ 523 const struct fhandle *u_fhp, \ 524 struct ostatfs *buf); } 525298 AUE_FHOPEN MSTD { int fhopen(const struct fhandle *u_fhp, \ 526 int flags); } 527299 AUE_FHSTAT MSTD { int fhstat(const struct fhandle *u_fhp, \ 528 struct stat *sb); } 529; syscall numbers for FreeBSD 530300 AUE_NULL MSTD { int modnext(int modid); } 531301 AUE_NULL MSTD { int modstat(int modid, \ 532 struct module_stat *stat); } 533302 AUE_NULL MSTD { int modfnext(int modid); } 534303 AUE_NULL MSTD { int modfind(const char *name); } 535304 AUE_MODLOAD MSTD { int kldload(const char *file); } 536305 AUE_MODUNLOAD MSTD { int kldunload(int fileid); } 537306 AUE_NULL MSTD { int kldfind(const char *file); } 538307 AUE_NULL MSTD { int kldnext(int fileid); } 539308 AUE_NULL MSTD { int kldstat(int fileid, struct \ 540 kld_file_stat* stat); } 541309 AUE_NULL MSTD { int kldfirstmod(int fileid); } 542310 AUE_GETSID MSTD { int getsid(pid_t pid); } 543311 AUE_SETRESUID MSTD { int setresuid(uid_t ruid, uid_t euid, \ 544 uid_t suid); } 545312 AUE_SETRESGID MSTD { int setresgid(gid_t rgid, gid_t egid, \ 546 gid_t sgid); } 547313 AUE_NULL OBSOL signanosleep 548314 AUE_NULL MNOSTD { int aio_return(struct aiocb *aiocbp); } 549315 AUE_NULL MNOSTD { int aio_suspend( \ 550 struct aiocb * const * aiocbp, int nent, \ 551 const struct timespec *timeout); } 552316 AUE_NULL MNOSTD { int aio_cancel(int fd, \ 553 struct aiocb *aiocbp); } 554317 AUE_NULL MNOSTD { int aio_error(struct aiocb *aiocbp); } 555318 AUE_NULL MNOSTD { int oaio_read(struct oaiocb *aiocbp); } 556319 AUE_NULL MNOSTD { int oaio_write(struct oaiocb *aiocbp); } 557320 AUE_NULL MNOSTD { int olio_listio(int mode, \ 558 struct oaiocb * const *acb_list, \ 559 int nent, struct osigevent *sig); } 560321 AUE_NULL MSTD { int yield(void); } 561322 AUE_NULL OBSOL thr_sleep 562323 AUE_NULL OBSOL thr_wakeup 563324 AUE_MLOCKALL MSTD { int mlockall(int how); } 564325 AUE_MUNLOCKALL MSTD { int munlockall(void); } 565326 AUE_NULL MSTD { int __getcwd(u_char *buf, u_int buflen); } 566 567327 AUE_NULL MSTD { int sched_setparam (pid_t pid, \ 568 const struct sched_param *param); } 569328 AUE_NULL MSTD { int sched_getparam (pid_t pid, struct \ 570 sched_param *param); } 571 572329 AUE_NULL MSTD { int sched_setscheduler (pid_t pid, int \ 573 policy, const struct sched_param \ 574 *param); } 575330 AUE_NULL MSTD { int sched_getscheduler (pid_t pid); } 576 577331 AUE_NULL MSTD { int sched_yield (void); } 578332 AUE_NULL MSTD { int sched_get_priority_max (int policy); } 579333 AUE_NULL MSTD { int sched_get_priority_min (int policy); } 580334 AUE_NULL MSTD { int sched_rr_get_interval (pid_t pid, \ 581 struct timespec *interval); } 582335 AUE_NULL MSTD { int utrace(const void *addr, size_t len); } 583336 AUE_SENDFILE MCOMPAT4 { int sendfile(int fd, int s, \ 584 off_t offset, size_t nbytes, \ 585 struct sf_hdtr *hdtr, off_t *sbytes, \ 586 int flags); } 587337 AUE_NULL MSTD { int kldsym(int fileid, int cmd, \ 588 void *data); } 589338 AUE_JAIL MSTD { int jail(struct jail *jail); } 590339 AUE_NULL UNIMPL pioctl 591340 AUE_SIGPROCMASK MSTD { int sigprocmask(int how, \ 592 const sigset_t *set, sigset_t *oset); } 593341 AUE_SIGSUSPEND MSTD { int sigsuspend(const sigset_t *sigmask); } 594342 AUE_SIGACTION MCOMPAT4 { int sigaction(int sig, const \ 595 struct sigaction *act, \ 596 struct sigaction *oact); } 597343 AUE_SIGPENDING MSTD { int sigpending(sigset_t *set); } 598344 AUE_SIGRETURN MCOMPAT4 { int sigreturn( \ 599 const struct ucontext4 *sigcntxp); } 600345 AUE_SIGWAIT MSTD { int sigtimedwait(const sigset_t *set, \ 601 siginfo_t *info, \ 602 const struct timespec *timeout); } 603346 AUE_NULL MSTD { int sigwaitinfo(const sigset_t *set, \ 604 siginfo_t *info); } 605347 AUE_NULL MSTD { int __acl_get_file(const char *path, \ 606 acl_type_t type, struct acl *aclp); } 607348 AUE_NULL MSTD { int __acl_set_file(const char *path, \ 608 acl_type_t type, struct acl *aclp); } 609349 AUE_NULL MSTD { int __acl_get_fd(int filedes, \ 610 acl_type_t type, struct acl *aclp); } 611350 AUE_NULL MSTD { int __acl_set_fd(int filedes, \ 612 acl_type_t type, struct acl *aclp); } 613351 AUE_NULL MSTD { int __acl_delete_file(const char *path, \ 614 acl_type_t type); } 615352 AUE_NULL MSTD { int __acl_delete_fd(int filedes, \ 616 acl_type_t type); } 617353 AUE_NULL MSTD { int __acl_aclcheck_file(const char *path, \ 618 acl_type_t type, struct acl *aclp); } 619354 AUE_NULL MSTD { int __acl_aclcheck_fd(int filedes, \ 620 acl_type_t type, struct acl *aclp); } 621355 AUE_NULL MSTD { int extattrctl(const char *path, int cmd, \ 622 const char *filename, int attrnamespace, \ 623 const char *attrname); } 624356 AUE_NULL MSTD { int extattr_set_file(const char *path, \ 625 int attrnamespace, const char *attrname, \ 626 void *data, size_t nbytes); } 627357 AUE_NULL MSTD { ssize_t extattr_get_file(const char *path, \ 628 int attrnamespace, const char *attrname, \ 629 void *data, size_t nbytes); } 630358 AUE_NULL MSTD { int extattr_delete_file(const char *path, \ 631 int attrnamespace, \ 632 const char *attrname); } 633359 AUE_NULL MNOSTD { int aio_waitcomplete( \ 634 struct aiocb **aiocbp, \ 635 struct timespec *timeout); } 636360 AUE_GETRESUID MSTD { int getresuid(uid_t *ruid, uid_t *euid, \ 637 uid_t *suid); } 638361 AUE_GETRESGID MSTD { int getresgid(gid_t *rgid, gid_t *egid, \ 639 gid_t *sgid); } 640362 AUE_NULL MSTD { int kqueue(void); } 641363 AUE_NULL MSTD { int kevent(int fd, \ 642 struct kevent *changelist, int nchanges, \ 643 struct kevent *eventlist, int nevents, \ 644 const struct timespec *timeout); } 645364 AUE_NULL UNIMPL __cap_get_proc 646365 AUE_NULL UNIMPL __cap_set_proc 647366 AUE_NULL UNIMPL __cap_get_fd 648367 AUE_NULL UNIMPL __cap_get_file 649368 AUE_NULL UNIMPL __cap_set_fd 650369 AUE_NULL UNIMPL __cap_set_file 651370 AUE_NULL NODEF lkmressys lkmressys nosys_args int 652371 AUE_NULL MSTD { int extattr_set_fd(int fd, \ 653 int attrnamespace, const char *attrname, \ 654 void *data, size_t nbytes); } 655372 AUE_NULL MSTD { ssize_t extattr_get_fd(int fd, \ 656 int attrnamespace, const char *attrname, \ 657 void *data, size_t nbytes); } 658373 AUE_NULL MSTD { int extattr_delete_fd(int fd, \ 659 int attrnamespace, \ 660 const char *attrname); } 661374 AUE_NULL MSTD { int __setugid(int flag); } 662375 AUE_NULL NOIMPL { int nfsclnt(int flag, caddr_t argp); } 663376 AUE_EACCESS MSTD { int eaccess(char *path, int flags); } 664377 AUE_NULL UNIMPL afs_syscall 665378 AUE_NULL STD { int nmount(struct iovec *iovp, \ 666 unsigned int iovcnt, int flags); } 667379 AUE_NULL MSTD { int kse_exit(void); } 668380 AUE_NULL MSTD { int kse_wakeup(struct kse_mailbox *mbx); } 669381 AUE_NULL MSTD { int kse_create(struct kse_mailbox *mbx, \ 670 int newgroup); } 671382 AUE_NULL MSTD { int kse_thr_interrupt( \ 672 struct kse_thr_mailbox *tmbx, int cmd, \ 673 long data); } 674383 AUE_NULL MSTD { int kse_release(struct timespec *timeout); } 675384 AUE_NULL MSTD { int __mac_get_proc(struct mac *mac_p); } 676385 AUE_NULL MSTD { int __mac_set_proc(struct mac *mac_p); } 677386 AUE_NULL MSTD { int __mac_get_fd(int fd, \ 678 struct mac *mac_p); } 679387 AUE_NULL MSTD { int __mac_get_file(const char *path_p, \ 680 struct mac *mac_p); } 681388 AUE_NULL MSTD { int __mac_set_fd(int fd, \ 682 struct mac *mac_p); } 683389 AUE_NULL MSTD { int __mac_set_file(const char *path_p, \ 684 struct mac *mac_p); } 685390 AUE_NULL MSTD { int kenv(int what, const char *name, \ 686 char *value, int len); } 687391 AUE_LCHFLAGS MSTD { int lchflags(const char *path, int flags); } 688392 AUE_NULL MSTD { int uuidgen(struct uuid *store, \ 689 int count); } 690393 AUE_SENDFILE MSTD { int sendfile(int fd, int s, off_t offset, \ 691 size_t nbytes, struct sf_hdtr *hdtr, \ 692 off_t *sbytes, int flags); } 693394 AUE_NULL MSTD { int mac_syscall(const char *policy, \ 694 int call, void *arg); } 695395 AUE_GETFSSTAT MSTD { int getfsstat(struct statfs *buf, \ 696 long bufsize, int flags); } 697396 AUE_STATFS MSTD { int statfs(char *path, \ 698 struct statfs *buf); } 699397 AUE_FSTATFS MSTD { int fstatfs(int fd, struct statfs *buf); } 700398 AUE_NULL MSTD { int fhstatfs(const struct fhandle *u_fhp, \ 701 struct statfs *buf); } 702399 AUE_NULL UNIMPL nosys 703400 AUE_NULL MNOSTD { int ksem_close(semid_t id); } 704401 AUE_NULL MNOSTD { int ksem_post(semid_t id); } 705402 AUE_NULL MNOSTD { int ksem_wait(semid_t id); } 706403 AUE_NULL MNOSTD { int ksem_trywait(semid_t id); } 707404 AUE_NULL MNOSTD { int ksem_init(semid_t *idp, \ 708 unsigned int value); } 709405 AUE_NULL MNOSTD { int ksem_open(semid_t *idp, \ 710 const char *name, int oflag, \ 711 mode_t mode, unsigned int value); } 712406 AUE_NULL MNOSTD { int ksem_unlink(const char *name); } 713407 AUE_NULL MNOSTD { int ksem_getvalue(semid_t id, int *val); } 714408 AUE_NULL MNOSTD { int ksem_destroy(semid_t id); } 715409 AUE_NULL MSTD { int __mac_get_pid(pid_t pid, \ 716 struct mac *mac_p); } 717410 AUE_NULL MSTD { int __mac_get_link(const char *path_p, \ 718 struct mac *mac_p); } 719411 AUE_NULL MSTD { int __mac_set_link(const char *path_p, \ 720 struct mac *mac_p); } 721412 AUE_NULL MSTD { int extattr_set_link(const char *path, \ 722 int attrnamespace, const char *attrname, \ 723 void *data, size_t nbytes); } 724413 AUE_NULL MSTD { ssize_t extattr_get_link(const char *path, \ 725 int attrnamespace, const char *attrname, \ 726 void *data, size_t nbytes); } 727414 AUE_NULL MSTD { int extattr_delete_link(const char *path, \ 728 int attrnamespace, \ 729 const char *attrname); } 730415 AUE_NULL MSTD { int __mac_execve(char *fname, char **argv, \ 731 char **envv, struct mac *mac_p); } 732416 AUE_SIGACTION MSTD { int sigaction(int sig, \ 733 const struct sigaction *act, \ 734 struct sigaction *oact); } 735417 AUE_SIGRETURN MSTD { int sigreturn( \ 736 const struct __ucontext *sigcntxp); } 737418 AUE_NULL UNIMPL __xstat 738419 AUE_NULL UNIMPL __xfstat 739420 AUE_NULL UNIMPL __xlstat 740421 AUE_NULL MSTD { int getcontext(struct __ucontext *ucp); } 741422 AUE_NULL MSTD { int setcontext( \ 742 const struct __ucontext *ucp); } 743423 AUE_NULL MSTD { int swapcontext(struct __ucontext *oucp, \ 744 const struct __ucontext *ucp); } 745424 AUE_SWAPOFF MSTD { int swapoff(const char *name); } 746425 AUE_NULL MSTD { int __acl_get_link(const char *path, \ 747 acl_type_t type, struct acl *aclp); } 748426 AUE_NULL MSTD { int __acl_set_link(const char *path, \ 749 acl_type_t type, struct acl *aclp); } 750427 AUE_NULL MSTD { int __acl_delete_link(const char *path, \ 751 acl_type_t type); } 752428 AUE_NULL MSTD { int __acl_aclcheck_link(const char *path, \ 753 acl_type_t type, struct acl *aclp); } 754429 AUE_SIGWAIT MSTD { int sigwait(const sigset_t *set, \ 755 int *sig); } 756430 AUE_NULL MSTD { int thr_create(ucontext_t *ctx, long *id, \ 757 int flags); } 758431 AUE_NULL MSTD { void thr_exit(long *state); } 759432 AUE_NULL MSTD { int thr_self(long *id); } 760433 AUE_NULL MSTD { int thr_kill(long id, int sig); } 761434 AUE_NULL MSTD { int _umtx_lock(struct umtx *umtx); } 762435 AUE_NULL MSTD { int _umtx_unlock(struct umtx *umtx); } 763436 AUE_NULL MSTD { int jail_attach(int jid); } 764437 AUE_NULL MSTD { ssize_t extattr_list_fd(int fd, \ 765 int attrnamespace, void *data, \ 766 size_t nbytes); } 767438 AUE_NULL MSTD { ssize_t extattr_list_file( \ 768 const char *path, int attrnamespace, \ 769 void *data, size_t nbytes); } 770439 AUE_NULL MSTD { ssize_t extattr_list_link( \ 771 const char *path, int attrnamespace, \ 772 void *data, size_t nbytes); } 773440 AUE_NULL MSTD { int kse_switchin( \ 774 struct kse_thr_mailbox *tmbx, \ 775 int flags); } 776441 AUE_NULL MNOSTD { int ksem_timedwait(semid_t id, \ 777 const struct timespec *abstime); } 778442 AUE_NULL MSTD { int thr_suspend( \ 779 const struct timespec *timeout); } 780443 AUE_NULL MSTD { int thr_wake(long id); } 781444 AUE_NULL MSTD { int kldunloadf(int fileid, int flags); } 782445 AUE_AUDIT MSTD { int audit(const void *record, \ 783 u_int length); } 784446 AUE_AUDITON MSTD { int auditon(int cmd, void *data, \ 785 u_int length); } 786447 AUE_GETAUID MSTD { int getauid(uid_t *auid); } 787448 AUE_SETAUID MSTD { int setauid(uid_t *auid); } 788449 AUE_GETAUDIT MSTD { int getaudit(struct auditinfo *auditinfo); } 789450 AUE_SETAUDIT MSTD { int setaudit(struct auditinfo *auditinfo); } 790451 AUE_GETAUDIT_ADDR MSTD { int getaudit_addr( \ 791 struct auditinfo_addr *auditinfo_addr, \ 792 u_int length); } 793452 AUE_SETAUDIT_ADDR MSTD { int setaudit_addr( \ 794 struct auditinfo_addr *auditinfo_addr, \ 795 u_int length); } 796453 AUE_AUDITCTL MSTD { int auditctl(char *path); } 797454 AUE_NULL MSTD { int _umtx_op(struct umtx *umtx, int op, \ 798 long id, void *uaddr, void *uaddr2); } 799455 AUE_NULL MSTD { int thr_new(struct thr_param *param, \ 800 int param_size); } 801456 AUE_NULL MSTD { int sigqueue(pid_t pid, int signum, void *value); } 802457 AUE_NULL MNOSTD { int mq_open(const char *path, int flags, \ 803 mode_t mode, const struct mq_attr *attr); } 804458 AUE_NULL MNOSTD { int mq_setattr(mqd_t mqd, \ 805 const struct mq_attr *attr, \ 806 struct mq_attr *oattr); } 807459 AUE_NULL MNOSTD { int mq_timedreceive(mqd_t mqd, \ 808 char *msg_ptr, size_t msg_len, \ 809 unsigned *msg_prio, \ 810 const struct timespec *abs_timeout); } 811460 AUE_NULL MNOSTD { int mq_timedsend(mqd_t mqd, \ 812 const char *msg_ptr, size_t msg_len,\ 813 unsigned msg_prio, \ 814 const struct timespec *abs_timeout);} 815461 AUE_NULL MNOSTD { int mq_notify(mqd_t mqd, \ 816 const struct sigevent *sigev); } 817462 AUE_NULL MNOSTD { int mq_unlink(const char *path); } 818463 AUE_NULL MSTD { int abort2(const char *why, int nargs, void **args); } 819464 AUE_NULL MSTD { int thr_set_name(long id, const char *name); } 820; Please copy any additions and changes to the following compatability tables: 821; sys/compat/freebsd32/syscalls.master 822