blob: 7c1529722005f5ed78244ffeb1c91267fd6ac515 [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+
Serban Constantinescufeaa89a2013-10-07 16:49:09 +01009# arch ::= "aarch64" | "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
Elliott Hughes5e522792013-09-24 00:30:25 -070027int execve(const char*, char* const*, char* const*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080028
Elliott Hughes5e522792013-09-24 00:30:25 -070029uid_t getuid:getuid32() arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010030uid_t getuid:getuid() aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070031gid_t getgid:getgid32() arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010032gid_t getgid:getgid() aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070033uid_t geteuid:geteuid32() arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010034uid_t geteuid:geteuid() aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070035gid_t getegid:getegid32() arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010036gid_t getegid:getegid() aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070037uid_t getresuid:getresuid32(uid_t* ruid, uid_t* euid, uid_t* suid) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010038uid_t getresuid:getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070039gid_t getresgid:getresgid32(gid_t* rgid, gid_t* egid, gid_t* sgid) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010040gid_t getresgid:getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070041pid_t gettid() all
42ssize_t readahead(int, off64_t, size_t) all
43int getgroups:getgroups32(int, gid_t*) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010044int getgroups:getgroups(int, gid_t*) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070045pid_t getpgid(pid_t) all
46pid_t getppid() all
47pid_t getsid(pid_t) all
48pid_t setsid() all
49int setgid:setgid32(gid_t) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010050int setgid:setgid(gid_t) aarch64,mips,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070051int setuid:setuid32(uid_t) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010052int setuid:setuid(uid_t) aarch64,mips,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070053int setreuid:setreuid32(uid_t, uid_t) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010054int setreuid:setreuid(uid_t, uid_t) aarch64,mips,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070055int setresuid:setresuid32(uid_t, uid_t, uid_t) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010056int setresuid:setresuid(uid_t, uid_t, uid_t) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070057int setresgid:setresgid32(gid_t, gid_t, gid_t) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010058int setresgid:setresgid(gid_t, gid_t, gid_t) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070059void* __brk:brk(void*) all
60# See comments in kill.S to understand why we don't generate ARM stubs for kill/tkill/tgkill.
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010061int kill(pid_t, int) aarch64,mips,x86,x86_64
62int tkill(pid_t tid, int sig) aarch64,mips,x86,x86_64
63int tgkill(pid_t tgid, pid_t tid, int sig) aarch64,mips,x86,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070064int __ptrace:ptrace(int request, int pid, void* addr, void* data) all
65int __set_thread_area:set_thread_area(void* user_desc) mips,x86
66int __getpriority:getpriority(int, int) all
67int setpriority(int, int, int) all
68int setrlimit(int resource, const struct rlimit* rlp) all
69int getrlimit:ugetrlimit(int resource, struct rlimit* rlp) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010070int getrlimit:getrlimit(int resource, struct rlimit* rlp) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070071int getrusage(int who, struct rusage* r_usage) all
72int setgroups:setgroups32(int, const gid_t*) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010073int setgroups:setgroups(int, const gid_t*) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070074int setpgid(pid_t, pid_t) all
Elliott Hughes9ea4d5f2013-10-18 18:21:11 -070075pid_t vfork(void) arm
Elliott Hughes5e522792013-09-24 00:30:25 -070076int setregid:setregid32(gid_t, gid_t) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010077int setregid:setregid(gid_t, gid_t) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070078int chroot(const char*) all
79# IMPORTANT: Even though <sys/prctl.h> declares prctl(int, ...), the syscall stub must take 6 arguments
David 'Digit' Turnerb083bb52011-05-26 02:46:41 +020080# to match the kernel implementation.
Elliott Hughes5e522792013-09-24 00:30:25 -070081int prctl(int option, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5) all
Elliott Hughes4906e562013-10-04 14:55:30 -070082long __arch_prctl:arch_prctl(int, unsigned long) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070083int capget(cap_user_header_t header, cap_user_data_t data) all
84int capset(cap_user_header_t header, const cap_user_data_t data) all
85int sigaltstack(const stack_t*, stack_t*) all
86int acct(const char* filepath) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080087
88# file descriptors
Elliott Hughes5e522792013-09-24 00:30:25 -070089ssize_t read(int, void*, size_t) all
90ssize_t write(int, const void*, size_t) all
Elliott Hughes8fbf8de2013-11-06 13:10:37 -080091ssize_t pread64(int, void*, size_t, off64_t) arm,mips,x86
92ssize_t pread64|pread(int, void*, size_t, off_t) aarch64,x86_64
93ssize_t pwrite64(int, void*, size_t, off64_t) arm,mips,x86
94ssize_t pwrite64|pwrite(int, void*, size_t, off_t) aarch64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070095int close(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -070096pid_t getpid() all
Serban Constantinescufeaa89a2013-10-07 16:49:09 +010097void* mmap(void*, size_t, int, int, int, long) aarch64,x86_64
98void* __mmap2:mmap2(void*, size_t, int, int, int, long) arm,mips,x86
Elliott Hughes5e522792013-09-24 00:30:25 -070099int munmap(void*, size_t) all
100void* mremap(void*, size_t, size_t, unsigned long) all
101int msync(const void*, size_t, int) all
102int mprotect(const void*, size_t, int) all
103int madvise(const void*, size_t, int) all
104int mlock(const void* addr, size_t len) all
105int munlock(const void* addr, size_t len) all
106int mlockall(int flags) all
107int munlockall() all
108int mincore(void* start, size_t length, unsigned char* vec) all
109int __ioctl:ioctl(int, int, void*) all
110int readv(int, const struct iovec*, int) all
111int writev(int, const struct iovec*, int) all
Elliott Hughes06209252013-11-06 16:20:54 -0800112int __fcntl64:fcntl64(int, int, void*) arm,mips,x86
113int fcntl(int, int, void*) aarch64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700114int flock(int, int) all
115int fchmod(int, mode_t) all
116int dup(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700117int pipe2(int*, int) all
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700118int dup3(int, int, int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700119int getdents:getdents64(unsigned int, struct dirent*, unsigned int) all
120int fsync(int) all
121int fdatasync(int) all
122int fchown:fchown32(int, uid_t, gid_t) arm,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100123int fchown:fchown(int, uid_t, gid_t) aarch64,mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700124void sync(void) all
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100125int __fstatfs64:fstatfs64(int, size_t, struct statfs*) arm,mips,x86
126int fstatfs(int, struct statfs*) aarch64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700127int fsetxattr(int, const char*, const void*, size_t, int) all
128ssize_t fgetxattr(int, const char*, void*, size_t) all
129ssize_t flistxattr(int, char*, size_t) all
130int fremovexattr(int, const char*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800131
Elliott Hughesf8fcfbc2013-10-22 13:28:46 -0700132int __openat:openat(int, const char*, int, mode_t) all
133int faccessat(int, const char*, int, int) all
134int fchmodat(int, const char*, mode_t, int) all
135int fchownat(int, const char*, uid_t, gid_t, int) all
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100136int fstatat:fstatat64(int, const char*, struct stat*, int) arm,mips,x86
137int fstatat:newfstatat(int, const char*, struct stat*, int) aarch64,x86_64
Elliott Hughesf8fcfbc2013-10-22 13:28:46 -0700138int linkat(int, const char*, int, const char*, int) all
139int mkdirat(int, const char*, mode_t) all
140int mknodat(int, const char*, mode_t, dev_t) all
141int readlinkat(int, const char*, char*, size_t) all
142int renameat(int, const char*, int, const char*) all
143int symlinkat(const char*, int, const char*) all
144int unlinkat(int, const char*, int) all
145int utimensat(int, const char*, const struct timespec times[2], int) all
146
Elliott Hughesa6519d62013-10-17 16:56:40 -0700147# Paired off_t/off64_t system calls. On 64-bit systems,
148# sizeof(off_t) == sizeof(off64_t), so there we emit two symbols that are
149# aliases. On 32-bit systems, we have two different system calls.
150# That means that every system call in this section should take three lines.
151off_t lseek(int, off_t, int) arm,mips,x86
152int __llseek:_llseek(int, unsigned long, unsigned long, off64_t*, int) arm,mips,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100153off_t lseek|lseek64(int, off_t, int) aarch64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700154int ftruncate(int, off_t) arm,mips,x86
155int ftruncate64(int, off64_t) arm,mips,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100156int ftruncate|ftruncate64(int, off_t) aarch64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700157ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) arm,mips,x86
158ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) arm,mips,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100159ssize_t sendfile|sendfile64(int out_fd, int in_fd, off_t* offset, size_t count) aarch64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700160int truncate(const char*, off_t) arm,mips,x86
161int truncate64(const char*, off64_t) arm,mips,x86
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100162int truncate|truncate64(const char*, off_t) aarch64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700163
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800164# file system
Elliott Hughes5e522792013-09-24 00:30:25 -0700165int chdir(const char*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700166int mount(const char*, const char*, const char*, unsigned long, const void*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700167int umount2(const char*, int) all
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100168int fstat:fstat64(int, struct stat*) arm,mips,x86
169int fstat(int, struct stat*) aarch64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700170int __getcwd:getcwd(char* buf, size_t size) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700171int fchdir(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700172int setxattr(const char*, const char*, const void*, size_t, int) all
173int lsetxattr(const char*, const char*, const void*, size_t, int) all
174ssize_t getxattr(const char*, const char*, void*, size_t) all
175ssize_t lgetxattr(const char*, const char*, void*, size_t) all
176ssize_t listxattr(const char*, char*, size_t) all
177ssize_t llistxattr(const char*, char*, size_t) all
178int removexattr(const char*, const char*) all
179int lremovexattr(const char*, const char*) all
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100180int __statfs64:statfs64(const char*, size_t, struct statfs*) arm,mips,x86
181int statfs(const char*, struct statfs*) aarch64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700182long unshare(unsigned long) all
183int swapon(const char*, int) all
184int swapoff(const char*) all
Stephen Smalley5eb686d2012-01-13 07:45:16 -0500185
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800186# time
Elliott Hughes5e522792013-09-24 00:30:25 -0700187int gettimeofday(struct timeval*, struct timezone*) all
188int settimeofday(const struct timeval*, const struct timezone*) all
189clock_t times(struct tms*) all
190int nanosleep(const struct timespec*, struct timespec*) all
191int clock_gettime(clockid_t clk_id, struct timespec* tp) all
192int clock_settime(clockid_t clk_id, const struct timespec* tp) all
193int clock_getres(clockid_t clk_id, struct timespec* res) all
194int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec* req, struct timespec* rem) all
195int getitimer(int, const struct itimerval*) all
196int setitimer(int, const struct itimerval*, struct itimerval*) all
197int __timer_create:timer_create(clockid_t clockid, struct sigevent* evp, timer_t* timerid) all
198int __timer_settime:timer_settime(timer_t, int, const struct itimerspec*, struct itimerspec*) all
199int __timer_gettime:timer_gettime(timer_t, struct itimerspec*) all
200int __timer_getoverrun:timer_getoverrun(timer_t) all
201int __timer_delete:timer_delete(timer_t) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700202int timerfd_create(clockid_t, int) all
203int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*) all
204int timerfd_gettime(int, struct itimerspec*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800205
206# signals
Elliott Hughesc7e9b232013-10-16 22:27:54 -0700207int __sigaction:sigaction(int, const struct sigaction*, struct sigaction*) arm,mips,x86
Elliott Hughes1f5af922013-10-15 18:01:56 -0700208int __rt_sigaction:rt_sigaction(int, const struct sigaction*, struct sigaction*, size_t) all
Elliott Hughes40d105c2013-10-16 12:53:58 -0700209int __rt_sigpending:rt_sigpending(sigset_t*, size_t) all
Elliott Hughes1f5af922013-10-15 18:01:56 -0700210int __rt_sigprocmask:rt_sigprocmask(int, const sigset_t*, sigset_t*, size_t) all
211int __rt_sigsuspend:rt_sigsuspend(const sigset_t*, size_t) all
212int __rt_sigtimedwait:rt_sigtimedwait(const sigset_t*, struct siginfo_t*, struct timespec_t*, size_t) all
213int signalfd4(int, const sigset_t*, size_t, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800214
215# sockets
Serban Constantinescufeaa89a2013-10-07 16:49:09 +0100216int socket(int, int, int) aarch64,arm,mips,x86_64
217int socketpair(int, int, int, int*) aarch64,arm,mips,x86_64
218int bind(int, struct sockaddr*, int) aarch64,arm,mips,x86_64
219int connect(int, struct sockaddr*, socklen_t) aarch64,arm,mips,x86_64
220int listen(int, int) aarch64,arm,mips,x86_64
221int accept(int, struct sockaddr*, socklen_t*) aarch64,arm,mips,x86_64
222int getsockname(int, struct sockaddr*, socklen_t*) aarch64,arm,mips,x86_64
223int getpeername(int, struct sockaddr*, socklen_t*) aarch64,arm,mips,x86_64
224int sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) aarch64,arm,mips,x86_64
225int recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) aarch64,arm,mips,x86_64
226int shutdown(int, int) aarch64,arm,mips,x86_64
227int setsockopt(int, int, int, const void*, socklen_t) aarch64,arm,mips,x86_64
228int getsockopt(int, int, int, void*, socklen_t*) aarch64,arm,mips,x86_64
229int sendmsg(int, const struct msghdr*, unsigned int) aarch64,arm,mips,x86_64
230int recvmsg(int, struct msghdr*, unsigned int) aarch64,arm,mips,x86_64
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800231
232# sockets for x86. These are done as an "indexed" call to socketcall syscall.
Elliott Hughes5e522792013-09-24 00:30:25 -0700233int socket:socketcall:1(int, int, int) x86
234int bind:socketcall:2(int, struct sockaddr*, int) x86
235int connect:socketcall:3(int, struct sockaddr*, socklen_t) x86
236int listen:socketcall:4(int, int) x86
237int accept:socketcall:5(int, struct sockaddr*, socklen_t*) x86
238int getsockname:socketcall:6(int, struct sockaddr*, socklen_t*) x86
239int getpeername:socketcall:7(int, struct sockaddr*, socklen_t*) x86
240int socketpair:socketcall:8(int, int, int, int*) x86
241int sendto:socketcall:11(int, const void*, size_t, int, const struct sockaddr*, socklen_t) x86
242int recvfrom:socketcall:12(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) x86
243int shutdown:socketcall:13(int, int) x86
244int setsockopt:socketcall:14(int, int, int, const void*, socklen_t) x86
245int getsockopt:socketcall:15(int, int, int, void*, socklen_t*) x86
246int sendmsg:socketcall:16(int, const struct msghdr*, unsigned int) x86
247int recvmsg:socketcall:17(int, struct msghdr*, unsigned int) x86
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800248
249# scheduler & real-time
Elliott Hughes5e522792013-09-24 00:30:25 -0700250int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all
251int sched_getscheduler(pid_t pid) all
252int sched_yield(void) all
253int sched_setparam(pid_t pid, const struct sched_param* param) all
254int sched_getparam(pid_t pid, struct sched_param* param) all
255int sched_get_priority_max(int policy) all
256int sched_get_priority_min(int policy) all
257int sched_rr_get_interval(pid_t pid, struct timespec* interval) all
258int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) all
259int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all
260int __getcpu:getcpu(unsigned* cpu, unsigned* node, void* unused) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800261
San Mehat75c5e252010-02-23 15:55:29 -0800262# io priorities
Elliott Hughes5e522792013-09-24 00:30:25 -0700263int ioprio_set(int which, int who, int ioprio) all
264int ioprio_get(int which, int who) all
San Mehat75c5e252010-02-23 15:55:29 -0800265
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800266# other
Elliott Hughes5e522792013-09-24 00:30:25 -0700267int uname(struct utsname*) all
268mode_t umask(mode_t) all
Elliott Hughes1f5af922013-10-15 18:01:56 -0700269int __reboot:reboot(int, int, int, void*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700270int __syslog:syslog(int, char*, int) all
271int init_module(void*, unsigned long, const char*) all
272int delete_module(const char*, unsigned int) all
273int klogctl:syslog(int, char*, int) all
274int sysinfo(struct sysinfo*) all
275int personality(unsigned long) all
276long 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 -0800277
Elliott Hughes11952072013-10-24 15:15:14 -0700278pid_t __clone:clone(int, void*, int*, void*, int*) all
279
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700280int epoll_create1(int) all
281int epoll_ctl(int, int op, int, struct epoll_event*) all
Elliott Hughes11952072013-10-24 15:15:14 -0700282int __epoll_pwait:epoll_pwait(int, struct epoll_event*, int, int, const sigset_t*, size_t) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800283
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700284int eventfd:eventfd2(unsigned int, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800285
Elliott Hughes6b53c232013-10-24 22:36:58 -0700286void _exit:exit_group(int) all
287void __exit:exit(int) all
288
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700289int futex(void*, int, int, void*, void*, int) all
290
291int inotify_init1(int) all
292int inotify_add_watch(int, const char*, unsigned int) all
293int inotify_rm_watch(int, unsigned int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800294
Elliott Hughes11952072013-10-24 15:15:14 -0700295int __pselect6:pselect6(int, fd_set*, fd_set*, fd_set*, timespec*, void*) all
296int __ppoll:ppoll(pollfd*, unsigned int, timespec*, const sigset_t*, size_t) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800297
Elliott Hughes6b53c232013-10-24 22:36:58 -0700298pid_t wait4(pid_t, int*, int, struct rusage*) all
299int __waitid:waitid(int, pid_t, struct siginfo_t*, int, void*) all
300
Elliott Hughesa6519d62013-10-17 16:56:40 -0700301# ARM-specific
Elliott Hughes5e522792013-09-24 00:30:25 -0700302int __set_tls:__ARM_NR_set_tls(void*) arm
303int cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) arm
Raghu Gandham1fa0d842012-01-27 17:51:42 -0800304
305# MIPS-specific
Elliott Hughes5e522792013-09-24 00:30:25 -0700306int _flush_cache:cacheflush(char* addr, const int nbytes, const int op) mips
307int syscall(int number, ...) mips