summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ndk/platforms/android-20/arch-arm/include/machine/fenv.h5
-rw-r--r--ndk/platforms/android-20/arch-arm/lib/libc.abin5323684 -> 5357480 bytes
-rw-r--r--ndk/platforms/android-20/arch-arm/lib/libm.abin1242632 -> 1242120 bytes
-rw-r--r--ndk/platforms/android-20/arch-arm/symbols/libc.so.functions.txt109
-rw-r--r--ndk/platforms/android-20/arch-arm/symbols/libc.so.variables.txt12
-rw-r--r--ndk/platforms/android-20/arch-arm64/include/machine/fenv.h107
-rw-r--r--ndk/platforms/android-20/arch-arm64/lib/libc.abin9061856 -> 9038712 bytes
-rw-r--r--ndk/platforms/android-20/arch-arm64/lib/libm.abin2565168 -> 2557416 bytes
-rw-r--r--ndk/platforms/android-20/arch-arm64/lib/libz.abin968382 -> 968390 bytes
-rw-r--r--ndk/platforms/android-20/arch-arm64/symbols/libc.so.functions.txt125
-rw-r--r--ndk/platforms/android-20/arch-arm64/symbols/libc.so.variables.txt12
-rw-r--r--ndk/platforms/android-20/arch-mips/include/machine/fenv.h7
-rw-r--r--ndk/platforms/android-20/arch-mips/lib/libc.abin5689614 -> 5704362 bytes
-rw-r--r--ndk/platforms/android-20/arch-mips/lib/libm.abin1314720 -> 1314132 bytes
-rw-r--r--ndk/platforms/android-20/arch-mips/lib/libz.abin526778 -> 526778 bytes
-rw-r--r--ndk/platforms/android-20/arch-mips/symbols/libc.so.functions.txt109
-rw-r--r--ndk/platforms/android-20/arch-mips/symbols/libc.so.variables.txt12
-rw-r--r--ndk/platforms/android-20/arch-mips64/include/machine/fenv.h7
-rw-r--r--ndk/platforms/android-20/arch-mips64/lib64/libc.abin9434428 -> 9423588 bytes
-rw-r--r--ndk/platforms/android-20/arch-mips64/lib64/libm.abin2703010 -> 2701890 bytes
-rw-r--r--ndk/platforms/android-20/arch-mips64/lib64/libstdc++.abin4176 -> 4176 bytes
-rw-r--r--ndk/platforms/android-20/arch-mips64/lib64/libz.abin943552 -> 943552 bytes
-rw-r--r--ndk/platforms/android-20/arch-mips64/symbols/libc.so.functions.txt129
-rw-r--r--ndk/platforms/android-20/arch-mips64/symbols/libc.so.variables.txt14
-rw-r--r--ndk/platforms/android-20/arch-mips64/symbols/libm.so.functions.txt12
-rw-r--r--ndk/platforms/android-20/arch-x86/include/machine/fenv.h2
-rw-r--r--ndk/platforms/android-20/arch-x86/lib/libc.abin6466558 -> 6418210 bytes
-rw-r--r--ndk/platforms/android-20/arch-x86/lib/libm.abin1347344 -> 1348576 bytes
-rw-r--r--ndk/platforms/android-20/arch-x86/lib/libstdc++.abin2548 -> 2560 bytes
-rw-r--r--ndk/platforms/android-20/arch-x86/lib/libz.abin608132 -> 608304 bytes
-rw-r--r--ndk/platforms/android-20/arch-x86/symbols/libc.so.functions.txt109
-rw-r--r--ndk/platforms/android-20/arch-x86/symbols/libc.so.variables.txt12
-rw-r--r--ndk/platforms/android-20/arch-x86_64/include/machine/fenv.h9
-rw-r--r--ndk/platforms/android-20/arch-x86_64/lib64/libc.abin11106784 -> 11042788 bytes
-rw-r--r--ndk/platforms/android-20/arch-x86_64/lib64/libm.abin2827824 -> 2826776 bytes
-rw-r--r--ndk/platforms/android-20/arch-x86_64/lib64/libz.abin1156310 -> 1156310 bytes
-rw-r--r--ndk/platforms/android-20/arch-x86_64/symbols/libc.so.functions.txt125
-rw-r--r--ndk/platforms/android-20/arch-x86_64/symbols/libc.so.variables.txt12
-rw-r--r--ndk/platforms/android-20/include/dirent.h1
-rw-r--r--ndk/platforms/android-20/include/errno.h2
-rw-r--r--ndk/platforms/android-20/include/limits.h2
-rw-r--r--ndk/platforms/android-20/include/malloc.h3
-rw-r--r--ndk/platforms/android-20/include/netdb.h3
-rw-r--r--ndk/platforms/android-20/include/pthread.h2
-rw-r--r--ndk/platforms/android-20/include/resolv.h2
-rw-r--r--ndk/platforms/android-20/include/setjmp.h1
-rw-r--r--ndk/platforms/android-20/include/signal.h2
-rw-r--r--ndk/platforms/android-20/include/stdio.h6
-rw-r--r--ndk/platforms/android-20/include/stdlib.h37
-rw-r--r--ndk/platforms/android-20/include/string.h1
-rw-r--r--ndk/platforms/android-20/include/strings.h13
-rw-r--r--ndk/platforms/android-20/include/sys/_errdefs.h170
-rw-r--r--ndk/platforms/android-20/include/sys/_sigdefs.h75
-rw-r--r--ndk/platforms/android-20/include/sys/_system_properties.h153
-rw-r--r--ndk/platforms/android-20/include/sys/atomics.h84
-rw-r--r--ndk/platforms/android-20/include/sys/ioctl.h1
-rw-r--r--ndk/platforms/android-20/include/sys/user.h2
-rw-r--r--ndk/platforms/android-20/include/sys/wait.h1
-rw-r--r--ndk/platforms/android-20/include/syslog.h40
-rw-r--r--ndk/platforms/android-20/include/time.h59
-rw-r--r--ndk/platforms/android-20/include/uchar.h (renamed from ndk/platforms/android-20/include/sys/timeb.h)30
-rw-r--r--ndk/platforms/android-20/include/unistd.h4
-rw-r--r--ndk/platforms/android-20/include/wchar.h3
63 files changed, 208 insertions, 1418 deletions
diff --git a/ndk/platforms/android-20/arch-arm/include/machine/fenv.h b/ndk/platforms/android-20/arch-arm/include/machine/fenv.h
index d8749dd97..0e483e32e 100644
--- a/ndk/platforms/android-20/arch-arm/include/machine/fenv.h
+++ b/ndk/platforms/android-20/arch-arm/include/machine/fenv.h
@@ -52,17 +52,12 @@ typedef __uint32_t fexcept_t;
#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \
FE_OVERFLOW | FE_UNDERFLOW)
-#define _FPSCR_ENABLE_SHIFT 8
-#define _FPSCR_ENABLE_MASK (FE_ALL_EXCEPT << _FPSCR_ENABLE_SHIFT)
-
/* Rounding modes. */
#define FE_TONEAREST 0x0
#define FE_UPWARD 0x1
#define FE_DOWNWARD 0x2
#define FE_TOWARDZERO 0x3
-#define _FPSCR_RMODE_SHIFT 22
-
__END_DECLS
#endif /* !_ARM_FENV_H_ */
diff --git a/ndk/platforms/android-20/arch-arm/lib/libc.a b/ndk/platforms/android-20/arch-arm/lib/libc.a
index 2700ead1b..b05b70339 100644
--- a/ndk/platforms/android-20/arch-arm/lib/libc.a
+++ b/ndk/platforms/android-20/arch-arm/lib/libc.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-arm/lib/libm.a b/ndk/platforms/android-20/arch-arm/lib/libm.a
index 13a88f521..e6658b347 100644
--- a/ndk/platforms/android-20/arch-arm/lib/libm.a
+++ b/ndk/platforms/android-20/arch-arm/lib/libm.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-arm/symbols/libc.so.functions.txt b/ndk/platforms/android-20/arch-arm/symbols/libc.so.functions.txt
index e1b84839d..5c69eb59c 100644
--- a/ndk/platforms/android-20/arch-arm/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-20/arch-arm/symbols/libc.so.functions.txt
@@ -1,6 +1,3 @@
-MD5_Final
-MD5_Init
-MD5_Update
SHA1Final
SHA1Init
SHA1Transform
@@ -129,19 +126,9 @@ __divsi3
__dn_comp
__dn_count_labels
__dn_skipname
-__dorand48
__epoll_pwait
__eqdf2
__errno
-__evAddTime
-__evCmpTime
-__evConsIovec
-__evConsTime
-__evNowTime
-__evSubTime
-__evTimeSpec
-__evTimeVal
-__evUTCTime
__exit
__extendsfdf2
__fcntl64
@@ -172,6 +159,7 @@ __get_h_errno
__get_tls
__getcpu
__getcwd
+__getdents64
__getpriority
__gnu_Unwind_Backtrace
__gnu_Unwind_Find_exidx
@@ -211,14 +199,12 @@ __isnormall
__ledf2
__libc_current_sigrtmax
__libc_current_sigrtmin
-__libc_fini
__libc_init
__llseek
__loc_aton
__loc_ntoa
__lshrdi3
__ltdf2
-__memcmp16
__memcpy_chk
__memmove_chk
__memset_chk
@@ -227,36 +213,6 @@ __muldf3
__muldi3
__mulsf3
__nedf2
-__ns_format_ttl
-__ns_get16
-__ns_get32
-__ns_initparse
-__ns_makecanon
-__ns_msg_getflag
-__ns_name_compress
-__ns_name_eq
-__ns_name_labels
-__ns_name_length
-__ns_name_map
-__ns_name_ntol
-__ns_name_ntop
-__ns_name_owned
-__ns_name_pack
-__ns_name_pton
-__ns_name_pton2
-__ns_name_rollback
-__ns_name_skip
-__ns_name_uncompress
-__ns_name_unpack
-__ns_name_unpack2
-__ns_parserr
-__ns_parserr2
-__ns_put16
-__ns_put32
-__ns_samename
-__ns_skiprr
-__ns_sprintrr
-__ns_sprintrrf
__open
__open_2
__openat
@@ -270,8 +226,6 @@ __p_option
__p_query
__p_rcode
__p_secstodate
-__p_section
-__p_sockun
__p_time
__p_type
__popcountsi2
@@ -288,39 +242,25 @@ __reboot
__recvfrom_chk
__res_close
__res_dnok
-__res_get_nibblesuffix
-__res_get_nibblesuffix2
-__res_get_state
-__res_get_static
-__res_getservers
__res_hnok
__res_hostalias
__res_isourserver
__res_mailok
__res_nameinquery
-__res_nametoclass
-__res_nametotype
__res_nclose
-__res_ndestroy
__res_ninit
__res_nmkquery
-__res_nopt
__res_nquery
__res_nquerydomain
__res_nsearch
__res_nsend
-__res_opt
__res_ownok
-__res_pquery
-__res_put_state
__res_queriesmatch
__res_querydomain
__res_randomid
__res_send
__res_send_setqhook
__res_send_setrhook
-__res_setservers
-__res_vinit
__restore_core_regs
__rt_sigaction
__rt_sigpending
@@ -411,10 +351,7 @@ alphasort
alphasort64
android_getaddrinfofornet
android_gethostbyaddrfornet
-android_gethostbyaddrfornet_proxy
-android_gethostbyaddrfornet_real
android_gethostbynamefornet
-android_getnameinfofornet
arc4random
arc4random_addrandom
arc4random_buf
@@ -441,6 +378,8 @@ bsd_signal
bsearch
btowc
bzero
+c16rtomb
+c32rtomb
cacheflush
calloc
capget
@@ -482,28 +421,8 @@ dirfd
dirname
dirname_r
div
-dlbulk_free
-dlcalloc
-dlfree
-dlindependent_calloc
-dlindependent_comalloc
-dlmallinfo
-dlmalloc
-dlmalloc_footprint
-dlmalloc_footprint_limit
dlmalloc_inspect_all
-dlmalloc_max_footprint
-dlmalloc_set_footprint_limit
-dlmalloc_stats
dlmalloc_trim
-dlmalloc_usable_size
-dlmallopt
-dlmemalign
-dlposix_memalign
-dlpvalloc
-dlrealloc
-dlrealloc_in_place
-dlvalloc
dn_expand
dprintf
drand48
@@ -680,7 +599,6 @@ gets
getservbyname
getservbyport
getservent
-getservent_r
getsid
getsockname
getsockopt
@@ -711,20 +629,17 @@ inet_lnaof
inet_makeaddr
inet_netof
inet_network
-inet_nsap_addr
-inet_nsap_ntoa
inet_ntoa
inet_ntop
inet_pton
init_module
initgroups
+initstate
inotify_add_watch
inotify_init
inotify_init1
inotify_rm_watch
ioctl
-ioprio_get
-ioprio_set
isalnum
isalpha
isascii
@@ -748,6 +663,7 @@ isnormalf
isnormall
isprint
ispunct
+issetugid
isspace
isupper
iswalnum
@@ -788,7 +704,6 @@ localtime64_r
localtime_r
localtime_tz
longjmp
-longjmperror
lrand48
lremovexattr
lsearch
@@ -802,6 +717,8 @@ mallinfo
malloc
malloc_usable_size
mbrlen
+mbrtoc16
+mbrtoc32
mbrtowc
mbsinit
mbsnrtowcs
@@ -850,7 +767,6 @@ nftw
nftw64
nice
nrand48
-nsdispatch
ntohl
ntohs
open
@@ -869,7 +785,6 @@ pipe
pipe2
poll
popen
-posix2time
posix_fallocate
posix_fallocate64
posix_memalign
@@ -980,6 +895,9 @@ pwrite64
qsort
quick_exit
raise
+rand
+rand_r
+random
read
readahead
readdir
@@ -1008,8 +926,6 @@ res_init
res_mkquery
res_query
res_search
-res_setmark
-res_setnetid
restore_core_regs
rewind
rewinddir
@@ -1075,6 +991,7 @@ setrlimit64
setservent
setsid
setsockopt
+setstate
settimeofday
setuid
setusershell
@@ -1105,7 +1022,9 @@ snprintf
socket
socketpair
sprintf
+srand
srand48
+srandom
sscanf
stat
stat64
@@ -1190,7 +1109,6 @@ tempnam
tfind
tgkill
time
-time2posix
timegm
timegm64
timelocal
@@ -1218,7 +1136,6 @@ tsearch
ttyname
ttyname_r
tzset
-tzsetwall
umask
umount
umount2
diff --git a/ndk/platforms/android-20/arch-arm/symbols/libc.so.variables.txt b/ndk/platforms/android-20/arch-arm/symbols/libc.so.variables.txt
index dc3250416..fcefceea3 100644
--- a/ndk/platforms/android-20/arch-arm/symbols/libc.so.variables.txt
+++ b/ndk/platforms/android-20/arch-arm/symbols/libc.so.variables.txt
@@ -2,37 +2,25 @@ _C_ctype_
_C_tolower_
_C_toupper_
_ZSt7nothrow
-__atexit
-__atexit_invalid
__bionic_brk
__bionic_libgcc_compat_symbols
__dso_handle
__isthreaded
-__libc_malloc_default_dispatch
__libc_malloc_dispatch
-__p_cert_syms
__p_class_syms
-__p_key_syms
-__p_rcode_syms
__p_type_syms
__page_shift
__page_size
__popcount_tab
__progname
-__rand48_add
-__rand48_mult
-__rand48_seed
__sF
__stack_chk_guard
__system_property_area__
_ctype_
-_ns_flagdata
_tolower_tab_
_toupper_tab_
daylight
environ
-h_errlist
-h_nerr
optarg
opterr
optind
diff --git a/ndk/platforms/android-20/arch-arm64/include/machine/fenv.h b/ndk/platforms/android-20/arch-arm64/include/machine/fenv.h
index 2efeee3da..a8568b854 100644
--- a/ndk/platforms/android-20/arch-arm64/include/machine/fenv.h
+++ b/ndk/platforms/android-20/arch-arm64/include/machine/fenv.h
@@ -27,15 +27,44 @@
*/
/*
- * Rewritten for Android.
+ * In ARMv8, AArch64 state, floating-point operation is controlled by:
*
- * The ARM FPSCR (Floating-point Status and Control Register) described here:
- * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344b/Chdfafia.html
- * has been split into the FPCR (Floating-point Control Register) and FPSR
- * (Floating-point Status Register) on the ARMv8. These are described briefly in
- * "Procedure Call Standard for the ARM 64-bit Architecture"
- * http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055a/IHI0055A_aapcs64.pdf
- * section 5.1.2 SIMD and Floating-Point Registers
+ * * FPCR - 32Bit Floating-Point Control Register:
+ * * [31:27] - Reserved, Res0;
+ * * [26] - AHP, Alternative half-precision control bit;
+ * * [25] - DN, Default NaN mode control bit;
+ * * [24] - FZ, Flush-to-zero mode control bit;
+ * * [23:22] - RMode, Rounding Mode control field:
+ * * 00 - Round to Nearest (RN) mode;
+ * * 01 - Round towards Plus Infinity (RP) mode;
+ * * 10 - Round towards Minus Infinity (RM) mode;
+ * * 11 - Round towards Zero (RZ) mode.
+ * * [21:20] - Stride, ignored during AArch64 execution;
+ * * [19] - Reserved, Res0;
+ * * [18:16] - Len, ignored during AArch64 execution;
+ * * [15] - IDE, Input Denormal exception trap;
+ * * [14:13] - Reserved, Res0;
+ * * [12] - IXE, Inexact exception trap;
+ * * [11] - UFE, Underflow exception trap;
+ * * [10] - OFE, Overflow exception trap;
+ * * [9] - DZE, Division by Zero exception;
+ * * [8] - IOE, Invalid Operation exception;
+ * * [7:0] - Reserved, Res0.
+ *
+ * * FPSR - 32Bit Floating-Point Status Register:
+ * * [31] - N, Negative condition flag for AArch32 (AArch64 sets PSTATE.N);
+ * * [30] - Z, Zero condition flag for AArch32 (AArch64 sets PSTATE.Z);
+ * * [29] - C, Carry conditon flag for AArch32 (AArch64 sets PSTATE.C);
+ * * [28] - V, Overflow conditon flag for AArch32 (AArch64 sets PSTATE.V);
+ * * [27] - QC, Cumulative saturation bit, Advanced SIMD only;
+ * * [26:8] - Reserved, Res0;
+ * * [7] - IDC, Input Denormal cumulative exception;
+ * * [6:5] - Reserved, Res0;
+ * * [4] - IXC, Inexact cumulative exception;
+ * * [3] - UFC, Underflow cumulative exception;
+ * * [2] - OFC, Overflow cumulative exception;
+ * * [1] - DZC, Division by Zero cumulative exception;
+ * * [0] - IOC, Invalid Operation cumulative exception.
*/
#ifndef _ARM64_FENV_H_
@@ -45,7 +74,11 @@
__BEGIN_DECLS
-typedef __uint32_t fenv_t;
+typedef struct {
+ __uint32_t __control; /* FPCR, Floating-point Control Register */
+ __uint32_t __status; /* FPSR, Floating-point Status Register */
+} fenv_t;
+
typedef __uint32_t fexcept_t;
/* Exception flags. */
@@ -54,11 +87,9 @@ typedef __uint32_t fexcept_t;
#define FE_OVERFLOW 0x04
#define FE_UNDERFLOW 0x08
#define FE_INEXACT 0x10
+#define FE_DENORMAL 0x80
#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \
- FE_OVERFLOW | FE_UNDERFLOW)
-
-#define _FPSCR_ENABLE_SHIFT 8
-#define _FPSCR_ENABLE_MASK (FE_ALL_EXCEPT << _FPSCR_ENABLE_SHIFT)
+ FE_OVERFLOW | FE_UNDERFLOW | FE_DENORMAL)
/* Rounding modes. */
#define FE_TONEAREST 0x0
@@ -66,56 +97,6 @@ typedef __uint32_t fexcept_t;
#define FE_DOWNWARD 0x2
#define FE_TOWARDZERO 0x3
-#define _FPSCR_RMODE_SHIFT 22
-
-#define FPCR_IOE (1 << 8)
-#define FPCR_DZE (1 << 9)
-#define FPCR_OFE (1 << 10)
-#define FPCR_UFE (1 << 11)
-#define FPCR_IXE (1 << 12)
-#define FPCR_IDE (1 << 15)
-#define FPCR_LEN (7 << 16)
-#define FPCR_STRIDE (3 << 20)
-#define FPCR_RMODE (3 << 22)
-#define FPCR_FZ (1 << 24)
-#define FPCR_DN (1 << 25)
-#define FPCR_AHP (1 << 26)
-#define FPCR_MASK (FPCR_IOE | \
- FPCR_DZE | \
- FPCR_OFE | \
- FPCR_UFE | \
- FPCR_IXE | \
- FPCR_IDE | \
- FPCR_LEN | \
- FPCR_STRIDE | \
- FPCR_RMODE | \
- FPCR_FZ | \
- FPCR_DN | \
- FPCR_AHP )
-
-#define FPSR_IOC (1 << 0)
-#define FPSR_DZC (1 << 1)
-#define FPSR_OFC (1 << 2)
-#define FPSR_UFC (1 << 3)
-#define FPSR_IXC (1 << 4)
-#define FPSR_IDC (1 << 7)
-#define FPSR_QC (1 << 27)
-#define FPSR_V (1 << 28)
-#define FPSR_C (1 << 29)
-#define FPSR_Z (1 << 30)
-#define FPSR_N (1 << 31)
-#define FPSR_MASK (FPSR_IOC | \
- FPSR_DZC | \
- FPSR_OFC | \
- FPSR_UFC | \
- FPSR_IXC | \
- FPSR_IDC | \
- FPSR_QC | \
- FPSR_V | \
- FPSR_C | \
- FPSR_Z | \
- FPSR_N )
-
__END_DECLS
#endif /* !_ARM64_FENV_H_ */
diff --git a/ndk/platforms/android-20/arch-arm64/lib/libc.a b/ndk/platforms/android-20/arch-arm64/lib/libc.a
index 297a6bb7c..1d2ae12ef 100644
--- a/ndk/platforms/android-20/arch-arm64/lib/libc.a
+++ b/ndk/platforms/android-20/arch-arm64/lib/libc.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-arm64/lib/libm.a b/ndk/platforms/android-20/arch-arm64/lib/libm.a
index fc0bf4458..63c94f320 100644
--- a/ndk/platforms/android-20/arch-arm64/lib/libm.a
+++ b/ndk/platforms/android-20/arch-arm64/lib/libm.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-arm64/lib/libz.a b/ndk/platforms/android-20/arch-arm64/lib/libz.a
index 5ee579218..27aa03416 100644
--- a/ndk/platforms/android-20/arch-arm64/lib/libz.a
+++ b/ndk/platforms/android-20/arch-arm64/lib/libz.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-arm64/symbols/libc.so.functions.txt b/ndk/platforms/android-20/arch-arm64/symbols/libc.so.functions.txt
index e6c452bdd..3ac1f024f 100644
--- a/ndk/platforms/android-20/arch-arm64/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-20/arch-arm64/symbols/libc.so.functions.txt
@@ -1,6 +1,3 @@
-MD5_Final
-MD5_Init
-MD5_Update
SHA1Final
SHA1Init
SHA1Transform
@@ -53,17 +50,7 @@ __deregister_frame_info_bases
__dn_comp
__dn_count_labels
__dn_skipname
-__dorand48
__errno
-__evAddTime
-__evCmpTime
-__evConsIovec
-__evConsTime
-__evNowTime
-__evSubTime
-__evTimeSpec
-__evTimeVal
-__evUTCTime
__fgets_chk
__findenv
__fp_nquery
@@ -89,45 +76,13 @@ __isnormalf
__isnormall
__libc_current_sigrtmax
__libc_current_sigrtmin
-__libc_fini
__libc_init
__loc_aton
__loc_ntoa
-__memcmp16
__memcpy_chk
__memmove_chk
__memset_chk
__multf3
-__ns_format_ttl
-__ns_get16
-__ns_get32
-__ns_initparse
-__ns_makecanon
-__ns_msg_getflag
-__ns_name_compress
-__ns_name_eq
-__ns_name_labels
-__ns_name_length
-__ns_name_map
-__ns_name_ntol
-__ns_name_ntop
-__ns_name_owned
-__ns_name_pack
-__ns_name_pton
-__ns_name_pton2
-__ns_name_rollback
-__ns_name_skip
-__ns_name_uncompress
-__ns_name_unpack
-__ns_name_unpack2
-__ns_parserr
-__ns_parserr2
-__ns_put16
-__ns_put32
-__ns_samename
-__ns_skiprr
-__ns_sprintrr
-__ns_sprintrrf
__open_2
__openat_2
__p_cdname
@@ -139,8 +94,6 @@ __p_option
__p_query
__p_rcode
__p_secstodate
-__p_section
-__p_sockun
__p_time
__p_type
__popcountdi2
@@ -159,39 +112,25 @@ __register_frame_info_table_bases
__register_frame_table
__res_close
__res_dnok
-__res_get_nibblesuffix
-__res_get_nibblesuffix2
-__res_get_state
-__res_get_static
-__res_getservers
__res_hnok
__res_hostalias
__res_isourserver
__res_mailok
__res_nameinquery
-__res_nametoclass
-__res_nametotype
__res_nclose
-__res_ndestroy
__res_ninit
__res_nmkquery
-__res_nopt
__res_nquery
__res_nquerydomain
__res_nsearch
__res_nsend
-__res_opt
__res_ownok
-__res_pquery
-__res_put_state
__res_queriesmatch
__res_querydomain
__res_randomid
__res_send
__res_send_setqhook
__res_send_setrhook
-__res_setservers
-__res_vinit
__sched_cpualloc
__sched_cpucount
__sched_cpufree
@@ -253,10 +192,7 @@ alphasort
alphasort64
android_getaddrinfofornet
android_gethostbyaddrfornet
-android_gethostbyaddrfornet_proxy
-android_gethostbyaddrfornet_real
android_gethostbynamefornet
-android_getnameinfofornet
arc4random
arc4random_addrandom
arc4random_buf
@@ -272,14 +208,13 @@ atol
atoll
basename
basename_r
-bcopy
bind
bindresvport
brk
-bsd_signal
bsearch
btowc
-bzero
+c16rtomb
+c32rtomb
calloc
capget
capset
@@ -304,7 +239,6 @@ clone
close
closedir
closelog
-closelog_r
cmsg_nxthdr
connect
creat
@@ -318,28 +252,8 @@ dirfd
dirname
dirname_r
div
-dlbulk_free
-dlcalloc
-dlfree
-dlindependent_calloc
-dlindependent_comalloc
-dlmallinfo
-dlmalloc
-dlmalloc_footprint
-dlmalloc_footprint_limit
dlmalloc_inspect_all
-dlmalloc_max_footprint
-dlmalloc_set_footprint_limit
-dlmalloc_stats
dlmalloc_trim
-dlmalloc_usable_size
-dlmallopt
-dlmemalign
-dlposix_memalign
-dlpvalloc
-dlrealloc
-dlrealloc_in_place
-dlvalloc
dn_expand
dprintf
drand48
@@ -435,7 +349,6 @@ fstatvfs64
fsync
ftell
ftello
-ftime
ftok
ftruncate
ftruncate64
@@ -464,8 +377,6 @@ getchar
getchar_unlocked
getcwd
getdelim
-getdents
-getdtablesize
getegid
getenv
geteuid
@@ -515,7 +426,6 @@ gets
getservbyname
getservbyport
getservent
-getservent_r
getsid
getsockname
getsockopt
@@ -537,27 +447,23 @@ if_indextoname
if_nametoindex
imaxabs
imaxdiv
-index
inet_addr
inet_aton
inet_lnaof
inet_makeaddr
inet_netof
inet_network
-inet_nsap_addr
-inet_nsap_ntoa
inet_ntoa
inet_ntop
inet_pton
init_module
initgroups
+initstate
inotify_add_watch
inotify_init
inotify_init1
inotify_rm_watch
ioctl
-ioprio_get
-ioprio_set
isalnum
isalpha
isascii
@@ -619,7 +525,6 @@ localtime
localtime_r
localtime_tz
longjmp
-longjmperror
lrand48
lremovexattr
lsearch
@@ -633,6 +538,8 @@ mallinfo
malloc
malloc_usable_size
mbrlen
+mbrtoc16
+mbrtoc32
mbrtowc
mbsinit
mbsnrtowcs
@@ -679,7 +586,6 @@ nftw
nftw64
nice
nrand48
-nsdispatch
ntohl
ntohs
open
@@ -688,7 +594,6 @@ openat
openat64
opendir
openlog
-openlog_r
pathconf
pause
pclose
@@ -698,7 +603,6 @@ pipe
pipe2
poll
popen
-posix2time
posix_fallocate
posix_fallocate64
posix_memalign
@@ -794,15 +698,16 @@ putchar_unlocked
putenv
puts
pututline
-putw
putwc
putwchar
-pvalloc
pwrite
pwrite64
qsort
quick_exit
raise
+rand
+rand_r
+random
read
readahead
readdir
@@ -831,8 +736,6 @@ res_init
res_mkquery
res_query
res_search
-res_setmark
-res_setnetid
rewind
rewinddir
rmdir
@@ -881,7 +784,6 @@ setjmp
setlinebuf
setlocale
setlogmask
-setlogmask_r
setmntent
setns
setpgid
@@ -897,6 +799,7 @@ setrlimit64
setservent
setsid
setsockopt
+setstate
settimeofday
setuid
setusershell
@@ -927,7 +830,9 @@ snprintf
socket
socketpair
sprintf
+srand
srand48
+srandom
sscanf
stat
stat64
@@ -991,9 +896,7 @@ syscall
sysconf
sysinfo
syslog
-syslog_r
system
-sysv_signal
tcdrain
tcflow
tcflush
@@ -1009,7 +912,6 @@ tempnam
tfind
tgkill
time
-time2posix
timegm
timelocal
timer_create
@@ -1034,7 +936,6 @@ tsearch
ttyname
ttyname_r
tzset
-tzsetwall
umask
umount
umount2
@@ -1052,7 +953,6 @@ utime
utimensat
utimes
utmpname
-valloc
vasprintf
vdprintf
verr
@@ -1070,13 +970,11 @@ vsscanf
vswprintf
vswscanf
vsyslog
-vsyslog_r
vwarn
vwarnx
vwprintf
vwscanf
wait
-wait3
wait4
waitid
waitpid
@@ -1119,7 +1017,6 @@ wcstombs
wcstoul
wcstoull
wcstoumax
-wcswcs
wcswidth
wcsxfrm
wctob
diff --git a/ndk/platforms/android-20/arch-arm64/symbols/libc.so.variables.txt b/ndk/platforms/android-20/arch-arm64/symbols/libc.so.variables.txt
index ada89b547..81153639f 100644
--- a/ndk/platforms/android-20/arch-arm64/symbols/libc.so.variables.txt
+++ b/ndk/platforms/android-20/arch-arm64/symbols/libc.so.variables.txt
@@ -2,31 +2,19 @@ _C_ctype_
_C_tolower_
_C_toupper_
_ZSt7nothrow
-__atexit
-__atexit_invalid
__isthreaded
-__libc_malloc_default_dispatch
__libc_malloc_dispatch
-__p_cert_syms
__p_class_syms
-__p_key_syms
-__p_rcode_syms
__p_type_syms
__progname
-__rand48_add
-__rand48_mult
-__rand48_seed
__sF
__stack_chk_guard
__system_property_area__
_ctype_
-_ns_flagdata
_tolower_tab_
_toupper_tab_
daylight
environ
-h_errlist
-h_nerr
optarg
opterr
optind
diff --git a/ndk/platforms/android-20/arch-mips/include/machine/fenv.h b/ndk/platforms/android-20/arch-mips/include/machine/fenv.h
index 37f0f9c0b..689e1cb3f 100644
--- a/ndk/platforms/android-20/arch-mips/include/machine/fenv.h
+++ b/ndk/platforms/android-20/arch-mips/include/machine/fenv.h
@@ -87,19 +87,12 @@ typedef __uint32_t fexcept_t;
#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \
FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
-#define _FCSR_CAUSE_SHIFT 10
-#define _ENABLE_SHIFT 5
-#define _FCSR_ENABLE_MASK (FE_ALL_EXCEPT << _ENABLE_SHIFT)
-
/* Rounding modes */
#define FE_TONEAREST 0x0000
#define FE_TOWARDZERO 0x0001
#define FE_UPWARD 0x0002
#define FE_DOWNWARD 0x0003
-#define _FCSR_RMODE_SHIFT 0
-#define _FCSR_RMASK 0x3
-
__END_DECLS
#endif /* !_MIPS_FENV_H_ */
diff --git a/ndk/platforms/android-20/arch-mips/lib/libc.a b/ndk/platforms/android-20/arch-mips/lib/libc.a
index a4ffc8ebb..fa74c929d 100644
--- a/ndk/platforms/android-20/arch-mips/lib/libc.a
+++ b/ndk/platforms/android-20/arch-mips/lib/libc.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-mips/lib/libm.a b/ndk/platforms/android-20/arch-mips/lib/libm.a
index 1a1782fe2..bd6fe98ce 100644
--- a/ndk/platforms/android-20/arch-mips/lib/libm.a
+++ b/ndk/platforms/android-20/arch-mips/lib/libm.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-mips/lib/libz.a b/ndk/platforms/android-20/arch-mips/lib/libz.a
index 35ee3e287..19ecf3f56 100644
--- a/ndk/platforms/android-20/arch-mips/lib/libz.a
+++ b/ndk/platforms/android-20/arch-mips/lib/libz.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-mips/symbols/libc.so.functions.txt b/ndk/platforms/android-20/arch-mips/symbols/libc.so.functions.txt
index c7f4debdd..61e1429aa 100644
--- a/ndk/platforms/android-20/arch-mips/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-20/arch-mips/symbols/libc.so.functions.txt
@@ -1,6 +1,3 @@
-MD5_Final
-MD5_Init
-MD5_Update
SHA1Final
SHA1Init
SHA1Transform
@@ -57,18 +54,8 @@ __divdi3
__dn_comp
__dn_count_labels
__dn_skipname
-__dorand48
__epoll_pwait
__errno
-__evAddTime
-__evCmpTime
-__evConsIovec
-__evConsTime
-__evNowTime
-__evSubTime
-__evTimeSpec
-__evTimeVal
-__evUTCTime
__exit
__fcntl64
__fgets_chk
@@ -87,6 +74,7 @@ __get_h_errno
__get_tls
__getcpu
__getcwd
+__getdents64
__getpriority
__hostalias
__ioctl
@@ -104,47 +92,15 @@ __isnormalf
__isnormall
__libc_current_sigrtmax
__libc_current_sigrtmin
-__libc_fini
__libc_init
__llseek
__loc_aton
__loc_ntoa
-__memcmp16
__memcpy_chk
__memmove_chk
__memset_chk
__mmap2
__moddi3
-__ns_format_ttl
-__ns_get16
-__ns_get32
-__ns_initparse
-__ns_makecanon
-__ns_msg_getflag
-__ns_name_compress
-__ns_name_eq
-__ns_name_labels
-__ns_name_length
-__ns_name_map
-__ns_name_ntol
-__ns_name_ntop
-__ns_name_owned
-__ns_name_pack
-__ns_name_pton
-__ns_name_pton2
-__ns_name_rollback
-__ns_name_skip
-__ns_name_uncompress
-__ns_name_unpack
-__ns_name_unpack2
-__ns_parserr
-__ns_parserr2
-__ns_put16
-__ns_put32
-__ns_samename
-__ns_skiprr
-__ns_sprintrr
-__ns_sprintrrf
__open
__open_2
__openat
@@ -158,8 +114,6 @@ __p_option
__p_query
__p_rcode
__p_secstodate
-__p_section
-__p_sockun
__p_time
__p_type
__popcountsi2
@@ -182,39 +136,25 @@ __register_frame_info_table_bases
__register_frame_table
__res_close
__res_dnok
-__res_get_nibblesuffix
-__res_get_nibblesuffix2
-__res_get_state
-__res_get_static
-__res_getservers
__res_hnok
__res_hostalias
__res_isourserver
__res_mailok
__res_nameinquery
-__res_nametoclass
-__res_nametotype
__res_nclose
-__res_ndestroy
__res_ninit
__res_nmkquery
-__res_nopt
__res_nquery
__res_nquerydomain
__res_nsearch
__res_nsend
-__res_opt
__res_ownok
-__res_pquery
-__res_put_state
__res_queriesmatch
__res_querydomain
__res_randomid
__res_send
__res_send_setqhook
__res_send_setrhook
-__res_setservers
-__res_vinit
__rt_sigaction
__rt_sigpending
__rt_sigprocmask
@@ -302,10 +242,7 @@ alphasort
alphasort64
android_getaddrinfofornet
android_gethostbyaddrfornet
-android_gethostbyaddrfornet_proxy
-android_gethostbyaddrfornet_real
android_gethostbynamefornet
-android_getnameinfofornet
arc4random
arc4random_addrandom
arc4random_buf
@@ -331,6 +268,8 @@ bsd_signal
bsearch
btowc
bzero
+c16rtomb
+c32rtomb
cacheflush
calloc
capget
@@ -372,28 +311,8 @@ dirfd
dirname
dirname_r
div
-dlbulk_free
-dlcalloc
-dlfree
-dlindependent_calloc
-dlindependent_comalloc
-dlmallinfo
-dlmalloc
-dlmalloc_footprint
-dlmalloc_footprint_limit
dlmalloc_inspect_all
-dlmalloc_max_footprint
-dlmalloc_set_footprint_limit
-dlmalloc_stats
dlmalloc_trim
-dlmalloc_usable_size
-dlmallopt
-dlmemalign
-dlposix_memalign
-dlpvalloc
-dlrealloc
-dlrealloc_in_place
-dlvalloc
dn_expand
dprintf
drand48
@@ -570,7 +489,6 @@ gets
getservbyname
getservbyport
getservent
-getservent_r
getsid
getsockname
getsockopt
@@ -601,20 +519,17 @@ inet_lnaof
inet_makeaddr
inet_netof
inet_network
-inet_nsap_addr
-inet_nsap_ntoa
inet_ntoa
inet_ntop
inet_pton
init_module
initgroups
+initstate
inotify_add_watch
inotify_init
inotify_init1
inotify_rm_watch
ioctl
-ioprio_get
-ioprio_set
isalnum
isalpha
isascii
@@ -638,6 +553,7 @@ isnormalf
isnormall
isprint
ispunct
+issetugid
isspace
isupper
iswalnum
@@ -678,7 +594,6 @@ localtime64_r
localtime_r
localtime_tz
longjmp
-longjmperror
lrand48
lremovexattr
lsearch
@@ -692,6 +607,8 @@ mallinfo
malloc
malloc_usable_size
mbrlen
+mbrtoc16
+mbrtoc32
mbrtowc
mbsinit
mbsnrtowcs
@@ -740,7 +657,6 @@ nftw
nftw64
nice
nrand48
-nsdispatch
ntohl
ntohs
open
@@ -759,7 +675,6 @@ pipe
pipe2
poll
popen
-posix2time
posix_fallocate
posix_fallocate64
posix_memalign
@@ -870,6 +785,9 @@ pwrite64
qsort
quick_exit
raise
+rand
+rand_r
+random
read
readahead
readdir
@@ -898,8 +816,6 @@ res_init
res_mkquery
res_query
res_search
-res_setmark
-res_setnetid
rewind
rewinddir
rmdir
@@ -964,6 +880,7 @@ setrlimit64
setservent
setsid
setsockopt
+setstate
settimeofday
setuid
setusershell
@@ -994,7 +911,9 @@ snprintf
socket
socketpair
sprintf
+srand
srand48
+srandom
sscanf
stat
stat64
@@ -1079,7 +998,6 @@ tempnam
tfind
tgkill
time
-time2posix
timegm
timegm64
timelocal
@@ -1107,7 +1025,6 @@ tsearch
ttyname
ttyname_r
tzset
-tzsetwall
umask
umount
umount2
diff --git a/ndk/platforms/android-20/arch-mips/symbols/libc.so.variables.txt b/ndk/platforms/android-20/arch-mips/symbols/libc.so.variables.txt
index 561f968a1..785e924a7 100644
--- a/ndk/platforms/android-20/arch-mips/symbols/libc.so.variables.txt
+++ b/ndk/platforms/android-20/arch-mips/symbols/libc.so.variables.txt
@@ -2,35 +2,23 @@ _C_ctype_
_C_tolower_
_C_toupper_
_ZSt7nothrow
-__atexit
-__atexit_invalid
__bionic_brk
__isthreaded
-__libc_malloc_default_dispatch
__libc_malloc_dispatch
-__p_cert_syms
__p_class_syms
-__p_key_syms
-__p_rcode_syms
__p_type_syms
__page_shift
__page_size
__popcount_tab
__progname
-__rand48_add
-__rand48_mult
-__rand48_seed
__sF
__stack_chk_guard
__system_property_area__
_ctype_
-_ns_flagdata
_tolower_tab_
_toupper_tab_
daylight
environ
-h_errlist
-h_nerr
optarg
opterr
optind
diff --git a/ndk/platforms/android-20/arch-mips64/include/machine/fenv.h b/ndk/platforms/android-20/arch-mips64/include/machine/fenv.h
index 37f0f9c0b..689e1cb3f 100644
--- a/ndk/platforms/android-20/arch-mips64/include/machine/fenv.h
+++ b/ndk/platforms/android-20/arch-mips64/include/machine/fenv.h
@@ -87,19 +87,12 @@ typedef __uint32_t fexcept_t;
#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \
FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
-#define _FCSR_CAUSE_SHIFT 10
-#define _ENABLE_SHIFT 5
-#define _FCSR_ENABLE_MASK (FE_ALL_EXCEPT << _ENABLE_SHIFT)
-
/* Rounding modes */
#define FE_TONEAREST 0x0000
#define FE_TOWARDZERO 0x0001
#define FE_UPWARD 0x0002
#define FE_DOWNWARD 0x0003
-#define _FCSR_RMODE_SHIFT 0
-#define _FCSR_RMASK 0x3
-
__END_DECLS
#endif /* !_MIPS_FENV_H_ */
diff --git a/ndk/platforms/android-20/arch-mips64/lib64/libc.a b/ndk/platforms/android-20/arch-mips64/lib64/libc.a
index 12d5f11fa..a9a58d270 100644
--- a/ndk/platforms/android-20/arch-mips64/lib64/libc.a
+++ b/ndk/platforms/android-20/arch-mips64/lib64/libc.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-mips64/lib64/libm.a b/ndk/platforms/android-20/arch-mips64/lib64/libm.a
index 21c390bdb..747dc7654 100644
--- a/ndk/platforms/android-20/arch-mips64/lib64/libm.a
+++ b/ndk/platforms/android-20/arch-mips64/lib64/libm.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-mips64/lib64/libstdc++.a b/ndk/platforms/android-20/arch-mips64/lib64/libstdc++.a
index 33d8bd939..59b6a85a3 100644
--- a/ndk/platforms/android-20/arch-mips64/lib64/libstdc++.a
+++ b/ndk/platforms/android-20/arch-mips64/lib64/libstdc++.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-mips64/lib64/libz.a b/ndk/platforms/android-20/arch-mips64/lib64/libz.a
index f9ca4866f..8c25fff99 100644
--- a/ndk/platforms/android-20/arch-mips64/lib64/libz.a
+++ b/ndk/platforms/android-20/arch-mips64/lib64/libz.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-mips64/symbols/libc.so.functions.txt b/ndk/platforms/android-20/arch-mips64/symbols/libc.so.functions.txt
index a8cec1d0e..aca418c3b 100644
--- a/ndk/platforms/android-20/arch-mips64/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-20/arch-mips64/symbols/libc.so.functions.txt
@@ -1,6 +1,3 @@
-MD5_Final
-MD5_Init
-MD5_Update
SHA1Final
SHA1Init
SHA1Transform
@@ -36,7 +33,6 @@ __FD_CLR_chk
__FD_ISSET_chk
__FD_SET_chk
__android_set_abort_message
-__ashlti3
__assert
__assert2
__b64_ntop
@@ -54,17 +50,7 @@ __deregister_frame_info_bases
__dn_comp
__dn_count_labels
__dn_skipname
-__dorand48
__errno
-__evAddTime
-__evCmpTime
-__evConsIovec
-__evConsTime
-__evNowTime
-__evSubTime
-__evTimeSpec
-__evTimeVal
-__evUTCTime
__fgets_chk
__findenv
__fp_nquery
@@ -90,46 +76,13 @@ __isnormalf
__isnormall
__libc_current_sigrtmax
__libc_current_sigrtmin
-__libc_fini
__libc_init
__loc_aton
__loc_ntoa
-__lshrti3
-__memcmp16
__memcpy_chk
__memmove_chk
__memset_chk
__multf3
-__ns_format_ttl
-__ns_get16
-__ns_get32
-__ns_initparse
-__ns_makecanon
-__ns_msg_getflag
-__ns_name_compress
-__ns_name_eq
-__ns_name_labels
-__ns_name_length
-__ns_name_map
-__ns_name_ntol
-__ns_name_ntop
-__ns_name_owned
-__ns_name_pack
-__ns_name_pton
-__ns_name_pton2
-__ns_name_rollback
-__ns_name_skip
-__ns_name_uncompress
-__ns_name_unpack
-__ns_name_unpack2
-__ns_parserr
-__ns_parserr2
-__ns_put16
-__ns_put32
-__ns_samename
-__ns_skiprr
-__ns_sprintrr
-__ns_sprintrrf
__open_2
__openat_2
__p_cdname
@@ -141,11 +94,8 @@ __p_option
__p_query
__p_rcode
__p_secstodate
-__p_section
-__p_sockun
__p_time
__p_type
-__pack_t
__popcountdi2
__pthread_cleanup_pop
__pthread_cleanup_push
@@ -162,39 +112,25 @@ __register_frame_info_table_bases
__register_frame_table
__res_close
__res_dnok
-__res_get_nibblesuffix
-__res_get_nibblesuffix2
-__res_get_state
-__res_get_static
-__res_getservers
__res_hnok
__res_hostalias
__res_isourserver
__res_mailok
__res_nameinquery
-__res_nametoclass
-__res_nametotype
__res_nclose
-__res_ndestroy
__res_ninit
__res_nmkquery
-__res_nopt
__res_nquery
__res_nquerydomain
__res_nsearch
__res_nsend
-__res_opt
__res_ownok
-__res_pquery
-__res_put_state
__res_queriesmatch
__res_querydomain
__res_randomid
__res_send
__res_send_setqhook
__res_send_setrhook
-__res_setservers
-__res_vinit
__sched_cpualloc
__sched_cpucount
__sched_cpufree
@@ -232,7 +168,6 @@ __system_property_set_filename
__system_property_update
__system_property_wait_any
__umask_chk
-__unpack_t
__vsnprintf_chk
__vsprintf_chk
_exit
@@ -257,10 +192,7 @@ alphasort
alphasort64
android_getaddrinfofornet
android_gethostbyaddrfornet
-android_gethostbyaddrfornet_proxy
-android_gethostbyaddrfornet_real
android_gethostbynamefornet
-android_getnameinfofornet
arc4random
arc4random_addrandom
arc4random_buf
@@ -276,14 +208,13 @@ atol
atoll
basename
basename_r
-bcopy
bind
bindresvport
brk
-bsd_signal
bsearch
btowc
-bzero
+c16rtomb
+c32rtomb
calloc
capget
capset
@@ -308,7 +239,6 @@ clone
close
closedir
closelog
-closelog_r
cmsg_nxthdr
connect
creat
@@ -322,28 +252,8 @@ dirfd
dirname
dirname_r
div
-dlbulk_free
-dlcalloc
-dlfree
-dlindependent_calloc
-dlindependent_comalloc
-dlmallinfo
-dlmalloc
-dlmalloc_footprint
-dlmalloc_footprint_limit
dlmalloc_inspect_all
-dlmalloc_max_footprint
-dlmalloc_set_footprint_limit
-dlmalloc_stats
dlmalloc_trim
-dlmalloc_usable_size
-dlmallopt
-dlmemalign
-dlposix_memalign
-dlpvalloc
-dlrealloc
-dlrealloc_in_place
-dlvalloc
dn_expand
dprintf
drand48
@@ -439,7 +349,6 @@ fstatvfs64
fsync
ftell
ftello
-ftime
ftok
ftruncate
ftruncate64
@@ -468,8 +377,6 @@ getchar
getchar_unlocked
getcwd
getdelim
-getdents
-getdtablesize
getegid
getenv
geteuid
@@ -519,7 +426,6 @@ gets
getservbyname
getservbyport
getservent
-getservent_r
getsid
getsockname
getsockopt
@@ -541,27 +447,23 @@ if_indextoname
if_nametoindex
imaxabs
imaxdiv
-index
inet_addr
inet_aton
inet_lnaof
inet_makeaddr
inet_netof
inet_network
-inet_nsap_addr
-inet_nsap_ntoa
inet_ntoa
inet_ntop
inet_pton
init_module
initgroups
+initstate
inotify_add_watch
inotify_init
inotify_init1
inotify_rm_watch
ioctl
-ioprio_get
-ioprio_set
isalnum
isalpha
isascii
@@ -623,7 +525,6 @@ localtime
localtime_r
localtime_tz
longjmp
-longjmperror
lrand48
lremovexattr
lsearch
@@ -637,6 +538,8 @@ mallinfo
malloc
malloc_usable_size
mbrlen
+mbrtoc16
+mbrtoc32
mbrtowc
mbsinit
mbsnrtowcs
@@ -683,7 +586,6 @@ nftw
nftw64
nice
nrand48
-nsdispatch
ntohl
ntohs
open
@@ -692,7 +594,6 @@ openat
openat64
opendir
openlog
-openlog_r
pathconf
pause
pclose
@@ -702,7 +603,6 @@ pipe
pipe2
poll
popen
-posix2time
posix_fallocate
posix_fallocate64
posix_memalign
@@ -798,15 +698,16 @@ putchar_unlocked
putenv
puts
pututline
-putw
putwc
putwchar
-pvalloc
pwrite
pwrite64
qsort
quick_exit
raise
+rand
+rand_r
+random
read
readahead
readdir
@@ -835,8 +736,6 @@ res_init
res_mkquery
res_query
res_search
-res_setmark
-res_setnetid
rewind
rewinddir
rmdir
@@ -885,7 +784,6 @@ setjmp
setlinebuf
setlocale
setlogmask
-setlogmask_r
setmntent
setns
setpgid
@@ -901,6 +799,7 @@ setrlimit64
setservent
setsid
setsockopt
+setstate
settimeofday
setuid
setusershell
@@ -931,7 +830,9 @@ snprintf
socket
socketpair
sprintf
+srand
srand48
+srandom
sscanf
stat
stat64
@@ -995,9 +896,7 @@ syscall
sysconf
sysinfo
syslog
-syslog_r
system
-sysv_signal
tcdrain
tcflow
tcflush
@@ -1013,7 +912,6 @@ tempnam
tfind
tgkill
time
-time2posix
timegm
timelocal
timer_create
@@ -1038,7 +936,6 @@ tsearch
ttyname
ttyname_r
tzset
-tzsetwall
umask
umount
umount2
@@ -1056,7 +953,6 @@ utime
utimensat
utimes
utmpname
-valloc
vasprintf
vdprintf
verr
@@ -1074,13 +970,11 @@ vsscanf
vswprintf
vswscanf
vsyslog
-vsyslog_r
vwarn
vwarnx
vwprintf
vwscanf
wait
-wait3
wait4
waitid
waitpid
@@ -1123,7 +1017,6 @@ wcstombs
wcstoul
wcstoull
wcstoumax
-wcswcs
wcswidth
wcsxfrm
wctob
diff --git a/ndk/platforms/android-20/arch-mips64/symbols/libc.so.variables.txt b/ndk/platforms/android-20/arch-mips64/symbols/libc.so.variables.txt
index 673b5c833..81153639f 100644
--- a/ndk/platforms/android-20/arch-mips64/symbols/libc.so.variables.txt
+++ b/ndk/platforms/android-20/arch-mips64/symbols/libc.so.variables.txt
@@ -2,33 +2,19 @@ _C_ctype_
_C_tolower_
_C_toupper_
_ZSt7nothrow
-__atexit
-__atexit_invalid
__isthreaded
-__libc_malloc_default_dispatch
__libc_malloc_dispatch
-__p_cert_syms
__p_class_syms
-__p_key_syms
-__p_rcode_syms
__p_type_syms
-__popcount_tab
__progname
-__rand48_add
-__rand48_mult
-__rand48_seed
__sF
__stack_chk_guard
__system_property_area__
-__thenan_tf
_ctype_
-_ns_flagdata
_tolower_tab_
_toupper_tab_
daylight
environ
-h_errlist
-h_nerr
optarg
opterr
optind
diff --git a/ndk/platforms/android-20/arch-mips64/symbols/libm.so.functions.txt b/ndk/platforms/android-20/arch-mips64/symbols/libm.so.functions.txt
index 5d38fe639..82e7a579f 100644
--- a/ndk/platforms/android-20/arch-mips64/symbols/libm.so.functions.txt
+++ b/ndk/platforms/android-20/arch-mips64/symbols/libm.so.functions.txt
@@ -5,30 +5,18 @@ __extenddftf2
__extendsftf2
__fixtfdi
__fixtfsi
-__fixunstfdi
-__fixunstfsi
__floatsitf
-__floatunditf
-__floatunsitf
-__fpcmp_parts_t
__getf2
__gttf2
__letf2
__lttf2
-__make_dp
-__make_fp
-__make_tp
__netf2
-__pack_d
-__pack_f
__signbit
__signbitf
__signbitl
__subtf3
__trunctfdf2
__trunctfsf2
-__unpack_d
-__unpack_f
acos
acosf
acosh
diff --git a/ndk/platforms/android-20/arch-x86/include/machine/fenv.h b/ndk/platforms/android-20/arch-x86/include/machine/fenv.h
index f3fabb641..de45add47 100644
--- a/ndk/platforms/android-20/arch-x86/include/machine/fenv.h
+++ b/ndk/platforms/android-20/arch-x86/include/machine/fenv.h
@@ -63,8 +63,6 @@ typedef __uint16_t fexcept_t;
#define FE_DOWNWARD 0x0400
#define FE_UPWARD 0x0800
#define FE_TOWARDZERO 0x0c00
-#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
- FE_UPWARD | FE_TOWARDZERO)
__END_DECLS
diff --git a/ndk/platforms/android-20/arch-x86/lib/libc.a b/ndk/platforms/android-20/arch-x86/lib/libc.a
index b6fe8e11a..648dd666c 100644
--- a/ndk/platforms/android-20/arch-x86/lib/libc.a
+++ b/ndk/platforms/android-20/arch-x86/lib/libc.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-x86/lib/libm.a b/ndk/platforms/android-20/arch-x86/lib/libm.a
index 370a4efd6..5b75f1d44 100644
--- a/ndk/platforms/android-20/arch-x86/lib/libm.a
+++ b/ndk/platforms/android-20/arch-x86/lib/libm.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-x86/lib/libstdc++.a b/ndk/platforms/android-20/arch-x86/lib/libstdc++.a
index 0ffe2d63e..73adc5f83 100644
--- a/ndk/platforms/android-20/arch-x86/lib/libstdc++.a
+++ b/ndk/platforms/android-20/arch-x86/lib/libstdc++.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-x86/lib/libz.a b/ndk/platforms/android-20/arch-x86/lib/libz.a
index 09166823f..75ae50e2f 100644
--- a/ndk/platforms/android-20/arch-x86/lib/libz.a
+++ b/ndk/platforms/android-20/arch-x86/lib/libz.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-x86/symbols/libc.so.functions.txt b/ndk/platforms/android-20/arch-x86/symbols/libc.so.functions.txt
index 735729ba9..5e02c5091 100644
--- a/ndk/platforms/android-20/arch-x86/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-20/arch-x86/symbols/libc.so.functions.txt
@@ -1,6 +1,3 @@
-MD5_Final
-MD5_Init
-MD5_Update
SHA1Final
SHA1Init
SHA1Transform
@@ -57,18 +54,8 @@ __divdi3
__dn_comp
__dn_count_labels
__dn_skipname
-__dorand48
__epoll_pwait
__errno
-__evAddTime
-__evCmpTime
-__evConsIovec
-__evConsTime
-__evNowTime
-__evSubTime
-__evTimeSpec
-__evTimeVal
-__evUTCTime
__exit
__fcntl64
__fgets_chk
@@ -87,6 +74,7 @@ __get_h_errno
__get_tls
__getcpu
__getcwd
+__getdents64
__getpriority
__hostalias
__ioctl
@@ -104,47 +92,15 @@ __isnormalf
__isnormall
__libc_current_sigrtmax
__libc_current_sigrtmin
-__libc_fini
__libc_init
__llseek
__loc_aton
__loc_ntoa
-__memcmp16
__memcpy_chk
__memmove_chk
__memset_chk
__mmap2
__moddi3
-__ns_format_ttl
-__ns_get16
-__ns_get32
-__ns_initparse
-__ns_makecanon
-__ns_msg_getflag
-__ns_name_compress
-__ns_name_eq
-__ns_name_labels
-__ns_name_length
-__ns_name_map
-__ns_name_ntol
-__ns_name_ntop
-__ns_name_owned
-__ns_name_pack
-__ns_name_pton
-__ns_name_pton2
-__ns_name_rollback
-__ns_name_skip
-__ns_name_uncompress
-__ns_name_unpack
-__ns_name_unpack2
-__ns_parserr
-__ns_parserr2
-__ns_put16
-__ns_put32
-__ns_samename
-__ns_skiprr
-__ns_sprintrr
-__ns_sprintrrf
__open
__open_2
__openat
@@ -158,8 +114,6 @@ __p_option
__p_query
__p_rcode
__p_secstodate
-__p_section
-__p_sockun
__p_time
__p_type
__popcountsi2
@@ -182,39 +136,25 @@ __register_frame_info_table_bases
__register_frame_table
__res_close
__res_dnok
-__res_get_nibblesuffix
-__res_get_nibblesuffix2
-__res_get_state
-__res_get_static
-__res_getservers
__res_hnok
__res_hostalias
__res_isourserver
__res_mailok
__res_nameinquery
-__res_nametoclass
-__res_nametotype
__res_nclose
-__res_ndestroy
__res_ninit
__res_nmkquery
-__res_nopt
__res_nquery
__res_nquerydomain
__res_nsearch
__res_nsend
-__res_opt
__res_ownok
-__res_pquery
-__res_put_state
__res_queriesmatch
__res_querydomain
__res_randomid
__res_send
__res_send_setqhook
__res_send_setrhook
-__res_setservers
-__res_vinit
__rt_sigaction
__rt_sigpending
__rt_sigprocmask
@@ -299,10 +239,7 @@ alphasort
alphasort64
android_getaddrinfofornet
android_gethostbyaddrfornet
-android_gethostbyaddrfornet_proxy
-android_gethostbyaddrfornet_real
android_gethostbynamefornet
-android_getnameinfofornet
arc4random
arc4random_addrandom
arc4random_buf
@@ -328,6 +265,8 @@ bsd_signal
bsearch
btowc
bzero
+c16rtomb
+c32rtomb
calloc
capget
capset
@@ -368,28 +307,8 @@ dirfd
dirname
dirname_r
div
-dlbulk_free
-dlcalloc
-dlfree
-dlindependent_calloc
-dlindependent_comalloc
-dlmallinfo
-dlmalloc
-dlmalloc_footprint
-dlmalloc_footprint_limit
dlmalloc_inspect_all
-dlmalloc_max_footprint
-dlmalloc_set_footprint_limit
-dlmalloc_stats
dlmalloc_trim
-dlmalloc_usable_size
-dlmallopt
-dlmemalign
-dlposix_memalign
-dlpvalloc
-dlrealloc
-dlrealloc_in_place
-dlvalloc
dn_expand
dprintf
drand48
@@ -566,7 +485,6 @@ gets
getservbyname
getservbyport
getservent
-getservent_r
getsid
getsockname
getsockopt
@@ -597,20 +515,17 @@ inet_lnaof
inet_makeaddr
inet_netof
inet_network
-inet_nsap_addr
-inet_nsap_ntoa
inet_ntoa
inet_ntop
inet_pton
init_module
initgroups
+initstate
inotify_add_watch
inotify_init
inotify_init1
inotify_rm_watch
ioctl
-ioprio_get
-ioprio_set
isalnum
isalpha
isascii
@@ -634,6 +549,7 @@ isnormalf
isnormall
isprint
ispunct
+issetugid
isspace
isupper
iswalnum
@@ -674,7 +590,6 @@ localtime64_r
localtime_r
localtime_tz
longjmp
-longjmperror
lrand48
lremovexattr
lsearch
@@ -688,6 +603,8 @@ mallinfo
malloc
malloc_usable_size
mbrlen
+mbrtoc16
+mbrtoc32
mbrtowc
mbsinit
mbsnrtowcs
@@ -736,7 +653,6 @@ nftw
nftw64
nice
nrand48
-nsdispatch
ntohl
ntohs
open
@@ -755,7 +671,6 @@ pipe
pipe2
poll
popen
-posix2time
posix_fallocate
posix_fallocate64
posix_memalign
@@ -866,6 +781,9 @@ pwrite64
qsort
quick_exit
raise
+rand
+rand_r
+random
read
readahead
readdir
@@ -894,8 +812,6 @@ res_init
res_mkquery
res_query
res_search
-res_setmark
-res_setnetid
rewind
rewinddir
rmdir
@@ -960,6 +876,7 @@ setrlimit64
setservent
setsid
setsockopt
+setstate
settimeofday
setuid
setusershell
@@ -990,7 +907,9 @@ snprintf
socket
socketpair
sprintf
+srand
srand48
+srandom
sscanf
stat
stat64
@@ -1075,7 +994,6 @@ tempnam
tfind
tgkill
time
-time2posix
timegm
timegm64
timelocal
@@ -1103,7 +1021,6 @@ tsearch
ttyname
ttyname_r
tzset
-tzsetwall
umask
umount
umount2
diff --git a/ndk/platforms/android-20/arch-x86/symbols/libc.so.variables.txt b/ndk/platforms/android-20/arch-x86/symbols/libc.so.variables.txt
index 561f968a1..785e924a7 100644
--- a/ndk/platforms/android-20/arch-x86/symbols/libc.so.variables.txt
+++ b/ndk/platforms/android-20/arch-x86/symbols/libc.so.variables.txt
@@ -2,35 +2,23 @@ _C_ctype_
_C_tolower_
_C_toupper_
_ZSt7nothrow
-__atexit
-__atexit_invalid
__bionic_brk
__isthreaded
-__libc_malloc_default_dispatch
__libc_malloc_dispatch
-__p_cert_syms
__p_class_syms
-__p_key_syms
-__p_rcode_syms
__p_type_syms
__page_shift
__page_size
__popcount_tab
__progname
-__rand48_add
-__rand48_mult
-__rand48_seed
__sF
__stack_chk_guard
__system_property_area__
_ctype_
-_ns_flagdata
_tolower_tab_
_toupper_tab_
daylight
environ
-h_errlist
-h_nerr
optarg
opterr
optind
diff --git a/ndk/platforms/android-20/arch-x86_64/include/machine/fenv.h b/ndk/platforms/android-20/arch-x86_64/include/machine/fenv.h
index 79a4120d9..c2b25ed1a 100644
--- a/ndk/platforms/android-20/arch-x86_64/include/machine/fenv.h
+++ b/ndk/platforms/android-20/arch-x86_64/include/machine/fenv.h
@@ -51,7 +51,6 @@ __BEGIN_DECLS
*/
#define FE_ALL_EXCEPT (FE_INVALID | FE_DENORMAL | FE_DIVBYZERO | \
FE_OVERFLOW | FE_UNDERFLOW | FE_INEXACT)
-#define _SSE_MASK_SHIFT 7
/*
* Each symbol representing the rounding direction, expands to an integer
@@ -65,14 +64,6 @@ __BEGIN_DECLS
#define FE_TOWARDZERO 0xc00
/*
- * The following symbol is simply the bitwise-inclusive OR of all floating-point
- * rounding direction constants defined above.
- */
-#define _X87_ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | \
- FE_TOWARDZERO)
-#define _SSE_ROUND_SHIFT 3
-
-/*
* fenv_t represents the entire floating-point environment.
*/
typedef struct {
diff --git a/ndk/platforms/android-20/arch-x86_64/lib64/libc.a b/ndk/platforms/android-20/arch-x86_64/lib64/libc.a
index 90e031d27..559e23a7c 100644
--- a/ndk/platforms/android-20/arch-x86_64/lib64/libc.a
+++ b/ndk/platforms/android-20/arch-x86_64/lib64/libc.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-x86_64/lib64/libm.a b/ndk/platforms/android-20/arch-x86_64/lib64/libm.a
index 571eb3e57..05f19b6af 100644
--- a/ndk/platforms/android-20/arch-x86_64/lib64/libm.a
+++ b/ndk/platforms/android-20/arch-x86_64/lib64/libm.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-x86_64/lib64/libz.a b/ndk/platforms/android-20/arch-x86_64/lib64/libz.a
index 536a06aa9..6faf41926 100644
--- a/ndk/platforms/android-20/arch-x86_64/lib64/libz.a
+++ b/ndk/platforms/android-20/arch-x86_64/lib64/libz.a
Binary files differ
diff --git a/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.functions.txt b/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.functions.txt
index e6c452bdd..3ac1f024f 100644
--- a/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.functions.txt
@@ -1,6 +1,3 @@
-MD5_Final
-MD5_Init
-MD5_Update
SHA1Final
SHA1Init
SHA1Transform
@@ -53,17 +50,7 @@ __deregister_frame_info_bases
__dn_comp
__dn_count_labels
__dn_skipname
-__dorand48
__errno
-__evAddTime
-__evCmpTime
-__evConsIovec
-__evConsTime
-__evNowTime
-__evSubTime
-__evTimeSpec
-__evTimeVal
-__evUTCTime
__fgets_chk
__findenv
__fp_nquery
@@ -89,45 +76,13 @@ __isnormalf
__isnormall
__libc_current_sigrtmax
__libc_current_sigrtmin
-__libc_fini
__libc_init
__loc_aton
__loc_ntoa
-__memcmp16
__memcpy_chk
__memmove_chk
__memset_chk
__multf3
-__ns_format_ttl
-__ns_get16
-__ns_get32
-__ns_initparse
-__ns_makecanon
-__ns_msg_getflag
-__ns_name_compress
-__ns_name_eq
-__ns_name_labels
-__ns_name_length
-__ns_name_map
-__ns_name_ntol
-__ns_name_ntop
-__ns_name_owned
-__ns_name_pack
-__ns_name_pton
-__ns_name_pton2
-__ns_name_rollback
-__ns_name_skip
-__ns_name_uncompress
-__ns_name_unpack
-__ns_name_unpack2
-__ns_parserr
-__ns_parserr2
-__ns_put16
-__ns_put32
-__ns_samename
-__ns_skiprr
-__ns_sprintrr
-__ns_sprintrrf
__open_2
__openat_2
__p_cdname
@@ -139,8 +94,6 @@ __p_option
__p_query
__p_rcode
__p_secstodate
-__p_section
-__p_sockun
__p_time
__p_type
__popcountdi2
@@ -159,39 +112,25 @@ __register_frame_info_table_bases
__register_frame_table
__res_close
__res_dnok
-__res_get_nibblesuffix
-__res_get_nibblesuffix2
-__res_get_state
-__res_get_static
-__res_getservers
__res_hnok
__res_hostalias
__res_isourserver
__res_mailok
__res_nameinquery
-__res_nametoclass
-__res_nametotype
__res_nclose
-__res_ndestroy
__res_ninit
__res_nmkquery
-__res_nopt
__res_nquery
__res_nquerydomain
__res_nsearch
__res_nsend
-__res_opt
__res_ownok
-__res_pquery
-__res_put_state
__res_queriesmatch
__res_querydomain
__res_randomid
__res_send
__res_send_setqhook
__res_send_setrhook
-__res_setservers
-__res_vinit
__sched_cpualloc
__sched_cpucount
__sched_cpufree
@@ -253,10 +192,7 @@ alphasort
alphasort64
android_getaddrinfofornet
android_gethostbyaddrfornet
-android_gethostbyaddrfornet_proxy
-android_gethostbyaddrfornet_real
android_gethostbynamefornet
-android_getnameinfofornet
arc4random
arc4random_addrandom
arc4random_buf
@@ -272,14 +208,13 @@ atol
atoll
basename
basename_r
-bcopy
bind
bindresvport
brk
-bsd_signal
bsearch
btowc
-bzero
+c16rtomb
+c32rtomb
calloc
capget
capset
@@ -304,7 +239,6 @@ clone
close
closedir
closelog
-closelog_r
cmsg_nxthdr
connect
creat
@@ -318,28 +252,8 @@ dirfd
dirname
dirname_r
div
-dlbulk_free
-dlcalloc
-dlfree
-dlindependent_calloc
-dlindependent_comalloc
-dlmallinfo
-dlmalloc
-dlmalloc_footprint
-dlmalloc_footprint_limit
dlmalloc_inspect_all
-dlmalloc_max_footprint
-dlmalloc_set_footprint_limit
-dlmalloc_stats
dlmalloc_trim
-dlmalloc_usable_size
-dlmallopt
-dlmemalign
-dlposix_memalign
-dlpvalloc
-dlrealloc
-dlrealloc_in_place
-dlvalloc
dn_expand
dprintf
drand48
@@ -435,7 +349,6 @@ fstatvfs64
fsync
ftell
ftello
-ftime
ftok
ftruncate
ftruncate64
@@ -464,8 +377,6 @@ getchar
getchar_unlocked
getcwd
getdelim
-getdents
-getdtablesize
getegid
getenv
geteuid
@@ -515,7 +426,6 @@ gets
getservbyname
getservbyport
getservent
-getservent_r
getsid
getsockname
getsockopt
@@ -537,27 +447,23 @@ if_indextoname
if_nametoindex
imaxabs
imaxdiv
-index
inet_addr
inet_aton
inet_lnaof
inet_makeaddr
inet_netof
inet_network
-inet_nsap_addr
-inet_nsap_ntoa
inet_ntoa
inet_ntop
inet_pton
init_module
initgroups
+initstate
inotify_add_watch
inotify_init
inotify_init1
inotify_rm_watch
ioctl
-ioprio_get
-ioprio_set
isalnum
isalpha
isascii
@@ -619,7 +525,6 @@ localtime
localtime_r
localtime_tz
longjmp
-longjmperror
lrand48
lremovexattr
lsearch
@@ -633,6 +538,8 @@ mallinfo
malloc
malloc_usable_size
mbrlen
+mbrtoc16
+mbrtoc32
mbrtowc
mbsinit
mbsnrtowcs
@@ -679,7 +586,6 @@ nftw
nftw64
nice
nrand48
-nsdispatch
ntohl
ntohs
open
@@ -688,7 +594,6 @@ openat
openat64
opendir
openlog
-openlog_r
pathconf
pause
pclose
@@ -698,7 +603,6 @@ pipe
pipe2
poll
popen
-posix2time
posix_fallocate
posix_fallocate64
posix_memalign
@@ -794,15 +698,16 @@ putchar_unlocked
putenv
puts
pututline
-putw
putwc
putwchar
-pvalloc
pwrite
pwrite64
qsort
quick_exit
raise
+rand
+rand_r
+random
read
readahead
readdir
@@ -831,8 +736,6 @@ res_init
res_mkquery
res_query
res_search
-res_setmark
-res_setnetid
rewind
rewinddir
rmdir
@@ -881,7 +784,6 @@ setjmp
setlinebuf
setlocale
setlogmask
-setlogmask_r
setmntent
setns
setpgid
@@ -897,6 +799,7 @@ setrlimit64
setservent
setsid
setsockopt
+setstate
settimeofday
setuid
setusershell
@@ -927,7 +830,9 @@ snprintf
socket
socketpair
sprintf
+srand
srand48
+srandom
sscanf
stat
stat64
@@ -991,9 +896,7 @@ syscall
sysconf
sysinfo
syslog
-syslog_r
system
-sysv_signal
tcdrain
tcflow
tcflush
@@ -1009,7 +912,6 @@ tempnam
tfind
tgkill
time
-time2posix
timegm
timelocal
timer_create
@@ -1034,7 +936,6 @@ tsearch
ttyname
ttyname_r
tzset
-tzsetwall
umask
umount
umount2
@@ -1052,7 +953,6 @@ utime
utimensat
utimes
utmpname
-valloc
vasprintf
vdprintf
verr
@@ -1070,13 +970,11 @@ vsscanf
vswprintf
vswscanf
vsyslog
-vsyslog_r
vwarn
vwarnx
vwprintf
vwscanf
wait
-wait3
wait4
waitid
waitpid
@@ -1119,7 +1017,6 @@ wcstombs
wcstoul
wcstoull
wcstoumax
-wcswcs
wcswidth
wcsxfrm
wctob
diff --git a/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.variables.txt b/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.variables.txt
index 20b22bcb1..4e8b2d89f 100644
--- a/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.variables.txt
+++ b/ndk/platforms/android-20/arch-x86_64/symbols/libc.so.variables.txt
@@ -2,32 +2,20 @@ _C_ctype_
_C_tolower_
_C_toupper_
_ZSt7nothrow
-__atexit
-__atexit_invalid
__isthreaded
-__libc_malloc_default_dispatch
__libc_malloc_dispatch
-__p_cert_syms
__p_class_syms
-__p_key_syms
-__p_rcode_syms
__p_type_syms
__popcount_tab
__progname
-__rand48_add
-__rand48_mult
-__rand48_seed
__sF
__stack_chk_guard
__system_property_area__
_ctype_
-_ns_flagdata
_tolower_tab_
_toupper_tab_
daylight
environ
-h_errlist
-h_nerr
optarg
opterr
optind
diff --git a/ndk/platforms/android-20/include/dirent.h b/ndk/platforms/android-20/include/dirent.h
index 71eb2e71e..a849a61f1 100644
--- a/ndk/platforms/android-20/include/dirent.h
+++ b/ndk/platforms/android-20/include/dirent.h
@@ -75,7 +75,6 @@ extern int alphasort(const struct dirent**, const struct dirent**);
extern int alphasort64(const struct dirent64**, const struct dirent64**);
extern int scandir(const char*, struct dirent***, int (*)(const struct dirent*), int (*)(const struct dirent**, const struct dirent**));
extern int scandir64(const char*, struct dirent64***, int (*)(const struct dirent64*), int (*)(const struct dirent64**, const struct dirent64**));
-extern int getdents(unsigned int, struct dirent*, unsigned int);
__END_DECLS
diff --git a/ndk/platforms/android-20/include/errno.h b/ndk/platforms/android-20/include/errno.h
index 2e5ce5f67..1a36b7aad 100644
--- a/ndk/platforms/android-20/include/errno.h
+++ b/ndk/platforms/android-20/include/errno.h
@@ -41,7 +41,7 @@ __BEGIN_DECLS
#endif
/* internal function returning the address of the thread-specific errno */
-extern volatile int* __errno(void);
+extern volatile int* __errno(void) __pure2;
/* a macro expanding to the errno l-value */
#define errno (*__errno())
diff --git a/ndk/platforms/android-20/include/limits.h b/ndk/platforms/android-20/include/limits.h
index dc4590299..fb09657a2 100644
--- a/ndk/platforms/android-20/include/limits.h
+++ b/ndk/platforms/android-20/include/limits.h
@@ -112,7 +112,7 @@
#define SSIZE_MAX LONG_MAX
-#define MB_LEN_MAX 6
+#define MB_LEN_MAX 4
/* New code should use sysconf(_SC_PAGE_SIZE) instead. */
#ifndef PAGE_SIZE
diff --git a/ndk/platforms/android-20/include/malloc.h b/ndk/platforms/android-20/include/malloc.h
index 9a4e32472..e6ea27606 100644
--- a/ndk/platforms/android-20/include/malloc.h
+++ b/ndk/platforms/android-20/include/malloc.h
@@ -35,9 +35,6 @@ extern void free(void* p);
extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
extern size_t malloc_usable_size(const void* p);
-extern void* valloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
-extern void* pvalloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
-
#ifndef STRUCT_MALLINFO_DECLARED
#define STRUCT_MALLINFO_DECLARED 1
struct mallinfo {
diff --git a/ndk/platforms/android-20/include/netdb.h b/ndk/platforms/android-20/include/netdb.h
index ead595435..527d5c196 100644
--- a/ndk/platforms/android-20/include/netdb.h
+++ b/ndk/platforms/android-20/include/netdb.h
@@ -196,6 +196,8 @@ struct addrinfo {
#define SCOPE_DELIMITER '%'
__BEGIN_DECLS
+#pragma GCC visibility push(default)
+
/* BIONIC-BEGIN */
#define h_errno (*__get_h_errno())
int* __get_h_errno(void);
@@ -245,6 +247,7 @@ const char *gai_strerror(int);
void setnetgrent(const char *);
void setservent(int);
+#pragma GCC visibility pop
__END_DECLS
#endif /* !_NETDB_H_ */
diff --git a/ndk/platforms/android-20/include/pthread.h b/ndk/platforms/android-20/include/pthread.h
index 5c9b6263e..29caafc6d 100644
--- a/ndk/platforms/android-20/include/pthread.h
+++ b/ndk/platforms/android-20/include/pthread.h
@@ -226,7 +226,7 @@ int pthread_rwlock_trywrlock(pthread_rwlock_t*) __nonnull((1));
int pthread_rwlock_unlock(pthread_rwlock_t *rwlock) __nonnull((1));
int pthread_rwlock_wrlock(pthread_rwlock_t*) __nonnull((1));
-pthread_t pthread_self(void);
+pthread_t pthread_self(void) __pure2;
int pthread_setname_np(pthread_t, const char*) __nonnull((2));
diff --git a/ndk/platforms/android-20/include/resolv.h b/ndk/platforms/android-20/include/resolv.h
index 36b93ee1e..c8899ed79 100644
--- a/ndk/platforms/android-20/include/resolv.h
+++ b/ndk/platforms/android-20/include/resolv.h
@@ -37,6 +37,7 @@
#include <netinet/in.h>
__BEGIN_DECLS
+#pragma GCC visibility push(default)
struct res_state;
@@ -52,6 +53,7 @@ extern int b64_pton(char const*, u_char*, size_t);
extern int dn_comp(const char*, u_char*, int, u_char**, u_char**);
extern int dn_expand(const u_char*, const u_char*, const u_char*, char*, int);
+#pragma GCC visibility pop
__END_DECLS
#endif /* _RESOLV_H_ */
diff --git a/ndk/platforms/android-20/include/setjmp.h b/ndk/platforms/android-20/include/setjmp.h
index 68fdcef35..02b06f53b 100644
--- a/ndk/platforms/android-20/include/setjmp.h
+++ b/ndk/platforms/android-20/include/setjmp.h
@@ -50,7 +50,6 @@ __BEGIN_DECLS
int _setjmp(jmp_buf);
void _longjmp(jmp_buf, int);
-void longjmperror(void);
int setjmp(jmp_buf);
void longjmp(jmp_buf, int);
diff --git a/ndk/platforms/android-20/include/signal.h b/ndk/platforms/android-20/include/signal.h
index 45c1cdad7..0063b2495 100644
--- a/ndk/platforms/android-20/include/signal.h
+++ b/ndk/platforms/android-20/include/signal.h
@@ -102,8 +102,6 @@ struct sigaction {
extern int sigaction(int, const struct sigaction*, struct sigaction*);
extern sighandler_t signal(int, sighandler_t);
-extern sighandler_t bsd_signal(int, sighandler_t);
-extern sighandler_t sysv_signal(int, sighandler_t);
extern int siginterrupt(int, int);
diff --git a/ndk/platforms/android-20/include/stdio.h b/ndk/platforms/android-20/include/stdio.h
index b026843c5..b9de12141 100644
--- a/ndk/platforms/android-20/include/stdio.h
+++ b/ndk/platforms/android-20/include/stdio.h
@@ -254,7 +254,9 @@ int dprintf(int, const char * __restrict, ...) __printflike(2, 3);
int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
#ifndef __AUDIT__
+#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
char* gets(char*) __warnattr("gets is very unsafe; consider using fgets");
+#endif
int sprintf(char* __restrict, const char* __restrict, ...)
__printflike(2, 3); //__warnattr("sprintf is often misused; please use snprintf");
char* tmpnam(char*) __warnattr("tmpnam possibly used unsafely; consider using mkstemp");
@@ -296,12 +298,10 @@ __END_DECLS
*/
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE
#define L_ctermid 1024 /* size for ctermid(); PATH_MAX */
-#define L_cuserid 9 /* size for cuserid(); UT_NAMESIZE + 1 */
__BEGIN_DECLS
#if 0 /* MISSING FROM BIONIC */
char *ctermid(char *);
-char *cuserid(char *);
#endif /* MISSING */
FILE *fdopen(int, const char *);
int fileno(FILE *);
@@ -339,8 +339,6 @@ int asprintf(char ** __restrict, const char * __restrict, ...)
__printflike(2, 3);
char *fgetln(FILE * __restrict, size_t * __restrict);
int fpurge(FILE *);
-int getw(FILE *);
-int putw(int, FILE *);
void setbuffer(FILE *, char *, int);
int setlinebuf(FILE *);
int vasprintf(char ** __restrict, const char * __restrict,
diff --git a/ndk/platforms/android-20/include/stdlib.h b/ndk/platforms/android-20/include/stdlib.h
index 834dcda51..266aa5e78 100644
--- a/ndk/platforms/android-20/include/stdlib.h
+++ b/ndk/platforms/android-20/include/stdlib.h
@@ -105,20 +105,21 @@ extern void arc4random_stir(void);
extern void arc4random_addrandom(unsigned char *, int);
#define RAND_MAX 0x7fffffff
-static __inline__ int rand(void) {
- return (int)lrand48();
-}
-static __inline__ void srand(unsigned int __s) {
- srand48(__s);
-}
-static __inline__ long random(void)
-{
- return lrand48();
-}
-static __inline__ void srandom(unsigned int __s)
-{
- srand48(__s);
-}
+
+/* Work around x86/x86-64 libvpx build breakage caused by postproc_x86.c. */
+#if (defined(__i386__) || defined(__x86_64__)) && defined(rand)
+#undef rand
+#define __rand lrand48
+#endif
+
+int rand(void);
+int rand_r(unsigned int*);
+void srand(unsigned int);
+
+char* initstate(unsigned int, char*, size_t);
+long random(void);
+char* setstate(char*);
+void srandom(unsigned int);
/* Basic PTY functions. These only work if devpts is mounted! */
@@ -138,21 +139,21 @@ typedef struct {
int rem;
} div_t;
-extern div_t div(int, int);
+extern div_t div(int, int) __pure2;
typedef struct {
long int quot;
long int rem;
} ldiv_t;
-extern ldiv_t ldiv(long, long);
+extern ldiv_t ldiv(long, long) __pure2;
typedef struct {
long long int quot;
long long int rem;
} lldiv_t;
-extern lldiv_t lldiv(long long, long long);
+extern lldiv_t lldiv(long long, long long) __pure2;
/* BSD compatibility. */
extern const char* getprogname(void);
@@ -167,7 +168,7 @@ extern int mbtowc(wchar_t *, const char *, size_t);
extern int wctomb(char *, wchar_t);
extern size_t wcstombs(char *, const wchar_t *, size_t);
-#define MB_CUR_MAX 1
+#define MB_CUR_MAX 4U
#if 0 /* MISSING FROM BIONIC */
extern int on_exit(void (*)(int, void *), void *);
diff --git a/ndk/platforms/android-20/include/string.h b/ndk/platforms/android-20/include/string.h
index c9ae03bce..7727c0ec9 100644
--- a/ndk/platforms/android-20/include/string.h
+++ b/ndk/platforms/android-20/include/string.h
@@ -43,7 +43,6 @@ extern void* memmove(void *, const void *, size_t);
extern void* memset(void *, int, size_t);
extern void* memmem(const void *, size_t, const void *, size_t) __purefunc;
-extern char* index(const char *, int) __purefunc;
extern char* strchr(const char *, int) __purefunc;
extern char* __strchr_chk(const char *, int, size_t);
diff --git a/ndk/platforms/android-20/include/strings.h b/ndk/platforms/android-20/include/strings.h
index e72798b66..c4d5f6cf1 100644
--- a/ndk/platforms/android-20/include/strings.h
+++ b/ndk/platforms/android-20/include/strings.h
@@ -43,20 +43,13 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-void bcopy(const void *, void *, size_t);
-void bzero(void *, size_t);
+#define bcopy(b1, b2, len) (void)(memmove((b2), (b1), (len)))
+#define bzero(b, len) (void)(memset((b), '\0', (len)))
+
int ffs(int);
-char *index(const char *, int);
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, size_t);
-#if defined(__BIONIC_FORTIFY)
-__BIONIC_FORTIFY_INLINE
-void bzero (void *s, size_t n) {
- __builtin___memset_chk(s, '\0', n, __builtin_object_size (s, 0));
-}
-#endif /* defined(__BIONIC_FORTIFY) */
-
__END_DECLS
#endif /* !defined(_STRINGS_H_) */
diff --git a/ndk/platforms/android-20/include/sys/_errdefs.h b/ndk/platforms/android-20/include/sys/_errdefs.h
deleted file mode 100644
index 3eeadf488..000000000
--- a/ndk/platforms/android-20/include/sys/_errdefs.h
+++ /dev/null
@@ -1,170 +0,0 @@
-/*
- * Copyright (C) 2008 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-/* the following corresponds to the error codes of the Linux kernel used by the Android platform
- * these are distinct from the OpenBSD ones, which is why we need to redeclare them here
- *
- * this file may be included several times to define either error constants or their
- * string representation
- */
-
-#ifndef __BIONIC_ERRDEF
-#error "__BIONIC_ERRDEF must be defined before including this file"
-#endif
-__BIONIC_ERRDEF( 0 , 0, "Success" )
-__BIONIC_ERRDEF( EPERM , 1, "Operation not permitted" )
-__BIONIC_ERRDEF( ENOENT , 2, "No such file or directory" )
-__BIONIC_ERRDEF( ESRCH , 3, "No such process" )
-__BIONIC_ERRDEF( EINTR , 4, "Interrupted system call" )
-__BIONIC_ERRDEF( EIO , 5, "I/O error" )
-__BIONIC_ERRDEF( ENXIO , 6, "No such device or address" )
-__BIONIC_ERRDEF( E2BIG , 7, "Argument list too long" )
-__BIONIC_ERRDEF( ENOEXEC , 8, "Exec format error" )
-__BIONIC_ERRDEF( EBADF , 9, "Bad file number" )
-__BIONIC_ERRDEF( ECHILD , 10, "No child processes" )
-__BIONIC_ERRDEF( EAGAIN , 11, "Try again" )
-__BIONIC_ERRDEF( ENOMEM , 12, "Out of memory" )
-__BIONIC_ERRDEF( EACCES , 13, "Permission denied" )
-__BIONIC_ERRDEF( EFAULT , 14, "Bad address" )
-__BIONIC_ERRDEF( ENOTBLK , 15, "Block device required" )
-__BIONIC_ERRDEF( EBUSY , 16, "Device or resource busy" )
-__BIONIC_ERRDEF( EEXIST , 17, "File exists" )
-__BIONIC_ERRDEF( EXDEV , 18, "Cross-device link" )
-__BIONIC_ERRDEF( ENODEV , 19, "No such device" )
-__BIONIC_ERRDEF( ENOTDIR , 20, "Not a directory" )
-__BIONIC_ERRDEF( EISDIR , 21, "Is a directory" )
-__BIONIC_ERRDEF( EINVAL , 22, "Invalid argument" )
-__BIONIC_ERRDEF( ENFILE , 23, "File table overflow" )
-__BIONIC_ERRDEF( EMFILE , 24, "Too many open files" )
-__BIONIC_ERRDEF( ENOTTY , 25, "Not a typewriter" )
-__BIONIC_ERRDEF( ETXTBSY , 26, "Text file busy" )
-__BIONIC_ERRDEF( EFBIG , 27, "File too large" )
-__BIONIC_ERRDEF( ENOSPC , 28, "No space left on device" )
-__BIONIC_ERRDEF( ESPIPE , 29, "Illegal seek" )
-__BIONIC_ERRDEF( EROFS , 30, "Read-only file system" )
-__BIONIC_ERRDEF( EMLINK , 31, "Too many links" )
-__BIONIC_ERRDEF( EPIPE , 32, "Broken pipe" )
-__BIONIC_ERRDEF( EDOM , 33, "Math argument out of domain of func" )
-__BIONIC_ERRDEF( ERANGE , 34, "Math result not representable" )
-__BIONIC_ERRDEF( EDEADLK , 35, "Resource deadlock would occur" )
-__BIONIC_ERRDEF( ENAMETOOLONG , 36, "File name too long" )
-__BIONIC_ERRDEF( ENOLCK , 37, "No record locks available" )
-__BIONIC_ERRDEF( ENOSYS , 38, "Function not implemented" )
-__BIONIC_ERRDEF( ENOTEMPTY , 39, "Directory not empty" )
-__BIONIC_ERRDEF( ELOOP , 40, "Too many symbolic links encountered" )
-__BIONIC_ERRDEF( ENOMSG , 42, "No message of desired type" )
-__BIONIC_ERRDEF( EIDRM , 43, "Identifier removed" )
-__BIONIC_ERRDEF( ECHRNG , 44, "Channel number out of range" )
-__BIONIC_ERRDEF( EL2NSYNC , 45, "Level 2 not synchronized" )
-__BIONIC_ERRDEF( EL3HLT , 46, "Level 3 halted" )
-__BIONIC_ERRDEF( EL3RST , 47, "Level 3 reset" )
-__BIONIC_ERRDEF( ELNRNG , 48, "Link number out of range" )
-__BIONIC_ERRDEF( EUNATCH , 49, "Protocol driver not attached" )
-__BIONIC_ERRDEF( ENOCSI , 50, "No CSI structure available" )
-__BIONIC_ERRDEF( EL2HLT , 51, "Level 2 halted" )
-__BIONIC_ERRDEF( EBADE , 52, "Invalid exchange" )
-__BIONIC_ERRDEF( EBADR , 53, "Invalid request descriptor" )
-__BIONIC_ERRDEF( EXFULL , 54, "Exchange full" )
-__BIONIC_ERRDEF( ENOANO , 55, "No anode" )
-__BIONIC_ERRDEF( EBADRQC , 56, "Invalid request code" )
-__BIONIC_ERRDEF( EBADSLT , 57, "Invalid slot" )
-__BIONIC_ERRDEF( EBFONT , 59, "Bad font file format" )
-__BIONIC_ERRDEF( ENOSTR , 60, "Device not a stream" )
-__BIONIC_ERRDEF( ENODATA , 61, "No data available" )
-__BIONIC_ERRDEF( ETIME , 62, "Timer expired" )
-__BIONIC_ERRDEF( ENOSR , 63, "Out of streams resources" )
-__BIONIC_ERRDEF( ENONET , 64, "Machine is not on the network" )
-__BIONIC_ERRDEF( ENOPKG , 65, "Package not installed" )
-__BIONIC_ERRDEF( EREMOTE , 66, "Object is remote" )
-__BIONIC_ERRDEF( ENOLINK , 67, "Link has been severed" )
-__BIONIC_ERRDEF( EADV , 68, "Advertise error" )
-__BIONIC_ERRDEF( ESRMNT , 69, "Srmount error" )
-__BIONIC_ERRDEF( ECOMM , 70, "Communication error on send" )
-__BIONIC_ERRDEF( EPROTO , 71, "Protocol error" )
-__BIONIC_ERRDEF( EMULTIHOP , 72, "Multihop attempted" )
-__BIONIC_ERRDEF( EDOTDOT , 73, "RFS specific error" )
-__BIONIC_ERRDEF( EBADMSG , 74, "Not a data message" )
-__BIONIC_ERRDEF( EOVERFLOW , 75, "Value too large for defined data type" )
-__BIONIC_ERRDEF( ENOTUNIQ , 76, "Name not unique on network" )
-__BIONIC_ERRDEF( EBADFD , 77, "File descriptor in bad state" )
-__BIONIC_ERRDEF( EREMCHG , 78, "Remote address changed" )
-__BIONIC_ERRDEF( ELIBACC , 79, "Can not access a needed shared library" )
-__BIONIC_ERRDEF( ELIBBAD , 80, "Accessing a corrupted shared library" )
-__BIONIC_ERRDEF( ELIBSCN , 81, ".lib section in a.out corrupted" )
-__BIONIC_ERRDEF( ELIBMAX , 82, "Attempting to link in too many shared libraries" )
-__BIONIC_ERRDEF( ELIBEXEC , 83, "Cannot exec a shared library directly" )
-__BIONIC_ERRDEF( EILSEQ , 84, "Illegal byte sequence" )
-__BIONIC_ERRDEF( ERESTART , 85, "Interrupted system call should be restarted" )
-__BIONIC_ERRDEF( ESTRPIPE , 86, "Streams pipe error" )
-__BIONIC_ERRDEF( EUSERS , 87, "Too many users" )
-__BIONIC_ERRDEF( ENOTSOCK , 88, "Socket operation on non-socket" )
-__BIONIC_ERRDEF( EDESTADDRREQ , 89, "Destination address required" )
-__BIONIC_ERRDEF( EMSGSIZE , 90, "Message too long" )
-__BIONIC_ERRDEF( EPROTOTYPE , 91, "Protocol wrong type for socket" )
-__BIONIC_ERRDEF( ENOPROTOOPT , 92, "Protocol not available" )
-__BIONIC_ERRDEF( EPROTONOSUPPORT, 93, "Protocol not supported" )
-__BIONIC_ERRDEF( ESOCKTNOSUPPORT, 94, "Socket type not supported" )
-__BIONIC_ERRDEF( EOPNOTSUPP , 95, "Operation not supported on transport endpoint" )
-__BIONIC_ERRDEF( EPFNOSUPPORT , 96, "Protocol family not supported" )
-__BIONIC_ERRDEF( EAFNOSUPPORT , 97, "Address family not supported by protocol" )
-__BIONIC_ERRDEF( EADDRINUSE , 98, "Address already in use" )
-__BIONIC_ERRDEF( EADDRNOTAVAIL , 99, "Cannot assign requested address" )
-__BIONIC_ERRDEF( ENETDOWN , 100, "Network is down" )
-__BIONIC_ERRDEF( ENETUNREACH , 101, "Network is unreachable" )
-__BIONIC_ERRDEF( ENETRESET , 102, "Network dropped connection because of reset" )
-__BIONIC_ERRDEF( ECONNABORTED , 103, "Software caused connection abort" )
-__BIONIC_ERRDEF( ECONNRESET , 104, "Connection reset by peer" )
-__BIONIC_ERRDEF( ENOBUFS , 105, "No buffer space available" )
-__BIONIC_ERRDEF( EISCONN , 106, "Transport endpoint is already connected" )
-__BIONIC_ERRDEF( ENOTCONN , 107, "Transport endpoint is not connected" )
-__BIONIC_ERRDEF( ESHUTDOWN , 108, "Cannot send after transport endpoint shutdown" )
-__BIONIC_ERRDEF( ETOOMANYREFS , 109, "Too many references: cannot splice" )
-__BIONIC_ERRDEF( ETIMEDOUT , 110, "Connection timed out" )
-__BIONIC_ERRDEF( ECONNREFUSED , 111, "Connection refused" )
-__BIONIC_ERRDEF( EHOSTDOWN , 112, "Host is down" )
-__BIONIC_ERRDEF( EHOSTUNREACH , 113, "No route to host" )
-__BIONIC_ERRDEF( EALREADY , 114, "Operation already in progress" )
-__BIONIC_ERRDEF( EINPROGRESS , 115, "Operation now in progress" )
-__BIONIC_ERRDEF( ESTALE , 116, "Stale NFS file handle" )
-__BIONIC_ERRDEF( EUCLEAN , 117, "Structure needs cleaning" )
-__BIONIC_ERRDEF( ENOTNAM , 118, "Not a XENIX named type file" )
-__BIONIC_ERRDEF( ENAVAIL , 119, "No XENIX semaphores available" )
-__BIONIC_ERRDEF( EISNAM , 120, "Is a named type file" )
-__BIONIC_ERRDEF( EREMOTEIO , 121, "Remote I/O error" )
-__BIONIC_ERRDEF( EDQUOT , 122, "Quota exceeded" )
-__BIONIC_ERRDEF( ENOMEDIUM , 123, "No medium found" )
-__BIONIC_ERRDEF( EMEDIUMTYPE , 124, "Wrong medium type" )
-__BIONIC_ERRDEF( ECANCELED , 125, "Operation Canceled" )
-__BIONIC_ERRDEF( ENOKEY , 126, "Required key not available" )
-__BIONIC_ERRDEF( EKEYEXPIRED , 127, "Key has expired" )
-__BIONIC_ERRDEF( EKEYREVOKED , 128, "Key has been revoked" )
-__BIONIC_ERRDEF( EKEYREJECTED , 129, "Key was rejected by service" )
-__BIONIC_ERRDEF( EOWNERDEAD , 130, "Owner died" )
-__BIONIC_ERRDEF( ENOTRECOVERABLE, 131, "State not recoverable" )
-
-#undef __BIONIC_ERRDEF
diff --git a/ndk/platforms/android-20/include/sys/_sigdefs.h b/ndk/platforms/android-20/include/sys/_sigdefs.h
deleted file mode 100644
index 44d60d973..000000000
--- a/ndk/platforms/android-20/include/sys/_sigdefs.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (C) 2008 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-/*
- * this header is used to define signal constants and names;
- * it might be included several times
- */
-
-#ifndef __BIONIC_SIGDEF
-#error __BIONIC_SIGDEF not defined
-#endif
-
-__BIONIC_SIGDEF(SIGHUP, "Hangup")
-__BIONIC_SIGDEF(SIGINT, "Interrupt")
-__BIONIC_SIGDEF(SIGQUIT, "Quit")
-__BIONIC_SIGDEF(SIGILL, "Illegal instruction")
-__BIONIC_SIGDEF(SIGTRAP, "Trap")
-__BIONIC_SIGDEF(SIGABRT, "Aborted")
-#ifdef SIGEMT
-__BIONIC_SIGDEF(SIGEMT, "EMT")
-#endif
-__BIONIC_SIGDEF(SIGFPE, "Floating point exception")
-__BIONIC_SIGDEF(SIGKILL, "Killed")
-__BIONIC_SIGDEF(SIGBUS, "Bus error")
-__BIONIC_SIGDEF(SIGSEGV, "Segmentation fault")
-__BIONIC_SIGDEF(SIGPIPE, "Broken pipe")
-__BIONIC_SIGDEF(SIGALRM, "Alarm clock")
-__BIONIC_SIGDEF(SIGTERM, "Terminated")
-__BIONIC_SIGDEF(SIGUSR1, "User signal 1")
-__BIONIC_SIGDEF(SIGUSR2, "User signal 2")
-__BIONIC_SIGDEF(SIGCHLD, "Child exited")
-__BIONIC_SIGDEF(SIGPWR, "Power failure")
-__BIONIC_SIGDEF(SIGWINCH, "Window size changed")
-__BIONIC_SIGDEF(SIGURG, "Urgent I/O condition")
-__BIONIC_SIGDEF(SIGIO, "I/O possible")
-__BIONIC_SIGDEF(SIGSTOP, "Stopped (signal)")
-__BIONIC_SIGDEF(SIGTSTP, "Stopped")
-__BIONIC_SIGDEF(SIGCONT, "Continue")
-__BIONIC_SIGDEF(SIGTTIN, "Stopped (tty input)")
-__BIONIC_SIGDEF(SIGTTOU, "Stopped (tty output)")
-__BIONIC_SIGDEF(SIGVTALRM, "Virtual timer expired")
-__BIONIC_SIGDEF(SIGPROF, "Profiling timer expired")
-__BIONIC_SIGDEF(SIGXCPU, "CPU time limit exceeded")
-__BIONIC_SIGDEF(SIGXFSZ, "File size limit exceeded")
-#if defined(SIGSTKFLT)
-__BIONIC_SIGDEF(SIGSTKFLT, "Stack fault")
-#endif
-__BIONIC_SIGDEF(SIGSYS, "Bad system call")
-
-#undef __BIONIC_SIGDEF
diff --git a/ndk/platforms/android-20/include/sys/_system_properties.h b/ndk/platforms/android-20/include/sys/_system_properties.h
deleted file mode 100644
index 5a681df72..000000000
--- a/ndk/platforms/android-20/include/sys/_system_properties.h
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * Copyright (C) 2008 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _INCLUDE_SYS__SYSTEM_PROPERTIES_H
-#define _INCLUDE_SYS__SYSTEM_PROPERTIES_H
-
-#ifndef _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
-#error you should #include <sys/system_properties.h> instead
-#else
-#include <sys/system_properties.h>
-
-typedef struct prop_msg prop_msg;
-
-#define PROP_AREA_MAGIC 0x504f5250
-#define PROP_AREA_VERSION 0xfc6ed0ab
-#define PROP_AREA_VERSION_COMPAT 0x45434f76
-
-#define PROP_SERVICE_NAME "property_service"
-#define PROP_FILENAME "/dev/__properties__"
-
-#define PA_SIZE (128 * 1024)
-
-#define SERIAL_VALUE_LEN(serial) ((serial) >> 24)
-#define SERIAL_DIRTY(serial) ((serial) & 1)
-
-__BEGIN_DECLS
-
-struct prop_msg
-{
- unsigned cmd;
- char name[PROP_NAME_MAX];
- char value[PROP_VALUE_MAX];
-};
-
-#define PROP_MSG_SETPROP 1
-
-/*
-** Rules:
-**
-** - there is only one writer, but many readers
-** - prop_area.count will never decrease in value
-** - once allocated, a prop_info's name will not change
-** - once allocated, a prop_info's offset will not change
-** - reading a value requires the following steps
-** 1. serial = pi->serial
-** 2. if SERIAL_DIRTY(serial), wait*, then goto 1
-** 3. memcpy(local, pi->value, SERIAL_VALUE_LEN(serial) + 1)
-** 4. if pi->serial != serial, goto 2
-**
-** - writing a value requires the following steps
-** 1. pi->serial = pi->serial | 1
-** 2. memcpy(pi->value, local_value, value_len)
-** 3. pi->serial = (value_len << 24) | ((pi->serial + 1) & 0xffffff)
-*/
-
-#define PROP_PATH_RAMDISK_DEFAULT "/default.prop"
-#define PROP_PATH_SYSTEM_BUILD "/system/build.prop"
-#define PROP_PATH_SYSTEM_DEFAULT "/system/default.prop"
-#define PROP_PATH_LOCAL_OVERRIDE "/data/local.prop"
-#define PROP_PATH_FACTORY "/factory/factory.prop"
-
-/*
-** Map the property area from the specified filename. This
-** method is for testing only.
-*/
-int __system_property_set_filename(const char *filename);
-
-/*
-** Initialize the area to be used to store properties. Can
-** only be done by a single process that has write access to
-** the property area.
-*/
-int __system_property_area_init();
-
-/* Add a new system property. Can only be done by a single
-** process that has write access to the property area, and
-** that process must handle sequencing to ensure the property
-** does not already exist and that only one property is added
-** or updated at a time.
-**
-** Returns 0 on success, -1 if the property area is full.
-*/
-int __system_property_add(const char *name, unsigned int namelen,
- const char *value, unsigned int valuelen);
-
-/* Update the value of a system property returned by
-** __system_property_find. Can only be done by a single process
-** that has write access to the property area, and that process
-** must handle sequencing to ensure that only one property is
-** updated at a time.
-**
-** Returns 0 on success, -1 if the parameters are incorrect.
-*/
-int __system_property_update(prop_info *pi, const char *value, unsigned int len);
-
-/* Read the serial number of a system property returned by
-** __system_property_find.
-**
-** Returns the serial number on success, -1 on error.
-*/
-unsigned int __system_property_serial(const prop_info *pi);
-
-/* Wait for any system property to be updated. Caller must pass
-** in 0 the first time, and the previous return value on each
-** successive call. */
-unsigned int __system_property_wait_any(unsigned int serial);
-
-/* Compatibility functions to support using an old init with a new libc,
- ** mostly for the OTA updater binary. These can be deleted once OTAs from
- ** a pre-K release no longer needed to be supported. */
-const prop_info *__system_property_find_compat(const char *name);
-int __system_property_read_compat(const prop_info *pi, char *name, char *value);
-int __system_property_foreach_compat(
- void (*propfn)(const prop_info *pi, void *cookie),
- void *cookie);
-
-/* Initialize the system properties area in read only mode.
- * Should be done by all processes that need to read system
- * properties.
- *
- * Returns 0 on success, -1 otherwise.
- */
-int __system_properties_init();
-
-__END_DECLS
-
-#endif
-#endif
diff --git a/ndk/platforms/android-20/include/sys/atomics.h b/ndk/platforms/android-20/include/sys/atomics.h
deleted file mode 100644
index 143bc4bc2..000000000
--- a/ndk/platforms/android-20/include/sys/atomics.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright (C) 2008 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#ifndef _SYS_ATOMICS_H
-#define _SYS_ATOMICS_H
-
-#include <sys/cdefs.h>
-#include <sys/time.h>
-
-__BEGIN_DECLS
-
-/* Note: atomic operations that were exported by the C library didn't
- * provide any memory barriers, which created potential issues on
- * multi-core devices. We now define them as inlined calls to
- * GCC sync builtins, which always provide a full barrier.
- *
- * NOTE: The C library still exports atomic functions by the same
- * name to ensure ABI stability for existing NDK machine code.
- *
- * If you are an NDK developer, we encourage you to rebuild your
- * unmodified sources against this header as soon as possible.
- */
-#define __ATOMIC_INLINE__ static __inline__ __attribute__((always_inline))
-
-__ATOMIC_INLINE__ int
-__atomic_cmpxchg(int old_value, int new_value, volatile int* ptr)
-{
- /* We must return 0 on success */
- return __sync_val_compare_and_swap(ptr, old_value, new_value) != old_value;
-}
-
-__ATOMIC_INLINE__ int
-__atomic_swap(int new_value, volatile int *ptr)
-{
- int old_value;
- do {
- old_value = *ptr;
- } while (__sync_val_compare_and_swap(ptr, old_value, new_value) != old_value);
- return old_value;
-}
-
-__ATOMIC_INLINE__ int
-__atomic_dec(volatile int *ptr)
-{
- return __sync_fetch_and_sub (ptr, 1);
-}
-
-__ATOMIC_INLINE__ int
-__atomic_inc(volatile int *ptr)
-{
- return __sync_fetch_and_add (ptr, 1);
-}
-
-
-int __futex_wait(volatile void *ftx, int val, const struct timespec *timeout);
-int __futex_wake(volatile void *ftx, int count);
-
-__END_DECLS
-
-#endif /* _SYS_ATOMICS_H */
diff --git a/ndk/platforms/android-20/include/sys/ioctl.h b/ndk/platforms/android-20/include/sys/ioctl.h
index 49d452c7c..a1014dcee 100644
--- a/ndk/platforms/android-20/include/sys/ioctl.h
+++ b/ndk/platforms/android-20/include/sys/ioctl.h
@@ -38,6 +38,7 @@
#include <asm/ioctls.h>
#include <asm/termbits.h>
#include <sys/ioctl_compat.h>
+#include <linux/tty.h>
__BEGIN_DECLS
diff --git a/ndk/platforms/android-20/include/sys/user.h b/ndk/platforms/android-20/include/sys/user.h
index 705e0e928..6e88d162a 100644
--- a/ndk/platforms/android-20/include/sys/user.h
+++ b/ndk/platforms/android-20/include/sys/user.h
@@ -167,7 +167,7 @@ struct user {
#elif defined(__mips__)
struct user_regs_struct
{
- unsigned long a[180];
+ unsigned long regs[180 / sizeof(unsigned long) + 64];
};
struct user {
diff --git a/ndk/platforms/android-20/include/sys/wait.h b/ndk/platforms/android-20/include/sys/wait.h
index b30b7ec9e..8d9a5f650 100644
--- a/ndk/platforms/android-20/include/sys/wait.h
+++ b/ndk/platforms/android-20/include/sys/wait.h
@@ -47,7 +47,6 @@ __BEGIN_DECLS
extern pid_t wait(int *);
extern pid_t waitpid(pid_t, int *, int);
-extern pid_t wait3(int *, int, struct rusage *);
extern pid_t wait4(pid_t, int *, int, struct rusage *);
/* Posix states that idtype_t should be an enumeration type, but
diff --git a/ndk/platforms/android-20/include/syslog.h b/ndk/platforms/android-20/include/syslog.h
index 4677c1439..a52e81154 100644
--- a/ndk/platforms/android-20/include/syslog.h
+++ b/ndk/platforms/android-20/include/syslog.h
@@ -25,6 +25,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+
#ifndef _SYSLOG_H
#define _SYSLOG_H
@@ -34,7 +35,6 @@
__BEGIN_DECLS
-/* Alert levels */
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
@@ -47,8 +47,6 @@ __BEGIN_DECLS
#define LOG_PRIMASK 7
#define LOG_PRI(x) ((x) & LOG_PRIMASK)
-
-/* Facilities; not actually used */
#define LOG_KERN 0000
#define LOG_USER 0010
#define LOG_MAIL 0020
@@ -73,30 +71,15 @@ __BEGIN_DECLS
#define LOG_FACMASK 01770
#define LOG_FAC(x) (((x) >> 3) & (LOG_FACMASK >> 3))
-#define LOG_MASK(pri) (1 << (pri)) /* mask for one priority */
-#define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) /* all priorities through pri */
-
-/* openlog() flags; only LOG_PID and LOG_PERROR supported */
-#define LOG_PID 0x01 /* include pid with message */
-#define LOG_CONS 0x02 /* write to console on logger error */
-#define LOG_ODELAY 0x04 /* delay connection until syslog() */
-#define LOG_NDELAY 0x08 /* open connection immediately */
-#define LOG_NOWAIT 0x10 /* wait for child processes (unused on linux) */
-#define LOG_PERROR 0x20 /* additional logging to stderr */
-
-/* BIONIC: the following definitions are from OpenBSD's sys/syslog.h
- */
-struct syslog_data {
- int log_file;
- int connected;
- int opened;
- int log_stat;
- const char *log_tag;
- int log_fac;
- int log_mask;
-};
+#define LOG_MASK(pri) (1 << (pri))
+#define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1)
-#define SYSLOG_DATA_INIT {-1, 0, 0, 0, (const char *)0, LOG_USER, 0xff}
+#define LOG_PID 0x01 /* include pid with message */
+#define LOG_CONS 0x02 /* write to console on logger error */
+#define LOG_ODELAY 0x04 /* delay connection until syslog() */
+#define LOG_NDELAY 0x08 /* open connection immediately */
+#define LOG_NOWAIT 0x10 /* wait for child processes (unused on linux) */
+#define LOG_PERROR 0x20 /* additional logging to stderr */
#define _PATH_LOG "/dev/syslog"
@@ -105,11 +88,6 @@ extern void openlog(const char *, int, int);
extern int setlogmask(int);
extern void syslog(int, const char *, ...) __printflike(2, 3);
extern void vsyslog(int, const char *, va_list) __printflike(2, 0);
-extern void closelog_r(struct syslog_data *);
-extern void openlog_r(const char *, int, int, struct syslog_data *);
-extern int setlogmask_r(int, struct syslog_data *);
-extern void syslog_r(int, struct syslog_data *, const char *, ...) __printflike(3, 4);
-extern void vsyslog_r(int, struct syslog_data *, const char *, va_list) __printflike(3, 0);
__END_DECLS
diff --git a/ndk/platforms/android-20/include/time.h b/ndk/platforms/android-20/include/time.h
index 0f86fd38e..0587a2d1b 100644
--- a/ndk/platforms/android-20/include/time.h
+++ b/ndk/platforms/android-20/include/time.h
@@ -36,9 +36,9 @@ __BEGIN_DECLS
#define CLOCKS_PER_SEC 1000000
-extern char* tzname[];
-extern int daylight;
-extern long int timezone;
+extern char* tzname[] __LIBC_ABI_PUBLIC__;
+extern int daylight __LIBC_ABI_PUBLIC__;
+extern long int timezone __LIBC_ABI_PUBLIC__;
struct sigevent;
@@ -58,44 +58,43 @@ struct tm {
#define TM_ZONE tm_zone
-extern time_t time(time_t*);
-extern int nanosleep(const struct timespec*, struct timespec*);
+extern time_t time(time_t*) __LIBC_ABI_PUBLIC__;
+extern int nanosleep(const struct timespec*, struct timespec*) __LIBC_ABI_PUBLIC__;
-extern char* asctime(const struct tm*);
-extern char* asctime_r(const struct tm*, char*);
+extern char* asctime(const struct tm*) __LIBC_ABI_PUBLIC__;
+extern char* asctime_r(const struct tm*, char*) __LIBC_ABI_PUBLIC__;
-extern double difftime(time_t, time_t);
-extern time_t mktime(struct tm*);
+extern double difftime(time_t, time_t) __LIBC_ABI_PUBLIC__;
+extern time_t mktime(struct tm*) __LIBC_ABI_PUBLIC__;
-extern struct tm* localtime(const time_t*);
-extern struct tm* localtime_r(const time_t*, struct tm*);
+extern struct tm* localtime(const time_t*) __LIBC_ABI_PUBLIC__;
+extern struct tm* localtime_r(const time_t*, struct tm*) __LIBC_ABI_PUBLIC__;
-extern struct tm* gmtime(const time_t*);
-extern struct tm* gmtime_r(const time_t*, struct tm*);
+extern struct tm* gmtime(const time_t*) __LIBC_ABI_PUBLIC__;
+extern struct tm* gmtime_r(const time_t*, struct tm*) __LIBC_ABI_PUBLIC__;
-extern char* strptime(const char*, const char*, struct tm*);
-extern size_t strftime(char*, size_t, const char*, const struct tm*);
+extern char* strptime(const char*, const char*, struct tm*) __LIBC_ABI_PUBLIC__;
+extern size_t strftime(char*, size_t, const char*, const struct tm*) __LIBC_ABI_PUBLIC__;
-extern char* ctime(const time_t*);
-extern char* ctime_r(const time_t*, char*);
+extern char* ctime(const time_t*) __LIBC_ABI_PUBLIC__;
+extern char* ctime_r(const time_t*, char*) __LIBC_ABI_PUBLIC__;
-extern void tzset(void);
+extern void tzset(void) __LIBC_ABI_PUBLIC__;
-extern clock_t clock(void);
+extern clock_t clock(void) __LIBC_ABI_PUBLIC__;
-extern int clock_getres(int, struct timespec*);
-extern int clock_gettime(int, struct timespec*);
+extern int clock_getres(int, struct timespec*) __LIBC_ABI_PUBLIC__;
+extern int clock_gettime(int, struct timespec*) __LIBC_ABI_PUBLIC__;
-extern int timer_create(int, struct sigevent*, timer_t*);
-extern int timer_delete(timer_t);
-extern int timer_settime(timer_t, int, const struct itimerspec*, struct itimerspec*);
-extern int timer_gettime(timer_t, struct itimerspec*);
-extern int timer_getoverrun(timer_t);
+extern int timer_create(int, struct sigevent*, timer_t*) __LIBC_ABI_PUBLIC__;
+extern int timer_delete(timer_t) __LIBC_ABI_PUBLIC__;
+extern int timer_settime(timer_t, int, const struct itimerspec*, struct itimerspec*) __LIBC_ABI_PUBLIC__;
+extern int timer_gettime(timer_t, struct itimerspec*) __LIBC_ABI_PUBLIC__;
+extern int timer_getoverrun(timer_t) __LIBC_ABI_PUBLIC__;
-extern time_t timelocal(struct tm*);
-extern time_t timegm(struct tm*);
-extern time_t time2posix(time_t);
-extern time_t posix2time(time_t);
+/* Non-standard extensions that are in the BSDs and glibc. */
+extern time_t timelocal(struct tm*) __LIBC_ABI_PUBLIC__;
+extern time_t timegm(struct tm*) __LIBC_ABI_PUBLIC__;
__END_DECLS
diff --git a/ndk/platforms/android-20/include/sys/timeb.h b/ndk/platforms/android-20/include/uchar.h
index cf6f25581..e1fcb5c65 100644
--- a/ndk/platforms/android-20/include/sys/timeb.h
+++ b/ndk/platforms/android-20/include/uchar.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008 The Android Open Source Project
+ * Copyright (C) 2014 The Android Open Source Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -25,23 +25,29 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-#ifndef _SYS_TIMEB_H
-#define _SYS_TIMEB_H
+
+#ifndef _UCHAR_H_
+#define _UCHAR_H_
#include <sys/cdefs.h>
-#include <sys/time.h>
+#include <wchar.h>
__BEGIN_DECLS
-struct timeb {
- time_t time;
- unsigned short millitm;
- short timezone;
- short dstflag;
-};
+#define __STD_UTF_16__ 1
+#define __STD_UTF_32__ 1
-extern int ftime(struct timeb* timebuf);
+size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict);
+size_t c32rtomb(char* __restrict, char32_t, mbstate_t* __restrict);
+size_t mbrtoc16(char16_t* __restrict,
+ const char* __restrict,
+ size_t,
+ mbstate_t* __restrict);
+size_t mbrtoc32(char32_t* __restrict,
+ const char* __restrict,
+ size_t,
+ mbstate_t* __restrict);
__END_DECLS
-#endif /* _SYS_TIMEB_H */
+#endif /* _UCHAR_H_ */
diff --git a/ndk/platforms/android-20/include/unistd.h b/ndk/platforms/android-20/include/unistd.h
index b4982cb0d..afe5f1a3f 100644
--- a/ndk/platforms/android-20/include/unistd.h
+++ b/ndk/platforms/android-20/include/unistd.h
@@ -54,7 +54,7 @@ extern __noreturn void _exit(int);
extern pid_t fork(void);
extern pid_t vfork(void);
extern pid_t getpid(void);
-extern pid_t gettid(void);
+extern pid_t gettid(void) __pure2;
extern pid_t getpgid(pid_t);
extern int setpgid(pid_t, pid_t);
extern pid_t getppid(void);
@@ -164,8 +164,6 @@ extern int usleep(useconds_t);
extern int gethostname(char *, size_t);
-extern int getdtablesize(void);
-
extern void *__brk(void *);
extern int brk(void *);
extern void *sbrk(ptrdiff_t);
diff --git a/ndk/platforms/android-20/include/wchar.h b/ndk/platforms/android-20/include/wchar.h
index af7593f06..014fed303 100644
--- a/ndk/platforms/android-20/include/wchar.h
+++ b/ndk/platforms/android-20/include/wchar.h
@@ -118,7 +118,7 @@ extern int wcscmp(const wchar_t *, const wchar_t *);
extern int wcscoll(const wchar_t *, const wchar_t *);
extern wchar_t *wcscpy(wchar_t *, const wchar_t *);
extern size_t wcscspn(const wchar_t *, const wchar_t *);
-extern size_t wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *);
+extern size_t wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *) __LIBC_ABI_PUBLIC__;
extern size_t wcslen(const wchar_t *);
extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
extern wchar_t *wcsncat(wchar_t *, const wchar_t *, size_t);
@@ -138,7 +138,6 @@ extern long long wcstoll(const wchar_t*, wchar_t**, int);
extern long double wcstold(const wchar_t*, wchar_t**);
extern unsigned long wcstoul(const wchar_t*, wchar_t**, int);
extern unsigned long long wcstoull(const wchar_t*, wchar_t**, int);
-extern wchar_t *wcswcs(const wchar_t *, const wchar_t *);
extern int wcswidth(const wchar_t *, size_t);
extern size_t wcsxfrm(wchar_t *, const wchar_t *, size_t);
extern int wctob(wint_t);