Skip to content

Commit aa1c8ea

Browse files
committed
Add Android semver lists
One would expect Android to include the Unix and Linux lists, as it's Linux based. However because Android is missing too many definitions I found it easier to create a fully separate list for Android specifically.
1 parent f18ba37 commit aa1c8ea

File tree

6 files changed

+3462
-1
lines changed

6 files changed

+3462
-1
lines changed

libc-test/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ fn do_semver() {
8484

8585
// NOTE: Windows has the same `family` as `os`, no point in including it
8686
// twice.
87-
if family != os {
87+
// NOTE: Android doesn't include the unix file (or the Linux file) because
88+
// there are some many definitions missing it's actually easier just to
89+
// maintain a file for Android.
90+
if family != os && os != "android" {
8891
process_semver_file(&mut output, &mut semver_root, &family);
8992
}
9093
process_semver_file(&mut output, &mut semver_root, &vendor);

libc-test/semver/android-aarch64.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
HWCAP2_DCPODP
2+
HWCAP2_FLAGM2
3+
HWCAP2_FRINT
4+
HWCAP2_SVE2
5+
HWCAP2_SVEAES
6+
HWCAP2_SVEBITPERM
7+
HWCAP2_SVEPMULL
8+
HWCAP2_SVESHA3
9+
HWCAP2_SVESM4
10+
SYS_arch_specific_syscall
11+
SYS_syscalls

libc-test/semver/android-arm.txt

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
NGREG
2+
PTRACE_GETFPREGS
3+
PTRACE_GETREGS
4+
PTRACE_SETFPREGS
5+
PTRACE_SETREGS
6+
REG_R0
7+
REG_R1
8+
REG_R10
9+
REG_R11
10+
REG_R12
11+
REG_R13
12+
REG_R14
13+
REG_R15
14+
REG_R2
15+
REG_R3
16+
REG_R4
17+
REG_R5
18+
REG_R6
19+
REG_R7
20+
REG_R8
21+
REG_R9
22+
SYS_accept
23+
SYS_access
24+
SYS_arm_fadvise64_64
25+
SYS_arm_sync_file_range
26+
SYS_bdflush
27+
SYS_chmod
28+
SYS_chown
29+
SYS_chown32
30+
SYS_creat
31+
SYS_dup2
32+
SYS_epoll_create
33+
SYS_epoll_wait
34+
SYS_eventfd
35+
SYS_fchown32
36+
SYS_fcntl64
37+
SYS_fork
38+
SYS_fstat64
39+
SYS_fstatat64
40+
SYS_fstatfs64
41+
SYS_ftruncate64
42+
SYS_futimesat
43+
SYS_getdents
44+
SYS_getegid32
45+
SYS_geteuid32
46+
SYS_getgid32
47+
SYS_getgroups32
48+
SYS_getpgrp
49+
SYS_getresgid32
50+
SYS_getresuid32
51+
SYS_getuid32
52+
SYS_inotify_init
53+
SYS_lchown
54+
SYS_lchown32
55+
SYS_link
56+
SYS_lstat
57+
SYS_lstat64
58+
SYS_mkdir
59+
SYS_mknod
60+
SYS_mmap2
61+
SYS_msgctl
62+
SYS_msgget
63+
SYS_msgrcv
64+
SYS_msgsnd
65+
SYS_nice
66+
SYS_open
67+
SYS_pause
68+
SYS_pciconfig_iobase
69+
SYS_pciconfig_read
70+
SYS_pciconfig_write
71+
SYS_pipe
72+
SYS_poll
73+
SYS_readlink
74+
SYS_recv
75+
SYS_rename
76+
SYS_rmdir
77+
SYS_semctl
78+
SYS_semget
79+
SYS_semop
80+
SYS_semtimedop
81+
SYS_send
82+
SYS_sendfile
83+
SYS_sendfile64
84+
SYS_setfsgid32
85+
SYS_setfsuid32
86+
SYS_setgid32
87+
SYS_setgroups32
88+
SYS_setregid32
89+
SYS_setresgid32
90+
SYS_setresuid32
91+
SYS_setreuid32
92+
SYS_setuid32
93+
SYS_shmat
94+
SYS_shmctl
95+
SYS_shmdt
96+
SYS_shmget
97+
SYS_sigaction
98+
SYS_signalfd
99+
SYS_sigpending
100+
SYS_sigprocmask
101+
SYS_sigreturn
102+
SYS_sigsuspend
103+
SYS_stat
104+
SYS_stat64
105+
SYS_statfs64
106+
SYS_symlink
107+
SYS_sysfs
108+
SYS_truncate64
109+
SYS_ugetrlimit
110+
SYS_unlink
111+
SYS_uselib
112+
SYS_ustat
113+
SYS_utimes
114+
SYS_vfork
115+
SYS_vserver
116+
__c_anonymous_uc_sigmask
117+
__c_anonymous_uc_sigmask_with_padding
118+
greg_t
119+
sigcontext
120+
time64_t
121+
timegm64

libc-test/semver/android-i686.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__c_anonymous_uc_sigmask
2+
__c_anonymous_uc_sigmask_with_padding
3+
time64_t
4+
timegm64

libc-test/semver/android-x86_64.txt

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
EFLAGS
2+
FS_BASE
3+
GS_BASE
4+
ORIG_RAX
5+
R10
6+
R11
7+
R12
8+
R13
9+
R14
10+
R15
11+
R8
12+
R9
13+
RAX
14+
RBP
15+
RBX
16+
RCX
17+
RDI
18+
RDX
19+
REG_CR2
20+
REG_CSGSFS
21+
REG_OLDMASK
22+
REG_R10
23+
REG_R11
24+
REG_R12
25+
REG_R13
26+
REG_R14
27+
REG_R15
28+
REG_R8
29+
REG_R9
30+
REG_RAX
31+
REG_RBP
32+
REG_RBX
33+
REG_RCX
34+
REG_RDI
35+
REG_RDX
36+
REG_RIP
37+
REG_RSI
38+
REG_RSP
39+
RIP
40+
RSI
41+
RSP
42+
SYS_accept
43+
SYS_arch_prctl
44+
SYS_epoll_ctl_old
45+
SYS_epoll_wait_old
46+
SYS_kexec_file_load
47+
SYS_msgctl
48+
SYS_msgget
49+
SYS_msgrcv
50+
SYS_msgsnd
51+
SYS_newfstatat
52+
SYS_security
53+
SYS_semctl
54+
SYS_semget
55+
SYS_semop
56+
SYS_semtimedop
57+
SYS_shmat
58+
SYS_shmctl
59+
SYS_shmdt
60+
SYS_shmget
61+
SYS_tuxcall
62+
SYS_vserver
63+
__c_anonymous_uc_sigmask
64+
_libc_fpxreg
65+
_libc_xmmreg

0 commit comments

Comments
 (0)