syscalls.master revision 161325
150477Speter $FreeBSD: head/sys/kern/syscalls.master 161325 2006-08-15 16:45:41Z jhb $ 21817Sdg; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 31817Sdg; 41541Srgrimes; System call name/number master file. 51541Srgrimes; Processed to created init_sysent.c, syscalls.c and syscall.h. 61541Srgrimes 7160798Sjhb; Columns: number audit type name alt{name,tag,rtyp}/comments 81541Srgrimes; number system call number, must be in order 9146806Srwatson; audit the audit event associated with the system call 10146806Srwatson; A value of AUE_NULL means no auditing, but it also means that 11146806Srwatson; there is no audit event for the call at this time. For the 12146806Srwatson; case where the event exists, but we don't want auditing, the 13146806Srwatson; event should be #defined to AUE_NULL in audit_kevents.h. 14160798Sjhb; type one of STD, OBSOL, UNIMPL, COMPAT, CPT_NOA, LIBCOMPAT, 15160798Sjhb; NODEF, NOARGS, NOPROTO, NOIMPL, NOSTD, COMPAT4 1611294Sswallace; name psuedo-prototype of syscall routine 1710905Sbde; If one of the following alts is different, then all appear: 181541Srgrimes; altname name of system call if different 1910905Sbde; alttag name of args struct tag if different from [o]`name'"_args" 2010905Sbde; altrtyp return type if not int (bogus - syscalls always return int) 211541Srgrimes; for UNIMPL/OBSOL, name continues with comments 221541Srgrimes 231541Srgrimes; types: 241541Srgrimes; STD always included 251541Srgrimes; COMPAT included on COMPAT #ifdef 2699855Salfred; COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat) 271541Srgrimes; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 281541Srgrimes; OBSOL obsolete, not included in system, only specifies name 291541Srgrimes; UNIMPL not implemented, placeholder only 3069449Salfred; NOSTD implemented but as a lkm that can be statically 31160797Sjhb; compiled in; sysent entry will be filled with lkmsys 32160797Sjhb; so the SYSCALL_MODULE macro works 33104747Srwatson; 34104747Srwatson; Please copy any additions and changes to the following compatability tables: 35123408Speter; sys/compat/freebsd32/syscalls.master 36123408Speter 371541Srgrimes; #ifdef's, etc. may be included, and are copied to the output files. 381541Srgrimes 3911294Sswallace#include <sys/param.h> 4011294Sswallace#include <sys/sysent.h> 4111294Sswallace#include <sys/sysproto.h> 4211294Sswallace 431541Srgrimes; Reserved/unimplemented system calls in the range 0-150 inclusive 441541Srgrimes; are reserved for use in future Berkeley releases. 451541Srgrimes; Additional system calls implemented in vendor and other 461541Srgrimes; redistributions should be placed in the reserved range at the end 471541Srgrimes; of the current calls. 481541Srgrimes 49160798Sjhb0 AUE_NULL STD { int nosys(void); } syscall nosys_args int 50160798Sjhb1 AUE_EXIT STD { void sys_exit(int rval); } exit \ 51146806Srwatson sys_exit_args void 52160798Sjhb2 AUE_FORK STD { int fork(void); } 53160798Sjhb3 AUE_NULL STD { ssize_t read(int fd, void *buf, \ 54146806Srwatson size_t nbyte); } 55160798Sjhb4 AUE_NULL STD { ssize_t write(int fd, const void *buf, \ 56146806Srwatson size_t nbyte); } 57160798Sjhb5 AUE_OPEN_RWTC STD { int open(char *path, int flags, int mode); } 5812216Sbde; XXX should be { int open(const char *path, int flags, ...); } 5912216Sbde; but we're not ready for `const' or varargs. 6012216Sbde; XXX man page says `mode_t mode'. 61160798Sjhb6 AUE_CLOSE STD { int close(int fd); } 62160798Sjhb7 AUE_WAIT4 STD { int wait4(int pid, int *status, \ 63146806Srwatson int options, struct rusage *rusage); } \ 64146806Srwatson wait4 wait_args int 65160798Sjhb8 AUE_O_CREAT COMPAT { int creat(char *path, int mode); } 66160798Sjhb9 AUE_LINK STD { int link(char *path, char *link); } 67160798Sjhb10 AUE_UNLINK STD { int unlink(char *path); } 68146806Srwatson11 AUE_NULL OBSOL execv 69160798Sjhb12 AUE_CHDIR STD { int chdir(char *path); } 70160798Sjhb13 AUE_FCHDIR STD { int fchdir(int fd); } 71160798Sjhb14 AUE_MKNOD STD { int mknod(char *path, int mode, int dev); } 72160798Sjhb15 AUE_CHMOD STD { int chmod(char *path, int mode); } 73160798Sjhb16 AUE_CHOWN STD { int chown(char *path, int uid, int gid); } 74160798Sjhb17 AUE_NULL STD { int obreak(char *nsize); } break \ 75146806Srwatson obreak_args int 76160798Sjhb18 AUE_GETFSSTAT COMPAT4 { int getfsstat(struct ostatfs *buf, \ 77146806Srwatson long bufsize, int flags); } 78160798Sjhb19 AUE_LSEEK COMPAT { long lseek(int fd, long offset, \ 79146806Srwatson int whence); } 80160798Sjhb20 AUE_GETPID STD { pid_t getpid(void); } 81160798Sjhb21 AUE_MOUNT STD { int mount(char *type, char *path, \ 82146806Srwatson int flags, caddr_t data); } 8312216Sbde; XXX `path' should have type `const char *' but we're not ready for that. 84160798Sjhb22 AUE_UMOUNT STD { int unmount(char *path, int flags); } 85160798Sjhb23 AUE_SETUID STD { int setuid(uid_t uid); } 86160798Sjhb24 AUE_GETUID STD { uid_t getuid(void); } 87160798Sjhb25 AUE_GETEUID STD { uid_t geteuid(void); } 88160798Sjhb26 AUE_PTRACE STD { int ptrace(int req, pid_t pid, \ 89146806Srwatson caddr_t addr, int data); } 90160798Sjhb27 AUE_RECVMSG STD { int recvmsg(int s, struct msghdr *msg, \ 91146806Srwatson int flags); } 92160798Sjhb28 AUE_SENDMSG STD { int sendmsg(int s, struct msghdr *msg, \ 93146806Srwatson int flags); } 94160798Sjhb29 AUE_RECVFROM STD { int recvfrom(int s, caddr_t buf, \ 95146806Srwatson size_t len, int flags, \ 96146806Srwatson struct sockaddr * __restrict from, \ 97146806Srwatson __socklen_t * __restrict fromlenaddr); } 98160798Sjhb30 AUE_ACCEPT STD { int accept(int s, \ 99146806Srwatson struct sockaddr * __restrict name, \ 100146806Srwatson __socklen_t * __restrict anamelen); } 101160798Sjhb31 AUE_GETPEERNAME STD { int getpeername(int fdes, \ 102146806Srwatson struct sockaddr * __restrict asa, \ 103146806Srwatson __socklen_t * __restrict alen); } 104160798Sjhb32 AUE_GETSOCKNAME STD { int getsockname(int fdes, \ 105146806Srwatson struct sockaddr * __restrict asa, \ 106146806Srwatson __socklen_t * __restrict alen); } 107160798Sjhb33 AUE_ACCESS STD { int access(char *path, int flags); } 108160798Sjhb34 AUE_CHFLAGS STD { int chflags(char *path, int flags); } 109160798Sjhb35 AUE_FCHFLAGS STD { int fchflags(int fd, int flags); } 110160798Sjhb36 AUE_SYNC STD { int sync(void); } 111160798Sjhb37 AUE_KILL STD { int kill(int pid, int signum); } 112160798Sjhb38 AUE_STAT COMPAT { int stat(char *path, struct ostat *ub); } 113160798Sjhb39 AUE_GETPPID STD { pid_t getppid(void); } 114160798Sjhb40 AUE_LSTAT COMPAT { int lstat(char *path, struct ostat *ub); } 115160798Sjhb41 AUE_DUP STD { int dup(u_int fd); } 116160798Sjhb42 AUE_PIPE STD { int pipe(void); } 117160798Sjhb43 AUE_GETEGID STD { gid_t getegid(void); } 118160798Sjhb44 AUE_PROFILE STD { int profil(caddr_t samples, size_t size, \ 119146806Srwatson size_t offset, u_int scale); } 120160798Sjhb45 AUE_KTRACE STD { int ktrace(const char *fname, int ops, \ 121146806Srwatson int facs, int pid); } 122160798Sjhb46 AUE_SIGACTION COMPAT { int sigaction(int signum, \ 123146806Srwatson struct osigaction *nsa, \ 124146806Srwatson struct osigaction *osa); } 125160798Sjhb47 AUE_GETGID STD { gid_t getgid(void); } 126160798Sjhb48 AUE_SIGPROCMASK COMPAT { int sigprocmask(int how, osigset_t mask); } 12721776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes 12821776Sbde; us the mask, not a pointer to it, and we return the old mask as the 12921776Sbde; (int) return value. 130160798Sjhb49 AUE_GETLOGIN STD { int getlogin(char *namebuf, u_int \ 131146806Srwatson namelen); } 132160798Sjhb50 AUE_SETLOGIN STD { int setlogin(char *namebuf); } 133160798Sjhb51 AUE_ACCT STD { int acct(char *path); } 134160798Sjhb52 AUE_SIGPENDING COMPAT { int sigpending(void); } 135160798Sjhb53 AUE_SIGPENDING STD { int sigaltstack(stack_t *ss, \ 136146806Srwatson stack_t *oss); } 137160798Sjhb54 AUE_IOCTL STD { int ioctl(int fd, u_long com, \ 138146806Srwatson caddr_t data); } 139160798Sjhb55 AUE_REBOOT STD { int reboot(int opt); } 140160798Sjhb56 AUE_REVOKE STD { int revoke(char *path); } 141160798Sjhb57 AUE_SYMLINK STD { int symlink(char *path, char *link); } 142160798Sjhb58 AUE_READLINK STD { int readlink(char *path, char *buf, \ 143146806Srwatson int count); } 144160798Sjhb59 AUE_EXECVE STD { int execve(char *fname, char **argv, \ 145146806Srwatson char **envv); } 146160798Sjhb60 AUE_UMASK STD { int umask(int newmask); } umask umask_args \ 147146806Srwatson int 148160798Sjhb61 AUE_CHROOT STD { int chroot(char *path); } 149160798Sjhb62 AUE_FSTAT COMPAT { int fstat(int fd, struct ostat *sb); } 150160798Sjhb63 AUE_NULL COMPAT { int getkerninfo(int op, char *where, \ 151146806Srwatson size_t *size, int arg); } getkerninfo \ 152146806Srwatson getkerninfo_args int 153160798Sjhb64 AUE_O_GETPAGESIZE COMPAT { int getpagesize(void); } getpagesize \ 154146806Srwatson getpagesize_args int 155160798Sjhb65 AUE_MSYNC STD { int msync(void *addr, size_t len, \ 156146806Srwatson int flags); } 157160798Sjhb66 AUE_VFORK STD { int vfork(void); } 158146806Srwatson67 AUE_NULL OBSOL vread 159146806Srwatson68 AUE_NULL OBSOL vwrite 160160798Sjhb69 AUE_SBRK STD { int sbrk(int incr); } 161160798Sjhb70 AUE_SSTK STD { int sstk(int incr); } 162160798Sjhb71 AUE_MMAP COMPAT { int mmap(void *addr, int len, int prot, \ 163146806Srwatson int flags, int fd, long pos); } 164160798Sjhb72 AUE_O_VADVISE STD { int ovadvise(int anom); } vadvise \ 165146806Srwatson ovadvise_args int 166160798Sjhb73 AUE_MUNMAP STD { int munmap(void *addr, size_t len); } 167160798Sjhb74 AUE_MPROTECT STD { int mprotect(const void *addr, size_t len, \ 168146806Srwatson int prot); } 169160798Sjhb75 AUE_MADVISE STD { int madvise(void *addr, size_t len, \ 170146806Srwatson int behav); } 171146806Srwatson76 AUE_NULL OBSOL vhangup 172146806Srwatson77 AUE_NULL OBSOL vlimit 173160798Sjhb78 AUE_MINCORE STD { int mincore(const void *addr, size_t len, \ 174146806Srwatson char *vec); } 175160798Sjhb79 AUE_GETGROUPS STD { int getgroups(u_int gidsetsize, \ 176146806Srwatson gid_t *gidset); } 177160798Sjhb80 AUE_SETGROUPS STD { int setgroups(u_int gidsetsize, \ 178146806Srwatson gid_t *gidset); } 179160798Sjhb81 AUE_GETPGRP STD { int getpgrp(void); } 180160798Sjhb82 AUE_SETPGRP STD { int setpgid(int pid, int pgid); } 181160798Sjhb83 AUE_SETITIMER STD { int setitimer(u_int which, struct \ 182146806Srwatson itimerval *itv, struct itimerval *oitv); } 183160798Sjhb84 AUE_WAIT4 COMPAT { int wait(void); } 184160798Sjhb85 AUE_SWAPON STD { int swapon(char *name); } 185160798Sjhb86 AUE_GETITIMER STD { int getitimer(u_int which, \ 186146806Srwatson struct itimerval *itv); } 187160798Sjhb87 AUE_SYSCTL COMPAT { int gethostname(char *hostname, \ 188146806Srwatson u_int len); } gethostname \ 189146806Srwatson gethostname_args int 190160798Sjhb88 AUE_SYSCTL COMPAT { int sethostname(char *hostname, \ 191146806Srwatson u_int len); } sethostname \ 192146806Srwatson sethostname_args int 193160798Sjhb89 AUE_GETDTABLESIZE STD { int getdtablesize(void); } 194160798Sjhb90 AUE_DUP2 STD { int dup2(u_int from, u_int to); } 195146806Srwatson91 AUE_NULL UNIMPL getdopt 196160798Sjhb92 AUE_FCNTL STD { int fcntl(int fd, int cmd, long arg); } 197123750Speter; XXX should be { int fcntl(int fd, int cmd, ...); } 19812216Sbde; but we're not ready for varargs. 199160798Sjhb93 AUE_SELECT STD { int select(int nd, fd_set *in, fd_set *ou, \ 200146806Srwatson fd_set *ex, struct timeval *tv); } 201146806Srwatson94 AUE_NULL UNIMPL setdopt 202160798Sjhb95 AUE_FSYNC STD { int fsync(int fd); } 203160798Sjhb96 AUE_SETPRIORITY STD { int setpriority(int which, int who, \ 204146806Srwatson int prio); } 205160798Sjhb97 AUE_SOCKET STD { int socket(int domain, int type, \ 206146806Srwatson int protocol); } 207160798Sjhb98 AUE_CONNECT STD { int connect(int s, caddr_t name, \ 208146806Srwatson int namelen); } 209160798Sjhb99 AUE_ACCEPT CPT_NOA { int accept(int s, caddr_t name, \ 210146806Srwatson int *anamelen); } accept accept_args int 211160798Sjhb100 AUE_GETPRIORITY STD { int getpriority(int which, int who); } 212160798Sjhb101 AUE_SEND COMPAT { int send(int s, caddr_t buf, int len, \ 213146806Srwatson int flags); } 214160798Sjhb102 AUE_RECV COMPAT { int recv(int s, caddr_t buf, int len, \ 215146806Srwatson int flags); } 216160798Sjhb103 AUE_SIGRETURN COMPAT { int sigreturn( \ 217146806Srwatson struct osigcontext *sigcntxp); } 218160798Sjhb104 AUE_BIND STD { int bind(int s, caddr_t name, \ 219146806Srwatson int namelen); } 220160798Sjhb105 AUE_SETSOCKOPT STD { int setsockopt(int s, int level, int name, \ 221146806Srwatson caddr_t val, int valsize); } 222160798Sjhb106 AUE_LISTEN STD { int listen(int s, int backlog); } 223146806Srwatson107 AUE_NULL OBSOL vtimes 224160798Sjhb108 AUE_NULL COMPAT { int sigvec(int signum, struct sigvec *nsv, \ 225146806Srwatson struct sigvec *osv); } 226160798Sjhb109 AUE_NULL COMPAT { int sigblock(int mask); } 227160798Sjhb110 AUE_NULL COMPAT { int sigsetmask(int mask); } 228160798Sjhb111 AUE_NULL COMPAT { int sigsuspend(osigset_t mask); } 22921776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes 23021776Sbde; us the mask, not a pointer to it. 231160798Sjhb112 AUE_NULL COMPAT { int sigstack(struct sigstack *nss, \ 232146806Srwatson struct sigstack *oss); } 233160798Sjhb113 AUE_RECVMSG COMPAT { int recvmsg(int s, struct omsghdr *msg, \ 234146806Srwatson int flags); } 235160798Sjhb114 AUE_SENDMSG COMPAT { int sendmsg(int s, caddr_t msg, \ 236146806Srwatson int flags); } 237146806Srwatson115 AUE_NULL OBSOL vtrace 238160798Sjhb116 AUE_GETTIMEOFDAY STD { int gettimeofday(struct timeval *tp, \ 239146806Srwatson struct timezone *tzp); } 240160798Sjhb117 AUE_GETRUSAGE STD { int getrusage(int who, \ 241146806Srwatson struct rusage *rusage); } 242160798Sjhb118 AUE_GETSOCKOPT STD { int getsockopt(int s, int level, int name, \ 243146806Srwatson caddr_t val, int *avalsize); } 244146806Srwatson119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 245160798Sjhb120 AUE_READV STD { int readv(int fd, struct iovec *iovp, \ 246146806Srwatson u_int iovcnt); } 247160798Sjhb121 AUE_WRITEV STD { int writev(int fd, struct iovec *iovp, \ 248146806Srwatson u_int iovcnt); } 249160798Sjhb122 AUE_SETTIMEOFDAY STD { int settimeofday(struct timeval *tv, \ 250146806Srwatson struct timezone *tzp); } 251160798Sjhb123 AUE_FCHOWN STD { int fchown(int fd, int uid, int gid); } 252160798Sjhb124 AUE_FCHMOD STD { int fchmod(int fd, int mode); } 253160798Sjhb125 AUE_RECVFROM CPT_NOA { int recvfrom(int s, caddr_t buf, \ 254146806Srwatson size_t len, int flags, caddr_t from, int \ 255146806Srwatson *fromlenaddr); } recvfrom recvfrom_args \ 256146806Srwatson int 257160798Sjhb126 AUE_SETREUID STD { int setreuid(int ruid, int euid); } 258160798Sjhb127 AUE_SETREGID STD { int setregid(int rgid, int egid); } 259160798Sjhb128 AUE_RENAME STD { int rename(char *from, char *to); } 260160798Sjhb129 AUE_TRUNCATE COMPAT { int truncate(char *path, long length); } 261160798Sjhb130 AUE_FTRUNCATE COMPAT { int ftruncate(int fd, long length); } 262160798Sjhb131 AUE_FLOCK STD { int flock(int fd, int how); } 263160798Sjhb132 AUE_MKFIFO STD { int mkfifo(char *path, int mode); } 264160798Sjhb133 AUE_SENDTO STD { int sendto(int s, caddr_t buf, size_t len, \ 265146806Srwatson int flags, caddr_t to, int tolen); } 266160798Sjhb134 AUE_SHUTDOWN STD { int shutdown(int s, int how); } 267160798Sjhb135 AUE_SOCKETPAIR STD { int socketpair(int domain, int type, \ 268146806Srwatson int protocol, int *rsv); } 269160798Sjhb136 AUE_MKDIR STD { int mkdir(char *path, int mode); } 270160798Sjhb137 AUE_RMDIR STD { int rmdir(char *path); } 271160798Sjhb138 AUE_UTIMES STD { int utimes(char *path, \ 272146806Srwatson struct timeval *tptr); } 273146806Srwatson139 AUE_NULL OBSOL 4.2 sigreturn 274160798Sjhb140 AUE_ADJTIME STD { int adjtime(struct timeval *delta, \ 275146806Srwatson struct timeval *olddelta); } 276160798Sjhb141 AUE_GETPEERNAME COMPAT { int getpeername(int fdes, caddr_t asa, \ 277146806Srwatson int *alen); } 278160798Sjhb142 AUE_SYSCTL COMPAT { long gethostid(void); } 279160798Sjhb143 AUE_SYSCTL COMPAT { int sethostid(long hostid); } 280160798Sjhb144 AUE_GETRLIMIT COMPAT { int getrlimit(u_int which, struct \ 281146806Srwatson orlimit *rlp); } 282160798Sjhb145 AUE_SETRLIMIT COMPAT { int setrlimit(u_int which, \ 283146806Srwatson struct orlimit *rlp); } 284160798Sjhb146 AUE_KILLPG COMPAT { int killpg(int pgid, int signum); } 285160798Sjhb147 AUE_SETSID STD { int setsid(void); } 286160798Sjhb148 AUE_QUOTACTL STD { int quotactl(char *path, int cmd, int uid, \ 287146806Srwatson caddr_t arg); } 288160798Sjhb149 AUE_O_QUOTA COMPAT { int quota(void); } 289160798Sjhb150 AUE_GETSOCKNAME CPT_NOA { int getsockname(int fdec, \ 290146806Srwatson caddr_t asa, int *alen); } getsockname \ 291146806Srwatson getsockname_args int 2921541Srgrimes 2931541Srgrimes; Syscalls 151-180 inclusive are reserved for vendor-specific 2941541Srgrimes; system calls. (This includes various calls added for compatibity 2951541Srgrimes; with other Unix variants.) 2961541Srgrimes; Some of these calls are now supported by BSD... 297146806Srwatson151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 298146806Srwatson152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 299146806Srwatson153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 300146806Srwatson154 AUE_NULL UNIMPL nosys 30130740Sphk; 155 is initialized by the NFS code, if present. 302161325Sjhb155 AUE_NFS_SVC NOSTD { int nfssvc(int flag, caddr_t argp); } 303160798Sjhb156 AUE_GETDIRENTRIES COMPAT { int getdirentries(int fd, char *buf, \ 304146806Srwatson u_int count, long *basep); } 305160798Sjhb157 AUE_STATFS COMPAT4 { int statfs(char *path, \ 306146806Srwatson struct ostatfs *buf); } 307160798Sjhb158 AUE_FSTATFS COMPAT4 { int fstatfs(int fd, \ 308146806Srwatson struct ostatfs *buf); } 309146806Srwatson159 AUE_NULL UNIMPL nosys 310160798Sjhb160 AUE_LGETFH STD { int lgetfh(char *fname, \ 311146806Srwatson struct fhandle *fhp); } 312160798Sjhb161 AUE_NFS_GETFH STD { int getfh(char *fname, \ 313146806Srwatson struct fhandle *fhp); } 314160798Sjhb162 AUE_SYSCTL STD { int getdomainname(char *domainname, \ 315146806Srwatson int len); } 316160798Sjhb163 AUE_SYSCTL STD { int setdomainname(char *domainname, \ 317146806Srwatson int len); } 318160798Sjhb164 AUE_NULL STD { int uname(struct utsname *name); } 319160798Sjhb165 AUE_NULL STD { int sysarch(int op, char *parms); } 320160798Sjhb166 AUE_NULL STD { int rtprio(int function, pid_t pid, \ 321146806Srwatson struct rtprio *rtp); } 322146806Srwatson167 AUE_NULL UNIMPL nosys 323146806Srwatson168 AUE_NULL UNIMPL nosys 32469449Salfred; 169 is initialized by the SYSVSEM code if present or loaded 325160798Sjhb169 AUE_SEMSYS NOSTD { int semsys(int which, int a2, int a3, \ 326146806Srwatson int a4, int a5); } 32769449Salfred; 169 is initialized by the SYSVMSG code if present or loaded 328123750Speter; XXX should be { int semsys(int which, ...); } 329160798Sjhb170 AUE_MSGSYS NOSTD { int msgsys(int which, int a2, int a3, \ 330146806Srwatson int a4, int a5, int a6); } 33169449Salfred; 169 is initialized by the SYSVSHM code if present or loaded 332123750Speter; XXX should be { int msgsys(int which, ...); } 333160798Sjhb171 AUE_SHMSYS NOSTD { int shmsys(int which, int a2, int a3, \ 334146806Srwatson int a4); } 335123750Speter; XXX should be { int shmsys(int which, ...); } 336146806Srwatson172 AUE_NULL UNIMPL nosys 337160798Sjhb173 AUE_PREAD STD { ssize_t pread(int fd, void *buf, \ 338146806Srwatson size_t nbyte, int pad, off_t offset); } 339160798Sjhb174 AUE_PWRITE STD { ssize_t pwrite(int fd, const void *buf, \ 340146806Srwatson size_t nbyte, int pad, off_t offset); } 341146806Srwatson175 AUE_NULL UNIMPL nosys 342160798Sjhb176 AUE_ADJTIME STD { int ntp_adjtime(struct timex *tp); } 343146806Srwatson177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 344146806Srwatson178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 345146806Srwatson179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 346146806Srwatson180 AUE_NULL UNIMPL nosys 3471541Srgrimes 34849428Sjkh; Syscalls 181-199 are used by/reserved for BSD 349160798Sjhb181 AUE_SETGID STD { int setgid(gid_t gid); } 350160798Sjhb182 AUE_SETEGID STD { int setegid(gid_t egid); } 351160798Sjhb183 AUE_SETEUID STD { int seteuid(uid_t euid); } 352146806Srwatson184 AUE_NULL UNIMPL lfs_bmapv 353146806Srwatson185 AUE_NULL UNIMPL lfs_markv 354146806Srwatson186 AUE_NULL UNIMPL lfs_segclean 355146806Srwatson187 AUE_NULL UNIMPL lfs_segwait 356160798Sjhb188 AUE_STAT STD { int stat(char *path, struct stat *ub); } 357160798Sjhb189 AUE_FSTAT STD { int fstat(int fd, struct stat *sb); } 358160798Sjhb190 AUE_LSTAT STD { int lstat(char *path, struct stat *ub); } 359160798Sjhb191 AUE_PATHCONF STD { int pathconf(char *path, int name); } 360160798Sjhb192 AUE_FPATHCONF STD { int fpathconf(int fd, int name); } 361146806Srwatson193 AUE_NULL UNIMPL nosys 362160798Sjhb194 AUE_GETRLIMIT STD { int getrlimit(u_int which, \ 363146806Srwatson struct rlimit *rlp); } getrlimit \ 364146806Srwatson __getrlimit_args int 365160798Sjhb195 AUE_SETRLIMIT STD { int setrlimit(u_int which, \ 366146806Srwatson struct rlimit *rlp); } setrlimit \ 367146806Srwatson __setrlimit_args int 368160798Sjhb196 AUE_GETDIRENTRIES STD { int getdirentries(int fd, char *buf, \ 369146806Srwatson u_int count, long *basep); } 370160798Sjhb197 AUE_MMAP STD { caddr_t mmap(caddr_t addr, size_t len, \ 371146806Srwatson int prot, int flags, int fd, int pad, \ 372146806Srwatson off_t pos); } 373160798Sjhb198 AUE_NULL STD { int nosys(void); } __syscall \ 374146806Srwatson __syscall_args int 375160798Sjhb199 AUE_LSEEK STD { off_t lseek(int fd, int pad, off_t offset, \ 376146806Srwatson int whence); } 377160798Sjhb200 AUE_TRUNCATE STD { int truncate(char *path, int pad, \ 378146806Srwatson off_t length); } 379160798Sjhb201 AUE_FTRUNCATE STD { int ftruncate(int fd, int pad, \ 380146806Srwatson off_t length); } 381160798Sjhb202 AUE_SYSCTL STD { int __sysctl(int *name, u_int namelen, \ 382146806Srwatson void *old, size_t *oldlenp, void *new, \ 383146806Srwatson size_t newlen); } __sysctl sysctl_args int 384160798Sjhb203 AUE_MLOCK STD { int mlock(const void *addr, size_t len); } 385160798Sjhb204 AUE_MUNLOCK STD { int munlock(const void *addr, size_t len); } 386160798Sjhb205 AUE_UNDELETE STD { int undelete(char *path); } 387160798Sjhb206 AUE_FUTIMES STD { int futimes(int fd, struct timeval *tptr); } 388160798Sjhb207 AUE_GETPGID STD { int getpgid(pid_t pid); } 389146806Srwatson208 AUE_NULL UNIMPL newreboot (NetBSD) 390160798Sjhb209 AUE_POLL STD { int poll(struct pollfd *fds, u_int nfds, \ 391146806Srwatson int timeout); } 3922124Sdg 3932124Sdg; 3942124Sdg; The following are reserved for loadable syscalls 3952124Sdg; 396146806Srwatson210 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 397146806Srwatson211 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 398146806Srwatson212 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 399146806Srwatson213 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 400146806Srwatson214 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 401146806Srwatson215 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 402146806Srwatson216 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 403146806Srwatson217 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 404146806Srwatson218 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 405146806Srwatson219 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int 40612864Speter 40712864Speter; 40814215Speter; The following were introduced with NetBSD/4.4Lite-2 409160798Sjhb220 AUE_SEMCTL NOSTD { int __semctl(int semid, int semnum, \ 410146806Srwatson int cmd, union semun *arg); } 411160798Sjhb221 AUE_SEMGET NOSTD { int semget(key_t key, int nsems, \ 412146806Srwatson int semflg); } 413160798Sjhb222 AUE_SEMOP NOSTD { int semop(int semid, struct sembuf *sops, \ 414146806Srwatson size_t nsops); } 415146806Srwatson223 AUE_NULL UNIMPL semconfig 416160798Sjhb224 AUE_MSGCTL NOSTD { int msgctl(int msqid, int cmd, \ 417146806Srwatson struct msqid_ds *buf); } 418160798Sjhb225 AUE_MSGGET NOSTD { int msgget(key_t key, int msgflg); } 419160798Sjhb226 AUE_MSGSND NOSTD { int msgsnd(int msqid, const void *msgp, \ 420146806Srwatson size_t msgsz, int msgflg); } 421160798Sjhb227 AUE_MSGRCV NOSTD { int msgrcv(int msqid, void *msgp, \ 422146806Srwatson size_t msgsz, long msgtyp, int msgflg); } 423160798Sjhb228 AUE_SHMAT NOSTD { int shmat(int shmid, const void *shmaddr, \ 424146806Srwatson int shmflg); } 425160798Sjhb229 AUE_SHMCTL NOSTD { int shmctl(int shmid, int cmd, \ 426146806Srwatson struct shmid_ds *buf); } 427160798Sjhb230 AUE_SHMDT NOSTD { int shmdt(const void *shmaddr); } 428160798Sjhb231 AUE_SHMGET NOSTD { int shmget(key_t key, size_t size, \ 429146806Srwatson int shmflg); } 43014219Speter; 431160798Sjhb232 AUE_NULL STD { int clock_gettime(clockid_t clock_id, \ 432146806Srwatson struct timespec *tp); } 433160798Sjhb233 AUE_NULL STD { int clock_settime(clockid_t clock_id, \ 434146806Srwatson const struct timespec *tp); } 435160798Sjhb234 AUE_NULL STD { int clock_getres(clockid_t clock_id, \ 436146806Srwatson struct timespec *tp); } 437160798Sjhb235 AUE_NULL STD { int ktimer_create(clockid_t clock_id, \ 438156134Sdavidxu struct sigevent *evp, int *timerid); } 439160798Sjhb236 AUE_NULL STD { int ktimer_delete(int timerid); } 440160798Sjhb237 AUE_NULL STD { int ktimer_settime(int timerid, int flags, \ 441151576Sdavidxu const struct itimerspec *value, \ 442151576Sdavidxu struct itimerspec *ovalue); } 443160798Sjhb238 AUE_NULL STD { int ktimer_gettime(int timerid, struct \ 444151576Sdavidxu itimerspec *value); } 445160798Sjhb239 AUE_NULL STD { int ktimer_getoverrun(int timerid); } 446160798Sjhb240 AUE_NULL STD { int nanosleep(const struct timespec *rqtp, \ 447146806Srwatson struct timespec *rmtp); } 448146806Srwatson241 AUE_NULL UNIMPL nosys 449146806Srwatson242 AUE_NULL UNIMPL nosys 450146806Srwatson243 AUE_NULL UNIMPL nosys 451146806Srwatson244 AUE_NULL UNIMPL nosys 452146806Srwatson245 AUE_NULL UNIMPL nosys 453146806Srwatson246 AUE_NULL UNIMPL nosys 454146806Srwatson247 AUE_NULL UNIMPL nosys 455160798Sjhb248 AUE_NULL STD { int ntp_gettime(struct ntptimeval *ntvp); } 456146806Srwatson249 AUE_NULL UNIMPL nosys 45714219Speter; syscall numbers initially used in OpenBSD 458160798Sjhb250 AUE_MINHERIT STD { int minherit(void *addr, size_t len, \ 459146806Srwatson int inherit); } 460160798Sjhb251 AUE_RFORK STD { int rfork(int flags); } 461160798Sjhb252 AUE_POLL STD { int openbsd_poll(struct pollfd *fds, \ 462146806Srwatson u_int nfds, int timeout); } 463160798Sjhb253 AUE_ISSETUGID STD { int issetugid(void); } 464160798Sjhb254 AUE_LCHOWN STD { int lchown(char *path, int uid, int gid); } 465160798Sjhb255 AUE_NULL NOSTD { int aio_read(struct aiocb *aiocbp); } 466160798Sjhb256 AUE_NULL NOSTD { int aio_write(struct aiocb *aiocbp); } 467160798Sjhb257 AUE_NULL NOSTD { int lio_listio(int mode, \ 468151867Sdavidxu struct aiocb * const *acb_list, \ 469151867Sdavidxu int nent, struct sigevent *sig); } 470152845Sdavidxu258 AUE_NULL UNIMPL nosys 471152845Sdavidxu259 AUE_NULL UNIMPL nosys 472152845Sdavidxu260 AUE_NULL UNIMPL nosys 473152845Sdavidxu261 AUE_NULL UNIMPL nosys 474152845Sdavidxu262 AUE_NULL UNIMPL nosys 475152845Sdavidxu263 AUE_NULL UNIMPL nosys 476146806Srwatson264 AUE_NULL UNIMPL nosys 477146806Srwatson265 AUE_NULL UNIMPL nosys 478146806Srwatson266 AUE_NULL UNIMPL nosys 479146806Srwatson267 AUE_NULL UNIMPL nosys 480146806Srwatson268 AUE_NULL UNIMPL nosys 481146806Srwatson269 AUE_NULL UNIMPL nosys 482146806Srwatson270 AUE_NULL UNIMPL nosys 483146806Srwatson271 AUE_NULL UNIMPL nosys 484160798Sjhb272 AUE_O_GETDENTS STD { int getdents(int fd, char *buf, \ 485146806Srwatson size_t count); } 486146806Srwatson273 AUE_NULL UNIMPL nosys 487160798Sjhb274 AUE_LCHMOD STD { int lchmod(char *path, mode_t mode); } 488160798Sjhb275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \ 489146806Srwatson gid_t gid); } netbsd_lchown lchown_args \ 490146806Srwatson int 491160798Sjhb276 AUE_LUTIMES STD { int lutimes(char *path, \ 492146806Srwatson struct timeval *tptr); } 493160798Sjhb277 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \ 494146806Srwatson int flags); } netbsd_msync msync_args int 495160798Sjhb278 AUE_STAT STD { int nstat(char *path, struct nstat *ub); } 496160798Sjhb279 AUE_FSTAT STD { int nfstat(int fd, struct nstat *sb); } 497160798Sjhb280 AUE_LSTAT STD { int nlstat(char *path, struct nstat *ub); } 498146806Srwatson281 AUE_NULL UNIMPL nosys 499146806Srwatson282 AUE_NULL UNIMPL nosys 500146806Srwatson283 AUE_NULL UNIMPL nosys 501146806Srwatson284 AUE_NULL UNIMPL nosys 502146806Srwatson285 AUE_NULL UNIMPL nosys 503146806Srwatson286 AUE_NULL UNIMPL nosys 504146806Srwatson287 AUE_NULL UNIMPL nosys 505146806Srwatson288 AUE_NULL UNIMPL nosys 506147813Sjhb; 289 and 290 from NetBSD (OpenBSD: 267 and 268) 507160798Sjhb289 AUE_NULL STD { ssize_t preadv(int fd, struct iovec *iovp, \ 508147813Sjhb u_int iovcnt, off_t offset); } 509160798Sjhb290 AUE_NULL STD { ssize_t pwritev(int fd, struct iovec *iovp, \ 510147813Sjhb u_int iovcnt, off_t offset); } 511146806Srwatson291 AUE_NULL UNIMPL nosys 512146806Srwatson292 AUE_NULL UNIMPL nosys 513146806Srwatson293 AUE_NULL UNIMPL nosys 514146806Srwatson294 AUE_NULL UNIMPL nosys 515146806Srwatson295 AUE_NULL UNIMPL nosys 516146806Srwatson296 AUE_NULL UNIMPL nosys 51751138Salfred; XXX 297 is 300 in NetBSD 518160798Sjhb297 AUE_FHSTATFS COMPAT4 { int fhstatfs( \ 519146806Srwatson const struct fhandle *u_fhp, \ 520146806Srwatson struct ostatfs *buf); } 521160798Sjhb298 AUE_FHOPEN STD { int fhopen(const struct fhandle *u_fhp, \ 522146806Srwatson int flags); } 523160798Sjhb299 AUE_FHSTAT STD { int fhstat(const struct fhandle *u_fhp, \ 524146806Srwatson struct stat *sb); } 52525537Sdfr; syscall numbers for FreeBSD 526160798Sjhb300 AUE_NULL STD { int modnext(int modid); } 527160798Sjhb301 AUE_NULL STD { int modstat(int modid, \ 528146806Srwatson struct module_stat *stat); } 529160798Sjhb302 AUE_NULL STD { int modfnext(int modid); } 530160798Sjhb303 AUE_NULL STD { int modfind(const char *name); } 531160798Sjhb304 AUE_MODLOAD STD { int kldload(const char *file); } 532160798Sjhb305 AUE_MODUNLOAD STD { int kldunload(int fileid); } 533160798Sjhb306 AUE_NULL STD { int kldfind(const char *file); } 534160798Sjhb307 AUE_NULL STD { int kldnext(int fileid); } 535160798Sjhb308 AUE_NULL STD { int kldstat(int fileid, struct \ 536146806Srwatson kld_file_stat* stat); } 537160798Sjhb309 AUE_NULL STD { int kldfirstmod(int fileid); } 538160798Sjhb310 AUE_GETSID STD { int getsid(pid_t pid); } 539160798Sjhb311 AUE_SETRESUID STD { int setresuid(uid_t ruid, uid_t euid, \ 540146806Srwatson uid_t suid); } 541160798Sjhb312 AUE_SETRESGID STD { int setresgid(gid_t rgid, gid_t egid, \ 542146806Srwatson gid_t sgid); } 543146806Srwatson313 AUE_NULL OBSOL signanosleep 544160798Sjhb314 AUE_NULL NOSTD { int aio_return(struct aiocb *aiocbp); } 545160798Sjhb315 AUE_NULL NOSTD { int aio_suspend( \ 546146806Srwatson struct aiocb * const * aiocbp, int nent, \ 547146806Srwatson const struct timespec *timeout); } 548160798Sjhb316 AUE_NULL NOSTD { int aio_cancel(int fd, \ 549146806Srwatson struct aiocb *aiocbp); } 550160798Sjhb317 AUE_NULL NOSTD { int aio_error(struct aiocb *aiocbp); } 551160798Sjhb318 AUE_NULL NOSTD { int oaio_read(struct oaiocb *aiocbp); } 552160798Sjhb319 AUE_NULL NOSTD { int oaio_write(struct oaiocb *aiocbp); } 553160798Sjhb320 AUE_NULL NOSTD { int olio_listio(int mode, \ 554151867Sdavidxu struct oaiocb * const *acb_list, \ 555151867Sdavidxu int nent, struct osigevent *sig); } 556160798Sjhb321 AUE_NULL STD { int yield(void); } 557146806Srwatson322 AUE_NULL OBSOL thr_sleep 558146806Srwatson323 AUE_NULL OBSOL thr_wakeup 559160798Sjhb324 AUE_MLOCKALL STD { int mlockall(int how); } 560160798Sjhb325 AUE_MUNLOCKALL STD { int munlockall(void); } 561160798Sjhb326 AUE_NULL STD { int __getcwd(u_char *buf, u_int buflen); } 56234925Sdufault 563160798Sjhb327 AUE_NULL STD { int sched_setparam (pid_t pid, \ 564146806Srwatson const struct sched_param *param); } 565160798Sjhb328 AUE_NULL STD { int sched_getparam (pid_t pid, struct \ 566146806Srwatson sched_param *param); } 56734925Sdufault 568160798Sjhb329 AUE_NULL STD { int sched_setscheduler (pid_t pid, int \ 569146806Srwatson policy, const struct sched_param \ 570146806Srwatson *param); } 571160798Sjhb330 AUE_NULL STD { int sched_getscheduler (pid_t pid); } 57234925Sdufault 573160798Sjhb331 AUE_NULL STD { int sched_yield (void); } 574160798Sjhb332 AUE_NULL STD { int sched_get_priority_max (int policy); } 575160798Sjhb333 AUE_NULL STD { int sched_get_priority_min (int policy); } 576160798Sjhb334 AUE_NULL STD { int sched_rr_get_interval (pid_t pid, \ 577146806Srwatson struct timespec *interval); } 578160798Sjhb335 AUE_NULL STD { int utrace(const void *addr, size_t len); } 579160798Sjhb336 AUE_SENDFILE COMPAT4 { int sendfile(int fd, int s, \ 580146806Srwatson off_t offset, size_t nbytes, \ 581146806Srwatson struct sf_hdtr *hdtr, off_t *sbytes, \ 582146806Srwatson int flags); } 583160798Sjhb337 AUE_NULL STD { int kldsym(int fileid, int cmd, \ 584146806Srwatson void *data); } 585160798Sjhb338 AUE_JAIL STD { int jail(struct jail *jail); } 586146806Srwatson339 AUE_NULL UNIMPL pioctl 587160798Sjhb340 AUE_SIGPROCMASK STD { int sigprocmask(int how, \ 588146806Srwatson const sigset_t *set, sigset_t *oset); } 589160798Sjhb341 AUE_SIGSUSPEND STD { int sigsuspend(const sigset_t *sigmask); } 590160798Sjhb342 AUE_SIGACTION COMPAT4 { int sigaction(int sig, const \ 591146806Srwatson struct sigaction *act, \ 592146806Srwatson struct sigaction *oact); } 593160798Sjhb343 AUE_SIGPENDING STD { int sigpending(sigset_t *set); } 594160798Sjhb344 AUE_SIGRETURN COMPAT4 { int sigreturn( \ 595146806Srwatson const struct ucontext4 *sigcntxp); } 596160798Sjhb345 AUE_SIGWAIT STD { int sigtimedwait(const sigset_t *set, \ 597146806Srwatson siginfo_t *info, \ 598146806Srwatson const struct timespec *timeout); } 599160798Sjhb346 AUE_NULL STD { int sigwaitinfo(const sigset_t *set, \ 600146806Srwatson siginfo_t *info); } 601160798Sjhb347 AUE_NULL STD { int __acl_get_file(const char *path, \ 602146806Srwatson acl_type_t type, struct acl *aclp); } 603160798Sjhb348 AUE_NULL STD { int __acl_set_file(const char *path, \ 604146806Srwatson acl_type_t type, struct acl *aclp); } 605160798Sjhb349 AUE_NULL STD { int __acl_get_fd(int filedes, \ 606146806Srwatson acl_type_t type, struct acl *aclp); } 607160798Sjhb350 AUE_NULL STD { int __acl_set_fd(int filedes, \ 608146806Srwatson acl_type_t type, struct acl *aclp); } 609160798Sjhb351 AUE_NULL STD { int __acl_delete_file(const char *path, \ 610146806Srwatson acl_type_t type); } 611160798Sjhb352 AUE_NULL STD { int __acl_delete_fd(int filedes, \ 612146806Srwatson acl_type_t type); } 613160798Sjhb353 AUE_NULL STD { int __acl_aclcheck_file(const char *path, \ 614146806Srwatson acl_type_t type, struct acl *aclp); } 615160798Sjhb354 AUE_NULL STD { int __acl_aclcheck_fd(int filedes, \ 616146806Srwatson acl_type_t type, struct acl *aclp); } 617160798Sjhb355 AUE_EXTATTRCTL STD { int extattrctl(const char *path, int cmd, \ 618146806Srwatson const char *filename, int attrnamespace, \ 619146806Srwatson const char *attrname); } 620160798Sjhb356 AUE_EXTATTR_SET_FILE STD { int extattr_set_file( \ 621160111Swsalamon const char *path, int attrnamespace, \ 622160111Swsalamon const char *attrname, void *data, \ 623160111Swsalamon size_t nbytes); } 624160798Sjhb357 AUE_EXTATTR_GET_FILE STD { ssize_t extattr_get_file( \ 625160111Swsalamon const char *path, int attrnamespace, \ 626160111Swsalamon const char *attrname, void *data, \ 627160111Swsalamon size_t nbytes); } 628160798Sjhb358 AUE_EXTATTR_DELETE_FILE STD { int extattr_delete_file(const char *path, \ 629146806Srwatson int attrnamespace, \ 630146806Srwatson const char *attrname); } 631160798Sjhb359 AUE_NULL NOSTD { int aio_waitcomplete( \ 632146806Srwatson struct aiocb **aiocbp, \ 633146806Srwatson struct timespec *timeout); } 634160798Sjhb360 AUE_GETRESUID STD { int getresuid(uid_t *ruid, uid_t *euid, \ 635146806Srwatson uid_t *suid); } 636160798Sjhb361 AUE_GETRESGID STD { int getresgid(gid_t *rgid, gid_t *egid, \ 637146806Srwatson gid_t *sgid); } 638160798Sjhb362 AUE_NULL STD { int kqueue(void); } 639160798Sjhb363 AUE_NULL STD { int kevent(int fd, \ 640146806Srwatson struct kevent *changelist, int nchanges, \ 641146806Srwatson struct kevent *eventlist, int nevents, \ 642146806Srwatson const struct timespec *timeout); } 643146806Srwatson364 AUE_NULL UNIMPL __cap_get_proc 644146806Srwatson365 AUE_NULL UNIMPL __cap_set_proc 645146806Srwatson366 AUE_NULL UNIMPL __cap_get_fd 646146806Srwatson367 AUE_NULL UNIMPL __cap_get_file 647146806Srwatson368 AUE_NULL UNIMPL __cap_set_fd 648146806Srwatson369 AUE_NULL UNIMPL __cap_set_file 649146806Srwatson370 AUE_NULL NODEF lkmressys lkmressys nosys_args int 650160798Sjhb371 AUE_EXTATTR_SET_FD STD { int extattr_set_fd(int fd, \ 651146806Srwatson int attrnamespace, const char *attrname, \ 652146806Srwatson void *data, size_t nbytes); } 653160798Sjhb372 AUE_EXTATTR_GET_FD STD { ssize_t extattr_get_fd(int fd, \ 654146806Srwatson int attrnamespace, const char *attrname, \ 655146806Srwatson void *data, size_t nbytes); } 656160798Sjhb373 AUE_EXTATTR_DELETE_FD STD { int extattr_delete_fd(int fd, \ 657146806Srwatson int attrnamespace, \ 658146806Srwatson const char *attrname); } 659160798Sjhb374 AUE_NULL STD { int __setugid(int flag); } 660146806Srwatson375 AUE_NULL NOIMPL { int nfsclnt(int flag, caddr_t argp); } 661160798Sjhb376 AUE_EACCESS STD { int eaccess(char *path, int flags); } 662146806Srwatson377 AUE_NULL UNIMPL afs_syscall 663160798Sjhb378 AUE_NMOUNT STD { int nmount(struct iovec *iovp, \ 664146806Srwatson unsigned int iovcnt, int flags); } 665160798Sjhb379 AUE_NULL STD { int kse_exit(void); } 666160798Sjhb380 AUE_NULL STD { int kse_wakeup(struct kse_mailbox *mbx); } 667160798Sjhb381 AUE_NULL STD { int kse_create(struct kse_mailbox *mbx, \ 668146806Srwatson int newgroup); } 669160798Sjhb382 AUE_NULL STD { int kse_thr_interrupt( \ 670146806Srwatson struct kse_thr_mailbox *tmbx, int cmd, \ 671146806Srwatson long data); } 672160798Sjhb383 AUE_NULL STD { int kse_release(struct timespec *timeout); } 673160798Sjhb384 AUE_NULL STD { int __mac_get_proc(struct mac *mac_p); } 674160798Sjhb385 AUE_NULL STD { int __mac_set_proc(struct mac *mac_p); } 675160798Sjhb386 AUE_NULL STD { int __mac_get_fd(int fd, \ 676146806Srwatson struct mac *mac_p); } 677160798Sjhb387 AUE_NULL STD { int __mac_get_file(const char *path_p, \ 678146806Srwatson struct mac *mac_p); } 679160798Sjhb388 AUE_NULL STD { int __mac_set_fd(int fd, \ 680146806Srwatson struct mac *mac_p); } 681160798Sjhb389 AUE_NULL STD { int __mac_set_file(const char *path_p, \ 682146806Srwatson struct mac *mac_p); } 683160798Sjhb390 AUE_NULL STD { int kenv(int what, const char *name, \ 684146806Srwatson char *value, int len); } 685160798Sjhb391 AUE_LCHFLAGS STD { int lchflags(const char *path, int flags); } 686160798Sjhb392 AUE_NULL STD { int uuidgen(struct uuid *store, \ 687146806Srwatson int count); } 688160798Sjhb393 AUE_SENDFILE STD { int sendfile(int fd, int s, off_t offset, \ 689146806Srwatson size_t nbytes, struct sf_hdtr *hdtr, \ 690146806Srwatson off_t *sbytes, int flags); } 691160798Sjhb394 AUE_NULL STD { int mac_syscall(const char *policy, \ 692146806Srwatson int call, void *arg); } 693160798Sjhb395 AUE_GETFSSTAT STD { int getfsstat(struct statfs *buf, \ 694146806Srwatson long bufsize, int flags); } 695160798Sjhb396 AUE_STATFS STD { int statfs(char *path, \ 696146806Srwatson struct statfs *buf); } 697160798Sjhb397 AUE_FSTATFS STD { int fstatfs(int fd, struct statfs *buf); } 698160798Sjhb398 AUE_NULL STD { int fhstatfs(const struct fhandle *u_fhp, \ 699146806Srwatson struct statfs *buf); } 700146806Srwatson399 AUE_NULL UNIMPL nosys 701160798Sjhb400 AUE_NULL NOSTD { int ksem_close(semid_t id); } 702160798Sjhb401 AUE_NULL NOSTD { int ksem_post(semid_t id); } 703160798Sjhb402 AUE_NULL NOSTD { int ksem_wait(semid_t id); } 704160798Sjhb403 AUE_NULL NOSTD { int ksem_trywait(semid_t id); } 705160798Sjhb404 AUE_NULL NOSTD { int ksem_init(semid_t *idp, \ 706146806Srwatson unsigned int value); } 707160798Sjhb405 AUE_NULL NOSTD { int ksem_open(semid_t *idp, \ 708146806Srwatson const char *name, int oflag, \ 709146806Srwatson mode_t mode, unsigned int value); } 710160798Sjhb406 AUE_NULL NOSTD { int ksem_unlink(const char *name); } 711160798Sjhb407 AUE_NULL NOSTD { int ksem_getvalue(semid_t id, int *val); } 712160798Sjhb408 AUE_NULL NOSTD { int ksem_destroy(semid_t id); } 713160798Sjhb409 AUE_NULL STD { int __mac_get_pid(pid_t pid, \ 714146806Srwatson struct mac *mac_p); } 715160798Sjhb410 AUE_NULL STD { int __mac_get_link(const char *path_p, \ 716146806Srwatson struct mac *mac_p); } 717160798Sjhb411 AUE_NULL STD { int __mac_set_link(const char *path_p, \ 718146806Srwatson struct mac *mac_p); } 719160798Sjhb412 AUE_EXTATTR_SET_LINK STD { int extattr_set_link( \ 720160111Swsalamon const char *path, int attrnamespace, \ 721160111Swsalamon const char *attrname, void *data, \ 722160111Swsalamon size_t nbytes); } 723160798Sjhb413 AUE_EXTATTR_GET_LINK STD { ssize_t extattr_get_link( \ 724160111Swsalamon const char *path, int attrnamespace, \ 725160111Swsalamon const char *attrname, void *data, \ 726160111Swsalamon size_t nbytes); } 727160798Sjhb414 AUE_EXTATTR_DELETE_LINK STD { int extattr_delete_link( \ 728160111Swsalamon const char *path, int attrnamespace, \ 729146806Srwatson const char *attrname); } 730160798Sjhb415 AUE_NULL STD { int __mac_execve(char *fname, char **argv, \ 731146806Srwatson char **envv, struct mac *mac_p); } 732160798Sjhb416 AUE_SIGACTION STD { int sigaction(int sig, \ 733146806Srwatson const struct sigaction *act, \ 734146806Srwatson struct sigaction *oact); } 735160798Sjhb417 AUE_SIGRETURN STD { int sigreturn( \ 736146806Srwatson const struct __ucontext *sigcntxp); } 737146806Srwatson418 AUE_NULL UNIMPL __xstat 738146806Srwatson419 AUE_NULL UNIMPL __xfstat 739146806Srwatson420 AUE_NULL UNIMPL __xlstat 740160798Sjhb421 AUE_NULL STD { int getcontext(struct __ucontext *ucp); } 741160798Sjhb422 AUE_NULL STD { int setcontext( \ 742146806Srwatson const struct __ucontext *ucp); } 743160798Sjhb423 AUE_NULL STD { int swapcontext(struct __ucontext *oucp, \ 744146806Srwatson const struct __ucontext *ucp); } 745160798Sjhb424 AUE_SWAPOFF STD { int swapoff(const char *name); } 746160798Sjhb425 AUE_NULL STD { int __acl_get_link(const char *path, \ 747146806Srwatson acl_type_t type, struct acl *aclp); } 748160798Sjhb426 AUE_NULL STD { int __acl_set_link(const char *path, \ 749146806Srwatson acl_type_t type, struct acl *aclp); } 750160798Sjhb427 AUE_NULL STD { int __acl_delete_link(const char *path, \ 751146806Srwatson acl_type_t type); } 752160798Sjhb428 AUE_NULL STD { int __acl_aclcheck_link(const char *path, \ 753146806Srwatson acl_type_t type, struct acl *aclp); } 754160798Sjhb429 AUE_SIGWAIT STD { int sigwait(const sigset_t *set, \ 755146806Srwatson int *sig); } 756160798Sjhb430 AUE_NULL STD { int thr_create(ucontext_t *ctx, long *id, \ 757146806Srwatson int flags); } 758160798Sjhb431 AUE_NULL STD { void thr_exit(long *state); } 759160798Sjhb432 AUE_NULL STD { int thr_self(long *id); } 760160798Sjhb433 AUE_NULL STD { int thr_kill(long id, int sig); } 761160798Sjhb434 AUE_NULL STD { int _umtx_lock(struct umtx *umtx); } 762160798Sjhb435 AUE_NULL STD { int _umtx_unlock(struct umtx *umtx); } 763160798Sjhb436 AUE_NULL STD { int jail_attach(int jid); } 764160798Sjhb437 AUE_EXTATTR_LIST_FD STD { ssize_t extattr_list_fd(int fd, \ 765146806Srwatson int attrnamespace, void *data, \ 766146806Srwatson size_t nbytes); } 767160798Sjhb438 AUE_EXTATTR_LIST_FILE STD { ssize_t extattr_list_file( \ 768146806Srwatson const char *path, int attrnamespace, \ 769146806Srwatson void *data, size_t nbytes); } 770160798Sjhb439 AUE_EXTATTR_LIST_LINK STD { ssize_t extattr_list_link( \ 771146806Srwatson const char *path, int attrnamespace, \ 772146806Srwatson void *data, size_t nbytes); } 773160798Sjhb440 AUE_NULL STD { int kse_switchin( \ 774146806Srwatson struct kse_thr_mailbox *tmbx, \ 775146806Srwatson int flags); } 776160798Sjhb441 AUE_NULL NOSTD { int ksem_timedwait(semid_t id, \ 777151445Sstefanf const struct timespec *abstime); } 778160798Sjhb442 AUE_NULL STD { int thr_suspend( \ 779146806Srwatson const struct timespec *timeout); } 780160798Sjhb443 AUE_NULL STD { int thr_wake(long id); } 781160798Sjhb444 AUE_NULL STD { int kldunloadf(int fileid, int flags); } 782160798Sjhb445 AUE_AUDIT STD { int audit(const void *record, \ 783146806Srwatson u_int length); } 784160798Sjhb446 AUE_AUDITON STD { int auditon(int cmd, void *data, \ 785146806Srwatson u_int length); } 786160798Sjhb447 AUE_GETAUID STD { int getauid(uid_t *auid); } 787160798Sjhb448 AUE_SETAUID STD { int setauid(uid_t *auid); } 788160798Sjhb449 AUE_GETAUDIT STD { int getaudit(struct auditinfo *auditinfo); } 789160798Sjhb450 AUE_SETAUDIT STD { int setaudit(struct auditinfo *auditinfo); } 790160798Sjhb451 AUE_GETAUDIT_ADDR STD { int getaudit_addr( \ 791146806Srwatson struct auditinfo_addr *auditinfo_addr, \ 792146806Srwatson u_int length); } 793160798Sjhb452 AUE_SETAUDIT_ADDR STD { int setaudit_addr( \ 794146806Srwatson struct auditinfo_addr *auditinfo_addr, \ 795146806Srwatson u_int length); } 796160798Sjhb453 AUE_AUDITCTL STD { int auditctl(char *path); } 797160798Sjhb454 AUE_NULL STD { int _umtx_op(struct umtx *umtx, int op, \ 798157211Sdes long id, void *uaddr, void *uaddr2); } 799160798Sjhb455 AUE_NULL STD { int thr_new(struct thr_param *param, \ 800146806Srwatson int param_size); } 801160798Sjhb456 AUE_NULL STD { int sigqueue(pid_t pid, int signum, void *value); } 802160798Sjhb457 AUE_NULL NOSTD { int kmq_open(const char *path, int flags, \ 803152845Sdavidxu mode_t mode, const struct mq_attr *attr); } 804160798Sjhb458 AUE_NULL NOSTD { int kmq_setattr(int mqd, \ 805152845Sdavidxu const struct mq_attr *attr, \ 806152845Sdavidxu struct mq_attr *oattr); } 807160798Sjhb459 AUE_NULL NOSTD { int kmq_timedreceive(int mqd, \ 808152845Sdavidxu char *msg_ptr, size_t msg_len, \ 809152845Sdavidxu unsigned *msg_prio, \ 810152845Sdavidxu const struct timespec *abs_timeout); } 811160798Sjhb460 AUE_NULL NOSTD { int kmq_timedsend(int mqd, \ 812152845Sdavidxu const char *msg_ptr, size_t msg_len,\ 813152845Sdavidxu unsigned msg_prio, \ 814152845Sdavidxu const struct timespec *abs_timeout);} 815160798Sjhb461 AUE_NULL NOSTD { int kmq_notify(int mqd, \ 816152845Sdavidxu const struct sigevent *sigev); } 817160798Sjhb462 AUE_NULL NOSTD { int kmq_unlink(const char *path); } 818160798Sjhb463 AUE_NULL STD { int abort2(const char *why, int nargs, void **args); } 819160798Sjhb464 AUE_NULL STD { int thr_set_name(long id, const char *name); } 820160798Sjhb465 AUE_NULL NOSTD { int aio_fsync(int op, struct aiocb *aiocbp); } 821160798Sjhb466 AUE_NULL STD { int thr_setscheduler(long id, int policy,\ 822160319Sdavidxu const struct sched_param *param, \ 823160319Sdavidxu int param_size); } 824160798Sjhb467 AUE_NULL STD { int thr_getscheduler(long id, int *policy,\ 825160319Sdavidxu struct sched_param *param, \ 826160319Sdavidxu int param_size); } 827160798Sjhb468 AUE_NULL STD { int thr_setschedparam(long id, \ 828160319Sdavidxu const struct sched_param *param, \ 829160319Sdavidxu int param_size); } 830105144Speter; Please copy any additions and changes to the following compatability tables: 831123408Speter; sys/compat/freebsd32/syscalls.master 832