blob: 192816816a2d937d6dce02000ae46058f4c8fe54 [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+
Chris Dearman50432122014-02-05 16:59:23 -08009# arch ::= "arm" | "arm64" | "mips" | "mips64" | "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
Chris Dearman50432122014-02-05 16:59:23 -080030uid_t getuid:getuid() arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070031gid_t getgid:getgid32() arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080032gid_t getgid:getgid() arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070033uid_t geteuid:geteuid32() arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080034uid_t geteuid:geteuid() arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070035gid_t getegid:getegid32() arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080036gid_t getegid:getegid() arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070037uid_t getresuid:getresuid32(uid_t* ruid, uid_t* euid, uid_t* suid) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080038uid_t getresuid:getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070039gid_t getresgid:getresgid32(gid_t* rgid, gid_t* egid, gid_t* sgid) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080040gid_t getresgid:getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) arm64,mips,mips64,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
Chris Dearman50432122014-02-05 16:59:23 -080044int getgroups:getgroups(int, gid_t*) arm64,mips,mips64,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
Chris Dearman50432122014-02-05 16:59:23 -080050int setgid:setgid(gid_t) arm64,mips,mips64,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070051int setuid:setuid32(uid_t) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080052int setuid:setuid(uid_t) arm64,mips,mips64,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070053int setreuid:setreuid32(uid_t, uid_t) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080054int setreuid:setreuid(uid_t, uid_t) arm64,mips,mips64,x86_64
Elliott Hughes232163c2013-10-09 17:35:36 -070055int setresuid:setresuid32(uid_t, uid_t, uid_t) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080056int setresuid:setresuid(uid_t, uid_t, uid_t) arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070057int setresgid:setresgid32(gid_t, gid_t, gid_t) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080058int setresgid:setresgid(gid_t, gid_t, gid_t) arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070059void* __brk:brk(void*) all
Christopher Ferrised459702013-12-02 17:44:53 -080060int kill(pid_t, int) all
61int tkill(pid_t tid, int sig) all
62int tgkill(pid_t tgid, pid_t tid, int sig) all
Elliott Hughes5e522792013-09-24 00:30:25 -070063int __ptrace:ptrace(int request, int pid, void* addr, void* data) all
Chris Dearman50432122014-02-05 16:59:23 -080064int __set_thread_area:set_thread_area(void* user_desc) mips,mips64,x86
Elliott Hughes0f461e32014-01-09 10:17:03 -080065
66# <sys/resource.h>
67int getrusage(int, struct rusage*) all
68int __getpriority:getpriority(int, int) all
69int setpriority(int, int, int) all
70# On LP64, rlimit and rlimit64 are the same.
71# On 32-bit systems we use prlimit64 to implement the rlimit64 functions.
72int getrlimit:ugetrlimit(int, struct rlimit*) arm,x86
73int getrlimit(int, struct rlimit*) mips
Chris Dearman50432122014-02-05 16:59:23 -080074int getrlimit|getrlimit64(int, struct rlimit*) arm64,mips64,x86_64
Elliott Hughes0f461e32014-01-09 10:17:03 -080075int setrlimit(int, const struct rlimit*) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -080076int setrlimit|setrlimit64(int, const struct rlimit*) arm64,mips64,x86_64
77int prlimit64|prlimit(pid_t, int, struct rlimit64*, const struct rlimit64*) arm64,mips64,x86_64
Elliott Hughes0f461e32014-01-09 10:17:03 -080078int prlimit64(pid_t, int, struct rlimit64*, const struct rlimit64*) arm,mips,x86
79
Elliott Hughes5e522792013-09-24 00:30:25 -070080int setgroups:setgroups32(int, const gid_t*) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080081int setgroups:setgroups(int, const gid_t*) arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070082int setpgid(pid_t, pid_t) all
Elliott Hughes9ea4d5f2013-10-18 18:21:11 -070083pid_t vfork(void) arm
Elliott Hughes5e522792013-09-24 00:30:25 -070084int setregid:setregid32(gid_t, gid_t) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -080085int setregid:setregid(gid_t, gid_t) arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070086int chroot(const char*) all
87# IMPORTANT: Even though <sys/prctl.h> declares prctl(int, ...), the syscall stub must take 6 arguments
David 'Digit' Turnerb083bb52011-05-26 02:46:41 +020088# to match the kernel implementation.
Elliott Hughes5e522792013-09-24 00:30:25 -070089int prctl(int option, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5) all
Elliott Hughes4906e562013-10-04 14:55:30 -070090long __arch_prctl:arch_prctl(int, unsigned long) x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -070091int capget(cap_user_header_t header, cap_user_data_t data) all
92int capset(cap_user_header_t header, const cap_user_data_t data) all
93int sigaltstack(const stack_t*, stack_t*) all
94int acct(const char* filepath) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080095
96# file descriptors
Elliott Hughes5e522792013-09-24 00:30:25 -070097ssize_t read(int, void*, size_t) all
98ssize_t write(int, const void*, size_t) all
Elliott Hughes8fbf8de2013-11-06 13:10:37 -080099ssize_t pread64(int, void*, size_t, off64_t) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800100ssize_t pread64|pread(int, void*, size_t, off_t) arm64,mips64,x86_64
Elliott Hughes8fbf8de2013-11-06 13:10:37 -0800101ssize_t pwrite64(int, void*, size_t, off64_t) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800102ssize_t pwrite64|pwrite(int, void*, size_t, off_t) arm64,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700103int close(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700104pid_t getpid() all
Elliott Hughes5e522792013-09-24 00:30:25 -0700105int munmap(void*, size_t) all
106void* mremap(void*, size_t, size_t, unsigned long) all
107int msync(const void*, size_t, int) all
108int mprotect(const void*, size_t, int) all
109int madvise(const void*, size_t, int) all
110int mlock(const void* addr, size_t len) all
111int munlock(const void* addr, size_t len) all
112int mlockall(int flags) all
113int munlockall() all
114int mincore(void* start, size_t length, unsigned char* vec) all
115int __ioctl:ioctl(int, int, void*) all
116int readv(int, const struct iovec*, int) all
117int writev(int, const struct iovec*, int) all
Elliott Hughes06209252013-11-06 16:20:54 -0800118int __fcntl64:fcntl64(int, int, void*) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800119int fcntl(int, int, void*) arm64,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700120int flock(int, int) all
121int fchmod(int, mode_t) all
122int dup(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700123int pipe2(int*, int) all
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700124int dup3(int, int, int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700125int fsync(int) all
126int fdatasync(int) all
127int fchown:fchown32(int, uid_t, gid_t) arm,x86
Chris Dearman50432122014-02-05 16:59:23 -0800128int fchown:fchown(int, uid_t, gid_t) arm64,mips,mips64,x86_64
Elliott Hughes5e522792013-09-24 00:30:25 -0700129void sync(void) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700130int fsetxattr(int, const char*, const void*, size_t, int) all
131ssize_t fgetxattr(int, const char*, void*, size_t) all
132ssize_t flistxattr(int, char*, size_t) all
133int fremovexattr(int, const char*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800134
Chris Dearman50432122014-02-05 16:59:23 -0800135# mips64 doesn't have getdents64 until 3.10 kernels.
136# We need this special-case hack as long as we need to support mips64 on older kernels.
137# The currently-available Debian qemu image is on a 3.2 kernel.
138int getdents:getdents64(unsigned int, struct dirent*, unsigned int) arm,arm64,mips,x86,x86_64
139int __getdents64:getdents64(unsigned int, struct dirent*, unsigned int) mips64
140int __getdents:getdents(unsigned int, void*, unsigned int) mips64
141
Elliott Hughesf8fcfbc2013-10-22 13:28:46 -0700142int __openat:openat(int, const char*, int, mode_t) all
143int faccessat(int, const char*, int, int) all
144int fchmodat(int, const char*, mode_t, int) all
145int fchownat(int, const char*, uid_t, gid_t, int) all
Elliott Hughesdb1ea342014-01-17 18:42:49 -0800146int fstatat64|fstatat:fstatat64(int, const char*, struct stat*, int) arm,mips,x86
147int fstatat64|fstatat:newfstatat(int, const char*, struct stat*, int) arm64,mips64,x86_64
Elliott Hughesf8fcfbc2013-10-22 13:28:46 -0700148int linkat(int, const char*, int, const char*, int) all
149int mkdirat(int, const char*, mode_t) all
150int mknodat(int, const char*, mode_t, dev_t) all
151int readlinkat(int, const char*, char*, size_t) all
152int renameat(int, const char*, int, const char*) all
153int symlinkat(const char*, int, const char*) all
154int unlinkat(int, const char*, int) all
155int utimensat(int, const char*, const struct timespec times[2], int) all
156
Elliott Hughesa6519d62013-10-17 16:56:40 -0700157# Paired off_t/off64_t system calls. On 64-bit systems,
158# sizeof(off_t) == sizeof(off64_t), so there we emit two symbols that are
159# aliases. On 32-bit systems, we have two different system calls.
160# That means that every system call in this section should take three lines.
161off_t lseek(int, off_t, int) arm,mips,x86
162int __llseek:_llseek(int, unsigned long, unsigned long, off64_t*, int) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800163off_t lseek|lseek64(int, off_t, int) arm64,mips64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700164int ftruncate(int, off_t) arm,mips,x86
165int ftruncate64(int, off64_t) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800166int ftruncate|ftruncate64(int, off_t) arm64,mips64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700167ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) arm,mips,x86
168ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800169ssize_t sendfile|sendfile64(int out_fd, int in_fd, off_t* offset, size_t count) arm64,mips64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700170int truncate(const char*, off_t) arm,mips,x86
171int truncate64(const char*, off64_t) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800172int truncate|truncate64(const char*, off_t) arm64,mips64,x86_64
Serban Constantinescued76a932013-12-12 09:36:27 +0000173# (mmap only gets two lines because we only used the 64-bit variant on 32-bit systems.)
174void* __mmap2:mmap2(void*, size_t, int, int, int, long) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800175void* mmap|mmap64(void*, size_t, int, int, int, off_t) arm64,mips64,x86_64
Elliott Hughesf64b8ea2014-02-03 16:20:46 -0800176# (fallocate only gets two lines because there is no 32-bit variant.)
177int fallocate64:fallocate(int, int, off64_t, off64_t) arm,mips,x86
Chris Dearman50432122014-02-05 16:59:23 -0800178int fallocate|fallocate64(int, int, off_t, off_t) arm64,mips64,x86_64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700179
Elliott Hughesdb1ea342014-01-17 18:42:49 -0800180int __fstatfs64:fstatfs64(int, size_t, struct statfs*) arm,mips,x86
181int fstatfs64|fstatfs:fstatfs(int, struct statfs*) arm64,mips64,x86_64
182int __statfs64:statfs64(const char*, size_t, struct statfs*) arm,mips,x86
183int statfs64|statfs:statfs(const char*, struct statfs*) arm64,mips64,x86_64
184
185int fstat64|fstat:fstat64(int, struct stat*) arm,mips,x86
186int fstat64|fstat:fstat(int, struct stat*) arm64,mips64,x86_64
187
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800188# file system
Elliott Hughes5e522792013-09-24 00:30:25 -0700189int chdir(const char*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700190int mount(const char*, const char*, const char*, unsigned long, const void*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700191int umount2(const char*, int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700192int __getcwd:getcwd(char* buf, size_t size) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700193int fchdir(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700194int setxattr(const char*, const char*, const void*, size_t, int) all
195int lsetxattr(const char*, const char*, const void*, size_t, int) all
196ssize_t getxattr(const char*, const char*, void*, size_t) all
197ssize_t lgetxattr(const char*, const char*, void*, size_t) all
198ssize_t listxattr(const char*, char*, size_t) all
199ssize_t llistxattr(const char*, char*, size_t) all
200int removexattr(const char*, const char*) all
201int lremovexattr(const char*, const char*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700202int swapon(const char*, int) all
203int swapoff(const char*) all
Stephen Smalley5eb686d2012-01-13 07:45:16 -0500204
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800205# time
Elliott Hughes5e522792013-09-24 00:30:25 -0700206int gettimeofday(struct timeval*, struct timezone*) all
207int settimeofday(const struct timeval*, const struct timezone*) all
208clock_t times(struct tms*) all
209int nanosleep(const struct timespec*, struct timespec*) all
210int clock_gettime(clockid_t clk_id, struct timespec* tp) all
211int clock_settime(clockid_t clk_id, const struct timespec* tp) all
212int clock_getres(clockid_t clk_id, struct timespec* res) all
213int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec* req, struct timespec* rem) all
214int getitimer(int, const struct itimerval*) all
215int setitimer(int, const struct itimerval*, struct itimerval*) all
216int __timer_create:timer_create(clockid_t clockid, struct sigevent* evp, timer_t* timerid) all
217int __timer_settime:timer_settime(timer_t, int, const struct itimerspec*, struct itimerspec*) all
218int __timer_gettime:timer_gettime(timer_t, struct itimerspec*) all
219int __timer_getoverrun:timer_getoverrun(timer_t) all
220int __timer_delete:timer_delete(timer_t) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700221int timerfd_create(clockid_t, int) all
222int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*) all
223int timerfd_gettime(int, struct itimerspec*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800224
225# signals
Elliott Hughesc7e9b232013-10-16 22:27:54 -0700226int __sigaction:sigaction(int, const struct sigaction*, struct sigaction*) arm,mips,x86
Elliott Hughes1f5af922013-10-15 18:01:56 -0700227int __rt_sigaction:rt_sigaction(int, const struct sigaction*, struct sigaction*, size_t) all
Elliott Hughes40d105c2013-10-16 12:53:58 -0700228int __rt_sigpending:rt_sigpending(sigset_t*, size_t) all
Elliott Hughes1f5af922013-10-15 18:01:56 -0700229int __rt_sigprocmask:rt_sigprocmask(int, const sigset_t*, sigset_t*, size_t) all
230int __rt_sigsuspend:rt_sigsuspend(const sigset_t*, size_t) all
231int __rt_sigtimedwait:rt_sigtimedwait(const sigset_t*, struct siginfo_t*, struct timespec_t*, size_t) all
232int signalfd4(int, const sigset_t*, size_t, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800233
234# sockets
Chris Dearman50432122014-02-05 16:59:23 -0800235int socket(int, int, int) arm,arm64,mips,mips64,x86_64
236int socketpair(int, int, int, int*) arm,arm64,mips,mips64,x86_64
237int bind(int, struct sockaddr*, int) arm,arm64,mips,mips64,x86_64
238int connect(int, struct sockaddr*, socklen_t) arm,arm64,mips,mips64,x86_64
239int listen(int, int) arm,arm64,mips,mips64,x86_64
240int accept(int, struct sockaddr*, socklen_t*) arm,arm64,mips,mips64,x86_64
241int getsockname(int, struct sockaddr*, socklen_t*) arm,arm64,mips,mips64,x86_64
242int getpeername(int, struct sockaddr*, socklen_t*) arm,arm64,mips,mips64,x86_64
243int sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) arm,arm64,mips,mips64,x86_64
244int recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) arm,arm64,mips,mips64,x86_64
245int shutdown(int, int) arm,arm64,mips,mips64,x86_64
246int setsockopt(int, int, int, const void*, socklen_t) arm,arm64,mips,mips64,x86_64
247int getsockopt(int, int, int, void*, socklen_t*) arm,arm64,mips,mips64,x86_64
248int sendmsg(int, const struct msghdr*, unsigned int) arm,arm64,mips,mips64,x86_64
249int recvmsg(int, struct msghdr*, unsigned int) arm,arm64,mips,mips64,x86_64
Guillaume Ranquet6ff0c752014-02-10 13:11:29 +0100250int recvmmsg(int, struct mmsghdr*, unsigned int, int, const struct timespec*) arm,arm64,mips,mips64,x86_64
251int sendmmsg(int, struct mmsghdr*, unsigned int, int) arm,arm64,mips,mips64,x86_64
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800252
253# sockets for x86. These are done as an "indexed" call to socketcall syscall.
Elliott Hughes5e522792013-09-24 00:30:25 -0700254int socket:socketcall:1(int, int, int) x86
255int bind:socketcall:2(int, struct sockaddr*, int) x86
256int connect:socketcall:3(int, struct sockaddr*, socklen_t) x86
257int listen:socketcall:4(int, int) x86
258int accept:socketcall:5(int, struct sockaddr*, socklen_t*) x86
259int getsockname:socketcall:6(int, struct sockaddr*, socklen_t*) x86
260int getpeername:socketcall:7(int, struct sockaddr*, socklen_t*) x86
261int socketpair:socketcall:8(int, int, int, int*) x86
262int sendto:socketcall:11(int, const void*, size_t, int, const struct sockaddr*, socklen_t) x86
263int recvfrom:socketcall:12(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) x86
264int shutdown:socketcall:13(int, int) x86
265int setsockopt:socketcall:14(int, int, int, const void*, socklen_t) x86
266int getsockopt:socketcall:15(int, int, int, void*, socklen_t*) x86
267int sendmsg:socketcall:16(int, const struct msghdr*, unsigned int) x86
268int recvmsg:socketcall:17(int, struct msghdr*, unsigned int) x86
Guillaume Ranquet6ff0c752014-02-10 13:11:29 +0100269int recvmmsg:socketcall:19(int, struct mmsghdr*, unsigned int, int, const struct timespec*) x86
270int sendmmsg:socketcall:20(int, struct mmsghdr*, unsigned int, int) x86
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800271
272# scheduler & real-time
Elliott Hughes5e522792013-09-24 00:30:25 -0700273int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all
274int sched_getscheduler(pid_t pid) all
275int sched_yield(void) all
276int sched_setparam(pid_t pid, const struct sched_param* param) all
277int sched_getparam(pid_t pid, struct sched_param* param) all
278int sched_get_priority_max(int policy) all
279int sched_get_priority_min(int policy) all
280int sched_rr_get_interval(pid_t pid, struct timespec* interval) all
281int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) all
Elliott Hughes887e1142014-01-02 12:05:50 -0800282int setns(int, int) all
283int unshare(int) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700284int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all
Elliott Hughes887e1142014-01-02 12:05:50 -0800285int __getcpu:getcpu(unsigned*, unsigned*, void*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800286
San Mehat75c5e252010-02-23 15:55:29 -0800287# io priorities
Elliott Hughes5e522792013-09-24 00:30:25 -0700288int ioprio_set(int which, int who, int ioprio) all
289int ioprio_get(int which, int who) all
San Mehat75c5e252010-02-23 15:55:29 -0800290
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800291# other
Elliott Hughes5e522792013-09-24 00:30:25 -0700292int uname(struct utsname*) all
293mode_t umask(mode_t) all
Elliott Hughes1f5af922013-10-15 18:01:56 -0700294int __reboot:reboot(int, int, int, void*) all
Elliott Hughes5e522792013-09-24 00:30:25 -0700295int __syslog:syslog(int, char*, int) all
296int init_module(void*, unsigned long, const char*) all
297int delete_module(const char*, unsigned int) all
298int klogctl:syslog(int, char*, int) all
299int sysinfo(struct sysinfo*) all
300int personality(unsigned long) all
301long 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 -0800302
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700303int epoll_create1(int) all
304int epoll_ctl(int, int op, int, struct epoll_event*) all
Elliott Hughes11952072013-10-24 15:15:14 -0700305int __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 -0800306
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700307int eventfd:eventfd2(unsigned int, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800308
Elliott Hughes6b53c232013-10-24 22:36:58 -0700309void _exit:exit_group(int) all
310void __exit:exit(int) all
311
Elliott Hughescac7b9d2013-10-23 09:48:29 -0700312int futex(void*, int, int, void*, void*, int) all
313
314int inotify_init1(int) all
315int inotify_add_watch(int, const char*, unsigned int) all
316int inotify_rm_watch(int, unsigned int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800317
Elliott Hughes11952072013-10-24 15:15:14 -0700318int __pselect6:pselect6(int, fd_set*, fd_set*, fd_set*, timespec*, void*) all
319int __ppoll:ppoll(pollfd*, unsigned int, timespec*, const sigset_t*, size_t) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800320
Elliott Hughes36d61882013-11-19 13:31:58 -0800321int __set_tid_address:set_tid_address(int*) all
322
Elliott Hughes6b53c232013-10-24 22:36:58 -0700323pid_t wait4(pid_t, int*, int, struct rusage*) all
324int __waitid:waitid(int, pid_t, struct siginfo_t*, int, void*) all
325
Elliott Hughesa6519d62013-10-17 16:56:40 -0700326# ARM-specific
Elliott Hughes5e522792013-09-24 00:30:25 -0700327int __set_tls:__ARM_NR_set_tls(void*) arm
328int cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) arm
Raghu Gandham1fa0d842012-01-27 17:51:42 -0800329
330# MIPS-specific
Chris Dearman50432122014-02-05 16:59:23 -0800331int _flush_cache:cacheflush(char* addr, const int nbytes, const int op) mips,mips64