blob: 504f190f89ddf90c983f7fcbfbdd4d99be99fc58 [file] [log] [blame]
Elliott Hughes5e522792013-09-24 00:30:25 -07001# This file is used to automatically generate bionic's system call stubs.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08002#
Elliott Hughes5e522792013-09-24 00:30:25 -07003# Each non-blank, non-comment line has the following format:
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08004#
H.J. Lu6fe4e872013-10-04 10:03:17 -07005# return_type func_name[|alias_list][:syscall_name[:socketcall_id]]([parameter_list]) arch_list
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08006#
Elliott Hughes5e522792013-09-24 00:30:25 -07007# where:
Elliott Hughesc9da3322013-10-15 18:18:58 -07008# arch_list ::= "all" | arch+
Pavel Chupinf12a18b2012-12-12 13:11:48 +04009# arch ::= "arm" | "mips" | "x86" | "x86_64"
Elliott Hughes5e522792013-09-24 00:30:25 -070010#
11# Note:
Elliott Hughesa51916b2013-04-03 10:08:09 -070012# - syscall_name corresponds to the name of the syscall, which may differ from
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080013# 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 Hughes5e522792013-09-24 00:30:25 -070015#
H.J. Lu6fe4e872013-10-04 10:03:17 -070016# - alias_list is optional comma separated list of function aliases.
17#
Elliott Hughes5e522792013-09-24 00:30:25 -070018# - The call_id parameter, given that func_name and syscall_name have
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080019# been provided, allows the user to specify dispatch style syscalls.
20# For example, socket() syscall on i386 actually becomes:
21# socketcall(__NR_socket, 1, *(rest of args on stack)).
22#
Elliott Hughes5e522792013-09-24 00:30:25 -070023# - Each parameter type is assumed to be stored in 32 bits.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#
Elliott Hughes0493a6f2013-03-07 11:48:58 -080025# This file is processed by a python script named gensyscalls.py.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026
27# process management
Elliott Hughes5e522792013-09-24 00:30:25 -070028void _exit:exit_group(int) all
29void _exit_thread:exit(int) all
30pid_t __fork:fork(void) all
Elliott Hughes5e522792013-09-24 00:30:25 -070031pid_t wait4(pid_t pid, int* status, int options, struct rusage* rusage) all
David 'Digit' Turner97cf7f32010-01-22 18:59:05 -080032
Elliott Hughes40d105c2013-10-16 12:53:58 -070033# NOTE: these stubs are unused.
Elliott Hughes5e522792013-09-24 00:30:25 -070034pid_t __sys_clone:clone(int, void*, int*, void*, int*) all
Elliott Hughes40d105c2013-10-16 12:53:58 -070035pid_t _waitpid:waitpid(pid_t, int*, int, struct rusage*) mips,x86
36int __waitid:waitid(int, pid_t, struct siginfo_t*, int, void*) all
Elliott Hughesf8fcfbc2013-10-22 13:28:46 -070037int __open:open(const char*, int, mode_t) arm,mips,x86
David 'Digit' Turner97cf7f32010-01-22 18:59:05 -080038
Elliott Hughes5e522792013-09-24 00:30:25 -070039int execve(const char*, char* const*, char* const*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080040
Elliott Hughes5e522792013-09-24 00:30:25 -070041uid_t getuid:getuid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040042uid_t getuid:getuid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070043gid_t getgid:getgid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040044gid_t getgid:getgid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070045uid_t geteuid:geteuid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040046uid_t geteuid:geteuid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070047gid_t getegid:getegid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040048gid_t getegid:getegid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070049uid_t getresuid:getresuid32(uid_t* ruid, uid_t* euid, uid_t* suid) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040050uid_t getresuid:getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070051gid_t getresgid:getresgid32(gid_t* rgid, gid_t* egid, gid_t* sgid) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040052gid_t getresgid:getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070053pid_t gettid() all
54ssize_t readahead(int, off64_t, size_t) all
55int getgroups:getgroups32(int, gid_t*) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040056int getgroups:getgroups(int, gid_t*) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070057pid_t getpgid(pid_t) all
58pid_t getppid() all
59pid_t getsid(pid_t) all
60pid_t setsid() all
61int setgid:setgid32(gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040062int setgid:setgid(gid_t) mips,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070063int setuid:setuid32(uid_t) arm,x86
64int setuid:setuid(uid_t) mips,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070065int setreuid:setreuid32(uid_t, uid_t) arm,x86
66int setreuid:setreuid(uid_t, uid_t) mips,x86_64
67int setresuid:setresuid32(uid_t, uid_t, uid_t) arm,x86
68int setresuid:setresuid(uid_t, uid_t, uid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070069int setresgid:setresgid32(gid_t, gid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040070int setresgid:setresgid(gid_t, gid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070071void* __brk:brk(void*) all
72# See comments in kill.S to understand why we don't generate ARM stubs for kill/tkill/tgkill.
Pavel Chupinf12a18b2012-12-12 13:11:48 +040073int kill(pid_t, int) mips,x86,x86_64
74int tkill(pid_t tid, int sig) mips,x86,x86_64
75int tgkill(pid_t tgid, pid_t tid, int sig) mips,x86,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070076int __ptrace:ptrace(int request, int pid, void* addr, void* data) all
77int __set_thread_area:set_thread_area(void* user_desc) mips,x86
78int __getpriority:getpriority(int, int) all
79int setpriority(int, int, int) all
80int setrlimit(int resource, const struct rlimit* rlp) all
81int getrlimit:ugetrlimit(int resource, struct rlimit* rlp) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040082int getrlimit:getrlimit(int resource, struct rlimit* rlp) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070083int getrusage(int who, struct rusage* r_usage) all
84int setgroups:setgroups32(int, const gid_t*) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040085int setgroups:setgroups(int, const gid_t*) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070086int setpgid(pid_t, pid_t) all
Elliott Hughes9ea4d5f2013-10-18 18:21:11 -070087pid_t vfork(void) arm
Elliott Hughes5e522792013-09-24 00:30:25 -070088int setregid:setregid32(gid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040089int setregid:setregid(gid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070090int chroot(const char*) all
91# IMPORTANT: Even though <sys/prctl.h> declares prctl(int, ...), the syscall stub must take 6 arguments
David 'Digit' Turnerb083bb52011-05-26 02:46:41 +020092# to match the kernel implementation.
Elliott Hughes5e522792013-09-24 00:30:25 -070093int prctl(int option, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5) all
Elliott Hughes4906e562013-10-04 14:55:30 -070094long __arch_prctl:arch_prctl(int, unsigned long) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070095int capget(cap_user_header_t header, cap_user_data_t data) all
96int capset(cap_user_header_t header, const cap_user_data_t data) all
97int sigaltstack(const stack_t*, stack_t*) all
98int acct(const char* filepath) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080099
100# file descriptors
Elliott Hughes5e522792013-09-24 00:30:25 -0700101ssize_t read(int, void*, size_t) all
102ssize_t write(int, const void*, size_t) all
103ssize_t pread64(int, void*, size_t, off64_t) all
104ssize_t pwrite64(int, void*, size_t, off64_t) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700105int close(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700106pid_t getpid() all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400107void* mmap(void*, size_t, int, int, int, long) x86_64
108void* __mmap2:mmap2(void*, size_t, int, int, int, long) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700109int munmap(void*, size_t) all
110void* mremap(void*, size_t, size_t, unsigned long) all
111int msync(const void*, size_t, int) all
112int mprotect(const void*, size_t, int) all
113int madvise(const void*, size_t, int) all
114int mlock(const void* addr, size_t len) all
115int munlock(const void* addr, size_t len) all
116int mlockall(int flags) all
117int munlockall() all
118int mincore(void* start, size_t length, unsigned char* vec) all
119int __ioctl:ioctl(int, int, void*) all
120int readv(int, const struct iovec*, int) all
121int writev(int, const struct iovec*, int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400122int __fcntl:fcntl(int, int, void*) arm,x86,mips
123int fcntl(int, void*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700124int flock(int, int) all
125int fchmod(int, mode_t) all
126int dup(int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400127int pipe(int*) arm,x86,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700128int pipe2(int*, int) all
129int dup2(int, int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400130int select:_newselect(int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*) arm,x86,mips
131int select(int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700132int getdents:getdents64(unsigned int, struct dirent*, unsigned int) all
133int fsync(int) all
134int fdatasync(int) all
135int fchown:fchown32(int, uid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400136int fchown:fchown(int, uid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700137void sync(void) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400138int __fcntl64:fcntl64(int, int, void*) arm,x86,mips
139int __fstatfs64:fstatfs64(int, size_t, struct statfs*) arm,x86,mips
140int fstatfs(int, struct statfs*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700141int fsetxattr(int, const char*, const void*, size_t, int) all
142ssize_t fgetxattr(int, const char*, void*, size_t) all
143ssize_t flistxattr(int, char*, size_t) all
144int fremovexattr(int, const char*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800145
Elliott Hughesf8fcfbc2013-10-22 13:28:46 -0700146int __openat:openat(int, const char*, int, mode_t) all
147int faccessat(int, const char*, int, int) all
148int fchmodat(int, const char*, mode_t, int) all
149int fchownat(int, const char*, uid_t, gid_t, int) all
150int fstatat:fstatat64(int, const char*, struct stat*, int) arm,x86,mips
151int fstatat:newfstatat(int, const char*, struct stat*, int) x86_64
152int linkat(int, const char*, int, const char*, int) all
153int mkdirat(int, const char*, mode_t) all
154int mknodat(int, const char*, mode_t, dev_t) all
155int readlinkat(int, const char*, char*, size_t) all
156int renameat(int, const char*, int, const char*) all
157int symlinkat(const char*, int, const char*) all
158int unlinkat(int, const char*, int) all
159int utimensat(int, const char*, const struct timespec times[2], int) all
160
Elliott Hughesa6519d62013-10-17 16:56:40 -0700161# Paired off_t/off64_t system calls. On 64-bit systems,
162# sizeof(off_t) == sizeof(off64_t), so there we emit two symbols that are
163# aliases. On 32-bit systems, we have two different system calls.
164# That means that every system call in this section should take three lines.
165off_t lseek(int, off_t, int) arm,mips,x86
166int __llseek:_llseek(int, unsigned long, unsigned long, off64_t*, int) arm,mips,x86
167off_t lseek|lseek64(int, off_t, int) x86_64
168int ftruncate(int, off_t) arm,mips,x86
169int ftruncate64(int, off64_t) arm,mips,x86
170int ftruncate|ftruncate64(int, off_t) x86_64
171ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) arm,mips,x86
172ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) arm,mips,x86
173ssize_t sendfile|sendfile64(int out_fd, int in_fd, off_t* offset, size_t count) x86_64
174int truncate(const char*, off_t) arm,mips,x86
175int truncate64(const char*, off64_t) arm,mips,x86
176int truncate|truncate64(const char*, off_t) x86_64
177
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800178# file system
Elliott Hughes5e522792013-09-24 00:30:25 -0700179int chdir(const char*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700180int mount(const char*, const char*, const char*, unsigned long, const void*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700181int umount2(const char*, int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400182int fstat:fstat64(int, struct stat*) arm,x86,mips
183int fstat(int, struct stat*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700184int __getcwd:getcwd(char* buf, size_t size) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700185int fchdir(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700186int setxattr(const char*, const char*, const void*, size_t, int) all
187int lsetxattr(const char*, const char*, const void*, size_t, int) all
188ssize_t getxattr(const char*, const char*, void*, size_t) all
189ssize_t lgetxattr(const char*, const char*, void*, size_t) all
190ssize_t listxattr(const char*, char*, size_t) all
191ssize_t llistxattr(const char*, char*, size_t) all
192int removexattr(const char*, const char*) all
193int lremovexattr(const char*, const char*) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400194int __statfs64:statfs64(const char*, size_t, struct statfs*) arm,x86,mips
195int statfs(const char*, struct statfs*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700196long unshare(unsigned long) all
197int swapon(const char*, int) all
198int swapoff(const char*) all
Stephen Smalley5eb686d2012-01-13 07:45:16 -0500199
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800200# time
Elliott Hughes5e522792013-09-24 00:30:25 -0700201int pause() all
202int gettimeofday(struct timeval*, struct timezone*) all
203int settimeofday(const struct timeval*, const struct timezone*) all
204clock_t times(struct tms*) all
205int nanosleep(const struct timespec*, struct timespec*) all
206int clock_gettime(clockid_t clk_id, struct timespec* tp) all
207int clock_settime(clockid_t clk_id, const struct timespec* tp) all
208int clock_getres(clockid_t clk_id, struct timespec* res) all
209int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec* req, struct timespec* rem) all
210int getitimer(int, const struct itimerval*) all
211int setitimer(int, const struct itimerval*, struct itimerval*) all
212int __timer_create:timer_create(clockid_t clockid, struct sigevent* evp, timer_t* timerid) all
213int __timer_settime:timer_settime(timer_t, int, const struct itimerspec*, struct itimerspec*) all
214int __timer_gettime:timer_gettime(timer_t, struct itimerspec*) all
215int __timer_getoverrun:timer_getoverrun(timer_t) all
216int __timer_delete:timer_delete(timer_t) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700217int timerfd_create(clockid_t, int) all
218int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*) all
219int timerfd_gettime(int, struct itimerspec*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800220
221# signals
Elliott Hughesc7e9b232013-10-16 22:27:54 -0700222int __sigaction:sigaction(int, const struct sigaction*, struct sigaction*) arm,mips,x86
Elliott Hughes1f5af922013-10-15 18:01:56 -0700223int __rt_sigaction:rt_sigaction(int, const struct sigaction*, struct sigaction*, size_t) all
Elliott Hughes40d105c2013-10-16 12:53:58 -0700224int __rt_sigpending:rt_sigpending(sigset_t*, size_t) all
Elliott Hughes1f5af922013-10-15 18:01:56 -0700225int __rt_sigprocmask:rt_sigprocmask(int, const sigset_t*, sigset_t*, size_t) all
226int __rt_sigsuspend:rt_sigsuspend(const sigset_t*, size_t) all
227int __rt_sigtimedwait:rt_sigtimedwait(const sigset_t*, struct siginfo_t*, struct timespec_t*, size_t) all
228int signalfd4(int, const sigset_t*, size_t, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800229
230# sockets
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400231int socket(int, int, int) arm,mips,x86_64
232int socketpair(int, int, int, int*) arm,mips,x86_64
233int bind(int, struct sockaddr*, int) arm,mips,x86_64
234int connect(int, struct sockaddr*, socklen_t) arm,mips,x86_64
235int listen(int, int) arm,mips,x86_64
236int accept(int, struct sockaddr*, socklen_t*) arm,mips,x86_64
237int getsockname(int, struct sockaddr*, socklen_t*) arm,mips,x86_64
238int getpeername(int, struct sockaddr*, socklen_t*) arm,mips,x86_64
239int sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) arm,mips,x86_64
240int recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) arm,mips,x86_64
241int shutdown(int, int) arm,mips,x86_64
242int setsockopt(int, int, int, const void*, socklen_t) arm,mips,x86_64
243int getsockopt(int, int, int, void*, socklen_t*) arm,mips,x86_64
244int sendmsg(int, const struct msghdr*, unsigned int) arm,mips,x86_64
245int recvmsg(int, struct msghdr*, unsigned int) arm,mips,x86_64
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800246
247# sockets for x86. These are done as an "indexed" call to socketcall syscall.
Elliott Hughes5e522792013-09-24 00:30:25 -0700248int socket:socketcall:1(int, int, int) x86
249int bind:socketcall:2(int, struct sockaddr*, int) x86
250int connect:socketcall:3(int, struct sockaddr*, socklen_t) x86
251int listen:socketcall:4(int, int) x86
252int accept:socketcall:5(int, struct sockaddr*, socklen_t*) x86
253int getsockname:socketcall:6(int, struct sockaddr*, socklen_t*) x86
254int getpeername:socketcall:7(int, struct sockaddr*, socklen_t*) x86
255int socketpair:socketcall:8(int, int, int, int*) x86
256int sendto:socketcall:11(int, const void*, size_t, int, const struct sockaddr*, socklen_t) x86
257int recvfrom:socketcall:12(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) x86
258int shutdown:socketcall:13(int, int) x86
259int setsockopt:socketcall:14(int, int, int, const void*, socklen_t) x86
260int getsockopt:socketcall:15(int, int, int, void*, socklen_t*) x86
261int sendmsg:socketcall:16(int, const struct msghdr*, unsigned int) x86
262int recvmsg:socketcall:17(int, struct msghdr*, unsigned int) x86
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800263
264# scheduler & real-time
Elliott Hughes5e522792013-09-24 00:30:25 -0700265int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all
266int sched_getscheduler(pid_t pid) all
267int sched_yield(void) all
268int sched_setparam(pid_t pid, const struct sched_param* param) all
269int sched_getparam(pid_t pid, struct sched_param* param) all
270int sched_get_priority_max(int policy) all
271int sched_get_priority_min(int policy) all
272int sched_rr_get_interval(pid_t pid, struct timespec* interval) all
273int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) all
274int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all
275int __getcpu:getcpu(unsigned* cpu, unsigned* node, void* unused) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800276
San Mehat75c5e252010-02-23 15:55:29 -0800277# io priorities
Elliott Hughes5e522792013-09-24 00:30:25 -0700278int ioprio_set(int which, int who, int ioprio) all
279int ioprio_get(int which, int who) all
San Mehat75c5e252010-02-23 15:55:29 -0800280
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800281# other
Elliott Hughes5e522792013-09-24 00:30:25 -0700282int uname(struct utsname*) all
283mode_t umask(mode_t) all
Elliott Hughes1f5af922013-10-15 18:01:56 -0700284int __reboot:reboot(int, int, int, void*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700285int __syslog:syslog(int, char*, int) all
286int init_module(void*, unsigned long, const char*) all
287int delete_module(const char*, unsigned int) all
288int klogctl:syslog(int, char*, int) all
289int sysinfo(struct sysinfo*) all
290int personality(unsigned long) all
291long 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 Project1dc9e472009-03-03 19:28:35 -0800292
293# futex
Elliott Hughes5e522792013-09-24 00:30:25 -0700294int futex(void*, int, int, void*, void*, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800295
296# epoll
Elliott Hughes5e522792013-09-24 00:30:25 -0700297int epoll_create(int size) all
298int epoll_ctl(int epfd, int op, int fd, struct epoll_event* event) all
299int epoll_wait(int epfd, struct epoll_event* events, int max, int timeout) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800300
Elliott Hughes5e522792013-09-24 00:30:25 -0700301int inotify_init(void) all
302int inotify_add_watch(int, const char*, unsigned int) all
303int inotify_rm_watch(int, unsigned int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800304
Elliott Hughes5e522792013-09-24 00:30:25 -0700305int poll(struct pollfd*, unsigned int, long) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800306
Elliott Hughes5e522792013-09-24 00:30:25 -0700307int eventfd:eventfd2(unsigned int, int) all
David 'Digit' Turnerdefd1622010-09-26 22:29:14 +0200308
Elliott Hughesa6519d62013-10-17 16:56:40 -0700309# ARM-specific
Elliott Hughes5e522792013-09-24 00:30:25 -0700310int __set_tls:__ARM_NR_set_tls(void*) arm
311int cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) arm
Raghu Gandham1fa0d842012-01-27 17:51:42 -0800312
313# MIPS-specific
Elliott Hughes5e522792013-09-24 00:30:25 -0700314int _flush_cache:cacheflush(char* addr, const int nbytes, const int op) mips
315int syscall(int number, ...) mips