syscalls.master revision 293533
1323124Sdes $FreeBSD: stable/10/sys/amd64/linux32/syscalls.master 293533 2016-01-09 16:21:39Z dchagin $ 276259Sgreen 357429Smarkm; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 457429Smarkm; System call name/number master file (or rather, slave, from LINUX). 557429Smarkm; Processed to create linux_sysent.c, linux_proto.h and linux_syscall.h. 657429Smarkm 765668Skris; Columns: number audit type nargs name alt{name,tag,rtyp}/comments 865668Skris; number system call number, must be in order 965668Skris; audit the audit event associated with the system call 1065668Skris; A value of AUE_NULL means no auditing, but it also means that 1165668Skris; there is no audit event for the call at this time. For the 1257429Smarkm; case where the event exists, but we don't want auditing, the 1357429Smarkm; event should be #defined to AUE_NULL in audit_kevents.h. 1476259Sgreen; type one of STD, OBSOL, UNIMPL 1576259Sgreen; name psuedo-prototype of syscall routine 1676259Sgreen; If one of the following alts is different, then all appear: 1765668Skris; altname name of system call if different 1865668Skris; alttag name of args struct tag if different from [o]`name'"_args" 1965668Skris; altrtyp return type if not int (bogus - syscalls always return int) 2065668Skris; for UNIMPL/OBSOL, name continues with comments 2165668Skris 2265668Skris; types: 2365668Skris; STD always included 2465668Skris; OBSOL obsolete, not included in system, only specifies name 2565668Skris; UNIMPL not implemented, placeholder only 2665668Skris 2765668Skris#include "opt_compat.h" 2865668Skris#include <sys/param.h> 2965668Skris#include <sys/sysent.h> 3065668Skris#include <sys/sysproto.h> 3165668Skris#include <compat/linux/linux_sysproto.h> 3265668Skris#include <amd64/linux32/linux.h> 3365668Skris#include <amd64/linux32/linux32_proto.h> 3465668Skris 3565668Skris; Isn't pretty, but there seems to be no other way to trap nosys 3665668Skris#define nosys linux_nosys 3765668Skris 38323124Sdes; #ifdef's, etc. may be included, and are copied to the output files. 3957429Smarkm 4057429Smarkm0 AUE_NULL UNIMPL setup 4157429Smarkm1 AUE_EXIT STD { void linux_exit(int rval); } 4257429Smarkm2 AUE_FORK STD { int linux_fork(void); } 4376259Sgreen3 AUE_NULL NOPROTO { int read(int fd, char *buf, \ 4457429Smarkm u_int nbyte); } 45215116Sdes4 AUE_NULL NOPROTO { int write(int fd, char *buf, \ 4657429Smarkm u_int nbyte); } 4776259Sgreen5 AUE_OPEN_RWTC STD { int linux_open(char *path, l_int flags, \ 4857429Smarkm l_int mode); } 49295367Sdes6 AUE_CLOSE NOPROTO { int close(int fd); } 5057429Smarkm7 AUE_WAIT4 STD { int linux_waitpid(l_pid_t pid, \ 5157429Smarkm l_int *status, l_int options); } 5265668Skris8 AUE_CREAT STD { int linux_creat(char *path, \ 5357429Smarkm l_int mode); } 5457429Smarkm9 AUE_LINK STD { int linux_link(char *path, char *to); } 5557429Smarkm10 AUE_UNLINK STD { int linux_unlink(char *path); } 5657429Smarkm11 AUE_EXECVE STD { int linux_execve(char *path, uint32_t *argp, \ 5757429Smarkm uint32_t *envp); } 5857429Smarkm12 AUE_CHDIR STD { int linux_chdir(char *path); } 5976259Sgreen13 AUE_NULL STD { int linux_time(l_time_t *tm); } 60215116Sdes14 AUE_MKNOD STD { int linux_mknod(char *path, l_int mode, \ 6165668Skris l_dev_t dev); } 6260573Skris15 AUE_CHMOD STD { int linux_chmod(char *path, \ 6376259Sgreen l_mode_t mode); } 64215116Sdes16 AUE_LCHOWN STD { int linux_lchown16(char *path, \ 6565668Skris l_uid16_t uid, l_gid16_t gid); } 6660573Skris17 AUE_NULL UNIMPL break 6760573Skris18 AUE_STAT STD { int linux_stat(char *path, \ 6865668Skris struct linux_stat *up); } 6960573Skris19 AUE_LSEEK STD { int linux_lseek(l_uint fdes, l_off_t off, \ 7057429Smarkm l_int whence); } 7157429Smarkm20 AUE_GETPID STD { int linux_getpid(void); } 7257429Smarkm21 AUE_MOUNT STD { int linux_mount(char *specialfile, \ 7357429Smarkm char *dir, char *filesystemtype, \ 7457429Smarkm l_ulong rwflag, void *data); } 7557429Smarkm22 AUE_UMOUNT STD { int linux_oldumount(char *path); } 76295367Sdes23 AUE_SETUID STD { int linux_setuid16(l_uid16_t uid); } 77295367Sdes24 AUE_GETUID STD { int linux_getuid16(void); } 7865668Skris25 AUE_SETTIMEOFDAY STD { int linux_stime(void); } 7960573Skris26 AUE_PTRACE STD { int linux_ptrace(l_long req, l_long pid, \ 8076259Sgreen l_long addr, l_long data); } 8176259Sgreen27 AUE_NULL STD { int linux_alarm(l_uint secs); } 8292555Sdes28 AUE_FSTAT UNIMPL fstat 83204917Sdes29 AUE_NULL STD { int linux_pause(void); } 8492555Sdes30 AUE_UTIME STD { int linux_utime(char *fname, \ 85146998Sdes struct l_utimbuf *times); } 86146998Sdes31 AUE_NULL UNIMPL stty 87192595Sdes32 AUE_NULL UNIMPL gtty 88146998Sdes33 AUE_ACCESS STD { int linux_access(char *path, l_int amode); } 89146998Sdes34 AUE_NICE STD { int linux_nice(l_int inc); } 90146998Sdes35 AUE_NULL UNIMPL ftime 91146998Sdes36 AUE_SYNC NOPROTO { int sync(void); } 92146998Sdes37 AUE_KILL STD { int linux_kill(l_int pid, l_int signum); } 93146998Sdes38 AUE_RENAME STD { int linux_rename(char *from, char *to); } 94146998Sdes39 AUE_MKDIR STD { int linux_mkdir(char *path, l_int mode); } 95124208Sdes40 AUE_RMDIR STD { int linux_rmdir(char *path); } 96124208Sdes41 AUE_DUP NOPROTO { int dup(u_int fd); } 97124208Sdes42 AUE_PIPE STD { int linux_pipe(l_int *pipefds); } 98124208Sdes43 AUE_NULL STD { int linux_times(struct l_times_argv *buf); } 99124208Sdes44 AUE_NULL UNIMPL prof 100126274Sdes45 AUE_NULL STD { int linux_brk(l_ulong dsend); } 101124208Sdes46 AUE_SETGID STD { int linux_setgid16(l_gid16_t gid); } 102124208Sdes47 AUE_GETGID STD { int linux_getgid16(void); } 103124208Sdes48 AUE_NULL STD { int linux_signal(l_int sig, \ 104124208Sdes l_handler_t handler); } 105124208Sdes49 AUE_GETEUID STD { int linux_geteuid16(void); } 106124208Sdes50 AUE_GETEGID STD { int linux_getegid16(void); } 107126274Sdes51 AUE_ACCT NOPROTO { int acct(char *path); } 108262566Sdes52 AUE_UMOUNT STD { int linux_umount(char *path, l_int flags); } 109240075Sdes53 AUE_NULL UNIMPL lock 110240075Sdes54 AUE_IOCTL STD { int linux_ioctl(l_uint fd, l_uint cmd, \ 111240075Sdes uintptr_t arg); } 112124208Sdes55 AUE_FCNTL STD { int linux_fcntl(l_uint fd, l_uint cmd, \ 113204917Sdes uintptr_t arg); } 114204917Sdes56 AUE_NULL UNIMPL mpx 115204917Sdes57 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 116204917Sdes58 AUE_NULL UNIMPL ulimit 117204917Sdes59 AUE_NULL STD { int linux_olduname(void); } 118215116Sdes60 AUE_UMASK NOPROTO { int umask(int newmask); } 119204917Sdes61 AUE_CHROOT NOPROTO { int chroot(char *path); } 120215116Sdes62 AUE_NULL STD { int linux_ustat(l_dev_t dev, \ 121204917Sdes struct l_ustat *ubuf); } 122204917Sdes63 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 123204917Sdes64 AUE_GETPPID STD { int linux_getppid(void); } 124204917Sdes65 AUE_GETPGRP NOPROTO { int getpgrp(void); } 125226046Sdes66 AUE_SETSID NOPROTO { int setsid(void); } 126226046Sdes67 AUE_NULL STD { int linux_sigaction(l_int sig, \ 127248619Sdes l_osigaction_t *nsa, \ 128248619Sdes l_osigaction_t *osa); } 129248619Sdes68 AUE_NULL STD { int linux_sgetmask(void); } 130248619Sdes69 AUE_NULL STD { int linux_ssetmask(l_osigset_t mask); } 131248619Sdes70 AUE_SETREUID STD { int linux_setreuid16(l_uid16_t ruid, \ 132248619Sdes l_uid16_t euid); } 133248619Sdes71 AUE_SETREGID STD { int linux_setregid16(l_gid16_t rgid, \ 134248619Sdes l_gid16_t egid); } 135248619Sdes72 AUE_NULL STD { int linux_sigsuspend(l_int hist0, \ 136248619Sdes l_int hist1, l_osigset_t mask); } 137248619Sdes73 AUE_NULL STD { int linux_sigpending(l_osigset_t *mask); } 138204917Sdes74 AUE_SYSCTL STD { int linux_sethostname(char *hostname, \ 13960573Skris u_int len); } 14057429Smarkm75 AUE_SETRLIMIT STD { int linux_setrlimit(l_uint resource, \ 14176259Sgreen struct l_rlimit *rlim); } 14257429Smarkm76 AUE_GETRLIMIT STD { int linux_old_getrlimit(l_uint resource, \ 14360573Skris struct l_rlimit *rlim); } 144296781Sdes77 AUE_GETRUSAGE STD { int linux_getrusage(int who, \ 145296781Sdes struct l_rusage *rusage); } 146296781Sdes78 AUE_NULL STD { int linux_gettimeofday( \ 147296781Sdes struct l_timeval *tp, \ 148296781Sdes struct timezone *tzp); } 149296781Sdes79 AUE_SETTIMEOFDAY STD { int linux_settimeofday( \ 150124208Sdes struct l_timeval *tp, \ 15176259Sgreen struct timezone *tzp); } 15292555Sdes80 AUE_GETGROUPS STD { int linux_getgroups16(l_uint gidsetsize, \ 153157016Sdes l_gid16_t *gidset); } 154157016Sdes81 AUE_SETGROUPS STD { int linux_setgroups16(l_uint gidsetsize, \ 155157016Sdes l_gid16_t *gidset); } 15660573Skris82 AUE_SELECT STD { int linux_old_select( \ 157124208Sdes struct l_old_select_argv *ptr); } 158124208Sdes83 AUE_SYMLINK STD { int linux_symlink(char *path, char *to); } 159124208Sdes; 84: oldlstat 160124208Sdes84 AUE_LSTAT STD { int linux_lstat(char *path, struct linux_lstat *up); } 161124208Sdes85 AUE_READLINK STD { int linux_readlink(char *name, char *buf, \ 162124208Sdes l_int count); } 163124208Sdes86 AUE_USELIB UNIMPL linux_uselib 164248619Sdes87 AUE_SWAPON NOPROTO { int swapon(char *name); } 165248619Sdes88 AUE_REBOOT STD { int linux_reboot(l_int magic1, \ 166248619Sdes l_int magic2, l_uint cmd, void *arg); } 167248619Sdes; 89: old_readdir 168248619Sdes89 AUE_GETDIRENTRIES STD { int linux_readdir(l_uint fd, \ 169248619Sdes struct l_dirent *dent, l_uint count); } 170248619Sdes; 90: old_mmap 171248619Sdes90 AUE_MMAP STD { int linux_mmap(struct l_mmap_argv *ptr); } 17257429Smarkm91 AUE_MUNMAP NOPROTO { int munmap(caddr_t addr, int len); } 173221420Sdes92 AUE_TRUNCATE STD { int linux_truncate(char *path, \ 17457429Smarkm l_ulong length); } 175149749Sdes93 AUE_FTRUNCATE STD { int linux_ftruncate(int fd, long length); } 176262566Sdes94 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 177221420Sdes95 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 178262566Sdes96 AUE_GETPRIORITY STD { int linux_getpriority(int which, int who); } 17960573Skris97 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 180149749Sdes int prio); } 18160573Skris98 AUE_PROFILE UNIMPL profil 18260573Skris99 AUE_STATFS STD { int linux_statfs(char *path, \ 18360573Skris struct l_statfs_buf *buf); } 18457429Smarkm100 AUE_FSTATFS STD { int linux_fstatfs(l_uint fd, \ 18557429Smarkm struct l_statfs_buf *buf); } 18658582Skris101 AUE_NULL UNIMPL ioperm 18758582Skris102 AUE_NULL STD { int linux_socketcall(l_int what, \ 18857429Smarkm l_ulong args); } 18958582Skris103 AUE_NULL STD { int linux_syslog(l_int type, char *buf, \ 19058582Skris l_int len); } 19158582Skris104 AUE_SETITIMER STD { int linux_setitimer(l_int which, \ 19276259Sgreen struct l_itimerval *itv, \ 19358582Skris struct l_itimerval *oitv); } 19492555Sdes105 AUE_GETITIMER STD { int linux_getitimer(l_int which, \ 19592555Sdes struct l_itimerval *itv); } 19692555Sdes106 AUE_STAT STD { int linux_newstat(char *path, \ 19792555Sdes struct l_newstat *buf); } 19857429Smarkm107 AUE_LSTAT STD { int linux_newlstat(char *path, \ 19992555Sdes struct l_newstat *buf); } 20092555Sdes108 AUE_FSTAT STD { int linux_newfstat(l_uint fd, \ 20192555Sdes struct l_newstat *buf); } 20258582Skris; 109: olduname 20357429Smarkm109 AUE_NULL STD { int linux_uname(void); } 20457429Smarkm110 AUE_NULL STD { int linux_iopl(l_int level); } 20557429Smarkm111 AUE_NULL STD { int linux_vhangup(void); } 20658582Skris112 AUE_NULL UNIMPL idle 207226046Sdes113 AUE_NULL UNIMPL vm86old 208226046Sdes114 AUE_WAIT4 STD { int linux_wait4(l_pid_t pid, \ 20957429Smarkm l_int *status, l_int options, \ 210323124Sdes struct l_rusage *rusage); } 21176259Sgreen115 AUE_SWAPOFF STD { int linux_swapoff(void); } 21258582Skris116 AUE_NULL STD { int linux_sysinfo(struct l_sysinfo *info); } 21358582Skris117 AUE_NULL STD { int linux_ipc(l_uint what, l_int arg1, \ 21458582Skris l_int arg2, l_int arg3, void *ptr, \ 21557429Smarkm l_long arg5); } 21657429Smarkm118 AUE_FSYNC NOPROTO { int fsync(int fd); } 21757429Smarkm119 AUE_SIGRETURN STD { int linux_sigreturn( \ 21857429Smarkm struct l_sigframe *sfp); } 21957429Smarkm120 AUE_RFORK STD { int linux_clone(l_int flags, void *stack, \ 22060573Skris void *parent_tidptr, void *tls, void * child_tidptr); } 22160573Skris121 AUE_SYSCTL STD { int linux_setdomainname(char *name, \ 22260573Skris int len); } 22357429Smarkm122 AUE_NULL STD { int linux_newuname( \ 22457429Smarkm struct l_new_utsname *buf); } 225226046Sdes123 AUE_NULL UNIMPL modify_ldt 226262566Sdes124 AUE_ADJTIME STD { int linux_adjtimex(void); } 227262566Sdes125 AUE_MPROTECT STD { int linux_mprotect(caddr_t addr, int len, \ 228226046Sdes int prot); } 229226046Sdes126 AUE_SIGPROCMASK STD { int linux_sigprocmask(l_int how, \ 230226046Sdes l_osigset_t *mask, l_osigset_t *omask); } 231226046Sdes127 AUE_NULL STD { int linux_create_module(void); } 232226046Sdes128 AUE_NULL STD { int linux_init_module(void); } 233262566Sdes129 AUE_NULL STD { int linux_delete_module(void); } 234262566Sdes130 AUE_NULL STD { int linux_get_kernel_syms(void); } 235262566Sdes131 AUE_QUOTACTL STD { int linux_quotactl(void); } 236262566Sdes132 AUE_GETPGID NOPROTO { int getpgid(int pid); } 237262566Sdes133 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 238262566Sdes134 AUE_BDFLUSH STD { int linux_bdflush(void); } 239262566Sdes135 AUE_NULL STD { int linux_sysfs(l_int option, \ 240262566Sdes l_ulong arg1, l_ulong arg2); } 241262566Sdes136 AUE_PERSONALITY STD { int linux_personality(l_ulong per); } 242262566Sdes137 AUE_NULL UNIMPL afs_syscall 243262566Sdes138 AUE_SETFSUID STD { int linux_setfsuid16(l_uid16_t uid); } 244124208Sdes139 AUE_SETFSGID STD { int linux_setfsgid16(l_gid16_t gid); } 245262566Sdes140 AUE_LSEEK STD { int linux_llseek(l_int fd, l_ulong ohigh, \ 246262566Sdes l_ulong olow, l_loff_t *res, \ 247146998Sdes l_uint whence); } 248146998Sdes141 AUE_GETDIRENTRIES STD { int linux_getdents(l_uint fd, void *dent, \ 24957429Smarkm l_uint count); } 25058582Skris; 142: newselect 251295367Sdes142 AUE_SELECT STD { int linux_select(l_int nfds, \ 252149749Sdes l_fd_set *readfds, l_fd_set *writefds, \ 253157016Sdes l_fd_set *exceptfds, \ 254226046Sdes struct l_timeval *timeout); } 255226046Sdes143 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 256240075Sdes144 AUE_MSYNC STD { int linux_msync(l_ulong addr, \ 257226046Sdes l_size_t len, l_int fl); } 258226046Sdes145 AUE_READV STD { int linux_readv(l_ulong fd, struct l_iovec32 *iovp, \ 259226046Sdes l_ulong iovcnt); } 260295367Sdes146 AUE_WRITEV STD { int linux_writev(l_ulong fd, struct l_iovec32 *iovp, \ 261262566Sdes l_ulong iovcnt); } 262262566Sdes147 AUE_GETSID STD { int linux_getsid(l_pid_t pid); } 263146998Sdes148 AUE_NULL STD { int linux_fdatasync(l_uint fd); } 264146998Sdes149 AUE_SYSCTL STD { int linux_sysctl( \ 26557429Smarkm struct l___sysctl_args *args); } 26657429Smarkm150 AUE_MLOCK NOPROTO { int mlock(const void *addr, size_t len); } 267323124Sdes151 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, size_t len); } 268323124Sdes152 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 26957429Smarkm153 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 27092555Sdes154 AUE_SCHED_SETPARAM STD { int linux_sched_setparam(l_pid_t pid, \ 271204917Sdes struct l_sched_param *param); } 272204917Sdes155 AUE_SCHED_GETPARAM STD { int linux_sched_getparam(l_pid_t pid, \ 273204917Sdes struct l_sched_param *param); } 274215116Sdes156 AUE_SCHED_SETSCHEDULER STD { int linux_sched_setscheduler( \ 275215116Sdes l_pid_t pid, l_int policy, \ 276215116Sdes struct l_sched_param *param); } 277215116Sdes157 AUE_SCHED_GETSCHEDULER STD { int linux_sched_getscheduler( \ 278215116Sdes l_pid_t pid); } 279295367Sdes158 AUE_NULL NOPROTO { int sched_yield(void); } 280295367Sdes159 AUE_SCHED_GET_PRIORITY_MAX STD { int linux_sched_get_priority_max( \ 281295367Sdes l_int policy); } 282295367Sdes160 AUE_SCHED_GET_PRIORITY_MIN STD { int linux_sched_get_priority_min( \ 283295367Sdes l_int policy); } 284295367Sdes161 AUE_SCHED_RR_GET_INTERVAL STD { int linux_sched_rr_get_interval(l_pid_t pid, \ 285295367Sdes struct l_timespec *interval); } 286295367Sdes162 AUE_NULL STD { int linux_nanosleep( \ 28776259Sgreen const struct l_timespec *rqtp, \ 28876259Sgreen struct l_timespec *rmtp); } 289215116Sdes163 AUE_NULL STD { int linux_mremap(l_ulong addr, \ 290215116Sdes l_ulong old_len, l_ulong new_len, \ 291215116Sdes l_ulong flags, l_ulong new_addr); } 292215116Sdes164 AUE_SETRESUID STD { int linux_setresuid16(l_uid16_t ruid, \ 293215116Sdes l_uid16_t euid, l_uid16_t suid); } 294215116Sdes165 AUE_GETRESUID STD { int linux_getresuid16(l_uid16_t *ruid, \ 295215116Sdes l_uid16_t *euid, l_uid16_t *suid); } 296146998Sdes166 AUE_NULL UNIMPL vm86 297146998Sdes167 AUE_NULL STD { int linux_query_module(void); } 298146998Sdes168 AUE_POLL NOPROTO { int poll(struct pollfd *fds, \ 299146998Sdes unsigned int nfds, int timeout); } 300146998Sdes169 AUE_NULL STD { int linux_nfsservctl(void); } 301146998Sdes170 AUE_SETRESGID STD { int linux_setresgid16(l_gid16_t rgid, \ 302146998Sdes l_gid16_t egid, l_gid16_t sgid); } 303146998Sdes171 AUE_GETRESGID STD { int linux_getresgid16(l_gid16_t *rgid, \ 304146998Sdes l_gid16_t *egid, l_gid16_t *sgid); } 305146998Sdes172 AUE_PRCTL STD { int linux_prctl(l_int option, l_int arg2, l_int arg3, \ 306146998Sdes l_int arg4, l_int arg5); } 307146998Sdes173 AUE_NULL STD { int linux_rt_sigreturn( \ 308146998Sdes struct l_ucontext *ucp); } 309146998Sdes174 AUE_NULL STD { int linux_rt_sigaction(l_int sig, \ 310146998Sdes l_sigaction_t *act, l_sigaction_t *oact, \ 311146998Sdes l_size_t sigsetsize); } 312146998Sdes175 AUE_NULL STD { int linux_rt_sigprocmask(l_int how, \ 313146998Sdes l_sigset_t *mask, l_sigset_t *omask, \ 314124208Sdes l_size_t sigsetsize); } 315137015Sdes176 AUE_NULL STD { int linux_rt_sigpending(l_sigset_t *set, \ 316137015Sdes l_size_t sigsetsize); } 317137015Sdes177 AUE_NULL STD { int linux_rt_sigtimedwait(l_sigset_t *mask, \ 318146998Sdes l_siginfo_t *ptr, \ 319146998Sdes struct l_timeval *timeout, \ 320146998Sdes l_size_t sigsetsize); } 321147001Sdes178 AUE_NULL STD { int linux_rt_sigqueueinfo(l_pid_t pid, l_int sig, \ 322147001Sdes l_siginfo_t *info); } 323147001Sdes179 AUE_NULL STD { int linux_rt_sigsuspend( \ 324147001Sdes l_sigset_t *newset, \ 325146998Sdes l_size_t sigsetsize); } 326146998Sdes180 AUE_PREAD STD { int linux_pread(l_uint fd, char *buf, \ 327146998Sdes l_size_t nbyte, l_loff_t offset); } 328146998Sdes181 AUE_PWRITE STD { int linux_pwrite(l_uint fd, char *buf, \ 329146998Sdes l_size_t nbyte, l_loff_t offset); } 330146998Sdes182 AUE_CHOWN STD { int linux_chown16(char *path, \ 331146998Sdes l_uid16_t uid, l_gid16_t gid); } 332146998Sdes183 AUE_GETCWD STD { int linux_getcwd(char *buf, \ 333204917Sdes l_ulong bufsize); } 334204917Sdes184 AUE_CAPGET STD { int linux_capget(struct l_user_cap_header *hdrp, \ 335204917Sdes struct l_user_cap_data *datap); } 336204917Sdes185 AUE_CAPSET STD { int linux_capset(struct l_user_cap_header *hdrp, \ 337204917Sdes struct l_user_cap_data *datap); } 338204917Sdes186 AUE_NULL STD { int linux_sigaltstack(l_stack_t *uss, \ 339204917Sdes l_stack_t *uoss); } 340204917Sdes187 AUE_SENDFILE STD { int linux_sendfile(void); } 341204917Sdes188 AUE_GETPMSG UNIMPL getpmsg 342204917Sdes189 AUE_PUTPMSG UNIMPL putpmsg 343204917Sdes190 AUE_VFORK STD { int linux_vfork(void); } 34476259Sgreen; 191: ugetrlimit 34576259Sgreen191 AUE_GETRLIMIT STD { int linux_getrlimit(l_uint resource, \ 346215116Sdes struct l_rlimit *rlim); } 347215116Sdes192 AUE_MMAP STD { int linux_mmap2(l_ulong addr, l_ulong len, \ 348215116Sdes l_ulong prot, l_ulong flags, l_ulong fd, \ 34976259Sgreen l_ulong pgoff); } 350295367Sdes193 AUE_TRUNCATE STD { int linux_truncate64(char *path, \ 351295367Sdes l_loff_t length); } 352295367Sdes194 AUE_FTRUNCATE STD { int linux_ftruncate64(l_uint fd, \ 353295367Sdes l_loff_t length); } 354240075Sdes195 AUE_STAT STD { int linux_stat64(const char *filename, \ 355240075Sdes struct l_stat64 *statbuf); } 356240075Sdes196 AUE_LSTAT STD { int linux_lstat64(const char *filename, \ 357240075Sdes struct l_stat64 *statbuf); } 358240075Sdes197 AUE_FSTAT STD { int linux_fstat64(l_int fd, \ 359240075Sdes struct l_stat64 *statbuf); } 360240075Sdes198 AUE_LCHOWN STD { int linux_lchown(char *path, l_uid_t uid, \ 361240075Sdes l_gid_t gid); } 362240075Sdes199 AUE_GETUID STD { int linux_getuid(void); } 363240075Sdes200 AUE_GETGID STD { int linux_getgid(void); } 364240075Sdes201 AUE_GETEUID NOPROTO { int geteuid(void); } 365240075Sdes202 AUE_GETEGID NOPROTO { int getegid(void); } 366240075Sdes203 AUE_SETREUID NOPROTO { int setreuid(uid_t ruid, uid_t euid); } 367240075Sdes204 AUE_SETREGID NOPROTO { int setregid(gid_t rgid, gid_t egid); } 368240075Sdes205 AUE_GETGROUPS STD { int linux_getgroups(l_int gidsetsize, \ 369240075Sdes l_gid_t *grouplist); } 370240075Sdes206 AUE_SETGROUPS STD { int linux_setgroups(l_int gidsetsize, \ 371240075Sdes l_gid_t *grouplist); } 372248619Sdes207 AUE_FCHOWN NODEF fchown fchown fchown_args int 373248619Sdes208 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 374248619Sdes uid_t suid); } 375248619Sdes209 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 376248619Sdes uid_t *suid); } 377248619Sdes210 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 378248619Sdes gid_t sgid); } 379248619Sdes211 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 380248619Sdes gid_t *sgid); } 381248619Sdes212 AUE_CHOWN STD { int linux_chown(char *path, l_uid_t uid, \ 382248619Sdes l_gid_t gid); } 383204917Sdes213 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 384296781Sdes214 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 38557429Smarkm215 AUE_SETFSUID STD { int linux_setfsuid(l_uid_t uid); } 38692555Sdes216 AUE_SETFSGID STD { int linux_setfsgid(l_gid_t gid); } 38792555Sdes217 AUE_PIVOT_ROOT STD { int linux_pivot_root(char *new_root, \ 38892555Sdes char *put_old); } 38992555Sdes218 AUE_MINCORE STD { int linux_mincore(l_ulong start, \ 39092555Sdes l_size_t len, u_char *vec); } 391181111Sdes219 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 392181111Sdes int behav); } 393323124Sdes220 AUE_GETDIRENTRIES STD { int linux_getdents64(l_uint fd, \ 394323124Sdes void *dirent, l_uint count); } 395146998Sdes221 AUE_FCNTL STD { int linux_fcntl64(l_uint fd, l_uint cmd, \ 396146998Sdes uintptr_t arg); } 397146998Sdes222 AUE_NULL UNIMPL 398215116Sdes223 AUE_NULL UNIMPL 399215116Sdes224 AUE_NULL STD { long linux_gettid(void); } 400215116Sdes225 AUE_NULL UNIMPL linux_readahead 401215116Sdes226 AUE_NULL STD { int linux_setxattr(void); } 402215116Sdes227 AUE_NULL STD { int linux_lsetxattr(void); } 403215116Sdes228 AUE_NULL STD { int linux_fsetxattr(void); } 404215116Sdes229 AUE_NULL STD { int linux_getxattr(void); } 405215116Sdes230 AUE_NULL STD { int linux_lgetxattr(void); } 406215116Sdes231 AUE_NULL STD { int linux_fgetxattr(void); } 407215116Sdes232 AUE_NULL STD { int linux_listxattr(void); } 408215116Sdes233 AUE_NULL STD { int linux_llistxattr(void); } 409215116Sdes234 AUE_NULL STD { int linux_flistxattr(void); } 410215116Sdes235 AUE_NULL STD { int linux_removexattr(void); } 411215116Sdes236 AUE_NULL STD { int linux_lremovexattr(void); } 412215116Sdes237 AUE_NULL STD { int linux_fremovexattr(void); } 413215116Sdes238 AUE_NULL STD { int linux_tkill(int tid, int sig); } 414146998Sdes239 AUE_SENDFILE UNIMPL linux_sendfile64 415146998Sdes240 AUE_NULL STD { int linux_sys_futex(void *uaddr, int op, uint32_t val, \ 416204917Sdes struct l_timespec *timeout, uint32_t *uaddr2, uint32_t val3); } 417204917Sdes241 AUE_NULL STD { int linux_sched_setaffinity(l_pid_t pid, l_uint len, \ 418204917Sdes l_ulong *user_mask_ptr); } 419204917Sdes242 AUE_NULL STD { int linux_sched_getaffinity(l_pid_t pid, l_uint len, \ 420204917Sdes l_ulong *user_mask_ptr); } 421204917Sdes243 AUE_NULL STD { int linux_set_thread_area(struct l_user_desc *desc); } 422204917Sdes244 AUE_NULL UNIMPL linux_get_thread_area 423215116Sdes245 AUE_NULL UNIMPL linux_io_setup 424215116Sdes246 AUE_NULL UNIMPL linux_io_destroy 425204917Sdes247 AUE_NULL UNIMPL linux_io_getevents 426204917Sdes248 AUE_NULL UNIMPL linux_io_submit 427204917Sdes249 AUE_NULL UNIMPL linux_io_cancel 428204917Sdes250 AUE_NULL STD { int linux_fadvise64(int fd, l_loff_t offset, \ 429215116Sdes l_size_t len, int advice); } 430204917Sdes251 AUE_NULL UNIMPL 431207319Sdes252 AUE_EXIT STD { int linux_exit_group(int error_code); } 432207319Sdes253 AUE_NULL STD { int linux_lookup_dcookie(void); } 433207319Sdes254 AUE_NULL STD { int linux_epoll_create(void); } 434207319Sdes255 AUE_NULL STD { int linux_epoll_ctl(void); } 435207319Sdes256 AUE_NULL STD { int linux_epoll_wait(void); } 436207319Sdes257 AUE_NULL STD { int linux_remap_file_pages(void); } 437207319Sdes258 AUE_NULL STD { int linux_set_tid_address(int *tidptr); } 438207319Sdes259 AUE_NULL STD { int linux_timer_create(clockid_t clock_id, \ 439207319Sdes struct sigevent *evp, l_timer_t *timerid); } 440204917Sdes260 AUE_NULL STD { int linux_timer_settime(l_timer_t timerid, l_int flags, \ 441204917Sdes const struct itimerspec *new, struct itimerspec *old); } 442204917Sdes261 AUE_NULL STD { int linux_timer_gettime(l_timer_t timerid, struct itimerspec *setting); } 443204917Sdes262 AUE_NULL STD { int linux_timer_getoverrun(l_timer_t timerid); } 444204917Sdes263 AUE_NULL STD { int linux_timer_delete(l_timer_t timerid); } 445204917Sdes264 AUE_CLOCK_SETTIME STD { int linux_clock_settime(clockid_t which, struct l_timespec *tp); } 446204917Sdes265 AUE_NULL STD { int linux_clock_gettime(clockid_t which, struct l_timespec *tp); } 447204917Sdes266 AUE_NULL STD { int linux_clock_getres(clockid_t which, struct l_timespec *tp); } 448204917Sdes267 AUE_NULL STD { int linux_clock_nanosleep(clockid_t which, int flags, \ 449204917Sdes struct l_timespec *rqtp, struct l_timespec *rmtp); } 450204917Sdes268 AUE_STATFS STD { int linux_statfs64(char *path, size_t bufsize, struct l_statfs64_buf *buf); } 451204917Sdes269 AUE_FSTATFS STD { int linux_fstatfs64(void); } 452204917Sdes270 AUE_NULL STD { int linux_tgkill(int tgid, int pid, int sig); } 453204917Sdes271 AUE_UTIMES STD { int linux_utimes(char *fname, \ 454207319Sdes struct l_timeval *tptr); } 455207319Sdes272 AUE_NULL STD { int linux_fadvise64_64(int fd, \ 456204917Sdes l_loff_t offset, l_loff_t len, \ 457204917Sdes int advice); } 458204917Sdes273 AUE_NULL UNIMPL vserver 459204917Sdes274 AUE_NULL STD { int linux_mbind(void); } 460204917Sdes275 AUE_NULL STD { int linux_get_mempolicy(void); } 461204917Sdes276 AUE_NULL STD { int linux_set_mempolicy(void); } 462204917Sdes; linux 2.6.6: 463204917Sdes277 AUE_NULL STD { int linux_mq_open(void); } 464204917Sdes278 AUE_NULL STD { int linux_mq_unlink(void); } 465204917Sdes279 AUE_NULL STD { int linux_mq_timedsend(void); } 466204917Sdes280 AUE_NULL STD { int linux_mq_timedreceive(void); } 467204917Sdes281 AUE_NULL STD { int linux_mq_notify(void); } 468204917Sdes282 AUE_NULL STD { int linux_mq_getsetattr(void); } 469207319Sdes283 AUE_NULL STD { int linux_kexec_load(void); } 470207319Sdes284 AUE_WAIT6 STD { int linux_waitid(int idtype, l_pid_t id, \ 471207319Sdes l_siginfo_t *info, int options, \ 472207319Sdes struct l_rusage *rusage); } 473204917Sdes285 AUE_NULL UNIMPL 474204917Sdes; linux 2.6.11: 475204917Sdes286 AUE_NULL STD { int linux_add_key(void); } 476204917Sdes287 AUE_NULL STD { int linux_request_key(void); } 477204917Sdes288 AUE_NULL STD { int linux_keyctl(void); } 478204917Sdes; linux 2.6.13: 479215116Sdes289 AUE_NULL STD { int linux_ioprio_set(void); } 480262566Sdes290 AUE_NULL STD { int linux_ioprio_get(void); } 481262566Sdes291 AUE_NULL STD { int linux_inotify_init(void); } 482262566Sdes292 AUE_NULL STD { int linux_inotify_add_watch(void); } 483296781Sdes293 AUE_NULL STD { int linux_inotify_rm_watch(void); } 484262566Sdes; linux 2.6.16: 485262566Sdes294 AUE_NULL STD { int linux_migrate_pages(void); } 486262566Sdes295 AUE_OPEN_RWTC STD { int linux_openat(l_int dfd, const char *filename, \ 487262566Sdes l_int flags, l_int mode); } 488146998Sdes296 AUE_MKDIRAT STD { int linux_mkdirat(l_int dfd, const char *pathname, \ 489146998Sdes l_int mode); } 49057429Smarkm297 AUE_MKNODAT STD { int linux_mknodat(l_int dfd, const char *filename, \ 49157429Smarkm l_int mode, l_uint dev); } 49258582Skris298 AUE_FCHOWNAT STD { int linux_fchownat(l_int dfd, const char *filename, \ 49358582Skris l_uid16_t uid, l_gid16_t gid, l_int flag); } 49457429Smarkm299 AUE_FUTIMESAT STD { int linux_futimesat(l_int dfd, char *filename, \ 49557429Smarkm struct l_timeval *utimes); } 496248619Sdes300 AUE_FSTATAT STD { int linux_fstatat64(l_int dfd, char *pathname, \ 497248619Sdes struct l_stat64 *statbuf, l_int flag); } 49857429Smarkm301 AUE_UNLINKAT STD { int linux_unlinkat(l_int dfd, const char *pathname, \ 49957429Smarkm l_int flag); } 50057429Smarkm302 AUE_RENAMEAT STD { int linux_renameat(l_int olddfd, const char *oldname, \ 501146998Sdes l_int newdfd, const char *newname); } 502146998Sdes303 AUE_LINKAT STD { int linux_linkat(l_int olddfd, const char *oldname, \ 503146998Sdes l_int newdfd, const char *newname, l_int flag); } 504146998Sdes304 AUE_SYMLINKAT STD { int linux_symlinkat(const char *oldname, l_int newdfd, \ 505146998Sdes const char *newname); } 506146998Sdes305 AUE_READLINKAT STD { int linux_readlinkat(l_int dfd, const char *path, \ 507146998Sdes char *buf, l_int bufsiz); } 508146998Sdes306 AUE_FCHMODAT STD { int linux_fchmodat(l_int dfd, const char *filename, \ 509146998Sdes l_mode_t mode); } 510146998Sdes307 AUE_FACCESSAT STD { int linux_faccessat(l_int dfd, const char *filename, \ 511146998Sdes l_int amode); } 512146998Sdes308 AUE_SELECT STD { int linux_pselect6(l_int nfds, l_fd_set *readfds, \ 513146998Sdes l_fd_set *writefds, l_fd_set *exceptfds, \ 514146998Sdes struct l_timespec *tsp, l_uintptr_t *sig); } 515146998Sdes309 AUE_NULL STD { int linux_ppoll(void); } 516204917Sdes310 AUE_NULL STD { int linux_unshare(void); } 517204917Sdes; linux 2.6.17: 518204917Sdes311 AUE_NULL STD { int linux_set_robust_list(struct linux_robust_list_head *head, \ 519204917Sdes l_size_t len); } 520204917Sdes312 AUE_NULL STD { int linux_get_robust_list(l_int pid, struct linux_robust_list_head *head, \ 521248619Sdes l_size_t *len); } 522248619Sdes313 AUE_NULL STD { int linux_splice(void); } 523248619Sdes314 AUE_NULL STD { int linux_sync_file_range(void); } 524248619Sdes315 AUE_NULL STD { int linux_tee(void); } 525248619Sdes316 AUE_NULL STD { int linux_vmsplice(void); } 526248619Sdes; linux 2.6.18: 527248619Sdes317 AUE_NULL STD { int linux_move_pages(void); } 528248619Sdes; linux 2.6.19: 529146998Sdes318 AUE_NULL STD { int linux_getcpu(void); } 530146998Sdes319 AUE_NULL STD { int linux_epoll_pwait(void); } 531146998Sdes; linux 2.6.22: 532146998Sdes320 AUE_NULL STD { int linux_utimensat(void); } 533295367Sdes321 AUE_NULL STD { int linux_signalfd(void); } 534146998Sdes322 AUE_NULL STD { int linux_timerfd_create(void); } 53576259Sgreen323 AUE_NULL STD { int linux_eventfd(void); } 53676259Sgreen; linux 2.6.23: 53776259Sgreen324 AUE_NULL STD { int linux_fallocate(void); } 538221420Sdes; linux 2.6.25: 539262566Sdes325 AUE_NULL STD { int linux_timerfd_settime(void); } 540262566Sdes326 AUE_NULL STD { int linux_timerfd_gettime(void); } 541221420Sdes; linux 2.6.27: 54276259Sgreen327 AUE_NULL STD { int linux_signalfd4(void); } 54376259Sgreen328 AUE_NULL STD { int linux_eventfd2(void); } 544248619Sdes329 AUE_NULL STD { int linux_epoll_create1(void); } 545248619Sdes330 AUE_NULL STD { int linux_dup3(l_int oldfd, \ 546248619Sdes l_int newfd, l_int flags); } 547248619Sdes331 AUE_NULL STD { int linux_pipe2(l_int *pipefds, l_int flags); } 548248619Sdes332 AUE_NULL STD { int linux_inotify_init1(void); } 549248619Sdes; linux 2.6.30: 550204917Sdes333 AUE_NULL STD { int linux_preadv(void); } 551204917Sdes334 AUE_NULL STD { int linux_pwritev(void); } 552204917Sdes; linux 2.6.31: 553204917Sdes335 AUE_NULL STD { int linux_rt_tsigqueueinfo(void); } 554204917Sdes336 AUE_NULL STD { int linux_perf_event_open(void); } 555204917Sdes; linux 2.6.33: 556204917Sdes337 AUE_NULL STD { int linux_recvmmsg(void); } 557204917Sdes338 AUE_NULL STD { int linux_fanotify_init(void); } 558255767Sdes339 AUE_NULL STD { int linux_fanotify_mark(void); } 559207319Sdes; linux 2.6.36: 560204917Sdes340 AUE_NULL STD { int linux_prlimit64(l_pid_t pid, \ 561204917Sdes l_uint resource, \ 562204917Sdes struct rlimit *new, \ 563204917Sdes struct rlimit *old); } 564204917Sdes; later: 565204917Sdes341 AUE_NULL STD { int linux_name_to_handle_at(void); } 566204917Sdes342 AUE_NULL STD { int linux_open_by_handle_at(void); } 567204917Sdes343 AUE_NULL STD { int linux_clock_adjtime(void); } 568204917Sdes344 AUE_NULL STD { int linux_syncfs(void); } 569204917Sdes345 AUE_NULL STD { int linux_sendmmsg(void); } 570204917Sdes346 AUE_NULL STD { int linux_setns(void); } 571204917Sdes347 AUE_NULL STD { int linux_process_vm_readv(void); } 572126274Sdes348 AUE_NULL STD { int linux_process_vm_writev(void); } 573126274Sdes