syscalls.master revision 1.66
11.66Smartin $NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp $ 21.1Sbjh21 31.1Sbjh21; Derived from sys/compat/linux/arch/*/syscalls.master 41.1Sbjh21; and from Linux 2.4.12 arch/arm/kernel/calls.S 51.1Sbjh21 61.1Sbjh21; NetBSD/arm COMPAT_LINUX system call name/number "master" file. 71.1Sbjh21; (See syscalls.conf to see what it is processed into.) 81.1Sbjh21; 91.1Sbjh21; Fields: number type [type-dependent ...] 101.1Sbjh21; number system call number, must be in order 111.1Sbjh21; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 121.1Sbjh21; the compatibility options defined in syscalls.conf. 131.1Sbjh21; 141.1Sbjh21; types: 151.1Sbjh21; STD always included 161.1Sbjh21; OBSOL obsolete, not included in system 171.1Sbjh21; UNIMPL unimplemented, not included in system 181.1Sbjh21; NODEF included, but don't define the syscall number 191.1Sbjh21; NOARGS included, but don't define the syscall args structure 201.1Sbjh21; INDIR included, but don't define the syscall args structure 211.1Sbjh21; and allow it to be "really" varargs. 221.1Sbjh21; 231.1Sbjh21; The compat options are defined in the syscalls.conf file, and the 241.1Sbjh21; compat option name is prefixed to the syscall name. Other than 251.1Sbjh21; that, they're like NODEF (for 'compat' options), or STD (for 261.1Sbjh21; 'libcompat' options). 271.1Sbjh21; 281.1Sbjh21; The type-dependent arguments are as follows: 291.1Sbjh21; For STD, NODEF, NOARGS, and compat syscalls: 301.1Sbjh21; { pseudo-proto } [alias] 311.1Sbjh21; For other syscalls: 321.1Sbjh21; [comment] 331.1Sbjh21; 341.1Sbjh21; #ifdef's, etc. may be included, and are copied to the output files. 351.1Sbjh21; #include's are copied to the syscall names and switch definition files only. 361.1Sbjh21 371.1Sbjh21#include <sys/param.h> 381.1Sbjh21#include <sys/poll.h> 391.1Sbjh21#include <sys/systm.h> 401.1Sbjh21#include <sys/signal.h> 411.1Sbjh21#include <sys/mount.h> 421.1Sbjh21#include <sys/syscallargs.h> 431.38Srtr#include <sys/time.h> 441.1Sbjh21 451.38Srtr#include <compat/sys/time.h> 461.1Sbjh21#include <compat/linux/common/linux_types.h> 471.14She#include <compat/linux/common/linux_mmap.h> 481.1Sbjh21#include <compat/linux/common/linux_signal.h> 491.1Sbjh21#include <compat/linux/common/linux_siginfo.h> 501.1Sbjh21#include <compat/linux/common/linux_machdep.h> 511.1Sbjh21 521.1Sbjh21#include <compat/linux/linux_syscallargs.h> 531.1Sbjh21 541.1Sbjh21%% 551.5Sbjh21; XXX We have to explicitly declare linux_sys_nosys. 561.39Spooka0 NOARGS { int|linux_sys||nosys(void); } 571.44Schs1 STD { int|linux_sys||exit(int rval); } 581.39Spooka2 NOARGS { int|sys||fork(void); } 591.55Snjoly3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 601.55Snjoly4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ 611.55Snjoly size_t nbyte); } 621.39Spooka5 STD { int|linux_sys||open(const char *path, int flags, \ 631.54Snjoly linux_umode_t mode); } 641.39Spooka6 NOARGS { int|sys||close(int fd); } 651.39Spooka7 STD { int|linux_sys||waitpid(int pid, int *status, \ 661.1Sbjh21 int options);} 671.54Snjoly8 STD { int|linux_sys||creat(const char *path, linux_umode_t mode); } 681.39Spooka9 NOARGS { int|sys||link(const char *path, const char *link); } 691.39Spooka10 STD { int|linux_sys||unlink(const char *path); } 701.39Spooka11 NOARGS { int|sys||execve(const char *path, char **argp, \ 711.1Sbjh21 char **envp); } 721.39Spooka12 NOARGS { int|sys||chdir(const char *path); } 731.39Spooka13 STD { int|linux_sys||time(linux_time_t *t); } 741.54Snjoly14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ 751.57Snjoly unsigned dev); } 761.39Spooka15 NOARGS { int|sys||chmod(const char *path, int mode); } 771.39Spooka16 STD { int|linux_sys||lchown16(const char *path, \ 781.33Snjoly linux_uid16_t uid, linux_gid16_t gid); } 791.1Sbjh2117 OBSOL break 801.1Sbjh2118 OBSOL ostat 811.39Spooka19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \ 821.1Sbjh21 int whence); } 831.39Spooka20 NOARGS { pid_t|sys||getpid(void); } 841.1Sbjh2121 UNIMPL mount 851.1Sbjh2122 OBSOL umount 861.39Spooka23 NOARGS { int|sys||setuid(uid_t uid); } 871.39Spooka24 NOARGS { uid_t|sys||getuid(void); } 881.39Spooka25 STD { int|linux_sys||stime(linux_time_t *t); } 891.39Spooka26 STD { int|linux_sys||ptrace(int request, int pid, \ 901.1Sbjh21 int addr, int data); } 911.39Spooka27 STD { int|linux_sys||alarm(unsigned int secs); } 921.1Sbjh2128 OBSOL ofstat 931.39Spooka29 STD { int|linux_sys||pause(void); } 941.39Spooka30 STD { int|linux_sys||utime(const char *path, \ 951.1Sbjh21 struct linux_utimbuf *times); } 961.1Sbjh2131 OBSOL stty 971.1Sbjh2132 OBSOL gtty 981.39Spooka33 NOARGS { int|sys||access(const char *path, int flags); } 991.39Spooka34 STD { int|linux_sys||nice(int incr); } 1001.1Sbjh2135 OBSOL ftime 1011.39Spooka36 NOARGS { int|sys||sync(void); } 1021.39Spooka37 STD { int|linux_sys||kill(int pid, int signum); } 1031.39Spooka38 NOARGS { int|sys||__posix_rename(const char *from, \ 1041.1Sbjh21 const char *to); } 1051.54Snjoly39 NOARGS { int|sys||mkdir(const char *path, linux_umode_t mode); } 1061.39Spooka40 NOARGS { int|sys||rmdir(const char *path); } 1071.52Snjoly41 NOARGS { int|sys||dup(int fd); } 1081.39Spooka42 STD { int|linux_sys||pipe(int *pfds); } 1091.39Spooka43 STD { int|linux_sys||times(struct times *tms); } 1101.1Sbjh2144 OBSOL prof 1111.39Spooka45 STD { int|linux_sys||brk(char *nsize); } 1121.39Spooka46 NOARGS { int|sys||setgid(gid_t gid); } 1131.39Spooka47 NOARGS { gid_t|sys||getgid(void); } 1141.39Spooka48 STD { int|linux_sys||signal(int signum, \ 1151.1Sbjh21 linux_handler_t handler); } 1161.39Spooka49 NOARGS { uid_t|sys||geteuid(void); } 1171.39Spooka50 NOARGS { gid_t|sys||getegid(void); } 1181.39Spooka51 NOARGS { int|sys||acct(char *path); } 1191.1Sbjh2152 UNIMPL umount 1201.1Sbjh2153 OBSOL lock 1211.39Spooka54 STD { int|linux_sys||ioctl(int fd, u_long com, \ 1221.28Schristos void *data); } 1231.39Spooka55 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); } 1241.1Sbjh2156 OBSOL mpx 1251.39Spooka57 NOARGS { int|sys||setpgid(int pid, int pgid); } 1261.1Sbjh2158 OBSOL ulimit 1271.39Spooka59 STD { int|linux_sys||oldolduname( \ 1281.2Sbjh21 struct linux_oldold_utsname *up); } 1291.39Spooka60 NOARGS { int|sys||umask(int newmask); } 1301.39Spooka61 NOARGS { int|sys||chroot(char *path); } 1311.1Sbjh2162 UNIMPL ustat 1321.52Snjoly63 NOARGS { int|sys||dup2(int from, int to); } 1331.39Spooka64 NOARGS { pid_t|sys||getppid(void); } 1341.39Spooka65 NOARGS { int|sys||getpgrp(void); } 1351.39Spooka66 NOARGS { int|sys||setsid(void); } 1361.39Spooka67 STD { int|linux_sys||sigaction(int signum, \ 1371.1Sbjh21 const struct linux_old_sigaction *nsa, \ 1381.1Sbjh21 struct linux_old_sigaction *osa); } 1391.39Spooka68 STD { int|linux_sys||siggetmask(void); } 1401.39Spooka69 STD { int|linux_sys||sigsetmask(linux_old_sigset_t mask); } 1411.39Spooka70 STD { int|linux_sys||setreuid16(linux_uid16_t ruid, \ 1421.33Snjoly linux_uid16_t euid); } 1431.39Spooka71 STD { int|linux_sys||setregid16(linux_gid16_t rgid, \ 1441.33Snjoly linux_gid16_t egid); } 1451.39Spooka72 STD { int|linux_sys||sigsuspend(void *restart, \ 1461.1Sbjh21 int oldmask, int mask); } 1471.39Spooka73 STD { int|linux_sys||sigpending(linux_old_sigset_t *set); } 1481.39Spooka74 NOARGS { int|compat_43_sys||sethostname(char *hostname, \ 1491.1Sbjh21 u_int len);} 1501.39Spooka75 STD { int|linux_sys||setrlimit(u_int which, \ 1511.1Sbjh21 struct orlimit *rlp); } 1521.39Spooka76 STD { int|linux_sys||getrlimit(u_int which, \ 1531.1Sbjh21 struct orlimit *rlp); } 1541.39Spooka77 NOARGS { int|compat_50_sys||getrusage(int who, struct rusage50 *rusage); } 1551.40Snjoly78 STD { int|linux_sys||gettimeofday(struct timeval50 *tp, \ 1561.1Sbjh21 struct timezone *tzp); } 1571.40Snjoly79 STD { int|linux_sys||settimeofday(struct timeval50 *tp, \ 1581.1Sbjh21 struct timezone *tzp); } 1591.39Spooka80 STD { int|linux_sys||getgroups16(int gidsetsize, \ 1601.33Snjoly linux_gid16_t *gidset); } 1611.39Spooka81 STD { int|linux_sys||setgroups16(int gidsetsize, \ 1621.33Snjoly linux_gid16_t *gidset); } 1631.39Spooka82 STD { int|linux_sys||oldselect(struct linux_oldselect *lsp); } 1641.63Sozaki83 NOARGS { int|sys||symlink(const char *path, const char *link); } 1651.39Spooka84 NOARGS { int|compat_43_sys||lstat(const char *path, \ 1661.63Sozaki struct stat43 *ub); } oolstat 1671.64Snjoly85 NOARGS { ssize_t|sys||readlink(const char *path, char *buf, \ 1681.1Sbjh21 int count); } 1691.1Sbjh21#ifdef EXEC_AOUT 1701.39Spooka86 STD { int|linux_sys||uselib(const char *path); } 1711.1Sbjh21#else 1721.1Sbjh2186 EXCL uselib 1731.1Sbjh21#endif 1741.39Spooka87 STD { int|linux_sys||swapon(char *name); } 1751.39Spooka88 STD { int|linux_sys||reboot(int magic1, int magic2, \ 1761.1Sbjh21 int cmd, void *arg); } 1771.39Spooka89 STD { int|linux_sys||readdir(int fd, void *dent, \ 1781.1Sbjh21 unsigned int count); } 1791.39Spooka90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } 1801.61Snjoly91 NOARGS { int|sys||munmap(void *addr, size_t len); } 1811.39Spooka92 NOARGS { int|compat_43_sys||truncate(const char *path, \ 1821.1Sbjh21 long length); } 1831.39Spooka93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } 1841.54Snjoly94 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); } 1851.39Spooka95 STD { int|linux_sys||fchown16(int fd, linux_uid16_t uid, \ 1861.33Snjoly linux_gid16_t gid); } 1871.39Spooka96 STD { int|linux_sys||getpriority(int which, int who); } 1881.39Spooka97 NOARGS { int|sys||setpriority(int which, int who, int prio); } 1891.39Spooka98 NOARGS { int|sys||profil(void *samples, u_int size, \ 1901.1Sbjh21 u_int offset, u_int scale); } 1911.39Spooka99 STD { int|linux_sys||statfs(const char *path, \ 1921.1Sbjh21 struct linux_statfs *sp); } 1931.39Spooka100 STD { int|linux_sys||fstatfs(int fd, \ 1941.1Sbjh21 struct linux_statfs *sp); } 1951.1Sbjh21101 UNIMPL 1961.39Spooka102 STD { int|linux_sys||socketcall(int what, void *args); } 1971.1Sbjh21103 UNIMPL syslog 1981.47Schristos104 NOARGS { int|compat_50_sys||setitimer(int which, \ 1991.38Srtr struct itimerval50 *itv, \ 2001.38Srtr struct itimerval50 *oitv); } 2011.47Schristos105 NOARGS { int|compat_50_sys||getitimer(int which, \ 2021.38Srtr struct itimerval50 *itv); } 2031.39Spooka106 STD { int|linux_sys||stat(const char *path, \ 2041.1Sbjh21 struct linux_stat *sp); } 2051.39Spooka107 STD { int|linux_sys||lstat(const char *path, \ 2061.1Sbjh21 struct linux_stat *sp); } 2071.39Spooka108 STD { int|linux_sys||fstat(int fd, struct linux_stat *sp); } 2081.39Spooka109 STD { int|linux_sys||olduname(struct linux_oldutsname *up); } 2091.1Sbjh21110 UNIMPL 2101.1Sbjh21111 UNIMPL vhangup 2111.1Sbjh21112 UNIMPL idle 2121.1Sbjh21113 UNIMPL syscall 2131.39Spooka114 STD { int|linux_sys||wait4(int pid, int *status, \ 2141.41Snjoly int options, struct rusage50 *rusage); } 2151.39Spooka115 STD { int|linux_sys||swapoff(const char *path); } 2161.39Spooka116 STD { int|linux_sys||sysinfo(struct linux_sysinfo *arg); } 2171.39Spooka117 STD { int|linux_sys||ipc(int what, int a1, int a2, int a3, \ 2181.28Schristos void *ptr); } 2191.39Spooka118 NOARGS { int|sys||fsync(int fd); } 2201.39Spooka119 STD { int|linux_sys||sigreturn(struct linux_sigcontext *scp); } 2211.44Schs120 STD { int|linux_sys||clone(int flags, void *stack, \ 2221.44Schs void *parent_tidptr, void *tls, void *child_tidptr); } 2231.39Spooka121 STD { int|linux_sys||setdomainname(char *domainname, \ 2241.1Sbjh21 int len); } 2251.39Spooka122 STD { int|linux_sys||uname(struct linux_utsname *up); } 2261.20Sperry123 UNIMPL modify_ldt 2271.1Sbjh21124 UNIMPL adjtimex 2281.39Spooka125 STD { int|linux_sys||mprotect(const void *start, \ 2291.9Schristos unsigned long len, int prot); } 2301.39Spooka126 STD { int|linux_sys||sigprocmask(int how, \ 2311.1Sbjh21 const linux_old_sigset_t *set, \ 2321.1Sbjh21 linux_old_sigset_t *oset); } 2331.1Sbjh21127 UNIMPL create_module 2341.1Sbjh21128 UNIMPL init_module 2351.1Sbjh21129 UNIMPL delete_module 2361.1Sbjh21130 UNIMPL get_kernel_syms 2371.1Sbjh21131 UNIMPL quotactl 2381.39Spooka132 NOARGS { pid_t|sys||getpgid(pid_t pid); } 2391.39Spooka133 NOARGS { int|sys||fchdir(int fd); } 2401.1Sbjh21134 UNIMPL bdflush 2411.1Sbjh21135 UNIMPL sysfs 2421.43Snjoly136 STD { int|linux_sys||personality(unsigned long per); } 2431.1Sbjh21137 UNIMPL afs_syscall 2441.39Spooka138 STD { int|linux_sys||setfsuid(uid_t uid); } 2451.39Spooka139 STD { int|linux_sys||setfsgid(gid_t gid); } 2461.39Spooka140 STD { int|linux_sys||llseek(int fd, u_int32_t ohigh, \ 2471.28Schristos u_int32_t olow, void *res, int whence); } 2481.39Spooka141 STD { int|linux_sys||getdents(int fd, \ 2491.1Sbjh21 struct linux_dirent *dent, unsigned int count); } 2501.39Spooka142 STD { int|linux_sys||select(int nfds, fd_set *readfds, \ 2511.1Sbjh21 fd_set *writefds, fd_set *exceptfds, \ 2521.40Snjoly struct timeval50 *timeout); } 2531.39Spooka143 NOARGS { int|sys||flock(int fd, int how); } 2541.39Spooka144 NOARGS { int|sys|13|msync(void *addr, size_t len, int flags); } 2551.55Snjoly145 NOARGS { ssize_t|sys||readv(int fd, \ 2561.55Snjoly const struct iovec *iovp, int iovcnt); } 2571.55Snjoly146 NOARGS { ssize_t|sys||writev(int fd, \ 2581.55Snjoly const struct iovec *iovp, int iovcnt); } 2591.39Spooka147 NOARGS { pid_t|sys||getsid(pid_t pid); } 2601.39Spooka148 STD { int|linux_sys||fdatasync(int fd); } 2611.39Spooka149 STD { int|linux_sys||__sysctl(struct linux___sysctl *lsp); } 2621.39Spooka150 NOARGS { int|sys||mlock(void *addr, size_t len); } 2631.39Spooka151 NOARGS { int|sys||munlock(void *addr, size_t len); } 2641.39Spooka152 NOARGS { int|sys||mlockall(int flags); } 2651.39Spooka153 NOARGS { int|sys||munlockall(void); } 2661.39Spooka154 STD { int|linux_sys||sched_setparam(pid_t pid, \ 2671.1Sbjh21 const struct linux_sched_param *sp); } 2681.39Spooka155 STD { int|linux_sys||sched_getparam(pid_t pid, \ 2691.1Sbjh21 struct linux_sched_param *sp); } 2701.39Spooka156 STD { int|linux_sys||sched_setscheduler(pid_t pid, \ 2711.1Sbjh21 int policy, const struct linux_sched_param *sp); } 2721.39Spooka157 STD { int|linux_sys||sched_getscheduler(pid_t pid); } 2731.39Spooka158 STD { int|linux_sys||sched_yield(void); } 2741.39Spooka159 STD { int|linux_sys||sched_get_priority_max(int policy); } 2751.39Spooka160 STD { int|linux_sys||sched_get_priority_min(int policy); } 2761.1Sbjh21161 UNIMPL sched_rr_get_interval 2771.39Spooka162 STD { int|linux_sys||nanosleep( \ 2781.36Snjoly const struct linux_timespec *rqtp, \ 2791.36Snjoly struct linux_timespec *rmtp); } 2801.39Spooka163 STD { void *|linux_sys||mremap(void *old_address, \ 2811.1Sbjh21 size_t old_size, size_t new_size, u_long flags); } 2821.39Spooka164 STD { int|linux_sys||setresuid16(linux_uid16_t ruid, \ 2831.33Snjoly linux_uid16_t euid, linux_uid16_t suid); } 2841.39Spooka165 STD { int|linux_sys||getresuid16(linux_uid16_t *ruid, \ 2851.33Snjoly linux_uid16_t *euid, linux_uid16_t *suid); } 2861.1Sbjh21166 UNIMPL 2871.1Sbjh21167 UNIMPL query_module 2881.39Spooka168 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \ 2891.1Sbjh21 int timeout); } 2901.1Sbjh21169 UNIMPL nfsservctl 2911.39Spooka170 STD { int|linux_sys||setresgid16(linux_gid16_t rgid, \ 2921.33Snjoly linux_gid16_t egid, linux_gid16_t sgid); } 2931.39Spooka171 STD { int|linux_sys||getresgid16(linux_gid16_t *rgid, \ 2941.33Snjoly linux_gid16_t *egid, linux_gid16_t *sgid); } 2951.1Sbjh21172 UNIMPL prctl 2961.1Sbjh21173 UNIMPL rt_sigreturn 2971.39Spooka;173 STD { int|linux_sys||rt_sigreturn( \ 2981.1Sbjh21; struct linux_rt_sigframe *sfp); } 2991.39Spooka174 STD { int|linux_sys||rt_sigaction(int signum, \ 3001.1Sbjh21 const struct linux_sigaction *nsa, \ 3011.1Sbjh21 struct linux_sigaction *osa, \ 3021.1Sbjh21 size_t sigsetsize); } 3031.39Spooka175 STD { int|linux_sys||rt_sigprocmask(int how, \ 3041.1Sbjh21 const linux_sigset_t *set, \ 3051.1Sbjh21 linux_sigset_t *oset, \ 3061.1Sbjh21 size_t sigsetsize); } 3071.39Spooka176 STD { int|linux_sys||rt_sigpending( \ 3081.1Sbjh21 linux_sigset_t *set, \ 3091.1Sbjh21 size_t sigsetsize); } 3101.48Schristos177 STD { int|linux_sys||rt_sigtimedwait( \ 3111.48Schristos const linux_sigset_t *set, \ 3121.48Schristos linux_siginfo_t *info, \ 3131.48Schristos const struct linux_timespec *timeout); } 3141.39Spooka178 STD { int|linux_sys||rt_queueinfo(int pid, int signum, \ 3151.42Snjoly linux_siginfo_t *uinfo); } 3161.39Spooka179 STD { int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \ 3171.1Sbjh21 size_t sigsetsize); } 3181.39Spooka180 STD { int|linux_sys||pread(int fd, char *buf, \ 3191.56Snjoly size_t nbyte, off_t offset); } 3201.39Spooka181 STD { int|linux_sys||pwrite(int fd, char *buf, \ 3211.56Snjoly size_t nbyte, off_t offset); } 3221.39Spooka182 STD { int|linux_sys||chown16(const char *path, \ 3231.33Snjoly linux_uid16_t uid, linux_gid16_t gid); } 3241.39Spooka183 NOARGS { int|sys||__getcwd(char *bufp, size_t length); } 3251.1Sbjh21184 UNIMPL capget 3261.1Sbjh21185 UNIMPL capset 3271.39Spooka186 STD { int|linux_sys||sigaltstack( \ 3281.1Sbjh21 const struct linux_sigaltstack *ss, \ 3291.1Sbjh21 struct linux_sigaltstack *oss); } 3301.1Sbjh21187 UNIMPL sendfile 3311.1Sbjh21188 UNIMPL getpmsg 3321.1Sbjh21189 UNIMPL putpmsg 3331.39Spooka190 NOARGS vfork { int|sys|14|vfork(void); } 3341.39Spooka191 STD { int|linux_sys||ugetrlimit(int which, \ 3351.7Schristos struct rlimit *rlp); } 3361.30Sdsl#define linux_sys_mmap2_args linux_sys_mmap_args 3371.39Spooka192 NOARGS { linux_off_t|linux_sys||mmap2(unsigned long addr, \ 3381.13Schristos size_t len, int prot, int flags, int fd, \ 3391.13Schristos linux_off_t offset); } 3401.39Spooka193 STD { int|linux_sys||truncate64(const char *path, \ 3411.1Sbjh21 off_t length); } 3421.39Spooka194 STD { int|linux_sys||ftruncate64(unsigned int fd, \ 3431.1Sbjh21 off_t length); } 3441.39Spooka195 STD { int|linux_sys||stat64(const char *path, \ 3451.1Sbjh21 struct linux_stat64 *sp); } 3461.39Spooka196 STD { int|linux_sys||lstat64(const char *path, \ 3471.1Sbjh21 struct linux_stat64 *sp); } 3481.39Spooka197 STD { int|linux_sys||fstat64(int fd, \ 3491.1Sbjh21 struct linux_stat64 *sp); } 3501.39Spooka198 NOARGS { int|sys||__posix_lchown(const char *path, uid_t uid, \ 3511.1Sbjh21 gid_t gid); } 3521.39Spooka199 NOARGS getuid32 { uid_t|sys||getuid(void); } 3531.39Spooka200 NOARGS getgid32 { gid_t|sys||getgid(void); } 3541.39Spooka201 NOARGS geteuid32 { uid_t|sys||geteuid(void); } 3551.39Spooka202 NOARGS getegid32 { gid_t|sys||getegid(void); } 3561.39Spooka203 NOARGS setreuid32 { int|sys||setreuid(uid_t ruid, \ 3571.1Sbjh21 uid_t euid); } 3581.39Spooka204 NOARGS setregid32 { int|sys||setregid(gid_t rgid, \ 3591.1Sbjh21 gid_t egid); } 3601.59Snjoly205 NOARGS getgroups32 { int|sys||getgroups(int gidsetsize, \ 3611.1Sbjh21 gid_t *gidset); } 3621.59Snjoly206 NOARGS setgroups32 { int|sys||setgroups(int gidsetsize, \ 3631.1Sbjh21 gid_t *gidset); } 3641.39Spooka207 NOARGS fchown32 { int|sys||__posix_fchown(int fd, uid_t uid, \ 3651.1Sbjh21 gid_t gid); } 3661.39Spooka208 STD setresuid32 { int|linux_sys||setresuid(uid_t ruid, \ 3671.1Sbjh21 uid_t euid, uid_t suid); } 3681.39Spooka209 STD getresuid32 { int|linux_sys||getresuid(uid_t *ruid, \ 3691.1Sbjh21 uid_t *euid, uid_t *suid); } 3701.39Spooka210 STD setresgid32 { int|linux_sys||setresgid(gid_t rgid, \ 3711.1Sbjh21 gid_t egid, gid_t sgid); } 3721.39Spooka211 STD getresgid32 { int|linux_sys||getresgid(gid_t *rgid, \ 3731.1Sbjh21 gid_t *egid, gid_t *sgid); } 3741.39Spooka212 NOARGS chown32 { int|sys||__posix_chown(const char *path, \ 3751.1Sbjh21 uid_t uid, gid_t gid); } 3761.39Spooka213 NOARGS setuid32 { int|sys||setuid(uid_t uid); } 3771.39Spooka214 NOARGS setgid32 { int|sys||setgid(gid_t gid); } 3781.39Spooka215 NOARGS setfsuid32 { int|linux_sys||setfsuid(uid_t uid); } 3791.39Spooka216 NOARGS setfsgid32 { int|linux_sys||setfsgid(gid_t gid); } 3801.39Spooka217 STD { int|linux_sys||getdents64(int fd, \ 3811.10Schristos struct linux_dirent64 *dent, unsigned int count); } 3821.1Sbjh21218 UNIMPL pivot_root 3831.39Spooka219 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); } 3841.39Spooka220 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); } 3851.39Spooka221 STD { int|linux_sys||fcntl64(int fd, int cmd, void *arg); } 3861.17Sjdolecek222 UNIMPL /* for tux */ 3871.17Sjdolecek223 UNIMPL /* unused */ 3881.44Schs224 NOARGS { pid_t|linux_sys||gettid(void); } 3891.17Sjdolecek225 UNIMPL readahead 3901.39Spooka226 STD { int|linux_sys||setxattr(char *path, char *name, \ 3911.21Sfvdl void *value, size_t size, int flags); } 3921.39Spooka227 STD { int|linux_sys||lsetxattr(char *path, char *name, \ 3931.21Sfvdl void *value, size_t size, int flags); } 3941.39Spooka228 STD { int|linux_sys||fsetxattr(int fd, char *name, \ 3951.21Sfvdl void *value, size_t size, int flags); } 3961.39Spooka229 STD { ssize_t|linux_sys||getxattr(char *path, char *name, \ 3971.21Sfvdl void *value, size_t size); } 3981.39Spooka230 STD { ssize_t|linux_sys||lgetxattr(char *path, char *name, \ 3991.21Sfvdl void *value, size_t size); } 4001.39Spooka231 STD { ssize_t|linux_sys||fgetxattr(int fd, char *name, \ 4011.21Sfvdl void *value, size_t size); } 4021.39Spooka232 STD { ssize_t|linux_sys||listxattr(char *path, char *list, \ 4031.21Sfvdl size_t size); } 4041.39Spooka233 STD { ssize_t|linux_sys||llistxattr(char *path, char *list, \ 4051.21Sfvdl size_t size); } 4061.39Spooka234 STD { ssize_t|linux_sys||flistxattr(int fd, char *list, \ 4071.21Sfvdl size_t size); } 4081.39Spooka235 STD { int|linux_sys||removexattr(char *path, char *name); } 4091.39Spooka236 STD { int|linux_sys||lremovexattr(char *path, char *name); } 4101.39Spooka237 STD { int|linux_sys||fremovexattr(int fd, char *name); } 4111.44Schs238 STD { int|linux_sys||tkill(int tid, int sig); } 4121.17Sjdolecek239 UNIMPL sendfile64 4131.44Schs240 STD { int|linux_sys||futex(int *uaddr, int op, int val, \ 4141.44Schs const struct linux_timespec *timeout, int *uaddr2, \ 4151.44Schs int val3); } 4161.44Schs241 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ 4171.44Schs unsigned int len, unsigned long *mask); } 4181.44Schs242 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ 4191.44Schs unsigned int len, unsigned long *mask); } 4201.17Sjdolecek243 UNIMPL io_setup 4211.17Sjdolecek244 UNIMPL io_destroy 4221.17Sjdolecek245 UNIMPL io_getevents 4231.17Sjdolecek246 UNIMPL io_submit 4241.17Sjdolecek247 UNIMPL io_cancel 4251.39Spooka248 STD { int|linux_sys||exit_group(int error_code); } 4261.17Sjdolecek249 UNIMPL lookup_dcookie 4271.17Sjdolecek250 UNIMPL epoll_create 4281.17Sjdolecek251 UNIMPL epoll_ctl 4291.17Sjdolecek252 UNIMPL epoll_wait 4301.17Sjdolecek253 UNIMPL remap_file_pages 4311.44Schs254 UNIMPL set_thread_area 4321.44Schs255 UNIMPL get_thread_area 4331.44Schs256 STD { int|linux_sys||set_tid_address(int *tid); } 4341.17Sjdolecek257 UNIMPL timer_create 4351.17Sjdolecek258 UNIMPL timer_settime 4361.17Sjdolecek259 UNIMPL timer_gettime 4371.17Sjdolecek260 UNIMPL timer_getoverrun 4381.17Sjdolecek261 UNIMPL timer_delete 4391.39Spooka262 STD { int|linux_sys||clock_settime(clockid_t which, \ 4401.22Sfvdl struct linux_timespec *tp); } 4411.39Spooka263 STD { int|linux_sys||clock_gettime(clockid_t which, \ 4421.22Sfvdl struct linux_timespec *tp); } 4431.39Spooka264 STD { int|linux_sys||clock_getres(clockid_t which, \ 4441.22Sfvdl struct linux_timespec *tp); } 4451.39Spooka265 STD { int|linux_sys||clock_nanosleep(clockid_t which, \ 4461.22Sfvdl int flags, struct linux_timespec *rqtp, \ 4471.22Sfvdl struct linux_timespec *rmtp); } 4481.39Spooka266 STD { int|linux_sys||statfs64(const char *path, \ 4491.19Sjdolecek size_t sz, struct linux_statfs64 *sp); } 4501.39Spooka267 STD { int|linux_sys||fstatfs64(int fd, \ 4511.19Sjdolecek size_t sz, struct linux_statfs64 *sp); } 4521.44Schs268 STD { int|linux_sys||tgkill(int tgid, int tid, int sig); } 4531.60Snjoly269 NOARGS { int|compat_50_sys||utimes(const char *path, \ 4541.60Snjoly const struct timeval50 *tptr); } 4551.58Snjoly270 STD { int|linux_sys||fadvise64_64(int fd, off_t offset, \ 4561.58Snjoly off_t len, int advice); } 4571.17Sjdolecek271 UNIMPL pciconfig_iobase 4581.17Sjdolecek272 UNIMPL pciconfig_read 4591.17Sjdolecek273 UNIMPL pciconfig_write 4601.44Schs274 UNIMPL mq_open 4611.44Schs275 UNIMPL mq_unlink 4621.44Schs276 UNIMPL mq_timedsend 4631.44Schs277 UNIMPL mq_timedreceive 4641.44Schs278 UNIMPL mq_notify 4651.44Schs279 UNIMPL mq_getsetattr 4661.44Schs280 UNIMPL waitid 4671.44Schs281 UNIMPL socket 4681.44Schs282 UNIMPL bind 4691.44Schs283 UNIMPL connect 4701.44Schs284 UNIMPL listen 4711.44Schs285 UNIMPL accept 4721.44Schs286 UNIMPL getsockname 4731.44Schs287 UNIMPL getpeername 4741.44Schs288 UNIMPL socketpair 4751.44Schs289 UNIMPL send 4761.44Schs290 UNIMPL sendto 4771.44Schs291 UNIMPL recv 4781.44Schs292 UNIMPL recvfrom 4791.44Schs293 UNIMPL shutdown 4801.44Schs294 UNIMPL setsockopt 4811.44Schs295 UNIMPL getsockopt 4821.44Schs296 UNIMPL sendmsg 4831.44Schs297 UNIMPL recvmsg 4841.44Schs298 UNIMPL semop 4851.44Schs299 UNIMPL semget 4861.44Schs300 UNIMPL semctl 4871.44Schs301 UNIMPL msgsnd 4881.44Schs302 UNIMPL msgrcv 4891.44Schs303 UNIMPL msgget 4901.44Schs304 UNIMPL msgctl 4911.44Schs305 UNIMPL shmat 4921.44Schs306 UNIMPL shmdt 4931.44Schs307 UNIMPL shmget 4941.44Schs308 UNIMPL shmctl 4951.44Schs309 UNIMPL add_key 4961.44Schs310 UNIMPL request_key 4971.44Schs311 UNIMPL keyctl 4981.44Schs312 UNIMPL semtimedop 4991.44Schs313 UNIMPL vserver 5001.44Schs314 UNIMPL ioptio_set 5011.44Schs315 UNIMPL ioptio_get 5021.44Schs316 UNIMPL inotify_init 5031.44Schs317 UNIMPL inotify_add_watch 5041.44Schs318 UNIMPL inotify_rm_watch 5051.44Schs319 UNIMPL mbind 5061.44Schs320 UNIMPL get_mempolicy 5071.44Schs321 UNIMPL set_mempolicy 5081.53Schs322 STD { int|linux_sys||openat(int fd, const char *path, \ 5091.53Schs int flags, ... linux_umode_t mode); } 5101.53Schs323 NOARGS { int|sys||mkdirat(int fd, const char *path, \ 5111.53Schs linux_umode_t mode); } 5121.53Schs324 STD { int|linux_sys||mknodat(int fd, const char *path, \ 5131.53Schs linux_umode_t mode, unsigned dev); } 5141.53Schs325 STD { int|linux_sys||fchownat(int fd, const char *path, \ 5151.53Schs uid_t owner, gid_t group, int flag); } 5161.44Schs326 UNIMPL futimesat 5171.53Schs327 STD { int|linux_sys||fstatat64(int fd, const char *path, \ 5181.53Schs struct linux_stat64 *sp, int flag); } 5191.53Schs328 STD { int|linux_sys||unlinkat(int fd, const char *path, \ 5201.53Schs int flag); } 5211.53Schs329 NOARGS { int|sys||renameat(int fromfd, const char *from, \ 5221.53Schs int tofd, const char *to); } 5231.53Schs330 STD { int|linux_sys||linkat(int fd1, const char *name1, \ 5241.53Schs int fd2, const char *name2, int flags); } 5251.53Schs331 NOARGS { int|sys||symlinkat(const char *path1, int fd, \ 5261.53Schs const char *path2); } 5271.64Snjoly332 NOARGS { ssize_t|sys||readlinkat(int fd, const char *path, \ 5281.53Schs char *buf, size_t bufsize); } 5291.53Schs333 STD { int|linux_sys||fchmodat(int fd, const char *path, \ 5301.53Schs linux_umode_t mode); } 5311.53Schs334 STD { int|linux_sys||faccessat(int fd, const char *path, \ 5321.53Schs int amode); } 5331.65Smanu335 STD { int|linux_sys||pselect6(int nfds, fd_set *readfds, \ 5341.65Smanu fd_set *writefds, fd_set *exceptfds, \ 5351.65Smanu struct linux_timespec *timeout, \ 5361.65Smanu linux_sized_sigset_t *ss); } 5371.62Snjoly336 STD { int|linux_sys||ppoll(struct pollfd *fds, u_int nfds, \ 5381.49Spooka struct linux_timespec *timeout, \ 5391.49Spooka linux_sigset_t *sigset); } 5401.44Schs337 UNIMPL unshare 5411.44Schs338 STD { int|linux_sys||set_robust_list( \ 5421.44Schs struct linux_robust_list_head *head, size_t len); } 5431.44Schs339 STD { int|linux_sys||get_robust_list(int pid, \ 5441.44Schs struct linux_robust_list_head **head, \ 5451.44Schs size_t *len); } 5461.44Schs340 UNIMPL splice 5471.44Schs341 UNIMPL sync_file_range2 5481.44Schs342 UNIMPL tee 5491.44Schs343 UNIMPL vmsplice 5501.44Schs344 UNIMPL move_pages 5511.44Schs345 UNIMPL getcpu 5521.44Schs346 UNIMPL epoll_wait 5531.44Schs347 UNIMPL kexec_load 5541.51Snjoly348 STD { int|linux_sys||utimensat(int fd, const char *path, \ 5551.51Snjoly struct linux_timespec *times, int flag); } 5561.44Schs349 UNIMPL signalfd 5571.44Schs350 UNIMPL timerfd_create 5581.44Schs351 UNIMPL eventfd 5591.44Schs352 UNIMPL fallocate 5601.44Schs353 UNIMPL timerfd_settime 5611.44Schs354 UNIMPL timerfd_gettime 5621.44Schs355 UNIMPL signalfd4 5631.44Schs356 UNIMPL eventfd2 5641.44Schs357 UNIMPL epoll_create1 5651.45She358 STD { int|linux_sys||dup3(int from, int to, int flags); } 5661.45She359 STD { int|linux_sys||pipe2(int *pfds, int flags); } 5671.44Schs360 UNIMPL inotify_init1 5681.44Schs361 UNIMPL preadv 5691.44Schs362 UNIMPL pwritev 5701.44Schs363 UNIMPL rt_tgsigqueueinfo 5711.44Schs364 UNIMPL perf_counter_open 5721.44Schs365 UNIMPL recvmmsg 5731.66Smartin366 STD { int|linux_sys||accept4(int s, \ 5741.66Smartin struct osockaddr *name, \ 5751.66Smartin int *anamelen, int flags); } 5761.17Sjdolecek367 UNIMPL 5771.17Sjdolecek368 UNIMPL 5781.17Sjdolecek369 UNIMPL 5791.17Sjdolecek370 UNIMPL 5801.17Sjdolecek371 UNIMPL 5811.17Sjdolecek372 UNIMPL 5821.17Sjdolecek373 UNIMPL 5831.17Sjdolecek374 UNIMPL 5841.17Sjdolecek375 UNIMPL 5851.17Sjdolecek376 UNIMPL 5861.17Sjdolecek377 UNIMPL 5871.17Sjdolecek378 UNIMPL 5881.17Sjdolecek379 UNIMPL 5891.17Sjdolecek380 UNIMPL 5901.17Sjdolecek381 UNIMPL 5911.17Sjdolecek382 UNIMPL 5921.17Sjdolecek383 UNIMPL 5931.3Sbjh21 5941.3Sbjh21; ARMLinux actually has two ranges of syscalls. Normal syscalls use 5951.3Sbjh21; SWI numbers starting at 0x900000 (__NR_SYSCALL_BASE). Special 5961.17Sjdolecek; ARM-specific syscalls use SWI numbers starting at 0x9f0000 5971.3Sbjh21; (__ARM_NR_BASE). linux_syscall() (in arch/arm/arm/linux_syscall.c) 5981.17Sjdolecek; remaps these down to 0x900180 so that we can use one linux_sysent 5991.3Sbjh21; array for the whole lot. 6001.3Sbjh21 6011.17Sjdolecek384 UNIMPL /* base */ 6021.39Spooka385 STD { int|linux_sys||breakpoint(void); } 6031.39Spooka386 STD { int|linux_sys||cacheflush(uintptr_t from, \ 6041.44Schs intptr_t to, int flags); } 6051.17Sjdolecek387 UNIMPL usr26 6061.17Sjdolecek388 UNIMPL usr32 6071.44Schs389 STD { int|linux_sys||set_tls(void *tls); } 608