blob: 7c09e886a8018a6d054ec7fefb58a004f9f8023d [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 Hughes83f08aa2025-02-06 17:14:58 -05005# 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 Hughes2b499042020-02-13 14:21:55 -08008# arch_list ::= "all" | arches
9# arches ::= arch | arch "," arches
Elliott Hughes704772b2022-10-10 17:06:43 +000010# arch ::= "arm" | "arm64" | "riscv64" | "x86" | "x86_64" | "lp32" | "lp64"
Elliott Hughes5e522792013-09-24 00:30:25 -070011#
12# Note:
Elliott Hughesa51916b2013-04-03 10:08:09 -070013# - syscall_name corresponds to the name of the syscall, which may differ from
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080014# the exported function name (example: the exit syscall is implemented by the _exit()
15# function, which is not the same as the standard C exit() function which calls it)
Elliott Hughes5e522792013-09-24 00:30:25 -070016#
H.J. Lu6fe4e872013-10-04 10:03:17 -070017# - alias_list is optional comma separated list of function aliases.
18#
Elliott Hughes83f08aa2025-02-06 17:14:58 -050019# - No return type is specified.
20#
Elliott Hughes5e522792013-09-24 00:30:25 -070021# - The call_id parameter, given that func_name and syscall_name have
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022# been provided, allows the user to specify dispatch style syscalls.
23# For example, socket() syscall on i386 actually becomes:
24# socketcall(__NR_socket, 1, *(rest of args on stack)).
25#
Elliott Hughes5e522792013-09-24 00:30:25 -070026# - Each parameter type is assumed to be stored in 32 bits.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080027#
Elliott Hughes782c4852019-04-16 12:31:00 -070028# This file is processed by a python script named gensyscalls.py, run via
29# genrules in Android.bp.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030
Elliott Hughes8dc9f462023-02-03 23:10:04 +000031# Calls that have historical 16-bit variants camping on the best names (CONFIG_UID16).
Elliott Hughes83f08aa2025-02-06 17:14:58 -050032getuid:getuid32() lp32
33getuid:getuid() lp64
34getgid:getgid32() lp32
35getgid:getgid() lp64
36geteuid:geteuid32() lp32
37geteuid:geteuid() lp64
38getegid:getegid32() lp32
39getegid:getegid() lp64
40getresuid:getresuid32(uid_t* ruid, uid_t* euid, uid_t* suid) lp32
41getresuid:getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) lp64
42getresgid:getresgid32(gid_t* rgid, gid_t* egid, gid_t* sgid) lp32
43getresgid:getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) lp64
44getgroups:getgroups32(int, gid_t*) lp32
45getgroups:getgroups(int, gid_t*) lp64
46setgid:setgid32(gid_t) lp32
47setgid:setgid(gid_t) lp64
48setuid:setuid32(uid_t) lp32
49setuid:setuid(uid_t) lp64
50setreuid:setreuid32(uid_t, uid_t) lp32
51setreuid:setreuid(uid_t, uid_t) lp64
52setresuid:setresuid32(uid_t, uid_t, uid_t) lp32
53setresuid:setresuid(uid_t, uid_t, uid_t) lp64
54setresgid:setresgid32(gid_t, gid_t, gid_t) lp32
55setresgid:setresgid(gid_t, gid_t, gid_t) lp64
56setfsgid:setfsgid32(gid_t) lp32
57setfsgid:setfsgid(gid_t) lp64
58setfsuid:setfsuid32(uid_t) lp32
59setfsuid:setfsuid(uid_t) lp64
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080060
Elliott Hughes83f08aa2025-02-06 17:14:58 -050061readahead(int, off64_t, size_t) all
62getpgid(pid_t) all
63getppid() all
64getsid(pid_t) all
65setsid() all
66kill(pid_t, int) all
67tgkill(pid_t tgid, pid_t tid, int sig) all
Elliott Hughes8dc9f462023-02-03 23:10:04 +000068
Elliott Hughes83f08aa2025-02-06 17:14:58 -050069__brk:brk(void*) all
70execve(const char*, char* const*, char* const*) all
71__ptrace:ptrace(int request, int pid, void* addr, void* data) all
Elliott Hughes0f461e32014-01-09 10:17:03 -080072
73# <sys/resource.h>
Elliott Hughes83f08aa2025-02-06 17:14:58 -050074getrusage(int, struct rusage*) all
75__getpriority:getpriority(int, id_t) all
76setpriority(int, id_t, int) all
Elliott Hughes0f461e32014-01-09 10:17:03 -080077# On LP64, rlimit and rlimit64 are the same.
78# On 32-bit systems we use prlimit64 to implement the rlimit64 functions.
Elliott Hughes83f08aa2025-02-06 17:14:58 -050079getrlimit:ugetrlimit(int, struct rlimit*) lp32
80getrlimit|getrlimit64(int, struct rlimit*) lp64
81setrlimit(int, const struct rlimit*) lp32
82setrlimit|setrlimit64(int, const struct rlimit*) lp64
83prlimit64|prlimit(pid_t, int, struct rlimit64*, const struct rlimit64*) lp64
84prlimit64(pid_t, int, struct rlimit64*, const struct rlimit64*) lp32
Elliott Hughes0f461e32014-01-09 10:17:03 -080085
Elliott Hughes83f08aa2025-02-06 17:14:58 -050086setgroups:setgroups32(int, const gid_t*) lp32
87setgroups:setgroups(int, const gid_t*) lp64
88setpgid(pid_t, pid_t) all
89setregid:setregid32(gid_t, gid_t) lp32
90setregid:setregid(gid_t, gid_t) lp64
91chroot(const char*) all
92prctl(int, unsigned long, unsigned long, unsigned long, unsigned long) all
93capget(cap_user_header_t header, cap_user_data_t data) all
94capset(cap_user_header_t header, const cap_user_data_t data) all
95sigaltstack(const stack_t*, stack_t*) all
96acct(const char* filepath) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080097
98# file descriptors
Elliott Hughes83f08aa2025-02-06 17:14:58 -050099read(int, void*, size_t) all
100write(int, const void*, size_t) all
101pread64(int, void*, size_t, off64_t) lp32
102pread64|pread(int, void*, size_t, off_t) lp64
103pwrite64(int, void*, size_t, off64_t) lp32
104pwrite64|pwrite(int, void*, size_t, off_t) lp64
Elliott Hughes6f4594d2015-08-26 13:27:43 -0700105
106# On LP32, preadv/pwritev don't use off64_t --- they use pairs of 32-bit
Elliott Hughescf59e192021-10-13 18:25:21 -0700107# arguments to avoid problems on architectures like arm32 where 64-bit arguments
Elliott Hughes6f4594d2015-08-26 13:27:43 -0700108# must be in a register pair starting with an even-numbered register.
109# See linux/fs/read_write.c and https://lwn.net/Articles/311630/.
Elliott Hughescf59e192021-10-13 18:25:21 -0700110# Note that there's an unused always-0 second long even on LP64!
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500111__preadv64:preadv(int, const struct iovec*, int, long, long) all
112__pwritev64:pwritev(int, const struct iovec*, int, long, long) all
113__preadv64v2:preadv2(int, const struct iovec*, int, long, long, int) all
114__pwritev64v2:pwritev2(int, const struct iovec*, int, long, long, int) all
Elliott Hughes6f4594d2015-08-26 13:27:43 -0700115
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500116__close:close(int) all
117close_range(unsigned int, unsigned int, int) all
118copy_file_range(int, off64_t*, int, off64_t*, size_t, unsigned int) all
119__getpid:getpid() all
120memfd_create(const char*, unsigned) all
121munmap(void*, size_t) all
122msync(const void*, size_t, int) all
123mprotect(const void*, size_t, int) all
124madvise(void*, size_t, int) all
125process_madvise(int, const struct iovec*, size_t, int, unsigned int) all
126mlock(const void* addr, size_t len) all
127mlock2(const void* addr, size_t len, int flags) all
128munlock(const void* addr, size_t len) all
129mlockall(int flags) all
130mseal(void*, size_t, unsigned long) lp64
131munlockall() all
132mincore(void* start, size_t length, unsigned char* vec) all
133__ioctl:ioctl(int, int, void*) all
134readv(int, const struct iovec*, int) all
135writev(int, const struct iovec*, int) all
136__fcntl64:fcntl64(int, int, void*) lp32
137__fcntl:fcntl(int, int, void*) lp64
138flock(int, int) all
139__fchmod:fchmod(int, mode_t) all
140__pipe2:pipe2(int*, int) all
141__dup:dup(int) all
142__dup3:dup3(int, int, int) all
143fsync(int) all
144fdatasync(int) all
145fchown:fchown32(int, uid_t, gid_t) lp32
146fchown:fchown(int, uid_t, gid_t) lp64
147sync(void) all
148syncfs(int) all
149__fsetxattr:fsetxattr(int, const char*, const void*, size_t, int) all
150__fgetxattr:fgetxattr(int, const char*, void*, size_t) all
151__flistxattr:flistxattr(int, char*, size_t) all
152fremovexattr(int, const char*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800153
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500154__getdents64:getdents64(unsigned int, struct dirent*, unsigned int) all
Chris Dearman50432122014-02-05 16:59:23 -0800155
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500156__openat:openat(int, const char*, int, mode_t) all
157__faccessat:faccessat(int, const char*, int) all
158__fchmodat:fchmodat(int, const char*, mode_t) all
159fchownat(int, const char*, uid_t, gid_t, int) all
160fstatat64|fstatat:fstatat64(int, const char*, struct stat*, int) lp32
161fstatat64|fstatat:newfstatat(int, const char*, struct stat*, int) lp64
162linkat(int, const char*, int, const char*, int) all
163mkdirat(int, const char*, mode_t) all
164mknodat(int, const char*, mode_t, dev_t) all
165readlinkat(int, const char*, char*, size_t) all
166renameat2(int, const char*, int, const char*, unsigned) all
167symlinkat(const char*, int, const char*) all
168unlinkat(int, const char*, int) all
169utimensat(int, const char*, const struct timespec times[2], int) all
Elliott Hughesf8fcfbc2013-10-22 13:28:46 -0700170
Elliott Hughesa6519d62013-10-17 16:56:40 -0700171# Paired off_t/off64_t system calls. On 64-bit systems,
172# sizeof(off_t) == sizeof(off64_t), so there we emit two symbols that are
173# aliases. On 32-bit systems, we have two different system calls.
174# That means that every system call in this section should take three lines.
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500175lseek(int, off_t, int) lp32
176__llseek:_llseek(int, unsigned long, unsigned long, off64_t*, int) lp32
177lseek|lseek64(int, off_t, int) lp64
178sendfile(int out_fd, int in_fd, off_t* offset, size_t count) lp32
179sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) lp32
180sendfile|sendfile64(int out_fd, int in_fd, off_t* offset, size_t count) lp64
181truncate(const char*, off_t) lp32
182truncate64(const char*, off64_t) lp32
183truncate|truncate64(const char*, off_t) lp64
Elliott Hughesf64b8ea2014-02-03 16:20:46 -0800184# (fallocate only gets two lines because there is no 32-bit variant.)
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500185fallocate64:fallocate(int, int, off64_t, off64_t) lp32
186fallocate|fallocate64(int, int, off_t, off_t) lp64
Elliott Hughes4358d532024-06-06 21:08:17 +0000187# (ftruncate only gets two lines because 32-bit bionic only uses the 64-bit call.)
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500188ftruncate64(int, off64_t) lp32
189ftruncate|ftruncate64(int, off_t) lp64
Elliott Hughes4358d532024-06-06 21:08:17 +0000190# (mmap only gets two lines because 32-bit bionic only uses the 64-bit call.)
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500191__mmap2:mmap2(void*, size_t, int, int, int, long) lp32
192mmap|mmap64(void*, size_t, int, int, int, off_t) lp64
Elliott Hughesa6519d62013-10-17 16:56:40 -0700193
Elliott Hughesbebe3d52024-06-07 17:16:34 -0400194# mremap is in C++ for 32-bit so we can add the PTRDIFF_MAX check.
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500195__mremap:mremap(void*, size_t, size_t, int, void*) lp32
196mremap(void*, size_t, size_t, int, void*) lp64
Elliott Hughesbebe3d52024-06-07 17:16:34 -0400197
Elliott Hughesb587f332014-09-10 17:39:00 -0700198# posix_fadvise64 is awkward: arm has shuffled arguments,
199# the POSIX functions don't set errno, and no architecture has posix_fadvise.
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500200__arm_fadvise64_64:arm_fadvise64_64(int, int, off64_t, off64_t) arm
201__fadvise64:fadvise64_64(int, off64_t, off64_t, int) x86
202__fadvise64:fadvise64(int, off64_t, off64_t, int) lp64
Elliott Hughesb587f332014-09-10 17:39:00 -0700203
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500204__fstatfs64:fstatfs64(int, size_t, struct statfs*) lp32
205__fstatfs:fstatfs(int, struct statfs*) lp64
206__statfs64:statfs64(const char*, size_t, struct statfs*) lp32
207__statfs:statfs(const char*, struct statfs*) lp64
Elliott Hughesdb1ea342014-01-17 18:42:49 -0800208
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500209fstat64|fstat:fstat64(int, struct stat*) lp32
210fstat64|fstat:fstat(int, struct stat*) lp64
Elliott Hughesdb1ea342014-01-17 18:42:49 -0800211
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800212# file system
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500213chdir(const char*) all
214mount(const char*, const char*, const char*, unsigned long, const void*) all
215umount2(const char*, int) all
216__getcwd:getcwd(char* buf, size_t size) all
217fchdir(int) all
218setxattr(const char*, const char*, const void*, size_t, int) all
219lsetxattr(const char*, const char*, const void*, size_t, int) all
220getxattr(const char*, const char*, void*, size_t) all
221lgetxattr(const char*, const char*, void*, size_t) all
222listxattr(const char*, char*, size_t) all
223llistxattr(const char*, char*, size_t) all
224removexattr(const char*, const char*) all
225lremovexattr(const char*, const char*) all
226statx(int, const char*, int, unsigned, struct statx*) all
227swapon(const char*, int) all
228swapoff(const char*) all
Stephen Smalley5eb686d2012-01-13 07:45:16 -0500229
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800230# time
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500231settimeofday(const struct timeval*, const struct timezone*) all
232times(struct tms*) all
233nanosleep(const struct timespec*, struct timespec*) all
234clock_settime(clockid_t, const struct timespec*) all
235__clock_nanosleep:clock_nanosleep(clockid_t, int, const struct timespec*, struct timespec*) all
236getitimer(int, struct itimerval*) all
237setitimer(int, const struct itimerval*, struct itimerval*) all
238__timer_create:timer_create(clockid_t clockid, struct sigevent* evp, __kernel_timer_t* timerid) all
239__timer_settime:timer_settime(__kernel_timer_t, int, const struct itimerspec*, struct itimerspec*) all
240__timer_gettime:timer_gettime(__kernel_timer_t, struct itimerspec*) all
241__timer_getoverrun:timer_getoverrun(__kernel_timer_t) all
242__timer_delete:timer_delete(__kernel_timer_t) all
243timerfd_create(clockid_t, int) all
244timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*) all
245timerfd_gettime(int, struct itimerspec*) all
246adjtimex(struct timex*) all
247clock_adjtime(clockid_t, struct timex*) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800248
249# signals
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500250__sigaction:sigaction(int, const struct sigaction*, struct sigaction*) lp32
251__rt_sigaction:rt_sigaction(int, const struct sigaction*, struct sigaction*, size_t) all
252__rt_sigpending:rt_sigpending(sigset64_t*, size_t) all
253__rt_sigprocmask:rt_sigprocmask(int, const sigset64_t*, sigset64_t*, size_t) all
254__rt_sigsuspend:rt_sigsuspend(const sigset64_t*, size_t) all
255__rt_sigtimedwait:rt_sigtimedwait(const sigset64_t*, siginfo_t*, const timespec*, size_t) all
256__rt_sigqueueinfo:rt_sigqueueinfo(pid_t, int, siginfo_t*) all
257__signalfd4:signalfd4(int, const sigset64_t*, size_t, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800258
259# sockets
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500260__socket:socket(int, int, int) arm,lp64
261__socketpair:socketpair(int, int, int, int*) arm,lp64
262bind(int, struct sockaddr*, socklen_t) arm,lp64
263__connect:connect(int, struct sockaddr*, socklen_t) arm,lp64
264listen(int, int) arm,lp64
265__accept4:accept4(int, struct sockaddr*, socklen_t*, int) arm,lp64
266getsockname(int, struct sockaddr*, socklen_t*) arm,lp64
267getpeername(int, struct sockaddr*, socklen_t*) arm,lp64
268__sendto:sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) arm,lp64
269recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) arm,lp64
270shutdown(int, int) arm,lp64
271setsockopt(int, int, int, const void*, socklen_t) arm,lp64
272getsockopt(int, int, int, void*, socklen_t*) arm,lp64
273__recvmsg:recvmsg(int, struct msghdr*, unsigned int) arm,lp64
274__sendmsg:sendmsg(int, const struct msghdr*, unsigned int) arm,lp64
275__recvmmsg:recvmmsg(int, struct mmsghdr*, unsigned int, int, const struct timespec*) arm,lp64
276__sendmmsg:sendmmsg(int, struct mmsghdr*, unsigned int, int) arm,lp64
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800277
278# sockets for x86. These are done as an "indexed" call to socketcall syscall.
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500279__socket:socketcall:1(int, int, int) x86
280bind:socketcall:2(int, struct sockaddr*, int) x86
281__connect:socketcall:3(int, struct sockaddr*, socklen_t) x86
282listen:socketcall:4(int, int) x86
283getsockname:socketcall:6(int, struct sockaddr*, socklen_t*) x86
284getpeername:socketcall:7(int, struct sockaddr*, socklen_t*) x86
285__socketpair:socketcall:8(int, int, int, int*) x86
286__sendto:socketcall:11(int, const void*, size_t, int, const struct sockaddr*, socklen_t) x86
287recvfrom:socketcall:12(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) x86
288shutdown:socketcall:13(int, int) x86
289setsockopt:socketcall:14(int, int, int, const void*, socklen_t) x86
290getsockopt:socketcall:15(int, int, int, void*, socklen_t*) x86
291__sendmsg:socketcall:16(int, const struct msghdr*, unsigned int) x86
292__recvmsg:socketcall:17(int, struct msghdr*, unsigned int) x86
293__accept4:socketcall:18(int, struct sockaddr*, socklen_t*, int) x86
294__recvmmsg:socketcall:19(int, struct mmsghdr*, unsigned int, int, const struct timespec*) x86
295__sendmmsg:socketcall:20(int, struct mmsghdr*, unsigned int, int) x86
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800296
297# scheduler & real-time
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500298sched_get_priority_max(int policy) all
299sched_get_priority_min(int policy) all
300__sched_getaffinity:sched_getaffinity(pid_t, size_t, cpu_set_t*) all
301sched_getattr(pid_t, sched_attr*, unsigned, unsigned) all
302sched_getparam(pid_t, sched_param*) all
303sched_getscheduler(pid_t) all
304sched_rr_get_interval(pid_t, timespec*) all
305sched_setaffinity(pid_t, size_t, const cpu_set_t*) all
306sched_setattr(pid_t, sched_attr*, unsigned) all
307sched_setparam(pid_t, const sched_param*) all
308sched_setscheduler(pid_t, int, const sched_param*) all
309sched_yield(void) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800310
311# other
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500312uname(struct utsname*) all
313umask(mode_t) all
314__reboot:reboot(int, int, int, void*) all
315init_module(void*, unsigned long, const char*) all
316delete_module(const char*, unsigned int) all
317klogctl:syslog(int, char*, int) all
318sysinfo(struct sysinfo*) all
319personality(unsigned long) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800320
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500321setns(int, int) all
322unshare(int) all
Elliott Hughesf4420fb2025-01-30 11:21:26 -0800323
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500324__getcpu:getcpu(unsigned*, unsigned*, void*) all
Elliott Hughesf4420fb2025-01-30 11:21:26 -0800325
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500326bpf(int, union bpf_attr *, unsigned int) all
Alessio Balsini5afe3f82021-11-11 18:43:00 +0000327
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500328tee(int, int, size_t, unsigned int) all
329splice(int, off64_t*, int, off64_t*, size_t, unsigned int) all
330vmsplice(int, const struct iovec*, size_t, unsigned int) all
Elliott Hughes3f525d42014-06-24 16:32:01 -0700331
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500332__epoll_create1:epoll_create1(int) all
333epoll_ctl(int, int op, int, struct epoll_event*) all
334__epoll_pwait:epoll_pwait(int, struct epoll_event*, int, int, const sigset64_t*, size_t) all
335__epoll_pwait2:epoll_pwait2(int, struct epoll_event*, int, const timespec64*, const sigset64_t*, size_t) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800336
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500337__eventfd:eventfd2(unsigned int, int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800338
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500339_exit|_Exit:exit_group(int) all
340__exit:exit(int) all
Elliott Hughes6b53c232013-10-24 22:36:58 -0700341
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500342inotify_init1(int) all
343inotify_add_watch(int, const char*, unsigned int) all
344inotify_rm_watch(int, unsigned int) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800345
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500346__pselect6:pselect6(int, fd_set*, fd_set*, fd_set*, timespec*, void*) all
347__ppoll:ppoll(pollfd*, unsigned int, timespec*, const sigset64_t*, size_t) all
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800348
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500349process_vm_readv(pid_t, const struct iovec*, unsigned long, const struct iovec*, unsigned long, unsigned long) all
350process_vm_writev(pid_t, const struct iovec*, unsigned long, const struct iovec*, unsigned long, unsigned long) all
Elliott Hughesbe57a402015-06-10 17:24:20 -0700351
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500352quotactl(int, const char*, int, char*) all
Elliott Hugheseafad492016-04-05 23:01:42 -0700353
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500354__set_tid_address:set_tid_address(int*) all
Elliott Hughes36d61882013-11-19 13:31:58 -0800355
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500356setdomainname(const char*, size_t) all
357sethostname(const char*, size_t) all
Elliott Hughesb86a4c72014-11-07 16:07:13 -0800358
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500359sync_file_range(int, off64_t, off64_t, unsigned int) x86,lp64
360__sync_file_range2:sync_file_range2(int, unsigned int, off64_t, off64_t) arm
Elliott Hughes7f72ad42016-04-05 11:56:03 -0700361
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500362wait4(pid_t, int*, int, struct rusage*) all
363__waitid:waitid(int, pid_t, siginfo_t*, int, void*) all
Elliott Hughes6b53c232013-10-24 22:36:58 -0700364
Elliott Hughesa6519d62013-10-17 16:56:40 -0700365# ARM-specific
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500366__set_tls:__ARM_NR_set_tls(void*) arm
367cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) arm
Raghu Gandham1fa0d842012-01-27 17:51:42 -0800368
Elliott Hughes704772b2022-10-10 17:06:43 +0000369# riscv64-specific
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500370__riscv_flush_icache:riscv_flush_icache(void*, void*, unsigned long) riscv64
Elliott Hughes704772b2022-10-10 17:06:43 +0000371
Elliott Hughesdcbef062014-05-12 16:11:06 -0700372# x86-specific
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500373__set_thread_area:set_thread_area(void*) x86
374arch_prctl(int, unsigned long) x86_64
Elliott Hughes625993d2014-07-15 16:53:13 -0700375
376# vdso stuff.
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500377__clock_getres:clock_getres(clockid_t, struct timespec*) all
378__clock_gettime:clock_gettime(clockid_t, struct timespec*) all
379__gettimeofday:gettimeofday(struct timeval*, struct timezone*) all
Elliott Hughes8465e962017-09-27 16:33:35 -0700380
381# <sys/random.h>
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500382getrandom(void*, size_t, unsigned) all
Josh Gao3de19152021-02-22 18:09:48 -0800383
384# <sys/pidfd.h>
Elliott Hughes83f08aa2025-02-06 17:14:58 -0500385__pidfd_open:pidfd_open(pid_t, unsigned int) all
386__pidfd_getfd:pidfd_getfd(int, int, unsigned int) all
387pidfd_send_signal(int, int, siginfo_t*, unsigned int) all