syscalls.master revision 293512
1323124Sdes $FreeBSD: stable/10/sys/i386/linux/syscalls.master 293512 2016-01-09 15:39:41Z dchagin $ 257429Smarkm 3262566Sdes; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 465674Skris; System call name/number master file (or rather, slave, from LINUX). 565674Skris; Processed to create linux_sysent.c, linux_proto.h and linux_syscall.h. 665674Skris 765674Skris; Columns: number audit type nargs name alt{name,tag,rtyp}/comments 865674Skris; number system call number, must be in order 965674Skris; audit the audit event associated with the system call 1065674Skris; A value of AUE_NULL means no auditing, but it also means that 1165674Skris; there is no audit event for the call at this time. For the 1265674Skris; case where the event exists, but we don't want auditing, the 1365674Skris; event should be #defined to AUE_NULL in audit_kevents.h. 1465674Skris; type one of STD, OBSOL, UNIMPL 1565674Skris; name psuedo-prototype of syscall routine 1665674Skris; If one of the following alts is different, then all appear: 1765674Skris; altname name of system call if different 1865674Skris; alttag name of args struct tag if different from [o]`name'"_args" 1965674Skris; altrtyp return type if not int (bogus - syscalls always return int) 2065674Skris; for UNIMPL/OBSOL, name continues with comments 2165674Skris 2265674Skris; types: 2365674Skris; STD always included 2457429Smarkm; OBSOL obsolete, not included in system, only specifies name 2557429Smarkm; UNIMPL not implemented, placeholder only 2657429Smarkm 2757429Smarkm#include <sys/param.h> 28162856Sdes#include <sys/sysent.h> 29162856Sdes#include <sys/sysproto.h> 30162856Sdes#include <compat/linux/linux_sysproto.h> 31162856Sdes#include <i386/linux/linux.h> 32162856Sdes#include <i386/linux/linux_proto.h> 33162856Sdes 34295367Sdes; Isn't pretty, but there seems to be no other way to trap nosys 35162856Sdes#define nosys linux_nosys 36162856Sdes 37162856Sdes; #ifdef's, etc. may be included, and are copied to the output files. 38162856Sdes 39295367Sdes0 AUE_NULL UNIMPL setup 40162856Sdes1 AUE_EXIT STD { void linux_exit(int rval); } 4176262Sgreen2 AUE_FORK STD { int linux_fork(void); } 4257429Smarkm3 AUE_NULL NOPROTO { int read(int fd, char *buf, \ 4376262Sgreen u_int nbyte); } 4476262Sgreen4 AUE_NULL NOPROTO { int write(int fd, char *buf, \ 4592559Sdes u_int nbyte); } 46147005Sdes5 AUE_OPEN_RWTC STD { int linux_open(char *path, l_int flags, \ 47149753Sdes l_int mode); } 48295367Sdes6 AUE_CLOSE NOPROTO { int close(int fd); } 49295367Sdes7 AUE_WAIT4 STD { int linux_waitpid(l_pid_t pid, \ 50295367Sdes l_int *status, l_int options); } 51295367Sdes8 AUE_CREAT STD { int linux_creat(char *path, \ 5257429Smarkm l_int mode); } 53226046Sdes9 AUE_LINK STD { int linux_link(char *path, char *to); } 54226046Sdes10 AUE_UNLINK STD { int linux_unlink(char *path); } 55221420Sdes11 AUE_EXECVE STD { int linux_execve(char *path, char **argp, \ 56221420Sdes char **envp); } 57295367Sdes12 AUE_CHDIR STD { int linux_chdir(char *path); } 58221420Sdes13 AUE_NULL STD { int linux_time(l_time_t *tm); } 59295367Sdes14 AUE_MKNOD STD { int linux_mknod(char *path, l_int mode, \ 60221420Sdes l_dev_t dev); } 61295367Sdes15 AUE_CHMOD STD { int linux_chmod(char *path, \ 62295367Sdes l_mode_t mode); } 63295367Sdes16 AUE_LCHOWN STD { int linux_lchown16(char *path, \ 64295367Sdes l_uid16_t uid, l_gid16_t gid); } 65295367Sdes17 AUE_NULL UNIMPL break 66221420Sdes18 AUE_STAT STD { int linux_stat(char *path, \ 67221420Sdes struct linux_stat *up); } 68295367Sdes19 AUE_LSEEK STD { int linux_lseek(l_uint fdes, l_off_t off, \ 69295367Sdes l_int whence); } 70221420Sdes20 AUE_GETPID STD { int linux_getpid(void); } 71221420Sdes21 AUE_MOUNT STD { int linux_mount(char *specialfile, \ 72295367Sdes char *dir, char *filesystemtype, \ 73221420Sdes l_ulong rwflag, void *data); } 74221420Sdes22 AUE_UMOUNT STD { int linux_oldumount(char *path); } 75221420Sdes23 AUE_SETUID STD { int linux_setuid16(l_uid16_t uid); } 76295367Sdes24 AUE_GETUID STD { int linux_getuid16(void); } 77295367Sdes25 AUE_SETTIMEOFDAY STD { int linux_stime(void); } 78295367Sdes26 AUE_PTRACE STD { int linux_ptrace(l_long req, l_long pid, \ 79221420Sdes l_long addr, l_long data); } 80295367Sdes27 AUE_NULL STD { int linux_alarm(l_uint secs); } 81295367Sdes28 AUE_FSTAT STD { int linux_fstat(l_uint fd, \ 82221420Sdes struct linux_stat *up); } 83295367Sdes29 AUE_NULL STD { int linux_pause(void); } 84295367Sdes30 AUE_UTIME STD { int linux_utime(char *fname, \ 85295367Sdes struct l_utimbuf *times); } 86295367Sdes31 AUE_NULL UNIMPL stty 87221420Sdes32 AUE_NULL UNIMPL gtty 88295367Sdes33 AUE_ACCESS STD { int linux_access(char *path, l_int amode); } 89221420Sdes34 AUE_NICE STD { int linux_nice(l_int inc); } 90295367Sdes35 AUE_NULL UNIMPL ftime 91221420Sdes36 AUE_SYNC NOPROTO { int sync(void); } 92295367Sdes37 AUE_KILL STD { int linux_kill(l_int pid, l_int signum); } 93295367Sdes38 AUE_RENAME STD { int linux_rename(char *from, char *to); } 94221420Sdes39 AUE_MKDIR STD { int linux_mkdir(char *path, l_int mode); } 95221420Sdes40 AUE_RMDIR STD { int linux_rmdir(char *path); } 96226046Sdes41 AUE_DUP NOPROTO { int dup(u_int fd); } 97226046Sdes42 AUE_PIPE STD { int linux_pipe(l_int *pipefds); } 98295367Sdes43 AUE_NULL STD { int linux_times(struct l_times_argv *buf); } 99221420Sdes44 AUE_NULL UNIMPL prof 100226046Sdes45 AUE_NULL STD { int linux_brk(l_ulong dsend); } 101221420Sdes46 AUE_SETGID STD { int linux_setgid16(l_gid16_t gid); } 102113911Sdes47 AUE_GETGID STD { int linux_getgid16(void); } 103295367Sdes48 AUE_NULL STD { int linux_signal(l_int sig, \ 10457429Smarkm void *handler); } 105295367Sdes49 AUE_GETEUID STD { int linux_geteuid16(void); } 106295367Sdes50 AUE_GETEGID STD { int linux_getegid16(void); } 107226046Sdes51 AUE_ACCT NOPROTO { int acct(char *path); } 108295367Sdes52 AUE_UMOUNT STD { int linux_umount(char *path, l_int flags); } 109295367Sdes53 AUE_NULL UNIMPL lock 110226046Sdes54 AUE_IOCTL STD { int linux_ioctl(l_uint fd, l_uint cmd, \ 111226046Sdes l_ulong arg); } 112226046Sdes55 AUE_FCNTL STD { int linux_fcntl(l_uint fd, l_uint cmd, \ 113226046Sdes l_ulong arg); } 114295367Sdes56 AUE_NULL UNIMPL mpx 115295367Sdes57 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); } 116226046Sdes58 AUE_NULL UNIMPL ulimit 117295367Sdes59 AUE_NULL STD { int linux_olduname(void); } 118295367Sdes60 AUE_UMASK NOPROTO { int umask(int newmask); } 119295367Sdes61 AUE_CHROOT NOPROTO { int chroot(char *path); } 120295367Sdes62 AUE_NULL STD { int linux_ustat(l_dev_t dev, \ 121295367Sdes struct l_ustat *ubuf); } 122226046Sdes63 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); } 123226046Sdes64 AUE_GETPPID STD { int linux_getppid(void); } 124226046Sdes65 AUE_GETPGRP NOPROTO { int getpgrp(void); } 125295367Sdes66 AUE_SETSID NOPROTO { int setsid(void); } 126295367Sdes67 AUE_NULL STD { int linux_sigaction(l_int sig, \ 127295367Sdes l_osigaction_t *nsa, \ 12857429Smarkm l_osigaction_t *osa); } 129295367Sdes68 AUE_NULL STD { int linux_sgetmask(void); } 130226046Sdes69 AUE_NULL STD { int linux_ssetmask(l_osigset_t mask); } 131295367Sdes70 AUE_SETREUID STD { int linux_setreuid16(l_uid16_t ruid, \ 132295367Sdes l_uid16_t euid); } 133295367Sdes71 AUE_SETREGID STD { int linux_setregid16(l_gid16_t rgid, \ 134295367Sdes l_gid16_t egid); } 135295367Sdes72 AUE_NULL STD { int linux_sigsuspend(l_int hist0, \ 136221420Sdes l_int hist1, l_osigset_t mask); } 13757429Smarkm73 AUE_NULL STD { int linux_sigpending(l_osigset_t *mask); } 138295367Sdes74 AUE_SYSCTL STD { int linux_sethostname(char *hostname, \ 139221420Sdes u_int len); } 140221420Sdes75 AUE_SETRLIMIT STD { int linux_setrlimit(l_uint resource, \ 141221420Sdes struct l_rlimit *rlim); } 142221420Sdes76 AUE_GETRLIMIT STD { int linux_old_getrlimit(l_uint resource, \ 143221420Sdes struct l_rlimit *rlim); } 144295367Sdes77 AUE_GETRUSAGE NOPROTO { int getrusage(int who, \ 145295367Sdes struct rusage *rusage); } 146221420Sdes78 AUE_NULL NOPROTO { int gettimeofday( \ 147295367Sdes struct timeval *tp, \ 148295367Sdes struct timezone *tzp); } 149221420Sdes79 AUE_SETTIMEOFDAY NOPROTO { int settimeofday( \ 150323124Sdes struct timeval *tv, \ 151323124Sdes struct timezone *tzp); } 152255767Sdes80 AUE_GETGROUPS STD { int linux_getgroups16(l_uint gidsetsize, \ 153295367Sdes l_gid16_t *gidset); } 15460576Skris81 AUE_SETGROUPS STD { int linux_setgroups16(l_uint gidsetsize, \ 155295367Sdes l_gid16_t *gidset); } 156295367Sdes82 AUE_SELECT STD { int linux_old_select( \ 157295367Sdes struct l_old_select_argv *ptr); } 158295367Sdes83 AUE_SYMLINK STD { int linux_symlink(char *path, char *to); } 159295367Sdes; 84: oldlstat 160295367Sdes84 AUE_LSTAT STD { int linux_lstat(char *path, struct l_stat *up); } 161295367Sdes85 AUE_READLINK STD { int linux_readlink(char *name, char *buf, \ 162295367Sdes l_int count); } 163295367Sdes86 AUE_USELIB STD { int linux_uselib(char *library); } 164295367Sdes87 AUE_SWAPON NOPROTO { int swapon(char *name); } 16560576Skris88 AUE_REBOOT STD { int linux_reboot(l_int magic1, \ 166295367Sdes l_int magic2, l_uint cmd, void *arg); } 16760576Skris; 89: old_readdir 168295367Sdes89 AUE_GETDIRENTRIES STD { int linux_readdir(l_uint fd, \ 169162856Sdes struct l_dirent *dent, l_uint count); } 170295367Sdes; 90: old_mmap 17160576Skris90 AUE_MMAP STD { int linux_mmap(struct l_mmap_argv *ptr); } 17260576Skris91 AUE_MUNMAP NOPROTO { int munmap(caddr_t addr, int len); } 17360576Skris92 AUE_TRUNCATE STD { int linux_truncate(char *path, \ 17492559Sdes l_ulong length); } 175295367Sdes93 AUE_FTRUNCATE STD { int linux_ftruncate(int fd, long length); } 17692559Sdes94 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } 17792559Sdes95 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } 17892559Sdes96 AUE_GETPRIORITY STD { int linux_getpriority(int which, int who); } 17992559Sdes97 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \ 18092559Sdes int prio); } 18198941Sdes98 AUE_PROFILE UNIMPL profil 18298941Sdes99 AUE_STATFS STD { int linux_statfs(char *path, \ 18398941Sdes struct l_statfs_buf *buf); } 18492559Sdes100 AUE_FSTATFS STD { int linux_fstatfs(l_uint fd, \ 18560576Skris struct l_statfs_buf *buf); } 18660576Skris101 AUE_NULL STD { int linux_ioperm(l_ulong start, \ 18760576Skris l_ulong length, l_int enable); } 18892559Sdes102 AUE_NULL STD { int linux_socketcall(l_int what, \ 189124211Sdes l_ulong args); } 190226046Sdes103 AUE_NULL STD { int linux_syslog(l_int type, char *buf, \ 19176262Sgreen l_int len); } 192295367Sdes104 AUE_SETITIMER STD { int linux_setitimer(l_int which, \ 19360576Skris struct l_itimerval *itv, \ 194295367Sdes struct l_itimerval *oitv); } 19576262Sgreen105 AUE_GETITIMER STD { int linux_getitimer(l_int which, \ 19676262Sgreen struct l_itimerval *itv); } 197295367Sdes106 AUE_STAT STD { int linux_newstat(char *path, \ 198295367Sdes struct l_newstat *buf); } 199295367Sdes107 AUE_LSTAT STD { int linux_newlstat(char *path, \ 200295367Sdes struct l_newstat *buf); } 201221420Sdes108 AUE_FSTAT STD { int linux_newfstat(l_uint fd, \ 202295367Sdes struct l_newstat *buf); } 203262566Sdes; 109: olduname 204323124Sdes109 AUE_NULL STD { int linux_uname(void); } 205323124Sdes110 AUE_NULL STD { int linux_iopl(l_int level); } 206295367Sdes111 AUE_NULL STD { int linux_vhangup(void); } 207295367Sdes112 AUE_NULL UNIMPL idle 208221420Sdes113 AUE_NULL STD { int linux_vm86old(void); } 209295367Sdes114 AUE_WAIT4 STD { int linux_wait4(l_pid_t pid, \ 210204917Sdes l_int *status, l_int options, \ 211204917Sdes void *rusage); } 212295367Sdes115 AUE_SWAPOFF STD { int linux_swapoff(void); } 213204917Sdes116 AUE_NULL STD { int linux_sysinfo(struct l_sysinfo *info); } 214295367Sdes117 AUE_NULL STD { int linux_ipc(l_uint what, l_int arg1, \ 215162856Sdes l_int arg2, l_int arg3, void *ptr, \ 216162856Sdes l_long arg5); } 217295367Sdes118 AUE_FSYNC NOPROTO { int fsync(int fd); } 218295367Sdes119 AUE_SIGRETURN STD { int linux_sigreturn( \ 21976262Sgreen struct l_sigframe *sfp); } 220162856Sdes120 AUE_RFORK STD { int linux_clone(l_int flags, void *stack, \ 221162856Sdes void *parent_tidptr, void *tls, void * child_tidptr); } 222221420Sdes121 AUE_SYSCTL STD { int linux_setdomainname(char *name, \ 223295367Sdes int len); } 224295367Sdes122 AUE_NULL STD { int linux_newuname( \ 225221420Sdes struct l_new_utsname *buf); } 226295367Sdes123 AUE_NULL STD { int linux_modify_ldt(l_int func, \ 22760576Skris void *ptr, l_ulong bytecount); } 22865674Skris124 AUE_ADJTIME STD { int linux_adjtimex(void); } 229295367Sdes125 AUE_MPROTECT STD { int linux_mprotect(caddr_t addr, int len, \ 230295367Sdes int prot); } 231295367Sdes126 AUE_SIGPROCMASK STD { int linux_sigprocmask(l_int how, \ 232226046Sdes l_osigset_t *mask, l_osigset_t *omask); } 233295367Sdes127 AUE_NULL STD { int linux_create_module(void); } 234295367Sdes128 AUE_NULL STD { int linux_init_module(void); } 235226046Sdes129 AUE_NULL STD { int linux_delete_module(void); } 236323124Sdes130 AUE_NULL STD { int linux_get_kernel_syms(void); } 237323124Sdes131 AUE_QUOTACTL STD { int linux_quotactl(void); } 238295367Sdes132 AUE_GETPGID NOPROTO { int getpgid(int pid); } 239295367Sdes133 AUE_FCHDIR NOPROTO { int fchdir(int fd); } 240295367Sdes134 AUE_BDFLUSH STD { int linux_bdflush(void); } 241226046Sdes135 AUE_NULL STD { int linux_sysfs(l_int option, \ 242295367Sdes l_ulong arg1, l_ulong arg2); } 243295367Sdes136 AUE_PERSONALITY STD { int linux_personality(l_ulong per); } 244295367Sdes137 AUE_NULL UNIMPL afs_syscall 245295367Sdes138 AUE_SETFSUID STD { int linux_setfsuid16(l_uid16_t uid); } 246295367Sdes139 AUE_SETFSGID STD { int linux_setfsgid16(l_gid16_t gid); } 247295367Sdes140 AUE_LSEEK STD { int linux_llseek(l_int fd, l_ulong ohigh, \ 248295367Sdes l_ulong olow, l_loff_t *res, \ 249295367Sdes l_uint whence); } 250296781Sdes141 AUE_GETDIRENTRIES STD { int linux_getdents(l_uint fd, \ 251295367Sdes void *dent, l_uint count); } 252226046Sdes; 142: newselect 253226046Sdes142 AUE_SELECT STD { int linux_select(l_int nfds, \ 254295367Sdes l_fd_set *readfds, l_fd_set *writefds, \ 255295367Sdes l_fd_set *exceptfds, \ 256295367Sdes struct l_timeval *timeout); } 257295367Sdes143 AUE_FLOCK NOPROTO { int flock(int fd, int how); } 25876262Sgreen144 AUE_MSYNC STD { int linux_msync(l_ulong addr, \ 259295367Sdes l_size_t len, l_int fl); } 260295367Sdes145 AUE_READV NOPROTO { int readv(int fd, struct iovec *iovp, \ 26176262Sgreen u_int iovcnt); } 262323124Sdes146 AUE_WRITEV NOPROTO { int writev(int fd, struct iovec *iovp, \ 263323124Sdes u_int iovcnt); } 264295367Sdes147 AUE_GETSID STD { int linux_getsid(l_pid_t pid); } 265295367Sdes148 AUE_NULL STD { int linux_fdatasync(l_uint fd); } 266295367Sdes149 AUE_SYSCTL STD { int linux_sysctl( \ 267295367Sdes struct l___sysctl_args *args); } 268295367Sdes150 AUE_MLOCK NOPROTO { int mlock(const void *addr, size_t len); } 269295367Sdes151 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, size_t len); } 270295367Sdes152 AUE_MLOCKALL NOPROTO { int mlockall(int how); } 271295367Sdes153 AUE_MUNLOCKALL NOPROTO { int munlockall(void); } 272204917Sdes154 AUE_SCHED_SETPARAM STD { int linux_sched_setparam(l_pid_t pid, \ 273221420Sdes struct l_sched_param *param); } 274295367Sdes155 AUE_SCHED_GETPARAM STD { int linux_sched_getparam(l_pid_t pid, \ 275295367Sdes struct l_sched_param *param); } 276295367Sdes156 AUE_SCHED_SETSCHEDULER STD { int linux_sched_setscheduler( \ 277221420Sdes l_pid_t pid, l_int policy, \ 278295367Sdes struct l_sched_param *param); } 279296781Sdes157 AUE_SCHED_GETSCHEDULER STD { int linux_sched_getscheduler( \ 280296781Sdes l_pid_t pid); } 281295367Sdes158 AUE_NULL NOPROTO { int sched_yield(void); } 282295367Sdes159 AUE_SCHED_GET_PRIORITY_MAX STD { int linux_sched_get_priority_max( \ 283295367Sdes l_int policy); } 284221420Sdes160 AUE_SCHED_GET_PRIORITY_MIN STD { int linux_sched_get_priority_min( \ 285296781Sdes l_int policy); } 286295367Sdes161 AUE_SCHED_RR_GET_INTERVAL STD { int linux_sched_rr_get_interval( \ 28776262Sgreen l_pid_t pid, struct l_timespec *interval); } 28876262Sgreen162 AUE_NULL STD { int linux_nanosleep( \ 28992559Sdes const struct l_timespec *rqtp, \ 290295367Sdes struct l_timespec *rmtp); } 29165674Skris163 AUE_NULL STD { int linux_mremap(l_ulong addr, \ 29265674Skris l_ulong old_len, l_ulong new_len, \ 293147005Sdes l_ulong flags, l_ulong new_addr); } 29465674Skris164 AUE_SETRESUID STD { int linux_setresuid16(l_uid16_t ruid, \ 295147005Sdes l_uid16_t euid, l_uid16_t suid); } 296295367Sdes165 AUE_GETRESUID STD { int linux_getresuid16(l_uid16_t *ruid, \ 29765674Skris l_uid16_t *euid, l_uid16_t *suid); } 298295367Sdes166 AUE_NULL STD { int linux_vm86(void); } 299295367Sdes167 AUE_NULL STD { int linux_query_module(void); } 300295367Sdes168 AUE_POLL NOPROTO { int poll(struct pollfd* fds, \ 301295367Sdes unsigned int nfds, long timeout); } 302295367Sdes169 AUE_NULL STD { int linux_nfsservctl(void); } 303295367Sdes170 AUE_SETRESGID STD { int linux_setresgid16(l_gid16_t rgid, \ 304295367Sdes l_gid16_t egid, l_gid16_t sgid); } 305295367Sdes171 AUE_GETRESGID STD { int linux_getresgid16(l_gid16_t *rgid, \ 306295367Sdes l_gid16_t *egid, l_gid16_t *sgid); } 307295367Sdes172 AUE_PRCTL STD { int linux_prctl(l_int option, l_int arg2, l_int arg3, \ 308295367Sdes l_int arg4, l_int arg5); } 309295367Sdes173 AUE_NULL STD { int linux_rt_sigreturn( \ 310295367Sdes struct l_ucontext *ucp); } 311295367Sdes174 AUE_NULL STD { int linux_rt_sigaction(l_int sig, \ 312295367Sdes l_sigaction_t *act, l_sigaction_t *oact, \ 313295367Sdes l_size_t sigsetsize); } 314295367Sdes175 AUE_NULL STD { int linux_rt_sigprocmask(l_int how, \ 315295367Sdes l_sigset_t *mask, l_sigset_t *omask, \ 316295367Sdes l_size_t sigsetsize); } 317295367Sdes176 AUE_NULL STD { int linux_rt_sigpending(l_sigset_t *set, \ 318295367Sdes l_size_t sigsetsize); } 319295367Sdes177 AUE_NULL STD { int linux_rt_sigtimedwait(l_sigset_t *mask, \ 320295367Sdes l_siginfo_t *ptr, \ 321295367Sdes struct l_timeval *timeout, \ 322295367Sdes l_size_t sigsetsize); } 323295367Sdes178 AUE_NULL STD { int linux_rt_sigqueueinfo(l_pid_t pid, l_int sig, \ 324295367Sdes l_siginfo_t *info); } 325295367Sdes179 AUE_NULL STD { int linux_rt_sigsuspend( \ 32665674Skris l_sigset_t *newset, \ 327295367Sdes l_size_t sigsetsize); } 328295367Sdes180 AUE_PREAD STD { int linux_pread(l_uint fd, char *buf, \ 32965674Skris l_size_t nbyte, l_loff_t offset); } 33065674Skris181 AUE_PWRITE STD { int linux_pwrite(l_uint fd, char *buf, \ 33165674Skris l_size_t nbyte, l_loff_t offset); } 332295367Sdes182 AUE_CHOWN STD { int linux_chown16(char *path, \ 333295367Sdes l_uid16_t uid, l_gid16_t gid); } 33465674Skris183 AUE_GETCWD STD { int linux_getcwd(char *buf, \ 33565674Skris l_ulong bufsize); } 33676262Sgreen184 AUE_CAPGET STD { int linux_capget(struct l_user_cap_header *hdrp, \ 337295367Sdes struct l_user_cap_data *datap); } 338295367Sdes185 AUE_CAPSET STD { int linux_capset(struct l_user_cap_header *hdrp, \ 33965674Skris struct l_user_cap_data *datap); } 340295367Sdes186 AUE_NULL STD { int linux_sigaltstack(l_stack_t *uss, \ 341295367Sdes l_stack_t *uoss); } 342295367Sdes187 AUE_SENDFILE STD { int linux_sendfile(void); } 34365674Skris188 AUE_GETPMSG UNIMPL getpmsg 344295367Sdes189 AUE_PUTPMSG UNIMPL putpmsg 345295367Sdes190 AUE_VFORK STD { int linux_vfork(void); } 346295367Sdes; 191: ugetrlimit 347295367Sdes191 AUE_GETRLIMIT STD { int linux_getrlimit(l_uint resource, \ 348295367Sdes struct l_rlimit *rlim); } 349295367Sdes192 AUE_MMAP STD { int linux_mmap2(l_ulong addr, l_ulong len, \ 350295367Sdes l_ulong prot, l_ulong flags, l_ulong fd, \ 351295367Sdes l_ulong pgoff); } 352295367Sdes193 AUE_TRUNCATE STD { int linux_truncate64(char *path, \ 353295367Sdes l_loff_t length); } 354124211Sdes194 AUE_FTRUNCATE STD { int linux_ftruncate64(l_uint fd, \ 355295367Sdes l_loff_t length); } 356295367Sdes195 AUE_STAT STD { int linux_stat64(const char *filename, \ 357295367Sdes struct l_stat64 *statbuf); } 358295367Sdes196 AUE_LSTAT STD { int linux_lstat64(const char *filename, \ 359295367Sdes struct l_stat64 *statbuf); } 360295367Sdes197 AUE_FSTAT STD { int linux_fstat64(l_int fd, \ 361295367Sdes struct l_stat64 *statbuf); } 362295367Sdes198 AUE_LCHOWN STD { int linux_lchown(char *path, l_uid_t uid, \ 363295367Sdes l_gid_t gid); } 364295367Sdes199 AUE_GETUID STD { int linux_getuid(void); } 365295367Sdes200 AUE_GETGID STD { int linux_getgid(void); } 366295367Sdes201 AUE_GETEUID NOPROTO { int geteuid(void); } 367295367Sdes202 AUE_GETEGID NOPROTO { int getegid(void); } 368124211Sdes203 AUE_SETREUID NOPROTO { int setreuid(uid_t ruid, uid_t euid); } 369295367Sdes204 AUE_SETREGID NOPROTO { int setregid(gid_t rgid, gid_t egid); } 370295367Sdes205 AUE_GETGROUPS STD { int linux_getgroups(l_int gidsetsize, \ 371295367Sdes l_gid_t *grouplist); } 372295367Sdes206 AUE_SETGROUPS STD { int linux_setgroups(l_int gidsetsize, \ 373295367Sdes l_gid_t *grouplist); } 374295367Sdes207 AUE_FCHOWN NODEF fchown fchown fchown_args int 375295367Sdes208 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \ 376295367Sdes uid_t suid); } 377295367Sdes209 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ 378295367Sdes uid_t *suid); } 379295367Sdes210 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \ 380124211Sdes gid_t sgid); } 381295367Sdes211 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ 382295367Sdes gid_t *sgid); } 383295367Sdes212 AUE_CHOWN STD { int linux_chown(char *path, l_uid_t uid, \ 384295367Sdes l_gid_t gid); } 385295367Sdes213 AUE_SETUID NOPROTO { int setuid(uid_t uid); } 386295367Sdes214 AUE_SETGID NOPROTO { int setgid(gid_t gid); } 387295367Sdes215 AUE_SETFSUID STD { int linux_setfsuid(l_uid_t uid); } 388295367Sdes216 AUE_SETFSGID STD { int linux_setfsgid(l_gid_t gid); } 389295367Sdes217 AUE_PIVOT_ROOT STD { int linux_pivot_root(char *new_root, \ 390124211Sdes char *put_old); } 391295367Sdes218 AUE_MINCORE STD { int linux_mincore(l_ulong start, \ 392295367Sdes l_size_t len, u_char *vec); } 393295367Sdes219 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \ 394295367Sdes int behav); } 395295367Sdes220 AUE_GETDIRENTRIES STD { int linux_getdents64(l_uint fd, \ 39676262Sgreen void *dirent, l_uint count); } 39776262Sgreen221 AUE_FCNTL STD { int linux_fcntl64(l_uint fd, l_uint cmd, \ 398295367Sdes l_ulong arg); } 399295367Sdes222 AUE_NULL UNIMPL 400295367Sdes223 AUE_NULL UNIMPL 401295367Sdes224 AUE_NULL STD { long linux_gettid(void); } 402295367Sdes225 AUE_NULL UNIMPL linux_readahead 403295367Sdes226 AUE_NULL STD { int linux_setxattr(void); } 404295367Sdes227 AUE_NULL STD { int linux_lsetxattr(void); } 405295367Sdes228 AUE_NULL STD { int linux_fsetxattr(void); } 40665674Skris229 AUE_NULL STD { int linux_getxattr(void); } 407204917Sdes230 AUE_NULL STD { int linux_lgetxattr(void); } 408215116Sdes231 AUE_NULL STD { int linux_fgetxattr(void); } 409295367Sdes232 AUE_NULL STD { int linux_listxattr(void); } 410295367Sdes233 AUE_NULL STD { int linux_llistxattr(void); } 411215116Sdes234 AUE_NULL STD { int linux_flistxattr(void); } 412295367Sdes235 AUE_NULL STD { int linux_removexattr(void); } 413295367Sdes236 AUE_NULL STD { int linux_lremovexattr(void); } 414295367Sdes237 AUE_NULL STD { int linux_fremovexattr(void); } 415215116Sdes238 AUE_NULL STD { int linux_tkill(int tid, int sig); } 416323124Sdes239 AUE_SENDFILE UNIMPL linux_sendfile64 417323124Sdes240 AUE_NULL STD { int linux_sys_futex(void *uaddr, int op, uint32_t val, \ 418295367Sdes struct l_timespec *timeout, uint32_t *uaddr2, uint32_t val3); } 419295367Sdes241 AUE_NULL STD { int linux_sched_setaffinity(l_pid_t pid, l_uint len, \ 420295367Sdes l_ulong *user_mask_ptr); } 421295367Sdes242 AUE_NULL STD { int linux_sched_getaffinity(l_pid_t pid, l_uint len, \ 422295367Sdes l_ulong *user_mask_ptr); } 423295367Sdes243 AUE_NULL STD { int linux_set_thread_area(struct l_user_desc *desc); } 424295367Sdes244 AUE_NULL STD { int linux_get_thread_area(struct l_user_desc *desc); } 425295367Sdes245 AUE_NULL UNIMPL linux_io_setup 426295367Sdes246 AUE_NULL UNIMPL linux_io_destroy 427323124Sdes247 AUE_NULL UNIMPL linux_io_getevents 428323124Sdes248 AUE_NULL UNIMPL linux_io_submit 429323124Sdes249 AUE_NULL UNIMPL linux_io_cancel 430323124Sdes250 AUE_NULL STD { int linux_fadvise64(int fd, l_loff_t offset, \ 431323124Sdes l_size_t len, int advice); } 432295367Sdes251 AUE_NULL UNIMPL 433295367Sdes252 AUE_EXIT STD { int linux_exit_group(int error_code); } 434296781Sdes253 AUE_NULL STD { int linux_lookup_dcookie(void); } 435296781Sdes254 AUE_NULL STD { int linux_epoll_create(void); } 436295367Sdes255 AUE_NULL STD { int linux_epoll_ctl(void); } 437215116Sdes256 AUE_NULL STD { int linux_epoll_wait(void); } 438215116Sdes257 AUE_NULL STD { int linux_remap_file_pages(void); } 439215116Sdes258 AUE_NULL STD { int linux_set_tid_address(int *tidptr); } 440295367Sdes259 AUE_NULL STD { int linux_timer_create(clockid_t clock_id, \ 441295367Sdes struct sigevent *evp, l_timer_t *timerid); } 442295367Sdes260 AUE_NULL STD { int linux_timer_settime(l_timer_t timerid, l_int flags, \ 443215116Sdes const struct itimerspec *new, struct itimerspec *old); } 444295367Sdes261 AUE_NULL STD { int linux_timer_gettime(l_timer_t timerid, struct itimerspec *setting); } 445295367Sdes262 AUE_NULL STD { int linux_timer_getoverrun(l_timer_t timerid); } 446215116Sdes263 AUE_NULL STD { int linux_timer_delete(l_timer_t timerid); } 447323124Sdes264 AUE_CLOCK_SETTIME STD { int linux_clock_settime(clockid_t which, struct l_timespec *tp); } 448323124Sdes265 AUE_NULL STD { int linux_clock_gettime(clockid_t which, struct l_timespec *tp); } 449295367Sdes266 AUE_NULL STD { int linux_clock_getres(clockid_t which, struct l_timespec *tp); } 450215116Sdes267 AUE_NULL STD { int linux_clock_nanosleep(clockid_t which, int flags, \ 451295367Sdes struct l_timespec *rqtp, struct l_timespec *rmtp); } 452215116Sdes268 AUE_STATFS STD { int linux_statfs64(char *path, size_t bufsize, struct l_statfs64_buf *buf); } 453215116Sdes269 AUE_FSTATFS STD { int linux_fstatfs64(void); } 454221420Sdes270 AUE_NULL STD { int linux_tgkill(int tgid, int pid, int sig); } 455295367Sdes271 AUE_UTIMES STD { int linux_utimes(char *fname, \ 456262566Sdes struct l_timeval *tptr); } 457295367Sdes272 AUE_NULL STD { int linux_fadvise64_64(int fd, \ 458215116Sdes l_loff_t offset, l_loff_t len, \ 459215116Sdes int advice); } 460295367Sdes273 AUE_NULL UNIMPL vserver 461215116Sdes274 AUE_NULL STD { int linux_mbind(void); } 462215116Sdes275 AUE_NULL STD { int linux_get_mempolicy(void); } 463295367Sdes276 AUE_NULL STD { int linux_set_mempolicy(void); } 464295367Sdes; linux 2.6.6: 465295367Sdes277 AUE_NULL STD { int linux_mq_open(const char *name, int oflag, mode_t mode, \ 466295367Sdes struct mq_attr *attr); } 467215116Sdes278 AUE_NULL STD { int linux_mq_unlink(const char *name); } 468215116Sdes279 AUE_NULL STD { int linux_mq_timedsend(l_mqd_t mqd, const char *msg_ptr, \ 469295367Sdes size_t msg_len, unsigned int msg_prio, const struct \ 470295367Sdes l_timespec *abs_timeout); } 471295367Sdes280 AUE_NULL STD { int linux_mq_timedreceive(l_mqd_t mqd, char *msg_ptr, \ 472215116Sdes size_t msg_len, unsigned int msg_prio, const struct \ 473215116Sdes l_timespec *abs_timeout); } 474295367Sdes281 AUE_NULL STD { int linux_mq_notify(l_mqd_t mqd, const struct l_timespec *abs_timeout); } 475295367Sdes282 AUE_NULL STD { int linux_mq_getsetattr(l_mqd_t mqd, const struct mq_attr *attr, \ 476295367Sdes struct mq_attr *oattr); } 477295367Sdes283 AUE_NULL STD { int linux_kexec_load(void); } 478323124Sdes284 AUE_WAIT6 STD { int linux_waitid(int idtype, l_pid_t id, \ 479323124Sdes l_siginfo_t *info, int options, \ 480323124Sdes void *rusage); } 481323124Sdes285 AUE_NULL UNIMPL 482295367Sdes; linux 2.6.11: 483296781Sdes286 AUE_NULL STD { int linux_add_key(void); } 484296781Sdes287 AUE_NULL STD { int linux_request_key(void); } 485295367Sdes288 AUE_NULL STD { int linux_keyctl(void); } 486215116Sdes; linux 2.6.13: 487215116Sdes289 AUE_NULL STD { int linux_ioprio_set(void); } 488204917Sdes290 AUE_NULL STD { int linux_ioprio_get(void); } 489295367Sdes291 AUE_NULL STD { int linux_inotify_init(void); } 490295367Sdes292 AUE_NULL STD { int linux_inotify_add_watch(void); } 491295367Sdes293 AUE_NULL STD { int linux_inotify_rm_watch(void); } 492204917Sdes; linux 2.6.16: 493295367Sdes294 AUE_NULL STD { int linux_migrate_pages(void); } 494295367Sdes295 AUE_OPEN_RWTC STD { int linux_openat(l_int dfd, const char *filename, \ 495204917Sdes l_int flags, l_int mode); } 496204917Sdes296 AUE_MKDIRAT STD { int linux_mkdirat(l_int dfd, const char *pathname, \ 497295367Sdes l_int mode); } 498295367Sdes297 AUE_MKNODAT STD { int linux_mknodat(l_int dfd, const char *filename, \ 499204917Sdes l_int mode, l_uint dev); } 500204917Sdes298 AUE_FCHOWNAT STD { int linux_fchownat(l_int dfd, const char *filename, \ 501204917Sdes l_uid16_t uid, l_gid16_t gid, l_int flag); } 502204917Sdes299 AUE_FUTIMESAT STD { int linux_futimesat(l_int dfd, char *filename, \ 503204917Sdes struct l_timeval *utimes); } 504295367Sdes300 AUE_FSTATAT STD { int linux_fstatat64(l_int dfd, char *pathname, \ 505295367Sdes struct l_stat64 *statbuf, l_int flag); } 506295367Sdes301 AUE_UNLINKAT STD { int linux_unlinkat(l_int dfd, const char *pathname, \ 507295367Sdes l_int flag); } 508204917Sdes302 AUE_RENAMEAT STD { int linux_renameat(l_int olddfd, const char *oldname, \ 509295367Sdes l_int newdfd, const char *newname); } 510295367Sdes303 AUE_LINKAT STD { int linux_linkat(l_int olddfd, const char *oldname, \ 511204917Sdes l_int newdfd, const char *newname, l_int flag); } 512204917Sdes304 AUE_SYMLINKAT STD { int linux_symlinkat(const char *oldname, l_int newdfd, \ 513295367Sdes const char *newname); } 514204917Sdes305 AUE_READLINKAT STD { int linux_readlinkat(l_int dfd, const char *path, \ 515204917Sdes char *buf, l_int bufsiz); } 516204917Sdes306 AUE_FCHMODAT STD { int linux_fchmodat(l_int dfd, const char *filename, \ 517204917Sdes l_mode_t mode); } 518204917Sdes307 AUE_FACCESSAT STD { int linux_faccessat(l_int dfd, const char *filename, l_int amode, l_int flag); } 519204917Sdes308 AUE_SELECT STD { int linux_pselect6(l_int nfds, l_fd_set *readfds, \ 520204917Sdes l_fd_set *writefds, l_fd_set *exceptfds, \ 521204917Sdes struct l_timespec *tsp, l_uintptr_t *sig); } 522204917Sdes309 AUE_NULL STD { int linux_ppoll(void); } 523204917Sdes310 AUE_NULL STD { int linux_unshare(void); } 524204917Sdes; linux 2.6.17: 525204917Sdes311 AUE_NULL STD { int linux_set_robust_list(struct linux_robust_list_head *head, \ 526204917Sdes l_size_t len); } 527204917Sdes312 AUE_NULL STD { int linux_get_robust_list(l_int pid, struct linux_robust_list_head **head, \ 528295367Sdes l_size_t *len); } 529295367Sdes313 AUE_NULL STD { int linux_splice(void); } 530295367Sdes314 AUE_NULL STD { int linux_sync_file_range(void); } 531204917Sdes315 AUE_NULL STD { int linux_tee(void); } 532295367Sdes316 AUE_NULL STD { int linux_vmsplice(void); } 533295367Sdes; linux 2.6.18: 534295367Sdes317 AUE_NULL STD { int linux_move_pages(void); } 535295367Sdes; linux 2.6.19: 536295367Sdes318 AUE_NULL STD { int linux_getcpu(void); } 537295367Sdes319 AUE_NULL STD { int linux_epoll_pwait(void); } 538295367Sdes; linux 2.6.22: 539204917Sdes320 AUE_NULL STD { int linux_utimensat(void); } 540295367Sdes321 AUE_NULL STD { int linux_signalfd(void); } 541295367Sdes322 AUE_NULL STD { int linux_timerfd_create(void); } 542204917Sdes323 AUE_NULL STD { int linux_eventfd(void); } 543295367Sdes; linux 2.6.23: 544295367Sdes324 AUE_NULL STD { int linux_fallocate(void); } 545296781Sdes; linux 2.6.25: 546204917Sdes325 AUE_NULL STD { int linux_timerfd_settime(void); } 547295367Sdes326 AUE_NULL STD { int linux_timerfd_gettime(void); } 548204917Sdes; linux 2.6.27: 549295367Sdes327 AUE_NULL STD { int linux_signalfd4(void); } 550295367Sdes328 AUE_NULL STD { int linux_eventfd2(void); } 551295367Sdes329 AUE_NULL STD { int linux_epoll_create1(void); } 552295367Sdes330 AUE_NULL STD { int linux_dup3(l_int oldfd, \ 553295367Sdes l_int newfd, l_int flags); } 554295367Sdes331 AUE_NULL STD { int linux_pipe2(l_int *pipefds, l_int flags); } 555295367Sdes332 AUE_NULL STD { int linux_inotify_init1(void); } 556295367Sdes; linux 2.6.30: 557295367Sdes333 AUE_NULL STD { int linux_preadv(void); } 558295367Sdes334 AUE_NULL STD { int linux_pwritev(void); } 559295367Sdes; linux 2.6.31: 560295367Sdes335 AUE_NULL STD { int linux_rt_tsigqueueinfo(void); } 561295367Sdes336 AUE_NULL STD { int linux_perf_event_open(void); } 562295367Sdes; linux 2.6.33: 563295367Sdes337 AUE_NULL STD { int linux_recvmmsg(void); } 564295367Sdes338 AUE_NULL STD { int linux_fanotify_init(void); } 565295367Sdes339 AUE_NULL STD { int linux_fanotify_mark(void); } 566295367Sdes; linux 2.6.36: 567295367Sdes340 AUE_NULL STD { int linux_prlimit64(l_pid_t pid, \ 568295367Sdes l_uint resource, \ 569295367Sdes struct rlimit *new, \ 570295367Sdes struct rlimit *old); } 571295367Sdes; later: 572295367Sdes341 AUE_NULL STD { int linux_name_to_handle_at(void); } 573295367Sdes342 AUE_NULL STD { int linux_open_by_handle_at(void); } 574295367Sdes343 AUE_NULL STD { int linux_clock_adjtime(void); } 575295367Sdes344 AUE_NULL STD { int linux_syncfs(void); } 576295367Sdes345 AUE_NULL STD { int linux_sendmmsg(void); } 577295367Sdes346 AUE_NULL STD { int linux_setns(void); } 578295367Sdes347 AUE_NULL STD { int linux_process_vm_readv(void); } 579295367Sdes348 AUE_NULL STD { int linux_process_vm_writev(void); } 580295367Sdes