blob: bb014bcc2158048c980cd1b6f7e33e7588b1bf29 [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#
Elliott Hughesd6121652013-09-25 22:43:36 -07005# return_type func_name[: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:
8# arch_list ::= "all" | "custom" | 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#
16# - The call_id parameter, given that func_name and syscall_name have
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017# 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 Hughes5e522792013-09-24 00:30:25 -070021# - Each parameter type is assumed to be stored in 32 bits.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022#
Elliott Hughes5e522792013-09-24 00:30:25 -070023# - 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 KAWASAKIce0595d2009-09-01 19:03:06 +090025#
Elliott Hughes0493a6f2013-03-07 11:48:58 -080026# This file is processed by a python script named gensyscalls.py.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080027
28# process management
Elliott Hughes5e522792013-09-24 00:30:25 -070029void _exit:exit_group(int) all
30void _exit_thread:exit(int) all
31pid_t __fork:fork(void) all
32pid_t _waitpid:waitpid(pid_t, int*, int, struct rusage*) mips,x86
33int __waitid:waitid(int, pid_t, struct siginfo_t*, int, void*) all
34pid_t wait4(pid_t pid, int* status, int options, struct rusage* rusage) all
David 'Digit' Turner97cf7f32010-01-22 18:59:05 -080035
36# NOTE: this system call is never called directly, but we list it there
37# to have __NR_clone properly defined.
Elliott Hughes5e522792013-09-24 00:30:25 -070038pid_t __sys_clone:clone(int, void*, int*, void*, int*) all
David 'Digit' Turner97cf7f32010-01-22 18:59:05 -080039
Elliott Hughes5e522792013-09-24 00:30:25 -070040int execve(const char*, char* const*, char* const*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041
Elliott Hughes5e522792013-09-24 00:30:25 -070042int __setuid:setuid32(uid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040043int __setuid:setuid(uid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070044uid_t getuid:getuid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040045uid_t getuid:getuid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070046gid_t getgid:getgid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040047gid_t getgid:getgid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070048uid_t geteuid:geteuid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040049uid_t geteuid:geteuid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070050gid_t getegid:getegid32() arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040051gid_t getegid:getegid() mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070052uid_t getresuid:getresuid32(uid_t* ruid, uid_t* euid, uid_t* suid) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040053uid_t getresuid:getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070054gid_t getresgid:getresgid32(gid_t* rgid, gid_t* egid, gid_t* sgid) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040055gid_t getresgid:getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070056pid_t gettid() all
57ssize_t readahead(int, off64_t, size_t) all
58int getgroups:getgroups32(int, gid_t*) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040059int getgroups:getgroups(int, gid_t*) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070060pid_t getpgid(pid_t) all
61pid_t getppid() all
62pid_t getsid(pid_t) all
63pid_t setsid() all
64int setgid:setgid32(gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040065int setgid:setgid(gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070066int seteuid:seteuid32(uid_t) custom
67int __setreuid:setreuid32(uid_t, uid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040068int __setreuid:setreuid(uid_t, uid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070069int __setresuid:setresuid32(uid_t, uid_t, uid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040070int __setresuid:setresuid(uid_t, uid_t, uid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070071int setresgid:setresgid32(gid_t, gid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040072int setresgid:setresgid(gid_t, gid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070073void* __brk:brk(void*) all
74# 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 +040075int kill(pid_t, int) mips,x86,x86_64
76int tkill(pid_t tid, int sig) mips,x86,x86_64
77int tgkill(pid_t tgid, pid_t tid, int sig) mips,x86,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070078int __ptrace:ptrace(int request, int pid, void* addr, void* data) all
79int __set_thread_area:set_thread_area(void* user_desc) mips,x86
80int __getpriority:getpriority(int, int) all
81int setpriority(int, int, int) all
82int setrlimit(int resource, const struct rlimit* rlp) all
83int getrlimit:ugetrlimit(int resource, struct rlimit* rlp) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040084int getrlimit:getrlimit(int resource, struct rlimit* rlp) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070085int getrusage(int who, struct rusage* r_usage) all
86int setgroups:setgroups32(int, const gid_t*) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040087int setgroups:setgroups(int, const gid_t*) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070088pid_t getpgrp(void) custom
89int setpgid(pid_t, pid_t) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +040090pid_t vfork(void) arm,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070091int setregid:setregid32(gid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +040092int setregid:setregid(gid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070093int chroot(const char*) all
94# IMPORTANT: Even though <sys/prctl.h> declares prctl(int, ...), the syscall stub must take 6 arguments
David 'Digit' Turnerb083bb52011-05-26 02:46:41 +020095# to match the kernel implementation.
Elliott Hughes5e522792013-09-24 00:30:25 -070096int prctl(int option, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5) all
97int capget(cap_user_header_t header, cap_user_data_t data) all
98int capset(cap_user_header_t header, const cap_user_data_t data) all
99int sigaltstack(const stack_t*, stack_t*) all
100int acct(const char* filepath) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800101
102# file descriptors
Elliott Hughes5e522792013-09-24 00:30:25 -0700103ssize_t read(int, void*, size_t) all
104ssize_t write(int, const void*, size_t) all
105ssize_t pread64(int, void*, size_t, off64_t) all
106ssize_t pwrite64(int, void*, size_t, off64_t) all
107int __open:open(const char*, int, mode_t) all
108int __openat:openat(int, const char*, int, mode_t) all
109int close(int) all
110int creat(const char*, mode_t) custom
111off_t lseek(int, off_t, int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400112int __llseek:_llseek(int, unsigned long, unsigned long, off64_t*, int) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700113pid_t getpid() all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400114void* mmap(void*, size_t, int, int, int, long) x86_64
115void* __mmap2:mmap2(void*, size_t, int, int, int, long) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700116int munmap(void*, size_t) all
117void* mremap(void*, size_t, size_t, unsigned long) all
118int msync(const void*, size_t, int) all
119int mprotect(const void*, size_t, int) all
120int madvise(const void*, size_t, int) all
121int mlock(const void* addr, size_t len) all
122int munlock(const void* addr, size_t len) all
123int mlockall(int flags) all
124int munlockall() all
125int mincore(void* start, size_t length, unsigned char* vec) all
126int __ioctl:ioctl(int, int, void*) all
127int readv(int, const struct iovec*, int) all
128int writev(int, const struct iovec*, int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400129int __fcntl:fcntl(int, int, void*) arm,x86,mips
130int fcntl(int, void*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700131int flock(int, int) all
132int fchmod(int, mode_t) all
133int dup(int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400134int pipe(int*) arm,x86,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700135int pipe2(int*, int) all
136int dup2(int, int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400137int select:_newselect(int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*) arm,x86,mips
138int select(int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700139int ftruncate(int, off_t) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400140int ftruncate64(int, off64_t) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700141int getdents:getdents64(unsigned int, struct dirent*, unsigned int) all
142int fsync(int) all
143int fdatasync(int) all
144int fchown:fchown32(int, uid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400145int fchown:fchown(int, uid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700146void sync(void) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400147int __fcntl64:fcntl64(int, int, void*) arm,x86,mips
148int __fstatfs64:fstatfs64(int, size_t, struct statfs*) arm,x86,mips
149int fstatfs(int, struct statfs*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700150ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400151ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) arm,x86,mips
152int fstatat:fstatat64(int dirfd, const char* path, struct stat* buf, int flags) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700153int mkdirat(int dirfd, const char* pathname, mode_t mode) all
154int fchownat(int dirfd, const char* path, uid_t owner, gid_t group, int flags) all
155int fchmodat(int dirfd, const char* path, mode_t mode, int flags) all
156int renameat(int olddirfd, const char* oldpath, int newdirfd, const char* newpath) all
157int fsetxattr(int, const char*, const void*, size_t, int) all
158ssize_t fgetxattr(int, const char*, void*, size_t) all
159ssize_t flistxattr(int, char*, size_t) all
160int fremovexattr(int, const char*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800161
162# file system
Elliott Hughes5e522792013-09-24 00:30:25 -0700163int link(const char*, const char*) all
164int unlink(const char*) all
165int unlinkat(int, const char*, int) all
166int chdir(const char*) all
167int mknod(const char*, mode_t, dev_t) all
168int chmod(const char*, mode_t) all
169int chown:chown32(const char*, uid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400170int chown:chown(const char*, uid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700171int lchown:lchown32(const char*, uid_t, gid_t) arm,x86
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400172int lchown:lchown(const char*, uid_t, gid_t) mips,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700173int mount(const char*, const char*, const char*, unsigned long, const void*) all
174int umount(const char*) custom
175int umount2(const char*, int) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400176int fstat:fstat64(int, struct stat*) arm,x86,mips
177int fstat(int, struct stat*) x86_64
178int stat:stat64(const char*, struct stat*) arm,x86,mips
179int stat(const char*, struct stat*) x86_64
180int lstat:lstat64(const char*, struct stat*) arm,x86,mips
181int lstat(const char*, struct stat*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700182int mkdir(const char*, mode_t) all
183int readlink(const char*, char*, size_t) all
184int rmdir(const char*) all
185int rename(const char*, const char*) all
186int __getcwd:getcwd(char* buf, size_t size) all
187int access(const char*, int) all
188int faccessat(int, const char*, int, int) all
189int symlink(const char*, const char*) all
190int fchdir(int) all
191int truncate(const char*, off_t) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400192int truncate64(const char*, off64_t) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700193int setxattr(const char*, const char*, const void*, size_t, int) all
194int lsetxattr(const char*, const char*, const void*, size_t, int) all
195ssize_t getxattr(const char*, const char*, void*, size_t) all
196ssize_t lgetxattr(const char*, const char*, void*, size_t) all
197ssize_t listxattr(const char*, char*, size_t) all
198ssize_t llistxattr(const char*, char*, size_t) all
199int removexattr(const char*, const char*) all
200int lremovexattr(const char*, const char*) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400201int __statfs64:statfs64(const char*, size_t, struct statfs*) arm,x86,mips
202int statfs(const char*, struct statfs*) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700203long unshare(unsigned long) all
204int swapon(const char*, int) all
205int swapoff(const char*) all
Stephen Smalley5eb686d2012-01-13 07:45:16 -0500206
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800207# time
Elliott Hughes5e522792013-09-24 00:30:25 -0700208int pause() all
209int gettimeofday(struct timeval*, struct timezone*) all
210int settimeofday(const struct timeval*, const struct timezone*) all
211clock_t times(struct tms*) all
212int nanosleep(const struct timespec*, struct timespec*) all
213int clock_gettime(clockid_t clk_id, struct timespec* tp) all
214int clock_settime(clockid_t clk_id, const struct timespec* tp) all
215int clock_getres(clockid_t clk_id, struct timespec* res) all
216int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec* req, struct timespec* rem) all
217int getitimer(int, const struct itimerval*) all
218int setitimer(int, const struct itimerval*, struct itimerval*) all
219int __timer_create:timer_create(clockid_t clockid, struct sigevent* evp, timer_t* timerid) all
220int __timer_settime:timer_settime(timer_t, int, const struct itimerspec*, struct itimerspec*) all
221int __timer_gettime:timer_gettime(timer_t, struct itimerspec*) all
222int __timer_getoverrun:timer_getoverrun(timer_t) all
223int __timer_delete:timer_delete(timer_t) all
224int utimes(const char*, const struct timeval tvp[2]) all
225int utimensat(int, const char*, const struct timespec times[2], int) all
226int timerfd_create(clockid_t, int) all
227int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*) all
228int timerfd_gettime(int, struct itimerspec*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800229
230# signals
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400231int sigaction(int, const struct sigaction*, struct sigaction*) arm,x86,mips
232int sigprocmask(int, const sigset_t*, sigset_t*) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700233int __sigsuspend:sigsuspend(int unused1, int unused2, unsigned mask) arm,x86
234int __sigsuspend:sigsuspend(const sigset_t* mask) mips
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400235int __rt_sigsuspend:rt_sigsuspend(const sigset_t *unewset, size_t sigset_size) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700236int __rt_sigaction:rt_sigaction(int sig, const struct sigaction* act, struct sigaction* oact, size_t sigsetsize) all
237int __rt_sigprocmask:rt_sigprocmask(int how, const sigset_t* set, sigset_t* oset, size_t sigsetsize) all
238int __rt_sigtimedwait:rt_sigtimedwait(const sigset_t* set, struct siginfo_t* info, struct timespec_t* timeout, size_t sigset_size) all
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400239int sigpending(sigset_t*) arm,x86,mips
Elliott Hughes5e522792013-09-24 00:30:25 -0700240int signalfd4(int fd, const sigset_t* mask, size_t sizemask, int flags) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800241
242# sockets
Pavel Chupinf12a18b2012-12-12 13:11:48 +0400243int socket(int, int, int) arm,mips,x86_64
244int socketpair(int, int, int, int*) arm,mips,x86_64
245int bind(int, struct sockaddr*, int) arm,mips,x86_64
246int connect(int, struct sockaddr*, socklen_t) arm,mips,x86_64
247int listen(int, int) arm,mips,x86_64
248int accept(int, struct sockaddr*, socklen_t*) arm,mips,x86_64
249int getsockname(int, struct sockaddr*, socklen_t*) arm,mips,x86_64
250int getpeername(int, struct sockaddr*, socklen_t*) arm,mips,x86_64
251int sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) arm,mips,x86_64
252int recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) arm,mips,x86_64
253int shutdown(int, int) arm,mips,x86_64
254int setsockopt(int, int, int, const void*, socklen_t) arm,mips,x86_64
255int getsockopt(int, int, int, void*, socklen_t*) arm,mips,x86_64
256int sendmsg(int, const struct msghdr*, unsigned int) arm,mips,x86_64
257int recvmsg(int, struct msghdr*, unsigned int) arm,mips,x86_64
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800258
259# sockets for x86. These are done as an "indexed" call to socketcall syscall.
Elliott Hughes5e522792013-09-24 00:30:25 -0700260int socket:socketcall:1(int, int, int) x86
261int bind:socketcall:2(int, struct sockaddr*, int) x86
262int connect:socketcall:3(int, struct sockaddr*, socklen_t) x86
263int listen:socketcall:4(int, int) x86
264int accept:socketcall:5(int, struct sockaddr*, socklen_t*) x86
265int getsockname:socketcall:6(int, struct sockaddr*, socklen_t*) x86
266int getpeername:socketcall:7(int, struct sockaddr*, socklen_t*) x86
267int socketpair:socketcall:8(int, int, int, int*) x86
268int sendto:socketcall:11(int, const void*, size_t, int, const struct sockaddr*, socklen_t) x86
269int recvfrom:socketcall:12(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) x86
270int shutdown:socketcall:13(int, int) x86
271int setsockopt:socketcall:14(int, int, int, const void*, socklen_t) x86
272int getsockopt:socketcall:15(int, int, int, void*, socklen_t*) x86
273int sendmsg:socketcall:16(int, const struct msghdr*, unsigned int) x86
274int recvmsg:socketcall:17(int, struct msghdr*, unsigned int) x86
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800275
276# scheduler & real-time
Elliott Hughes5e522792013-09-24 00:30:25 -0700277int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all
278int sched_getscheduler(pid_t pid) all
279int sched_yield(void) all
280int sched_setparam(pid_t pid, const struct sched_param* param) all
281int sched_getparam(pid_t pid, struct sched_param* param) all
282int sched_get_priority_max(int policy) all
283int sched_get_priority_min(int policy) all
284int sched_rr_get_interval(pid_t pid, struct timespec* interval) all
285int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) all
286int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all
287int __getcpu:getcpu(unsigned* cpu, unsigned* node, void* unused) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800288
San Mehat75c5e252010-02-23 15:55:29 -0800289# io priorities
Elliott Hughes5e522792013-09-24 00:30:25 -0700290int ioprio_set(int which, int who, int ioprio) all
291int ioprio_get(int which, int who) all
San Mehat75c5e252010-02-23 15:55:29 -0800292
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800293# other
Elliott Hughes5e522792013-09-24 00:30:25 -0700294int uname(struct utsname*) all
295mode_t umask(mode_t) all
296int __reboot:reboot(int, int, int, void*) all
297int __syslog:syslog(int, char*, int) all
298int init_module(void*, unsigned long, const char*) all
299int delete_module(const char*, unsigned int) all
300int klogctl:syslog(int, char*, int) all
301int sysinfo(struct sysinfo*) all
302int personality(unsigned long) all
303long 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 -0800304
305# futex
Elliott Hughes5e522792013-09-24 00:30:25 -0700306int futex(void*, int, int, void*, void*, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800307
308# epoll
Elliott Hughes5e522792013-09-24 00:30:25 -0700309int epoll_create(int size) all
310int epoll_ctl(int epfd, int op, int fd, struct epoll_event* event) all
311int epoll_wait(int epfd, struct epoll_event* events, int max, int timeout) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800312
Elliott Hughes5e522792013-09-24 00:30:25 -0700313int inotify_init(void) all
314int inotify_add_watch(int, const char*, unsigned int) all
315int inotify_rm_watch(int, unsigned int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800316
Elliott Hughes5e522792013-09-24 00:30:25 -0700317int poll(struct pollfd*, unsigned int, long) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800318
Elliott Hughes5e522792013-09-24 00:30:25 -0700319int eventfd:eventfd2(unsigned int, int) all
David 'Digit' Turnerdefd1622010-09-26 22:29:14 +0200320
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800321# ARM-specific ARM_NR_BASE == 0x0f0000 == 983040
Elliott Hughes5e522792013-09-24 00:30:25 -0700322int __set_tls:__ARM_NR_set_tls(void*) arm
323int cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) arm
Raghu Gandham1fa0d842012-01-27 17:51:42 -0800324
325# MIPS-specific
Elliott Hughes5e522792013-09-24 00:30:25 -0700326int _flush_cache:cacheflush(char* addr, const int nbytes, const int op) mips
327int syscall(int number, ...) mips