Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 1 | # This file is used to automatically generate bionic's system call stubs. |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 2 | # |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 3 | # Each non-blank, non-comment line has the following format: |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 4 | # |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 5 | # return_type func_name[:syscall_name[:call_id]]([parameter_list]) arch_list |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 6 | # |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 7 | # where: |
| 8 | # arch_list ::= "all" | "custom" | arch+ |
| 9 | # arch ::= "arm" | "mips" | "x86" |
| 10 | # |
| 11 | # Note: |
Elliott Hughes | a51916b | 2013-04-03 10:08:09 -0700 | [diff] [blame] | 12 | # - syscall_name corresponds to the name of the syscall, which may differ from |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 13 | # the exported function name (example: the exit syscall is implemented by the _exit() |
| 14 | # function, which is not the same as the standard C exit() function which calls it) |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 15 | # |
| 16 | # - The call_id parameter, given that func_name and syscall_name have |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 17 | # been provided, allows the user to specify dispatch style syscalls. |
| 18 | # For example, socket() syscall on i386 actually becomes: |
| 19 | # socketcall(__NR_socket, 1, *(rest of args on stack)). |
| 20 | # |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 21 | # - Each parameter type is assumed to be stored in 32 bits. |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 22 | # |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 23 | # - The arch list can be the word "custom" meaning "do not generate any stubs". |
| 24 | # In this case, a hand-written custom stub must be provided. |
Shin-ichiro KAWASAKI | ce0595d | 2009-09-01 19:03:06 +0900 | [diff] [blame] | 25 | # |
Elliott Hughes | 0493a6f | 2013-03-07 11:48:58 -0800 | [diff] [blame] | 26 | # This file is processed by a python script named gensyscalls.py. |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 27 | |
| 28 | # process management |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 29 | void _exit:exit_group(int) all |
| 30 | void _exit_thread:exit(int) all |
| 31 | pid_t __fork:fork(void) all |
| 32 | pid_t _waitpid:waitpid(pid_t, int*, int, struct rusage*) mips,x86 |
| 33 | int __waitid:waitid(int, pid_t, struct siginfo_t*, int, void*) all |
| 34 | pid_t wait4(pid_t pid, int* status, int options, struct rusage* rusage) all |
David 'Digit' Turner | 97cf7f3 | 2010-01-22 18:59:05 -0800 | [diff] [blame] | 35 | |
| 36 | # NOTE: this system call is never called directly, but we list it there |
| 37 | # to have __NR_clone properly defined. |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 38 | pid_t __sys_clone:clone(int, void*, int*, void*, int*) all |
David 'Digit' Turner | 97cf7f3 | 2010-01-22 18:59:05 -0800 | [diff] [blame] | 39 | |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 40 | int execve(const char*, char* const*, char* const*) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 41 | |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 42 | int __setuid:setuid32(uid_t) arm,x86 |
| 43 | int __setuid:setuid(uid_t) mips |
| 44 | uid_t getuid:getuid32() arm,x86 |
| 45 | uid_t getuid:getuid() mips |
| 46 | gid_t getgid:getgid32() arm,x86 |
| 47 | gid_t getgid:getgid() mips |
| 48 | uid_t geteuid:geteuid32() arm,x86 |
| 49 | uid_t geteuid:geteuid() mips |
| 50 | gid_t getegid:getegid32() arm,x86 |
| 51 | gid_t getegid:getegid() mips |
| 52 | uid_t getresuid:getresuid32(uid_t* ruid, uid_t* euid, uid_t* suid) arm,x86 |
| 53 | uid_t getresuid:getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) mips |
| 54 | gid_t getresgid:getresgid32(gid_t* rgid, gid_t* egid, gid_t* sgid) arm,x86 |
| 55 | gid_t getresgid:getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) mips |
| 56 | pid_t gettid() all |
| 57 | ssize_t readahead(int, off64_t, size_t) all |
| 58 | int getgroups:getgroups32(int, gid_t*) arm,x86 |
| 59 | int getgroups:getgroups(int, gid_t*) mips |
| 60 | pid_t getpgid(pid_t) all |
| 61 | pid_t getppid() all |
| 62 | pid_t getsid(pid_t) all |
| 63 | pid_t setsid() all |
| 64 | int setgid:setgid32(gid_t) arm,x86 |
| 65 | int setgid:setgid(gid_t) mips |
| 66 | int seteuid:seteuid32(uid_t) custom |
| 67 | int __setreuid:setreuid32(uid_t, uid_t) arm,x86 |
| 68 | int __setreuid:setreuid(uid_t, uid_t) mips |
| 69 | int __setresuid:setresuid32(uid_t, uid_t, uid_t) arm,x86 |
| 70 | int __setresuid:setresuid(uid_t, uid_t, uid_t) mips |
| 71 | int setresgid:setresgid32(gid_t, gid_t, gid_t) arm,x86 |
| 72 | int setresgid:setresgid(gid_t, gid_t, gid_t) mips |
| 73 | void* __brk:brk(void*) all |
| 74 | # See comments in kill.S to understand why we don't generate ARM stubs for kill/tkill/tgkill. |
| 75 | int kill(pid_t, int) mips,x86 |
| 76 | int tkill(pid_t tid, int sig) mips,x86 |
| 77 | int tgkill(pid_t tgid, pid_t tid, int sig) mips,x86 |
| 78 | int __ptrace:ptrace(int request, int pid, void* addr, void* data) all |
| 79 | int __set_thread_area:set_thread_area(void* user_desc) mips,x86 |
| 80 | int __getpriority:getpriority(int, int) all |
| 81 | int setpriority(int, int, int) all |
| 82 | int setrlimit(int resource, const struct rlimit* rlp) all |
| 83 | int getrlimit:ugetrlimit(int resource, struct rlimit* rlp) arm,x86 |
| 84 | int getrlimit:getrlimit(int resource, struct rlimit* rlp) mips |
| 85 | int getrusage(int who, struct rusage* r_usage) all |
| 86 | int setgroups:setgroups32(int, const gid_t*) arm,x86 |
| 87 | int setgroups:setgroups(int, const gid_t*) mips |
| 88 | pid_t getpgrp(void) custom |
| 89 | int setpgid(pid_t, pid_t) all |
| 90 | pid_t vfork(void) arm |
| 91 | int setregid:setregid32(gid_t, gid_t) arm,x86 |
| 92 | int setregid:setregid(gid_t, gid_t) mips |
| 93 | int chroot(const char*) all |
| 94 | # IMPORTANT: Even though <sys/prctl.h> declares prctl(int, ...), the syscall stub must take 6 arguments |
David 'Digit' Turner | b083bb5 | 2011-05-26 02:46:41 +0200 | [diff] [blame] | 95 | # to match the kernel implementation. |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 96 | int prctl(int option, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5) all |
| 97 | int capget(cap_user_header_t header, cap_user_data_t data) all |
| 98 | int capset(cap_user_header_t header, const cap_user_data_t data) all |
| 99 | int sigaltstack(const stack_t*, stack_t*) all |
| 100 | int acct(const char* filepath) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 101 | |
| 102 | # file descriptors |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 103 | ssize_t read(int, void*, size_t) all |
| 104 | ssize_t write(int, const void*, size_t) all |
| 105 | ssize_t pread64(int, void*, size_t, off64_t) all |
| 106 | ssize_t pwrite64(int, void*, size_t, off64_t) all |
| 107 | int __open:open(const char*, int, mode_t) all |
| 108 | int __openat:openat(int, const char*, int, mode_t) all |
| 109 | int close(int) all |
| 110 | int creat(const char*, mode_t) custom |
| 111 | off_t lseek(int, off_t, int) all |
| 112 | int __llseek:_llseek(int, unsigned long, unsigned long, off64_t*, int) all |
| 113 | pid_t getpid() all |
| 114 | void* mmap(void*, size_t, int, int, int, long) custom |
| 115 | void* __mmap2:mmap2(void*, size_t, int, int, int, long) all |
| 116 | int munmap(void*, size_t) all |
| 117 | void* mremap(void*, size_t, size_t, unsigned long) all |
| 118 | int msync(const void*, size_t, int) all |
| 119 | int mprotect(const void*, size_t, int) all |
| 120 | int madvise(const void*, size_t, int) all |
| 121 | int mlock(const void* addr, size_t len) all |
| 122 | int munlock(const void* addr, size_t len) all |
| 123 | int mlockall(int flags) all |
| 124 | int munlockall() all |
| 125 | int mincore(void* start, size_t length, unsigned char* vec) all |
| 126 | int __ioctl:ioctl(int, int, void*) all |
| 127 | int readv(int, const struct iovec*, int) all |
| 128 | int writev(int, const struct iovec*, int) all |
| 129 | int __fcntl:fcntl(int, int, void*) all |
| 130 | int flock(int, int) all |
| 131 | int fchmod(int, mode_t) all |
| 132 | int dup(int) all |
| 133 | int pipe(int*) arm,x86 |
| 134 | int pipe2(int*, int) all |
| 135 | int dup2(int, int) all |
| 136 | int select:_newselect(int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*) all |
| 137 | int ftruncate(int, off_t) all |
| 138 | int ftruncate64(int, off64_t) all |
| 139 | int getdents:getdents64(unsigned int, struct dirent*, unsigned int) all |
| 140 | int fsync(int) all |
| 141 | int fdatasync(int) all |
| 142 | int fchown:fchown32(int, uid_t, gid_t) arm,x86 |
| 143 | int fchown:fchown(int, uid_t, gid_t) mips |
| 144 | void sync(void) all |
| 145 | int __fcntl64:fcntl64(int, int, void*) all |
| 146 | int __fstatfs64:fstatfs64(int, size_t, struct statfs*) all |
| 147 | ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) all |
| 148 | ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) all |
| 149 | int fstatat:fstatat64(int dirfd, const char* path, struct stat* buf, int flags) all |
| 150 | int mkdirat(int dirfd, const char* pathname, mode_t mode) all |
| 151 | int fchownat(int dirfd, const char* path, uid_t owner, gid_t group, int flags) all |
| 152 | int fchmodat(int dirfd, const char* path, mode_t mode, int flags) all |
| 153 | int renameat(int olddirfd, const char* oldpath, int newdirfd, const char* newpath) all |
| 154 | int fsetxattr(int, const char*, const void*, size_t, int) all |
| 155 | ssize_t fgetxattr(int, const char*, void*, size_t) all |
| 156 | ssize_t flistxattr(int, char*, size_t) all |
| 157 | int fremovexattr(int, const char*) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 158 | |
| 159 | # file system |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 160 | int link(const char*, const char*) all |
| 161 | int unlink(const char*) all |
| 162 | int unlinkat(int, const char*, int) all |
| 163 | int chdir(const char*) all |
| 164 | int mknod(const char*, mode_t, dev_t) all |
| 165 | int chmod(const char*, mode_t) all |
| 166 | int chown:chown32(const char*, uid_t, gid_t) arm,x86 |
| 167 | int chown:chown(const char*, uid_t, gid_t) mips |
| 168 | int lchown:lchown32(const char*, uid_t, gid_t) arm,x86 |
| 169 | int lchown:lchown(const char*, uid_t, gid_t) mips |
| 170 | int mount(const char*, const char*, const char*, unsigned long, const void*) all |
| 171 | int umount(const char*) custom |
| 172 | int umount2(const char*, int) all |
| 173 | int fstat:fstat64(int, struct stat*) all |
| 174 | int stat:stat64(const char*, struct stat*) all |
| 175 | int lstat:lstat64(const char*, struct stat*) all |
| 176 | int mkdir(const char*, mode_t) all |
| 177 | int readlink(const char*, char*, size_t) all |
| 178 | int rmdir(const char*) all |
| 179 | int rename(const char*, const char*) all |
| 180 | int __getcwd:getcwd(char* buf, size_t size) all |
| 181 | int access(const char*, int) all |
| 182 | int faccessat(int, const char*, int, int) all |
| 183 | int symlink(const char*, const char*) all |
| 184 | int fchdir(int) all |
| 185 | int truncate(const char*, off_t) all |
| 186 | int truncate64(const char*, off64_t) all |
| 187 | int setxattr(const char*, const char*, const void*, size_t, int) all |
| 188 | int lsetxattr(const char*, const char*, const void*, size_t, int) all |
| 189 | ssize_t getxattr(const char*, const char*, void*, size_t) all |
| 190 | ssize_t lgetxattr(const char*, const char*, void*, size_t) all |
| 191 | ssize_t listxattr(const char*, char*, size_t) all |
| 192 | ssize_t llistxattr(const char*, char*, size_t) all |
| 193 | int removexattr(const char*, const char*) all |
| 194 | int lremovexattr(const char*, const char*) all |
| 195 | int __statfs64:statfs64(const char*, size_t, struct statfs*) all |
| 196 | long unshare(unsigned long) all |
| 197 | int swapon(const char*, int) all |
| 198 | int swapoff(const char*) all |
Stephen Smalley | 5eb686d | 2012-01-13 07:45:16 -0500 | [diff] [blame] | 199 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 200 | # time |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 201 | int pause() all |
| 202 | int gettimeofday(struct timeval*, struct timezone*) all |
| 203 | int settimeofday(const struct timeval*, const struct timezone*) all |
| 204 | clock_t times(struct tms*) all |
| 205 | int nanosleep(const struct timespec*, struct timespec*) all |
| 206 | int clock_gettime(clockid_t clk_id, struct timespec* tp) all |
| 207 | int clock_settime(clockid_t clk_id, const struct timespec* tp) all |
| 208 | int clock_getres(clockid_t clk_id, struct timespec* res) all |
| 209 | int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec* req, struct timespec* rem) all |
| 210 | int getitimer(int, const struct itimerval*) all |
| 211 | int setitimer(int, const struct itimerval*, struct itimerval*) all |
| 212 | int __timer_create:timer_create(clockid_t clockid, struct sigevent* evp, timer_t* timerid) all |
| 213 | int __timer_settime:timer_settime(timer_t, int, const struct itimerspec*, struct itimerspec*) all |
| 214 | int __timer_gettime:timer_gettime(timer_t, struct itimerspec*) all |
| 215 | int __timer_getoverrun:timer_getoverrun(timer_t) all |
| 216 | int __timer_delete:timer_delete(timer_t) all |
| 217 | int utimes(const char*, const struct timeval tvp[2]) all |
| 218 | int utimensat(int, const char*, const struct timespec times[2], int) all |
| 219 | int timerfd_create(clockid_t, int) all |
| 220 | int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*) all |
| 221 | int timerfd_gettime(int, struct itimerspec*) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 222 | |
| 223 | # signals |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 224 | int sigaction(int, const struct sigaction*, struct sigaction*) all |
| 225 | int sigprocmask(int, const sigset_t*, sigset_t*) all |
| 226 | int __sigsuspend:sigsuspend(int unused1, int unused2, unsigned mask) arm,x86 |
| 227 | int __sigsuspend:sigsuspend(const sigset_t* mask) mips |
| 228 | int __rt_sigaction:rt_sigaction(int sig, const struct sigaction* act, struct sigaction* oact, size_t sigsetsize) all |
| 229 | int __rt_sigprocmask:rt_sigprocmask(int how, const sigset_t* set, sigset_t* oset, size_t sigsetsize) all |
| 230 | int __rt_sigtimedwait:rt_sigtimedwait(const sigset_t* set, struct siginfo_t* info, struct timespec_t* timeout, size_t sigset_size) all |
| 231 | int sigpending(sigset_t*) all |
| 232 | int signalfd4(int fd, const sigset_t* mask, size_t sizemask, int flags) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 233 | |
| 234 | # sockets |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 235 | int socket(int, int, int) arm,mips |
| 236 | int socketpair(int, int, int, int*) arm,mips |
| 237 | int bind(int, struct sockaddr*, int) arm,mips |
| 238 | int connect(int, struct sockaddr*, socklen_t) arm,mips |
| 239 | int listen(int, int) arm,mips |
| 240 | int accept(int, struct sockaddr*, socklen_t*) arm,mips |
| 241 | int getsockname(int, struct sockaddr*, socklen_t*) arm,mips |
| 242 | int getpeername(int, struct sockaddr*, socklen_t*) arm,mips |
| 243 | int sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) arm,mips |
| 244 | int recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) arm,mips |
| 245 | int shutdown(int, int) arm,mips |
| 246 | int setsockopt(int, int, int, const void*, socklen_t) arm,mips |
| 247 | int getsockopt(int, int, int, void*, socklen_t*) arm,mips |
| 248 | int sendmsg(int, const struct msghdr*, unsigned int) arm,mips |
| 249 | int recvmsg(int, struct msghdr*, unsigned int) arm,mips |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 250 | |
| 251 | # sockets for x86. These are done as an "indexed" call to socketcall syscall. |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 252 | int socket:socketcall:1(int, int, int) x86 |
| 253 | int bind:socketcall:2(int, struct sockaddr*, int) x86 |
| 254 | int connect:socketcall:3(int, struct sockaddr*, socklen_t) x86 |
| 255 | int listen:socketcall:4(int, int) x86 |
| 256 | int accept:socketcall:5(int, struct sockaddr*, socklen_t*) x86 |
| 257 | int getsockname:socketcall:6(int, struct sockaddr*, socklen_t*) x86 |
| 258 | int getpeername:socketcall:7(int, struct sockaddr*, socklen_t*) x86 |
| 259 | int socketpair:socketcall:8(int, int, int, int*) x86 |
| 260 | int sendto:socketcall:11(int, const void*, size_t, int, const struct sockaddr*, socklen_t) x86 |
| 261 | int recvfrom:socketcall:12(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) x86 |
| 262 | int shutdown:socketcall:13(int, int) x86 |
| 263 | int setsockopt:socketcall:14(int, int, int, const void*, socklen_t) x86 |
| 264 | int getsockopt:socketcall:15(int, int, int, void*, socklen_t*) x86 |
| 265 | int sendmsg:socketcall:16(int, const struct msghdr*, unsigned int) x86 |
| 266 | int recvmsg:socketcall:17(int, struct msghdr*, unsigned int) x86 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 267 | |
| 268 | # scheduler & real-time |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 269 | int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all |
| 270 | int sched_getscheduler(pid_t pid) all |
| 271 | int sched_yield(void) all |
| 272 | int sched_setparam(pid_t pid, const struct sched_param* param) all |
| 273 | int sched_getparam(pid_t pid, struct sched_param* param) all |
| 274 | int sched_get_priority_max(int policy) all |
| 275 | int sched_get_priority_min(int policy) all |
| 276 | int sched_rr_get_interval(pid_t pid, struct timespec* interval) all |
| 277 | int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) all |
| 278 | int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all |
| 279 | int __getcpu:getcpu(unsigned* cpu, unsigned* node, void* unused) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 280 | |
San Mehat | 75c5e25 | 2010-02-23 15:55:29 -0800 | [diff] [blame] | 281 | # io priorities |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 282 | int ioprio_set(int which, int who, int ioprio) all |
| 283 | int ioprio_get(int which, int who) all |
San Mehat | 75c5e25 | 2010-02-23 15:55:29 -0800 | [diff] [blame] | 284 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 285 | # other |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 286 | int uname(struct utsname*) all |
| 287 | mode_t umask(mode_t) all |
| 288 | int __reboot:reboot(int, int, int, void*) all |
| 289 | int __syslog:syslog(int, char*, int) all |
| 290 | int init_module(void*, unsigned long, const char*) all |
| 291 | int delete_module(const char*, unsigned int) all |
| 292 | int klogctl:syslog(int, char*, int) all |
| 293 | int sysinfo(struct sysinfo*) all |
| 294 | int personality(unsigned long) all |
| 295 | long perf_event_open(struct perf_event_attr* attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 296 | |
| 297 | # futex |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 298 | int futex(void*, int, int, void*, void*, int) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 299 | |
| 300 | # epoll |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 301 | int epoll_create(int size) all |
| 302 | int epoll_ctl(int epfd, int op, int fd, struct epoll_event* event) all |
| 303 | int epoll_wait(int epfd, struct epoll_event* events, int max, int timeout) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 304 | |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 305 | int inotify_init(void) all |
| 306 | int inotify_add_watch(int, const char*, unsigned int) all |
| 307 | int inotify_rm_watch(int, unsigned int) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 308 | |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 309 | int poll(struct pollfd*, unsigned int, long) all |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 310 | |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 311 | int eventfd:eventfd2(unsigned int, int) all |
David 'Digit' Turner | defd162 | 2010-09-26 22:29:14 +0200 | [diff] [blame] | 312 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 313 | # ARM-specific ARM_NR_BASE == 0x0f0000 == 983040 |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 314 | int __set_tls:__ARM_NR_set_tls(void*) arm |
| 315 | int cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) arm |
Raghu Gandham | 1fa0d84 | 2012-01-27 17:51:42 -0800 | [diff] [blame] | 316 | |
| 317 | # MIPS-specific |
Elliott Hughes | 5e52279 | 2013-09-24 00:30:25 -0700 | [diff] [blame^] | 318 | int _flush_cache:cacheflush(char* addr, const int nbytes, const int op) mips |
| 319 | int syscall(int number, ...) mips |