summaryrefslogtreecommitdiffstats
path: root/9/platforms
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-07-07 20:08:17 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-07-07 20:08:17 +0800
commit7aed1359ac43bc36b0413bf6c0929a96fd3bacbd (patch)
tree972fd70026a94c7e99e4232b99480ed640900997 /9/platforms
parent50b27d2dd615b1efebed768d9786dc5fa3b3d370 (diff)
downloadprebuilts_ndk-7aed1359ac43bc36b0413bf6c0929a96fd3bacbd.zip
prebuilts_ndk-7aed1359ac43bc36b0413bf6c0929a96fd3bacbd.tar.gz
prebuilts_ndk-7aed1359ac43bc36b0413bf6c0929a96fd3bacbd.tar.bz2
Refresh 64-bit headers/libs (WW28)
Change-Id: I637bf943f48f46a1cbacbe303f87353841c4c8b0
Diffstat (limited to '9/platforms')
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/fcntl.h13
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/math.h749
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/nsswitch.h15
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/signal.h1
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/stdlib.h7
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/strings.h12
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/sys/sha1.h31
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/sys/socket.h4
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/sys/types.h11
-rw-r--r--9/platforms/android-19/arch-arm64/usr/lib/libc.abin9036598 -> 9065512 bytes
-rwxr-xr-x9/platforms/android-19/arch-arm64/usr/lib/libc.sobin80400 -> 80755 bytes
-rw-r--r--9/platforms/android-19/arch-arm64/usr/lib/libm.abin2557416 -> 2556776 bytes
-rwxr-xr-x9/platforms/android-19/arch-arm64/usr/lib/libm.sobin20615 -> 20614 bytes
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/fcntl.h13
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/math.h749
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/nsswitch.h15
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/signal.h1
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/stdlib.h7
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/strings.h12
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/sys/sha1.h31
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/sys/socket.h4
-rw-r--r--9/platforms/android-19/arch-mips64/usr/include/sys/types.h11
-rw-r--r--9/platforms/android-19/arch-mips64/usr/lib64/libc.abin9423588 -> 10168798 bytes
-rwxr-xr-x9/platforms/android-19/arch-mips64/usr/lib64/libc.sobin137665 -> 139228 bytes
-rw-r--r--9/platforms/android-19/arch-mips64/usr/lib64/libm.abin2701890 -> 2910850 bytes
-rwxr-xr-x9/platforms/android-19/arch-mips64/usr/lib64/libm.sobin31939 -> 32122 bytes
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/fcntl.h13
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/math.h749
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/nsswitch.h15
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/signal.h1
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/stdlib.h7
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/strings.h12
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/sys/sha1.h31
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/sys/socket.h4
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/sys/types.h11
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/lib64/libc.abin11042788 -> 11023530 bytes
-rwxr-xr-x9/platforms/android-19/arch-x86_64/usr/lib64/libc.sobin121296 -> 121608 bytes
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/lib64/libm.abin2826776 -> 2826696 bytes
-rwxr-xr-x9/platforms/android-19/arch-x86_64/usr/lib64/libm.sobin28704 -> 28696 bytes
39 files changed, 1668 insertions, 861 deletions
diff --git a/9/platforms/android-19/arch-arm64/usr/include/fcntl.h b/9/platforms/android-19/arch-arm64/usr/include/fcntl.h
index cd68154..4450bb6 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/fcntl.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/fcntl.h
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include <linux/fadvise.h>
#include <linux/fcntl.h>
+#include <linux/uio.h>
#include <unistd.h> /* this is not required, but makes client code much happier */
__BEGIN_DECLS
@@ -51,9 +52,12 @@ struct flock64 {
#define F_SETLKW64 F_SETLKW
#endif
-#ifndef O_ASYNC
-#define O_ASYNC FASYNC
-#endif
+#define O_ASYNC FASYNC
+
+#define SPLICE_F_MOVE 1
+#define SPLICE_F_NONBLOCK 2
+#define SPLICE_F_MORE 4
+#define SPLICE_F_GIFT 8
#define SYNC_FILE_RANGE_WAIT_BEFORE 1
#define SYNC_FILE_RANGE_WRITE 2
@@ -70,7 +74,10 @@ extern int open(const char*, int, ...);
extern int open64(const char*, int, ...);
extern int posix_fallocate64(int, off64_t, off64_t);
extern int posix_fallocate(int, off_t, off_t);
+extern ssize_t splice(int, off64_t*, int, off64_t*, size_t, unsigned int);
+extern ssize_t tee(int, int, size_t, unsigned int);
extern int unlinkat(int, const char*, int);
+extern ssize_t vmsplice(int, const struct iovec*, size_t, unsigned int);
#if defined(__BIONIC_FORTIFY)
diff --git a/9/platforms/android-19/arch-arm64/usr/include/math.h b/9/platforms/android-19/arch-arm64/usr/include/math.h
index 4faec33..79d9c5c 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/math.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/math.h
@@ -172,300 +172,585 @@ extern int signgam;
/*
* ANSI/POSIX
*/
-int __fpclassifyd(double) __pure2;
-int __fpclassifyf(float) __pure2;
-int __fpclassifyl(long double) __pure2;
-int __isfinitef(float) __pure2;
-int __isfinite(double) __pure2;
-int __isfinitel(long double) __pure2;
-int __isinff(float) __pure2;
-int __isinfl(long double) __pure2;
-int __isnanf(float) __pure2;
-int __isnanl(long double) __pure2;
-int __isnormalf(float) __pure2;
-int __isnormal(double) __pure2;
-int __isnormall(long double) __pure2;
-int __signbit(double) __pure2;
-int __signbitf(float) __pure2;
-int __signbitl(long double) __pure2;
-
-double acos(double);
-double asin(double);
-double atan(double);
-double atan2(double, double);
-double cos(double);
-double sin(double);
-double tan(double);
-
-double cosh(double);
-double sinh(double);
-double tanh(double);
-
-double exp(double);
-double frexp(double, int *); /* fundamentally !__pure2 */
-double ldexp(double, int);
-double log(double);
-double log10(double);
-double modf(double, double *); /* fundamentally !__pure2 */
-
-double pow(double, double);
-double sqrt(double);
-
-double ceil(double);
-double fabs(double) __pure2;
-double floor(double);
-double fmod(double, double);
+int __fpclassifyd(double) __NDK_FPABI_MATH__ __pure2;
+int __fpclassifyf(float) __NDK_FPABI_MATH__ __pure2;
+int __fpclassifyl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isfinitef(float) __NDK_FPABI_MATH__ __pure2;
+int __isfinite(double) __NDK_FPABI_MATH__ __pure2;
+int __isfinitel(long double) __NDK_FPABI_MATH__ __pure2;
+int __isinff(float) __NDK_FPABI_MATH__ __pure2;
+int __isinfl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isnanf(float) __NDK_FPABI_MATH__ __pure2;
+int __isnanl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isnormalf(float) __NDK_FPABI_MATH__ __pure2;
+int __isnormal(double) __NDK_FPABI_MATH__ __pure2;
+int __isnormall(long double) __NDK_FPABI_MATH__ __pure2;
+int __signbit(double) __NDK_FPABI_MATH__ __pure2;
+int __signbitf(float) __NDK_FPABI_MATH__ __pure2;
+int __signbitl(long double) __NDK_FPABI_MATH__ __pure2;
+
+double acos(double) __NDK_FPABI_MATH__;
+double asin(double) __NDK_FPABI_MATH__;
+double atan(double) __NDK_FPABI_MATH__;
+double atan2(double, double) __NDK_FPABI_MATH__;
+double cos(double) __NDK_FPABI_MATH__;
+double sin(double) __NDK_FPABI_MATH__;
+double tan(double) __NDK_FPABI_MATH__;
+
+double cosh(double) __NDK_FPABI_MATH__;
+double sinh(double) __NDK_FPABI_MATH__;
+double tanh(double) __NDK_FPABI_MATH__;
+
+double exp(double) __NDK_FPABI_MATH__;
+double frexp(double, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+double ldexp(double, int) __NDK_FPABI_MATH__;
+double log(double) __NDK_FPABI_MATH__;
+double log10(double) __NDK_FPABI_MATH__;
+double modf(double, double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+double pow(double, double) __NDK_FPABI_MATH__;
+double sqrt(double) __NDK_FPABI_MATH__;
+
+double ceil(double) __NDK_FPABI_MATH__;
+double fabs(double) __NDK_FPABI_MATH__ __pure2;
+double floor(double) __NDK_FPABI_MATH__;
+double fmod(double, double) __NDK_FPABI_MATH__;
/*
* These functions are not in C90.
*/
#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE
-double acosh(double);
-double asinh(double);
-double atanh(double);
-double cbrt(double);
-double erf(double);
-double erfc(double);
-double exp2(double);
-double expm1(double);
-double fma(double, double, double);
-double hypot(double, double);
-int ilogb(double) __pure2;
-int (isinf)(double) __pure2;
-int (isnan)(double) __pure2;
-double lgamma(double);
-long long llrint(double);
-long long llround(double);
-double log1p(double);
-double log2(double);
-double logb(double);
-long lrint(double);
-long lround(double);
-double nan(const char *) __pure2;
-double nextafter(double, double);
-double remainder(double, double);
-double remquo(double, double, int *);
-double rint(double);
+double acosh(double) __NDK_FPABI_MATH__;
+double asinh(double) __NDK_FPABI_MATH__;
+double atanh(double) __NDK_FPABI_MATH__;
+double cbrt(double) __NDK_FPABI_MATH__;
+double erf(double) __NDK_FPABI_MATH__;
+double erfc(double) __NDK_FPABI_MATH__;
+double exp2(double) __NDK_FPABI_MATH__;
+double expm1(double) __NDK_FPABI_MATH__;
+double fma(double, double, double) __NDK_FPABI_MATH__;
+double hypot(double, double) __NDK_FPABI_MATH__;
+int ilogb(double) __NDK_FPABI_MATH__ __pure2;
+int (isinf)(double) __NDK_FPABI_MATH__ __pure2;
+int (isnan)(double) __NDK_FPABI_MATH__ __pure2;
+double lgamma(double) __NDK_FPABI_MATH__;
+long long llrint(double) __NDK_FPABI_MATH__;
+long long llround(double) __NDK_FPABI_MATH__;
+double log1p(double) __NDK_FPABI_MATH__;
+double log2(double) __NDK_FPABI_MATH__;
+double logb(double) __NDK_FPABI_MATH__;
+long lrint(double) __NDK_FPABI_MATH__;
+long lround(double) __NDK_FPABI_MATH__;
+double nan(const char *) __NDK_FPABI_MATH__ __pure2;
+double nextafter(double, double) __NDK_FPABI_MATH__;
+double remainder(double, double) __NDK_FPABI_MATH__;
+double remquo(double, double, int *) __NDK_FPABI_MATH__;
+double rint(double) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
#if __BSD_VISIBLE || __XSI_VISIBLE
-double j0(double);
-double j1(double);
-double jn(int, double);
-double y0(double);
-double y1(double);
-double yn(int, double);
+double j0(double) __NDK_FPABI_MATH__;
+double j1(double) __NDK_FPABI_MATH__;
+double jn(int, double) __NDK_FPABI_MATH__;
+double y0(double) __NDK_FPABI_MATH__;
+double y1(double) __NDK_FPABI_MATH__;
+double yn(int, double) __NDK_FPABI_MATH__;
#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
-double gamma(double);
+double gamma(double) __NDK_FPABI_MATH__;
#endif
#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
-double scalb(double, double);
+double scalb(double, double) __NDK_FPABI_MATH__;
#endif
#endif /* __BSD_VISIBLE || __XSI_VISIBLE */
#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
-double copysign(double, double) __pure2;
-double fdim(double, double);
-double fmax(double, double) __pure2;
-double fmin(double, double) __pure2;
-double nearbyint(double);
-double round(double);
-double scalbln(double, long);
-double scalbn(double, int);
-double tgamma(double);
-double trunc(double);
+double copysign(double, double) __NDK_FPABI_MATH__ __pure2;
+double fdim(double, double) __NDK_FPABI_MATH__;
+double fmax(double, double) __NDK_FPABI_MATH__ __pure2;
+double fmin(double, double) __NDK_FPABI_MATH__ __pure2;
+double nearbyint(double) __NDK_FPABI_MATH__;
+double round(double) __NDK_FPABI_MATH__;
+double scalbln(double, long) __NDK_FPABI_MATH__;
+double scalbn(double, int) __NDK_FPABI_MATH__;
+double tgamma(double) __NDK_FPABI_MATH__;
+double trunc(double) __NDK_FPABI_MATH__;
#endif
/*
* BSD math library entry points
*/
#if __BSD_VISIBLE
-double drem(double, double);
-int finite(double) __pure2;
-int isnanf(float) __pure2;
-long double significandl(long double);
+double drem(double, double) __NDK_FPABI_MATH__;
+int finite(double) __NDK_FPABI_MATH__ __pure2;
+int isnanf(float) __NDK_FPABI_MATH__ __pure2;
+long double significandl(long double) __NDK_FPABI_MATH__;
/*
* Reentrant version of gamma & lgamma; passes signgam back by reference
* as the second argument; user must allocate space for signgam.
*/
-double gamma_r(double, int *);
-double lgamma_r(double, int *);
+double gamma_r(double, int *) __NDK_FPABI_MATH__;
+double lgamma_r(double, int *) __NDK_FPABI_MATH__;
/*
* IEEE Test Vector
*/
-double significand(double);
+double significand(double) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE */
/* float versions of ANSI/POSIX functions */
#if __ISO_C_VISIBLE >= 1999
-float acosf(float);
-float asinf(float);
-float atanf(float);
-float atan2f(float, float);
-float cosf(float);
-float sinf(float);
-float tanf(float);
-
-float coshf(float);
-float sinhf(float);
-float tanhf(float);
-
-float exp2f(float);
-float expf(float);
-float expm1f(float);
-float frexpf(float, int *); /* fundamentally !__pure2 */
-int ilogbf(float) __pure2;
-float ldexpf(float, int);
-float log10f(float);
-float log1pf(float);
-float log2f(float);
-float logf(float);
-float modff(float, float *); /* fundamentally !__pure2 */
-
-float powf(float, float);
-float sqrtf(float);
-
-float ceilf(float);
-float fabsf(float) __pure2;
-float floorf(float);
-float fmodf(float, float);
-float roundf(float);
-
-float erff(float);
-float erfcf(float);
-float hypotf(float, float);
-float lgammaf(float);
-float tgammaf(float);
-
-float acoshf(float);
-float asinhf(float);
-float atanhf(float);
-float cbrtf(float);
-float logbf(float);
-float copysignf(float, float) __pure2;
-long long llrintf(float);
-long long llroundf(float);
-long lrintf(float);
-long lroundf(float);
-float nanf(const char *) __pure2;
-float nearbyintf(float);
-float nextafterf(float, float);
-float remainderf(float, float);
-float remquof(float, float, int *);
-float rintf(float);
-float scalblnf(float, long);
-float scalbnf(float, int);
-float truncf(float);
-
-float fdimf(float, float);
-float fmaf(float, float, float);
-float fmaxf(float, float) __pure2;
-float fminf(float, float) __pure2;
+float acosf(float) __NDK_FPABI_MATH__;
+float asinf(float) __NDK_FPABI_MATH__;
+float atanf(float) __NDK_FPABI_MATH__;
+float atan2f(float, float) __NDK_FPABI_MATH__;
+float cosf(float) __NDK_FPABI_MATH__;
+float sinf(float) __NDK_FPABI_MATH__;
+float tanf(float) __NDK_FPABI_MATH__;
+
+float coshf(float) __NDK_FPABI_MATH__;
+float sinhf(float) __NDK_FPABI_MATH__;
+float tanhf(float) __NDK_FPABI_MATH__;
+
+float exp2f(float) __NDK_FPABI_MATH__;
+float expf(float) __NDK_FPABI_MATH__;
+float expm1f(float) __NDK_FPABI_MATH__;
+float frexpf(float, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+int ilogbf(float) __NDK_FPABI_MATH__ __pure2;
+float ldexpf(float, int) __NDK_FPABI_MATH__;
+float log10f(float) __NDK_FPABI_MATH__;
+float log1pf(float) __NDK_FPABI_MATH__;
+float log2f(float) __NDK_FPABI_MATH__;
+float logf(float) __NDK_FPABI_MATH__;
+float modff(float, float *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+float powf(float, float) __NDK_FPABI_MATH__;
+float sqrtf(float) __NDK_FPABI_MATH__;
+
+float ceilf(float) __NDK_FPABI_MATH__;
+float fabsf(float) __NDK_FPABI_MATH__ __pure2;
+float floorf(float) __NDK_FPABI_MATH__;
+float fmodf(float, float) __NDK_FPABI_MATH__;
+float roundf(float) __NDK_FPABI_MATH__;
+
+float erff(float) __NDK_FPABI_MATH__;
+float erfcf(float) __NDK_FPABI_MATH__;
+float hypotf(float, float) __NDK_FPABI_MATH__;
+float lgammaf(float) __NDK_FPABI_MATH__;
+float tgammaf(float) __NDK_FPABI_MATH__;
+
+float acoshf(float) __NDK_FPABI_MATH__;
+float asinhf(float) __NDK_FPABI_MATH__;
+float atanhf(float) __NDK_FPABI_MATH__;
+float cbrtf(float) __NDK_FPABI_MATH__;
+float logbf(float) __NDK_FPABI_MATH__;
+float copysignf(float, float) __NDK_FPABI_MATH__ __pure2;
+long long llrintf(float) __NDK_FPABI_MATH__;
+long long llroundf(float) __NDK_FPABI_MATH__;
+long lrintf(float) __NDK_FPABI_MATH__;
+long lroundf(float) __NDK_FPABI_MATH__;
+float nanf(const char *) __NDK_FPABI_MATH__ __pure2;
+float nearbyintf(float) __NDK_FPABI_MATH__;
+float nextafterf(float, float) __NDK_FPABI_MATH__;
+float remainderf(float, float) __NDK_FPABI_MATH__;
+float remquof(float, float, int *) __NDK_FPABI_MATH__;
+float rintf(float) __NDK_FPABI_MATH__;
+float scalblnf(float, long) __NDK_FPABI_MATH__;
+float scalbnf(float, int) __NDK_FPABI_MATH__;
+float truncf(float) __NDK_FPABI_MATH__;
+
+float fdimf(float, float) __NDK_FPABI_MATH__;
+float fmaf(float, float, float) __NDK_FPABI_MATH__;
+float fmaxf(float, float) __NDK_FPABI_MATH__ __pure2;
+float fminf(float, float) __NDK_FPABI_MATH__ __pure2;
#endif
/*
* float versions of BSD math library entry points
*/
#if __BSD_VISIBLE
-float dremf(float, float);
-int finitef(float) __pure2;
-float gammaf(float);
-float j0f(float);
-float j1f(float);
-float jnf(int, float);
-float scalbf(float, float);
-float y0f(float);
-float y1f(float);
-float ynf(int, float);
+float dremf(float, float) __NDK_FPABI_MATH__;
+int finitef(float) __NDK_FPABI_MATH__ __pure2;
+float gammaf(float) __NDK_FPABI_MATH__;
+float j0f(float) __NDK_FPABI_MATH__;
+float j1f(float) __NDK_FPABI_MATH__;
+float jnf(int, float) __NDK_FPABI_MATH__;
+float scalbf(float, float) __NDK_FPABI_MATH__;
+float y0f(float) __NDK_FPABI_MATH__;
+float y1f(float) __NDK_FPABI_MATH__;
+float ynf(int, float) __NDK_FPABI_MATH__;
/*
* Float versions of reentrant version of gamma & lgamma; passes
* signgam back by reference as the second argument; user must
* allocate space for signgam.
*/
-float gammaf_r(float, int *);
-float lgammaf_r(float, int *);
+float gammaf_r(float, int *) __NDK_FPABI_MATH__;
+float lgammaf_r(float, int *) __NDK_FPABI_MATH__;
/*
* float version of IEEE Test Vector
*/
-float significandf(float);
+float significandf(float) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE */
/*
* long double versions of ISO/POSIX math functions
*/
#if __ISO_C_VISIBLE >= 1999
-long double acoshl(long double);
-long double acosl(long double);
-long double asinhl(long double);
-long double asinl(long double);
-long double atan2l(long double, long double);
-long double atanhl(long double);
-long double atanl(long double);
-long double cbrtl(long double);
-long double ceill(long double);
-long double copysignl(long double, long double) __pure2;
-long double coshl(long double);
-long double cosl(long double);
-long double erfcl(long double);
-long double erfl(long double);
-long double exp2l(long double);
-long double expl(long double);
-long double expm1l(long double);
-long double fabsl(long double) __pure2;
-long double fdiml(long double, long double);
-long double floorl(long double);
-long double fmal(long double, long double, long double);
-long double fmaxl(long double, long double) __pure2;
-long double fminl(long double, long double) __pure2;
-long double fmodl(long double, long double);
-long double frexpl(long double value, int *); /* fundamentally !__pure2 */
-long double hypotl(long double, long double);
-int ilogbl(long double) __pure2;
-long double ldexpl(long double, int);
-long double lgammal(long double);
-long long llrintl(long double);
-long long llroundl(long double);
-long double log10l(long double);
-long double log1pl(long double);
-long double log2l(long double);
-long double logbl(long double);
-long double logl(long double);
-long lrintl(long double);
-long lroundl(long double);
-long double modfl(long double, long double *); /* fundamentally !__pure2 */
-long double nanl(const char *) __pure2;
-long double nearbyintl(long double);
-long double nextafterl(long double, long double);
-double nexttoward(double, long double);
-float nexttowardf(float, long double);
-long double nexttowardl(long double, long double);
-long double powl(long double, long double);
-long double remainderl(long double, long double);
-long double remquol(long double, long double, int *);
-long double rintl(long double);
-long double roundl(long double);
-long double scalblnl(long double, long);
-long double scalbnl(long double, int);
-long double sinhl(long double);
-long double sinl(long double);
-long double sqrtl(long double);
-long double tanhl(long double);
-long double tanl(long double);
-long double tgammal(long double);
-long double truncl(long double);
+long double acoshl(long double) __NDK_FPABI_MATH__;
+long double acosl(long double) __NDK_FPABI_MATH__;
+long double asinhl(long double) __NDK_FPABI_MATH__;
+long double asinl(long double) __NDK_FPABI_MATH__;
+long double atan2l(long double, long double) __NDK_FPABI_MATH__;
+long double atanhl(long double) __NDK_FPABI_MATH__;
+long double atanl(long double) __NDK_FPABI_MATH__;
+long double cbrtl(long double) __NDK_FPABI_MATH__;
+long double ceill(long double) __NDK_FPABI_MATH__;
+long double copysignl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double coshl(long double) __NDK_FPABI_MATH__;
+long double cosl(long double) __NDK_FPABI_MATH__;
+long double erfcl(long double) __NDK_FPABI_MATH__;
+long double erfl(long double) __NDK_FPABI_MATH__;
+long double exp2l(long double) __NDK_FPABI_MATH__;
+long double expl(long double) __NDK_FPABI_MATH__;
+long double expm1l(long double) __NDK_FPABI_MATH__;
+long double fabsl(long double) __NDK_FPABI_MATH__ __pure2;
+long double fdiml(long double, long double) __NDK_FPABI_MATH__;
+long double floorl(long double) __NDK_FPABI_MATH__;
+long double fmal(long double, long double, long double) __NDK_FPABI_MATH__;
+long double fmaxl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double fminl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double fmodl(long double, long double) __NDK_FPABI_MATH__;
+long double frexpl(long double value, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double hypotl(long double, long double) __NDK_FPABI_MATH__;
+int ilogbl(long double) __NDK_FPABI_MATH__ __pure2;
+long double ldexpl(long double, int) __NDK_FPABI_MATH__;
+long double lgammal(long double) __NDK_FPABI_MATH__;
+long long llrintl(long double) __NDK_FPABI_MATH__;
+long long llroundl(long double) __NDK_FPABI_MATH__;
+long double log10l(long double) __NDK_FPABI_MATH__;
+long double log1pl(long double) __NDK_FPABI_MATH__;
+long double log2l(long double) __NDK_FPABI_MATH__;
+long double logbl(long double) __NDK_FPABI_MATH__;
+long double logl(long double) __NDK_FPABI_MATH__;
+long lrintl(long double) __NDK_FPABI_MATH__;
+long lroundl(long double) __NDK_FPABI_MATH__;
+long double modfl(long double, long double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double nanl(const char *) __NDK_FPABI_MATH__ __pure2;
+long double nearbyintl(long double) __NDK_FPABI_MATH__;
+long double nextafterl(long double, long double) __NDK_FPABI_MATH__;
+double nexttoward(double, long double) __NDK_FPABI_MATH__;
+float nexttowardf(float, long double) __NDK_FPABI_MATH__;
+long double nexttowardl(long double, long double) __NDK_FPABI_MATH__;
+long double powl(long double, long double) __NDK_FPABI_MATH__;
+long double remainderl(long double, long double) __NDK_FPABI_MATH__;
+long double remquol(long double, long double, int *) __NDK_FPABI_MATH__;
+long double rintl(long double) __NDK_FPABI_MATH__;
+long double roundl(long double) __NDK_FPABI_MATH__;
+long double scalblnl(long double, long) __NDK_FPABI_MATH__;
+long double scalbnl(long double, int) __NDK_FPABI_MATH__;
+long double sinhl(long double) __NDK_FPABI_MATH__;
+long double sinl(long double) __NDK_FPABI_MATH__;
+long double sqrtl(long double) __NDK_FPABI_MATH__;
+long double tanhl(long double) __NDK_FPABI_MATH__;
+long double tanl(long double) __NDK_FPABI_MATH__;
+long double tgammal(long double) __NDK_FPABI_MATH__;
+long double truncl(long double) __NDK_FPABI_MATH__;
#endif /* __ISO_C_VISIBLE >= 1999 */
#if defined(_GNU_SOURCE)
-void sincos(double, double*, double*);
-void sincosf(float, float*, float*);
-void sincosl(long double, long double*, long double*);
+void sincos(double, double*, double*) __NDK_FPABI_MATH__;
+void sincosf(float, float*, float*) __NDK_FPABI_MATH__;
+void sincosl(long double, long double*, long double*) __NDK_FPABI_MATH__;
+#endif /* _GNU_SOURCE */
+
+/* builtin version of all the above math functions are annotated too */
+
+double __builtin_acos(double) __NDK_FPABI_MATH__;
+double __builtin_asin(double) __NDK_FPABI_MATH__;
+double __builtin_atan(double) __NDK_FPABI_MATH__;
+double __builtin_atan2(double, double) __NDK_FPABI_MATH__;
+double __builtin_cos(double) __NDK_FPABI_MATH__;
+double __builtin_sin(double) __NDK_FPABI_MATH__;
+double __builtin_tan(double) __NDK_FPABI_MATH__;
+
+double __builtin_cosh(double) __NDK_FPABI_MATH__;
+double __builtin_sinh(double) __NDK_FPABI_MATH__;
+double __builtin_tanh(double) __NDK_FPABI_MATH__;
+
+double __builtin_exp(double) __NDK_FPABI_MATH__;
+double __builtin_frexp(double, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+double __builtin_ldexp(double, int) __NDK_FPABI_MATH__;
+double __builtin_log(double) __NDK_FPABI_MATH__;
+double __builtin_log10(double) __NDK_FPABI_MATH__;
+double __builtin_modf(double, double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+double __builtin_pow(double, double) __NDK_FPABI_MATH__;
+double __builtin_sqrt(double) __NDK_FPABI_MATH__;
+
+double __builtin_ceil(double) __NDK_FPABI_MATH__;
+double __builtin_fabs(double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_floor(double) __NDK_FPABI_MATH__;
+double __builtin_fmod(double, double) __NDK_FPABI_MATH__;
+
+/*
+ * These functions are not in C90.
+ */
+#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE
+double __builtin_acosh(double) __NDK_FPABI_MATH__;
+double __builtin_asinh(double) __NDK_FPABI_MATH__;
+double __builtin_atanh(double) __NDK_FPABI_MATH__;
+double __builtin_cbrt(double) __NDK_FPABI_MATH__;
+double __builtin_erf(double) __NDK_FPABI_MATH__;
+double __builtin_erfc(double) __NDK_FPABI_MATH__;
+double __builtin_exp2(double) __NDK_FPABI_MATH__;
+double __builtin_expm1(double) __NDK_FPABI_MATH__;
+double __builtin_fma(double, double, double) __NDK_FPABI_MATH__;
+double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
+int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
+#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 6)
+int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2;
+int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
+#else
+/* clang < 3.5 has faulty prototype for __builtin_isnan */
+#endif
+double __builtin_lgamma(double) __NDK_FPABI_MATH__;
+long long __builtin_llrint(double) __NDK_FPABI_MATH__;
+long long __builtin_llround(double) __NDK_FPABI_MATH__;
+double __builtin_log1p(double) __NDK_FPABI_MATH__;
+double __builtin_log2(double) __NDK_FPABI_MATH__;
+double __builtin_logb(double) __NDK_FPABI_MATH__;
+long __builtin_lrint(double) __NDK_FPABI_MATH__;
+long __builtin_lround(double) __NDK_FPABI_MATH__;
+double __builtin_nan(const char *) __NDK_FPABI_MATH__ __pure2;
+double __builtin_nextafter(double, double) __NDK_FPABI_MATH__;
+double __builtin_remainder(double, double) __NDK_FPABI_MATH__;
+double __builtin_remquo(double, double, int *) __NDK_FPABI_MATH__;
+double __builtin_rint(double) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
+
+#if __BSD_VISIBLE || __XSI_VISIBLE
+double __builtin_j0(double) __NDK_FPABI_MATH__;
+double __builtin_j1(double) __NDK_FPABI_MATH__;
+double __builtin_jn(int, double) __NDK_FPABI_MATH__;
+double __builtin_y0(double) __NDK_FPABI_MATH__;
+double __builtin_y1(double) __NDK_FPABI_MATH__;
+double __builtin_yn(int, double) __NDK_FPABI_MATH__;
+
+#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
+double __builtin_gamma(double) __NDK_FPABI_MATH__;
+#endif
+
+#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
+double __builtin_scalb(double, double) __NDK_FPABI_MATH__;
+#endif
+#endif /* __BSD_VISIBLE || __XSI_VISIBLE */
+
+#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
+double __builtin_copysign(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_fdim(double, double) __NDK_FPABI_MATH__;
+double __builtin_fmax(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_fmin(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_nearbyint(double) __NDK_FPABI_MATH__;
+double __builtin_round(double) __NDK_FPABI_MATH__;
+double __builtin_scalbln(double, long) __NDK_FPABI_MATH__;
+double __builtin_scalbn(double, int) __NDK_FPABI_MATH__;
+double __builtin_tgamma(double) __NDK_FPABI_MATH__;
+double __builtin_trunc(double) __NDK_FPABI_MATH__;
+#endif
+
+/*
+ * BSD math library entry points
+ */
+#if __BSD_VISIBLE
+double __builtin_drem(double, double) __NDK_FPABI_MATH__;
+int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2;
+int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2;
+long double significandl(long double) __NDK_FPABI_MATH__;
+
+/*
+ * Reentrant version of gamma & lgamma; passes signgam back by reference
+ * as the second argument; user must allocate space for signgam.
+ */
+double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__;
+double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__;
+
+/*
+ * IEEE Test Vector
+ */
+double __builtin_significand(double) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE */
+
+/* float versions of ANSI/POSIX functions */
+#if __ISO_C_VISIBLE >= 1999
+float __builtin_acosf(float) __NDK_FPABI_MATH__;
+float __builtin_asinf(float) __NDK_FPABI_MATH__;
+float __builtin_atanf(float) __NDK_FPABI_MATH__;
+float __builtin_atan2f(float, float) __NDK_FPABI_MATH__;
+float __builtin_cosf(float) __NDK_FPABI_MATH__;
+float __builtin_sinf(float) __NDK_FPABI_MATH__;
+float __builtin_tanf(float) __NDK_FPABI_MATH__;
+
+float __builtin_coshf(float) __NDK_FPABI_MATH__;
+float __builtin_sinhf(float) __NDK_FPABI_MATH__;
+float __builtin_tanhf(float) __NDK_FPABI_MATH__;
+
+float __builtin_exp2f(float) __NDK_FPABI_MATH__;
+float __builtin_expf(float) __NDK_FPABI_MATH__;
+float __builtin_expm1f(float) __NDK_FPABI_MATH__;
+float __builtin_frexpf(float, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+int __builtin_ilogbf(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_ldexpf(float, int) __NDK_FPABI_MATH__;
+float __builtin_log10f(float) __NDK_FPABI_MATH__;
+float __builtin_log1pf(float) __NDK_FPABI_MATH__;
+float __builtin_log2f(float) __NDK_FPABI_MATH__;
+float __builtin_logf(float) __NDK_FPABI_MATH__;
+float __builtin_modff(float, float *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+float __builtin_powf(float, float) __NDK_FPABI_MATH__;
+float __builtin_sqrtf(float) __NDK_FPABI_MATH__;
+
+float __builtin_ceilf(float) __NDK_FPABI_MATH__;
+float __builtin_fabsf(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_floorf(float) __NDK_FPABI_MATH__;
+float __builtin_fmodf(float, float) __NDK_FPABI_MATH__;
+float __builtin_roundf(float) __NDK_FPABI_MATH__;
+
+float __builtin_erff(float) __NDK_FPABI_MATH__;
+float __builtin_erfcf(float) __NDK_FPABI_MATH__;
+float __builtin_hypotf(float, float) __NDK_FPABI_MATH__;
+float __builtin_lgammaf(float) __NDK_FPABI_MATH__;
+float __builtin_tgammaf(float) __NDK_FPABI_MATH__;
+
+float __builtin_acoshf(float) __NDK_FPABI_MATH__;
+float __builtin_asinhf(float) __NDK_FPABI_MATH__;
+float __builtin_atanhf(float) __NDK_FPABI_MATH__;
+float __builtin_cbrtf(float) __NDK_FPABI_MATH__;
+float __builtin_logbf(float) __NDK_FPABI_MATH__;
+float __builtin_copysignf(float, float) __NDK_FPABI_MATH__ __pure2;
+long long __builtin_llrintf(float) __NDK_FPABI_MATH__;
+long long __builtin_llroundf(float) __NDK_FPABI_MATH__;
+long __builtin_lrintf(float) __NDK_FPABI_MATH__;
+long __builtin_lroundf(float) __NDK_FPABI_MATH__;
+float __builtin_nanf(const char *) __NDK_FPABI_MATH__ __pure2;
+float __builtin_nearbyintf(float) __NDK_FPABI_MATH__;
+float __builtin_nextafterf(float, float) __NDK_FPABI_MATH__;
+float __builtin_remainderf(float, float) __NDK_FPABI_MATH__;
+float __builtin_remquof(float, float, int *) __NDK_FPABI_MATH__;
+float __builtin_rintf(float) __NDK_FPABI_MATH__;
+float __builtin_scalblnf(float, long) __NDK_FPABI_MATH__;
+float __builtin_scalbnf(float, int) __NDK_FPABI_MATH__;
+float __builtin_truncf(float) __NDK_FPABI_MATH__;
+
+float __builtin_fdimf(float, float) __NDK_FPABI_MATH__;
+float __builtin_fmaf(float, float, float) __NDK_FPABI_MATH__;
+float __builtin_fmaxf(float, float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_fminf(float, float) __NDK_FPABI_MATH__ __pure2;
+#endif
+
+/*
+ * float versions of BSD math library entry points
+ */
+#if __BSD_VISIBLE
+float __builtin_dremf(float, float) __NDK_FPABI_MATH__;
+int __builtin_finitef(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_gammaf(float) __NDK_FPABI_MATH__;
+float __builtin_j0f(float) __NDK_FPABI_MATH__;
+float __builtin_j1f(float) __NDK_FPABI_MATH__;
+float __builtin_jnf(int, float) __NDK_FPABI_MATH__;
+float __builtin_scalbf(float, float) __NDK_FPABI_MATH__;
+float __builtin_y0f(float) __NDK_FPABI_MATH__;
+float __builtin_y1f(float) __NDK_FPABI_MATH__;
+float __builtin_ynf(int, float) __NDK_FPABI_MATH__;
+
+/*
+ * Float versions of reentrant version of gamma & lgamma; passes
+ * signgam back by reference as the second argument; user must
+ * allocate space for signgam.
+ */
+float __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__;
+float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__;
+
+/*
+ * float version of IEEE Test Vector
+ */
+float __builtin_significandf(float) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE */
+
+/*
+ * long double versions of ISO/POSIX math functions
+ */
+#if __ISO_C_VISIBLE >= 1999
+long double __builtin_acoshl(long double) __NDK_FPABI_MATH__;
+long double __builtin_acosl(long double) __NDK_FPABI_MATH__;
+long double __builtin_asinhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_asinl(long double) __NDK_FPABI_MATH__;
+long double __builtin_atan2l(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_atanhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_atanl(long double) __NDK_FPABI_MATH__;
+long double __builtin_cbrtl(long double) __NDK_FPABI_MATH__;
+long double __builtin_ceill(long double) __NDK_FPABI_MATH__;
+long double __builtin_copysignl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_coshl(long double) __NDK_FPABI_MATH__;
+long double __builtin_cosl(long double) __NDK_FPABI_MATH__;
+long double __builtin_erfcl(long double) __NDK_FPABI_MATH__;
+long double __builtin_erfl(long double) __NDK_FPABI_MATH__;
+long double __builtin_exp2l(long double) __NDK_FPABI_MATH__;
+long double __builtin_expl(long double) __NDK_FPABI_MATH__;
+long double __builtin_expm1l(long double) __NDK_FPABI_MATH__;
+long double __builtin_fabsl(long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fdiml(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_floorl(long double) __NDK_FPABI_MATH__;
+long double __builtin_fmal(long double, long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_fmaxl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fminl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fmodl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_frexpl(long double value, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double __builtin_hypotl(long double, long double) __NDK_FPABI_MATH__;
+int __builtin_ilogbl(long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_ldexpl(long double, int) __NDK_FPABI_MATH__;
+long double __builtin_lgammal(long double) __NDK_FPABI_MATH__;
+long long __builtin_llrintl(long double) __NDK_FPABI_MATH__;
+long long __builtin_llroundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_log10l(long double) __NDK_FPABI_MATH__;
+long double __builtin_log1pl(long double) __NDK_FPABI_MATH__;
+long double __builtin_log2l(long double) __NDK_FPABI_MATH__;
+long double __builtin_logbl(long double) __NDK_FPABI_MATH__;
+long double __builtin_logl(long double) __NDK_FPABI_MATH__;
+long __builtin_lrintl(long double) __NDK_FPABI_MATH__;
+long __builtin_lroundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_modfl(long double, long double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double __builtin_nanl(const char *) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_nearbyintl(long double) __NDK_FPABI_MATH__;
+long double __builtin_nextafterl(long double, long double) __NDK_FPABI_MATH__;
+double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__;
+float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__;
+long double __builtin_nexttowardl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_powl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_remainderl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_remquol(long double, long double, int *) __NDK_FPABI_MATH__;
+long double __builtin_rintl(long double) __NDK_FPABI_MATH__;
+long double __builtin_roundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_scalblnl(long double, long) __NDK_FPABI_MATH__;
+long double __builtin_scalbnl(long double, int) __NDK_FPABI_MATH__;
+long double __builtin_sinhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_sinl(long double) __NDK_FPABI_MATH__;
+long double __builtin_sqrtl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tanhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tanl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tgammal(long double) __NDK_FPABI_MATH__;
+long double __builtin_truncl(long double) __NDK_FPABI_MATH__;
+
+#endif /* __ISO_C_VISIBLE >= 1999 */
+
+#if defined(_GNU_SOURCE)
+void __builtin_sincos(double, double*, double*) __NDK_FPABI_MATH__;
+void __builtin_sincosf(float, float*, float*) __NDK_FPABI_MATH__;
+void __builtin_sincosl(long double, long double*, long double*) __NDK_FPABI_MATH__;
#endif /* _GNU_SOURCE */
#pragma GCC visibility pop
diff --git a/9/platforms/android-19/arch-arm64/usr/include/nsswitch.h b/9/platforms/android-19/arch-arm64/usr/include/nsswitch.h
index e03844b..af88433 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/nsswitch.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/nsswitch.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nsswitch.h,v 1.18 2005/11/29 03:12:58 christos Exp $ */
+/* $NetBSD: nsswitch.h,v 1.21 2011/07/17 20:54:34 joerg Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -15,13 +15,6 @@
* 2. 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.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the NetBSD
- * Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
@@ -137,6 +130,7 @@ typedef struct {
#else
# define NS_NIS_CB(F,C)
#endif
+#define NS_NULL_CB { .src = NULL },
/*
* ns_src - `nsswitch source'
@@ -149,7 +143,6 @@ typedef struct {
} ns_src;
-#if 0
/*
* Default sourcelists (if nsswitch.conf is missing, corrupt,
* or the requested database doesn't have an entry)
@@ -161,7 +154,7 @@ extern const ns_src __nsdefaultfiles[];
extern const ns_src __nsdefaultfiles_forceall[];
extern const ns_src __nsdefaultnis[];
extern const ns_src __nsdefaultnis_forceall[];
-#endif
+
/*
* ns_mtab - `nsswitch method table'
@@ -222,7 +215,7 @@ typedef struct {
__BEGIN_DECLS
int nsdispatch(void *, const ns_dtab [], const char *,
- const char *, const ns_src [], ...);
+ const char *, const ns_src [], ...) __LIBC_ABI_PUBLIC__;
#ifdef _NS_PRIVATE
int _nsdbtaddsrc(ns_dbt *, const ns_src *);
diff --git a/9/platforms/android-19/arch-arm64/usr/include/signal.h b/9/platforms/android-19/arch-arm64/usr/include/signal.h
index 0063b24..f1849c5 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/signal.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/signal.h
@@ -34,6 +34,7 @@
#include <limits.h> /* For LONG_BIT */
#include <string.h> /* For memset() */
#include <sys/types.h>
+#include <asm/sigcontext.h>
#if defined(__LP64__) || defined(__mips__)
/* For 64-bit (and mips), the kernel's struct sigaction doesn't match the POSIX one,
diff --git a/9/platforms/android-19/arch-arm64/usr/include/stdlib.h b/9/platforms/android-19/arch-arm64/usr/include/stdlib.h
index 266aa5e..62b7a67 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/stdlib.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/stdlib.h
@@ -100,9 +100,10 @@ extern unsigned short *seed48(unsigned short*);
extern double erand48(unsigned short xsubi[3]);
extern double drand48(void);
extern void srand48(long);
-extern unsigned int arc4random(void);
-extern void arc4random_stir(void);
-extern void arc4random_addrandom(unsigned char *, int);
+
+unsigned int arc4random(void);
+unsigned int arc4random_uniform(unsigned int);
+void arc4random_buf(void*, size_t);
#define RAND_MAX 0x7fffffff
diff --git a/9/platforms/android-19/arch-arm64/usr/include/strings.h b/9/platforms/android-19/arch-arm64/usr/include/strings.h
index c4d5f6c..ae261cf 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/strings.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/strings.h
@@ -43,8 +43,16 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-#define bcopy(b1, b2, len) (void)(memmove((b2), (b1), (len)))
-#define bzero(b, len) (void)(memset((b), '\0', (len)))
+#if defined(__BIONIC_FORTIFY)
+#define bcopy(b1, b2, len) \
+ (void)(__builtin___memmove_chk((b2), (b1), (len), __bos0(b2)))
+#define bzero(b, len) \
+ (void)(__builtin___memset_chk((b), '\0', (len), __bos0(b)))
+#else
+#define bcopy(b1, b2, len) (void)(__builtin_memmove((b2), (b1), (len)))
+#define bzero(b, len) (void)(__builtin_memset((b), '\0', (len)))
+#endif
+
int ffs(int);
int strcasecmp(const char *, const char *);
diff --git a/9/platforms/android-19/arch-arm64/usr/include/sys/sha1.h b/9/platforms/android-19/arch-arm64/usr/include/sys/sha1.h
deleted file mode 100644
index f7ada46..0000000
--- a/9/platforms/android-19/arch-arm64/usr/include/sys/sha1.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* $NetBSD: sha1.h,v 1.13 2005/12/26 18:41:36 perry Exp $ */
-
-/*
- * SHA-1 in C
- * By Steve Reid <steve@edmweb.com>
- * 100% Public Domain
- */
-
-#ifndef _SYS_SHA1_H_
-#define _SYS_SHA1_H_
-
-#include <sys/cdefs.h>
-#include <sys/types.h>
-
-#define SHA1_DIGEST_LENGTH 20
-#define SHA1_DIGEST_STRING_LENGTH 41
-
-typedef struct {
- uint32_t state[5];
- uint32_t count[2];
- u_char buffer[64];
-} SHA1_CTX;
-
-__BEGIN_DECLS
-void SHA1Transform(uint32_t[5], const u_char[64]);
-void SHA1Init(SHA1_CTX *);
-void SHA1Update(SHA1_CTX *, const u_char *, u_int);
-void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
-__END_DECLS
-
-#endif /* _SYS_SHA1_H_ */
diff --git a/9/platforms/android-19/arch-arm64/usr/include/sys/socket.h b/9/platforms/android-19/arch-arm64/usr/include/sys/socket.h
index 7edaac9..ae2f238 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/sys/socket.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/sys/socket.h
@@ -107,7 +107,7 @@ struct cmsghdr {
int cmsg_type;
};
-#define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg))
+#define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr((mhdr), (cmsg))
#define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
#define CMSG_DATA(cmsg) ((void*)((char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr))))
#define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
@@ -117,7 +117,7 @@ struct cmsghdr {
? (struct cmsghdr*) (msg)->msg_control : (struct cmsghdr*) NULL)
#define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char*)(cmsg) - (char*)(mhdr)->msg_control)))
-struct cmsghdr* cmsg_nxthdr(struct msghdr*, struct cmsghdr*);
+struct cmsghdr* __cmsg_nxthdr(struct msghdr*, struct cmsghdr*);
#define SCM_RIGHTS 0x01
#define SCM_CREDENTIALS 0x02
diff --git a/9/platforms/android-19/arch-arm64/usr/include/sys/types.h b/9/platforms/android-19/arch-arm64/usr/include/sys/types.h
index 9a76ad2..a5fa692 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/sys/types.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/sys/types.h
@@ -91,12 +91,17 @@ typedef __kernel_time_t __time_t;
typedef __time_t time_t;
/* This historical accident means that we had a 32-bit off_t on 32-bit architectures. */
-#ifndef _OFF_T_DEFINED_
-#define _OFF_T_DEFINED_
+#if !defined(__LP64__)
typedef __kernel_off_t off_t;
-#endif
typedef __kernel_loff_t loff_t;
typedef loff_t off64_t;
+#else
+/* We could re-use the LP32 definitions, but that would mean that although off_t and loff_t/off64_t
+ * would be the same size, they wouldn't actually be the same type, which can lead to warnings. */
+typedef __kernel_off_t off_t;
+typedef off_t loff_t;
+typedef loff_t off64_t;
+#endif
/* while POSIX wants these in <sys/types.h>, we
* declare then in <pthread.h> instead */
diff --git a/9/platforms/android-19/arch-arm64/usr/lib/libc.a b/9/platforms/android-19/arch-arm64/usr/lib/libc.a
index fca295e..ca225f8 100644
--- a/9/platforms/android-19/arch-arm64/usr/lib/libc.a
+++ b/9/platforms/android-19/arch-arm64/usr/lib/libc.a
Binary files differ
diff --git a/9/platforms/android-19/arch-arm64/usr/lib/libc.so b/9/platforms/android-19/arch-arm64/usr/lib/libc.so
index 9a6763b..4821898 100755
--- a/9/platforms/android-19/arch-arm64/usr/lib/libc.so
+++ b/9/platforms/android-19/arch-arm64/usr/lib/libc.so
Binary files differ
diff --git a/9/platforms/android-19/arch-arm64/usr/lib/libm.a b/9/platforms/android-19/arch-arm64/usr/lib/libm.a
index 63c94f3..adbd82e 100644
--- a/9/platforms/android-19/arch-arm64/usr/lib/libm.a
+++ b/9/platforms/android-19/arch-arm64/usr/lib/libm.a
Binary files differ
diff --git a/9/platforms/android-19/arch-arm64/usr/lib/libm.so b/9/platforms/android-19/arch-arm64/usr/lib/libm.so
index 2a2c77f..79fc8ea 100755
--- a/9/platforms/android-19/arch-arm64/usr/lib/libm.so
+++ b/9/platforms/android-19/arch-arm64/usr/lib/libm.so
Binary files differ
diff --git a/9/platforms/android-19/arch-mips64/usr/include/fcntl.h b/9/platforms/android-19/arch-mips64/usr/include/fcntl.h
index cd68154..4450bb6 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/fcntl.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/fcntl.h
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include <linux/fadvise.h>
#include <linux/fcntl.h>
+#include <linux/uio.h>
#include <unistd.h> /* this is not required, but makes client code much happier */
__BEGIN_DECLS
@@ -51,9 +52,12 @@ struct flock64 {
#define F_SETLKW64 F_SETLKW
#endif
-#ifndef O_ASYNC
-#define O_ASYNC FASYNC
-#endif
+#define O_ASYNC FASYNC
+
+#define SPLICE_F_MOVE 1
+#define SPLICE_F_NONBLOCK 2
+#define SPLICE_F_MORE 4
+#define SPLICE_F_GIFT 8
#define SYNC_FILE_RANGE_WAIT_BEFORE 1
#define SYNC_FILE_RANGE_WRITE 2
@@ -70,7 +74,10 @@ extern int open(const char*, int, ...);
extern int open64(const char*, int, ...);
extern int posix_fallocate64(int, off64_t, off64_t);
extern int posix_fallocate(int, off_t, off_t);
+extern ssize_t splice(int, off64_t*, int, off64_t*, size_t, unsigned int);
+extern ssize_t tee(int, int, size_t, unsigned int);
extern int unlinkat(int, const char*, int);
+extern ssize_t vmsplice(int, const struct iovec*, size_t, unsigned int);
#if defined(__BIONIC_FORTIFY)
diff --git a/9/platforms/android-19/arch-mips64/usr/include/math.h b/9/platforms/android-19/arch-mips64/usr/include/math.h
index 4faec33..79d9c5c 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/math.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/math.h
@@ -172,300 +172,585 @@ extern int signgam;
/*
* ANSI/POSIX
*/
-int __fpclassifyd(double) __pure2;
-int __fpclassifyf(float) __pure2;
-int __fpclassifyl(long double) __pure2;
-int __isfinitef(float) __pure2;
-int __isfinite(double) __pure2;
-int __isfinitel(long double) __pure2;
-int __isinff(float) __pure2;
-int __isinfl(long double) __pure2;
-int __isnanf(float) __pure2;
-int __isnanl(long double) __pure2;
-int __isnormalf(float) __pure2;
-int __isnormal(double) __pure2;
-int __isnormall(long double) __pure2;
-int __signbit(double) __pure2;
-int __signbitf(float) __pure2;
-int __signbitl(long double) __pure2;
-
-double acos(double);
-double asin(double);
-double atan(double);
-double atan2(double, double);
-double cos(double);
-double sin(double);
-double tan(double);
-
-double cosh(double);
-double sinh(double);
-double tanh(double);
-
-double exp(double);
-double frexp(double, int *); /* fundamentally !__pure2 */
-double ldexp(double, int);
-double log(double);
-double log10(double);
-double modf(double, double *); /* fundamentally !__pure2 */
-
-double pow(double, double);
-double sqrt(double);
-
-double ceil(double);
-double fabs(double) __pure2;
-double floor(double);
-double fmod(double, double);
+int __fpclassifyd(double) __NDK_FPABI_MATH__ __pure2;
+int __fpclassifyf(float) __NDK_FPABI_MATH__ __pure2;
+int __fpclassifyl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isfinitef(float) __NDK_FPABI_MATH__ __pure2;
+int __isfinite(double) __NDK_FPABI_MATH__ __pure2;
+int __isfinitel(long double) __NDK_FPABI_MATH__ __pure2;
+int __isinff(float) __NDK_FPABI_MATH__ __pure2;
+int __isinfl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isnanf(float) __NDK_FPABI_MATH__ __pure2;
+int __isnanl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isnormalf(float) __NDK_FPABI_MATH__ __pure2;
+int __isnormal(double) __NDK_FPABI_MATH__ __pure2;
+int __isnormall(long double) __NDK_FPABI_MATH__ __pure2;
+int __signbit(double) __NDK_FPABI_MATH__ __pure2;
+int __signbitf(float) __NDK_FPABI_MATH__ __pure2;
+int __signbitl(long double) __NDK_FPABI_MATH__ __pure2;
+
+double acos(double) __NDK_FPABI_MATH__;
+double asin(double) __NDK_FPABI_MATH__;
+double atan(double) __NDK_FPABI_MATH__;
+double atan2(double, double) __NDK_FPABI_MATH__;
+double cos(double) __NDK_FPABI_MATH__;
+double sin(double) __NDK_FPABI_MATH__;
+double tan(double) __NDK_FPABI_MATH__;
+
+double cosh(double) __NDK_FPABI_MATH__;
+double sinh(double) __NDK_FPABI_MATH__;
+double tanh(double) __NDK_FPABI_MATH__;
+
+double exp(double) __NDK_FPABI_MATH__;
+double frexp(double, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+double ldexp(double, int) __NDK_FPABI_MATH__;
+double log(double) __NDK_FPABI_MATH__;
+double log10(double) __NDK_FPABI_MATH__;
+double modf(double, double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+double pow(double, double) __NDK_FPABI_MATH__;
+double sqrt(double) __NDK_FPABI_MATH__;
+
+double ceil(double) __NDK_FPABI_MATH__;
+double fabs(double) __NDK_FPABI_MATH__ __pure2;
+double floor(double) __NDK_FPABI_MATH__;
+double fmod(double, double) __NDK_FPABI_MATH__;
/*
* These functions are not in C90.
*/
#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE
-double acosh(double);
-double asinh(double);
-double atanh(double);
-double cbrt(double);
-double erf(double);
-double erfc(double);
-double exp2(double);
-double expm1(double);
-double fma(double, double, double);
-double hypot(double, double);
-int ilogb(double) __pure2;
-int (isinf)(double) __pure2;
-int (isnan)(double) __pure2;
-double lgamma(double);
-long long llrint(double);
-long long llround(double);
-double log1p(double);
-double log2(double);
-double logb(double);
-long lrint(double);
-long lround(double);
-double nan(const char *) __pure2;
-double nextafter(double, double);
-double remainder(double, double);
-double remquo(double, double, int *);
-double rint(double);
+double acosh(double) __NDK_FPABI_MATH__;
+double asinh(double) __NDK_FPABI_MATH__;
+double atanh(double) __NDK_FPABI_MATH__;
+double cbrt(double) __NDK_FPABI_MATH__;
+double erf(double) __NDK_FPABI_MATH__;
+double erfc(double) __NDK_FPABI_MATH__;
+double exp2(double) __NDK_FPABI_MATH__;
+double expm1(double) __NDK_FPABI_MATH__;
+double fma(double, double, double) __NDK_FPABI_MATH__;
+double hypot(double, double) __NDK_FPABI_MATH__;
+int ilogb(double) __NDK_FPABI_MATH__ __pure2;
+int (isinf)(double) __NDK_FPABI_MATH__ __pure2;
+int (isnan)(double) __NDK_FPABI_MATH__ __pure2;
+double lgamma(double) __NDK_FPABI_MATH__;
+long long llrint(double) __NDK_FPABI_MATH__;
+long long llround(double) __NDK_FPABI_MATH__;
+double log1p(double) __NDK_FPABI_MATH__;
+double log2(double) __NDK_FPABI_MATH__;
+double logb(double) __NDK_FPABI_MATH__;
+long lrint(double) __NDK_FPABI_MATH__;
+long lround(double) __NDK_FPABI_MATH__;
+double nan(const char *) __NDK_FPABI_MATH__ __pure2;
+double nextafter(double, double) __NDK_FPABI_MATH__;
+double remainder(double, double) __NDK_FPABI_MATH__;
+double remquo(double, double, int *) __NDK_FPABI_MATH__;
+double rint(double) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
#if __BSD_VISIBLE || __XSI_VISIBLE
-double j0(double);
-double j1(double);
-double jn(int, double);
-double y0(double);
-double y1(double);
-double yn(int, double);
+double j0(double) __NDK_FPABI_MATH__;
+double j1(double) __NDK_FPABI_MATH__;
+double jn(int, double) __NDK_FPABI_MATH__;
+double y0(double) __NDK_FPABI_MATH__;
+double y1(double) __NDK_FPABI_MATH__;
+double yn(int, double) __NDK_FPABI_MATH__;
#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
-double gamma(double);
+double gamma(double) __NDK_FPABI_MATH__;
#endif
#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
-double scalb(double, double);
+double scalb(double, double) __NDK_FPABI_MATH__;
#endif
#endif /* __BSD_VISIBLE || __XSI_VISIBLE */
#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
-double copysign(double, double) __pure2;
-double fdim(double, double);
-double fmax(double, double) __pure2;
-double fmin(double, double) __pure2;
-double nearbyint(double);
-double round(double);
-double scalbln(double, long);
-double scalbn(double, int);
-double tgamma(double);
-double trunc(double);
+double copysign(double, double) __NDK_FPABI_MATH__ __pure2;
+double fdim(double, double) __NDK_FPABI_MATH__;
+double fmax(double, double) __NDK_FPABI_MATH__ __pure2;
+double fmin(double, double) __NDK_FPABI_MATH__ __pure2;
+double nearbyint(double) __NDK_FPABI_MATH__;
+double round(double) __NDK_FPABI_MATH__;
+double scalbln(double, long) __NDK_FPABI_MATH__;
+double scalbn(double, int) __NDK_FPABI_MATH__;
+double tgamma(double) __NDK_FPABI_MATH__;
+double trunc(double) __NDK_FPABI_MATH__;
#endif
/*
* BSD math library entry points
*/
#if __BSD_VISIBLE
-double drem(double, double);
-int finite(double) __pure2;
-int isnanf(float) __pure2;
-long double significandl(long double);
+double drem(double, double) __NDK_FPABI_MATH__;
+int finite(double) __NDK_FPABI_MATH__ __pure2;
+int isnanf(float) __NDK_FPABI_MATH__ __pure2;
+long double significandl(long double) __NDK_FPABI_MATH__;
/*
* Reentrant version of gamma & lgamma; passes signgam back by reference
* as the second argument; user must allocate space for signgam.
*/
-double gamma_r(double, int *);
-double lgamma_r(double, int *);
+double gamma_r(double, int *) __NDK_FPABI_MATH__;
+double lgamma_r(double, int *) __NDK_FPABI_MATH__;
/*
* IEEE Test Vector
*/
-double significand(double);
+double significand(double) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE */
/* float versions of ANSI/POSIX functions */
#if __ISO_C_VISIBLE >= 1999
-float acosf(float);
-float asinf(float);
-float atanf(float);
-float atan2f(float, float);
-float cosf(float);
-float sinf(float);
-float tanf(float);
-
-float coshf(float);
-float sinhf(float);
-float tanhf(float);
-
-float exp2f(float);
-float expf(float);
-float expm1f(float);
-float frexpf(float, int *); /* fundamentally !__pure2 */
-int ilogbf(float) __pure2;
-float ldexpf(float, int);
-float log10f(float);
-float log1pf(float);
-float log2f(float);
-float logf(float);
-float modff(float, float *); /* fundamentally !__pure2 */
-
-float powf(float, float);
-float sqrtf(float);
-
-float ceilf(float);
-float fabsf(float) __pure2;
-float floorf(float);
-float fmodf(float, float);
-float roundf(float);
-
-float erff(float);
-float erfcf(float);
-float hypotf(float, float);
-float lgammaf(float);
-float tgammaf(float);
-
-float acoshf(float);
-float asinhf(float);
-float atanhf(float);
-float cbrtf(float);
-float logbf(float);
-float copysignf(float, float) __pure2;
-long long llrintf(float);
-long long llroundf(float);
-long lrintf(float);
-long lroundf(float);
-float nanf(const char *) __pure2;
-float nearbyintf(float);
-float nextafterf(float, float);
-float remainderf(float, float);
-float remquof(float, float, int *);
-float rintf(float);
-float scalblnf(float, long);
-float scalbnf(float, int);
-float truncf(float);
-
-float fdimf(float, float);
-float fmaf(float, float, float);
-float fmaxf(float, float) __pure2;
-float fminf(float, float) __pure2;
+float acosf(float) __NDK_FPABI_MATH__;
+float asinf(float) __NDK_FPABI_MATH__;
+float atanf(float) __NDK_FPABI_MATH__;
+float atan2f(float, float) __NDK_FPABI_MATH__;
+float cosf(float) __NDK_FPABI_MATH__;
+float sinf(float) __NDK_FPABI_MATH__;
+float tanf(float) __NDK_FPABI_MATH__;
+
+float coshf(float) __NDK_FPABI_MATH__;
+float sinhf(float) __NDK_FPABI_MATH__;
+float tanhf(float) __NDK_FPABI_MATH__;
+
+float exp2f(float) __NDK_FPABI_MATH__;
+float expf(float) __NDK_FPABI_MATH__;
+float expm1f(float) __NDK_FPABI_MATH__;
+float frexpf(float, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+int ilogbf(float) __NDK_FPABI_MATH__ __pure2;
+float ldexpf(float, int) __NDK_FPABI_MATH__;
+float log10f(float) __NDK_FPABI_MATH__;
+float log1pf(float) __NDK_FPABI_MATH__;
+float log2f(float) __NDK_FPABI_MATH__;
+float logf(float) __NDK_FPABI_MATH__;
+float modff(float, float *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+float powf(float, float) __NDK_FPABI_MATH__;
+float sqrtf(float) __NDK_FPABI_MATH__;
+
+float ceilf(float) __NDK_FPABI_MATH__;
+float fabsf(float) __NDK_FPABI_MATH__ __pure2;
+float floorf(float) __NDK_FPABI_MATH__;
+float fmodf(float, float) __NDK_FPABI_MATH__;
+float roundf(float) __NDK_FPABI_MATH__;
+
+float erff(float) __NDK_FPABI_MATH__;
+float erfcf(float) __NDK_FPABI_MATH__;
+float hypotf(float, float) __NDK_FPABI_MATH__;
+float lgammaf(float) __NDK_FPABI_MATH__;
+float tgammaf(float) __NDK_FPABI_MATH__;
+
+float acoshf(float) __NDK_FPABI_MATH__;
+float asinhf(float) __NDK_FPABI_MATH__;
+float atanhf(float) __NDK_FPABI_MATH__;
+float cbrtf(float) __NDK_FPABI_MATH__;
+float logbf(float) __NDK_FPABI_MATH__;
+float copysignf(float, float) __NDK_FPABI_MATH__ __pure2;
+long long llrintf(float) __NDK_FPABI_MATH__;
+long long llroundf(float) __NDK_FPABI_MATH__;
+long lrintf(float) __NDK_FPABI_MATH__;
+long lroundf(float) __NDK_FPABI_MATH__;
+float nanf(const char *) __NDK_FPABI_MATH__ __pure2;
+float nearbyintf(float) __NDK_FPABI_MATH__;
+float nextafterf(float, float) __NDK_FPABI_MATH__;
+float remainderf(float, float) __NDK_FPABI_MATH__;
+float remquof(float, float, int *) __NDK_FPABI_MATH__;
+float rintf(float) __NDK_FPABI_MATH__;
+float scalblnf(float, long) __NDK_FPABI_MATH__;
+float scalbnf(float, int) __NDK_FPABI_MATH__;
+float truncf(float) __NDK_FPABI_MATH__;
+
+float fdimf(float, float) __NDK_FPABI_MATH__;
+float fmaf(float, float, float) __NDK_FPABI_MATH__;
+float fmaxf(float, float) __NDK_FPABI_MATH__ __pure2;
+float fminf(float, float) __NDK_FPABI_MATH__ __pure2;
#endif
/*
* float versions of BSD math library entry points
*/
#if __BSD_VISIBLE
-float dremf(float, float);
-int finitef(float) __pure2;
-float gammaf(float);
-float j0f(float);
-float j1f(float);
-float jnf(int, float);
-float scalbf(float, float);
-float y0f(float);
-float y1f(float);
-float ynf(int, float);
+float dremf(float, float) __NDK_FPABI_MATH__;
+int finitef(float) __NDK_FPABI_MATH__ __pure2;
+float gammaf(float) __NDK_FPABI_MATH__;
+float j0f(float) __NDK_FPABI_MATH__;
+float j1f(float) __NDK_FPABI_MATH__;
+float jnf(int, float) __NDK_FPABI_MATH__;
+float scalbf(float, float) __NDK_FPABI_MATH__;
+float y0f(float) __NDK_FPABI_MATH__;
+float y1f(float) __NDK_FPABI_MATH__;
+float ynf(int, float) __NDK_FPABI_MATH__;
/*
* Float versions of reentrant version of gamma & lgamma; passes
* signgam back by reference as the second argument; user must
* allocate space for signgam.
*/
-float gammaf_r(float, int *);
-float lgammaf_r(float, int *);
+float gammaf_r(float, int *) __NDK_FPABI_MATH__;
+float lgammaf_r(float, int *) __NDK_FPABI_MATH__;
/*
* float version of IEEE Test Vector
*/
-float significandf(float);
+float significandf(float) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE */
/*
* long double versions of ISO/POSIX math functions
*/
#if __ISO_C_VISIBLE >= 1999
-long double acoshl(long double);
-long double acosl(long double);
-long double asinhl(long double);
-long double asinl(long double);
-long double atan2l(long double, long double);
-long double atanhl(long double);
-long double atanl(long double);
-long double cbrtl(long double);
-long double ceill(long double);
-long double copysignl(long double, long double) __pure2;
-long double coshl(long double);
-long double cosl(long double);
-long double erfcl(long double);
-long double erfl(long double);
-long double exp2l(long double);
-long double expl(long double);
-long double expm1l(long double);
-long double fabsl(long double) __pure2;
-long double fdiml(long double, long double);
-long double floorl(long double);
-long double fmal(long double, long double, long double);
-long double fmaxl(long double, long double) __pure2;
-long double fminl(long double, long double) __pure2;
-long double fmodl(long double, long double);
-long double frexpl(long double value, int *); /* fundamentally !__pure2 */
-long double hypotl(long double, long double);
-int ilogbl(long double) __pure2;
-long double ldexpl(long double, int);
-long double lgammal(long double);
-long long llrintl(long double);
-long long llroundl(long double);
-long double log10l(long double);
-long double log1pl(long double);
-long double log2l(long double);
-long double logbl(long double);
-long double logl(long double);
-long lrintl(long double);
-long lroundl(long double);
-long double modfl(long double, long double *); /* fundamentally !__pure2 */
-long double nanl(const char *) __pure2;
-long double nearbyintl(long double);
-long double nextafterl(long double, long double);
-double nexttoward(double, long double);
-float nexttowardf(float, long double);
-long double nexttowardl(long double, long double);
-long double powl(long double, long double);
-long double remainderl(long double, long double);
-long double remquol(long double, long double, int *);
-long double rintl(long double);
-long double roundl(long double);
-long double scalblnl(long double, long);
-long double scalbnl(long double, int);
-long double sinhl(long double);
-long double sinl(long double);
-long double sqrtl(long double);
-long double tanhl(long double);
-long double tanl(long double);
-long double tgammal(long double);
-long double truncl(long double);
+long double acoshl(long double) __NDK_FPABI_MATH__;
+long double acosl(long double) __NDK_FPABI_MATH__;
+long double asinhl(long double) __NDK_FPABI_MATH__;
+long double asinl(long double) __NDK_FPABI_MATH__;
+long double atan2l(long double, long double) __NDK_FPABI_MATH__;
+long double atanhl(long double) __NDK_FPABI_MATH__;
+long double atanl(long double) __NDK_FPABI_MATH__;
+long double cbrtl(long double) __NDK_FPABI_MATH__;
+long double ceill(long double) __NDK_FPABI_MATH__;
+long double copysignl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double coshl(long double) __NDK_FPABI_MATH__;
+long double cosl(long double) __NDK_FPABI_MATH__;
+long double erfcl(long double) __NDK_FPABI_MATH__;
+long double erfl(long double) __NDK_FPABI_MATH__;
+long double exp2l(long double) __NDK_FPABI_MATH__;
+long double expl(long double) __NDK_FPABI_MATH__;
+long double expm1l(long double) __NDK_FPABI_MATH__;
+long double fabsl(long double) __NDK_FPABI_MATH__ __pure2;
+long double fdiml(long double, long double) __NDK_FPABI_MATH__;
+long double floorl(long double) __NDK_FPABI_MATH__;
+long double fmal(long double, long double, long double) __NDK_FPABI_MATH__;
+long double fmaxl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double fminl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double fmodl(long double, long double) __NDK_FPABI_MATH__;
+long double frexpl(long double value, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double hypotl(long double, long double) __NDK_FPABI_MATH__;
+int ilogbl(long double) __NDK_FPABI_MATH__ __pure2;
+long double ldexpl(long double, int) __NDK_FPABI_MATH__;
+long double lgammal(long double) __NDK_FPABI_MATH__;
+long long llrintl(long double) __NDK_FPABI_MATH__;
+long long llroundl(long double) __NDK_FPABI_MATH__;
+long double log10l(long double) __NDK_FPABI_MATH__;
+long double log1pl(long double) __NDK_FPABI_MATH__;
+long double log2l(long double) __NDK_FPABI_MATH__;
+long double logbl(long double) __NDK_FPABI_MATH__;
+long double logl(long double) __NDK_FPABI_MATH__;
+long lrintl(long double) __NDK_FPABI_MATH__;
+long lroundl(long double) __NDK_FPABI_MATH__;
+long double modfl(long double, long double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double nanl(const char *) __NDK_FPABI_MATH__ __pure2;
+long double nearbyintl(long double) __NDK_FPABI_MATH__;
+long double nextafterl(long double, long double) __NDK_FPABI_MATH__;
+double nexttoward(double, long double) __NDK_FPABI_MATH__;
+float nexttowardf(float, long double) __NDK_FPABI_MATH__;
+long double nexttowardl(long double, long double) __NDK_FPABI_MATH__;
+long double powl(long double, long double) __NDK_FPABI_MATH__;
+long double remainderl(long double, long double) __NDK_FPABI_MATH__;
+long double remquol(long double, long double, int *) __NDK_FPABI_MATH__;
+long double rintl(long double) __NDK_FPABI_MATH__;
+long double roundl(long double) __NDK_FPABI_MATH__;
+long double scalblnl(long double, long) __NDK_FPABI_MATH__;
+long double scalbnl(long double, int) __NDK_FPABI_MATH__;
+long double sinhl(long double) __NDK_FPABI_MATH__;
+long double sinl(long double) __NDK_FPABI_MATH__;
+long double sqrtl(long double) __NDK_FPABI_MATH__;
+long double tanhl(long double) __NDK_FPABI_MATH__;
+long double tanl(long double) __NDK_FPABI_MATH__;
+long double tgammal(long double) __NDK_FPABI_MATH__;
+long double truncl(long double) __NDK_FPABI_MATH__;
#endif /* __ISO_C_VISIBLE >= 1999 */
#if defined(_GNU_SOURCE)
-void sincos(double, double*, double*);
-void sincosf(float, float*, float*);
-void sincosl(long double, long double*, long double*);
+void sincos(double, double*, double*) __NDK_FPABI_MATH__;
+void sincosf(float, float*, float*) __NDK_FPABI_MATH__;
+void sincosl(long double, long double*, long double*) __NDK_FPABI_MATH__;
+#endif /* _GNU_SOURCE */
+
+/* builtin version of all the above math functions are annotated too */
+
+double __builtin_acos(double) __NDK_FPABI_MATH__;
+double __builtin_asin(double) __NDK_FPABI_MATH__;
+double __builtin_atan(double) __NDK_FPABI_MATH__;
+double __builtin_atan2(double, double) __NDK_FPABI_MATH__;
+double __builtin_cos(double) __NDK_FPABI_MATH__;
+double __builtin_sin(double) __NDK_FPABI_MATH__;
+double __builtin_tan(double) __NDK_FPABI_MATH__;
+
+double __builtin_cosh(double) __NDK_FPABI_MATH__;
+double __builtin_sinh(double) __NDK_FPABI_MATH__;
+double __builtin_tanh(double) __NDK_FPABI_MATH__;
+
+double __builtin_exp(double) __NDK_FPABI_MATH__;
+double __builtin_frexp(double, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+double __builtin_ldexp(double, int) __NDK_FPABI_MATH__;
+double __builtin_log(double) __NDK_FPABI_MATH__;
+double __builtin_log10(double) __NDK_FPABI_MATH__;
+double __builtin_modf(double, double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+double __builtin_pow(double, double) __NDK_FPABI_MATH__;
+double __builtin_sqrt(double) __NDK_FPABI_MATH__;
+
+double __builtin_ceil(double) __NDK_FPABI_MATH__;
+double __builtin_fabs(double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_floor(double) __NDK_FPABI_MATH__;
+double __builtin_fmod(double, double) __NDK_FPABI_MATH__;
+
+/*
+ * These functions are not in C90.
+ */
+#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE
+double __builtin_acosh(double) __NDK_FPABI_MATH__;
+double __builtin_asinh(double) __NDK_FPABI_MATH__;
+double __builtin_atanh(double) __NDK_FPABI_MATH__;
+double __builtin_cbrt(double) __NDK_FPABI_MATH__;
+double __builtin_erf(double) __NDK_FPABI_MATH__;
+double __builtin_erfc(double) __NDK_FPABI_MATH__;
+double __builtin_exp2(double) __NDK_FPABI_MATH__;
+double __builtin_expm1(double) __NDK_FPABI_MATH__;
+double __builtin_fma(double, double, double) __NDK_FPABI_MATH__;
+double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
+int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
+#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 6)
+int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2;
+int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
+#else
+/* clang < 3.5 has faulty prototype for __builtin_isnan */
+#endif
+double __builtin_lgamma(double) __NDK_FPABI_MATH__;
+long long __builtin_llrint(double) __NDK_FPABI_MATH__;
+long long __builtin_llround(double) __NDK_FPABI_MATH__;
+double __builtin_log1p(double) __NDK_FPABI_MATH__;
+double __builtin_log2(double) __NDK_FPABI_MATH__;
+double __builtin_logb(double) __NDK_FPABI_MATH__;
+long __builtin_lrint(double) __NDK_FPABI_MATH__;
+long __builtin_lround(double) __NDK_FPABI_MATH__;
+double __builtin_nan(const char *) __NDK_FPABI_MATH__ __pure2;
+double __builtin_nextafter(double, double) __NDK_FPABI_MATH__;
+double __builtin_remainder(double, double) __NDK_FPABI_MATH__;
+double __builtin_remquo(double, double, int *) __NDK_FPABI_MATH__;
+double __builtin_rint(double) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
+
+#if __BSD_VISIBLE || __XSI_VISIBLE
+double __builtin_j0(double) __NDK_FPABI_MATH__;
+double __builtin_j1(double) __NDK_FPABI_MATH__;
+double __builtin_jn(int, double) __NDK_FPABI_MATH__;
+double __builtin_y0(double) __NDK_FPABI_MATH__;
+double __builtin_y1(double) __NDK_FPABI_MATH__;
+double __builtin_yn(int, double) __NDK_FPABI_MATH__;
+
+#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
+double __builtin_gamma(double) __NDK_FPABI_MATH__;
+#endif
+
+#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
+double __builtin_scalb(double, double) __NDK_FPABI_MATH__;
+#endif
+#endif /* __BSD_VISIBLE || __XSI_VISIBLE */
+
+#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
+double __builtin_copysign(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_fdim(double, double) __NDK_FPABI_MATH__;
+double __builtin_fmax(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_fmin(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_nearbyint(double) __NDK_FPABI_MATH__;
+double __builtin_round(double) __NDK_FPABI_MATH__;
+double __builtin_scalbln(double, long) __NDK_FPABI_MATH__;
+double __builtin_scalbn(double, int) __NDK_FPABI_MATH__;
+double __builtin_tgamma(double) __NDK_FPABI_MATH__;
+double __builtin_trunc(double) __NDK_FPABI_MATH__;
+#endif
+
+/*
+ * BSD math library entry points
+ */
+#if __BSD_VISIBLE
+double __builtin_drem(double, double) __NDK_FPABI_MATH__;
+int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2;
+int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2;
+long double significandl(long double) __NDK_FPABI_MATH__;
+
+/*
+ * Reentrant version of gamma & lgamma; passes signgam back by reference
+ * as the second argument; user must allocate space for signgam.
+ */
+double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__;
+double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__;
+
+/*
+ * IEEE Test Vector
+ */
+double __builtin_significand(double) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE */
+
+/* float versions of ANSI/POSIX functions */
+#if __ISO_C_VISIBLE >= 1999
+float __builtin_acosf(float) __NDK_FPABI_MATH__;
+float __builtin_asinf(float) __NDK_FPABI_MATH__;
+float __builtin_atanf(float) __NDK_FPABI_MATH__;
+float __builtin_atan2f(float, float) __NDK_FPABI_MATH__;
+float __builtin_cosf(float) __NDK_FPABI_MATH__;
+float __builtin_sinf(float) __NDK_FPABI_MATH__;
+float __builtin_tanf(float) __NDK_FPABI_MATH__;
+
+float __builtin_coshf(float) __NDK_FPABI_MATH__;
+float __builtin_sinhf(float) __NDK_FPABI_MATH__;
+float __builtin_tanhf(float) __NDK_FPABI_MATH__;
+
+float __builtin_exp2f(float) __NDK_FPABI_MATH__;
+float __builtin_expf(float) __NDK_FPABI_MATH__;
+float __builtin_expm1f(float) __NDK_FPABI_MATH__;
+float __builtin_frexpf(float, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+int __builtin_ilogbf(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_ldexpf(float, int) __NDK_FPABI_MATH__;
+float __builtin_log10f(float) __NDK_FPABI_MATH__;
+float __builtin_log1pf(float) __NDK_FPABI_MATH__;
+float __builtin_log2f(float) __NDK_FPABI_MATH__;
+float __builtin_logf(float) __NDK_FPABI_MATH__;
+float __builtin_modff(float, float *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+float __builtin_powf(float, float) __NDK_FPABI_MATH__;
+float __builtin_sqrtf(float) __NDK_FPABI_MATH__;
+
+float __builtin_ceilf(float) __NDK_FPABI_MATH__;
+float __builtin_fabsf(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_floorf(float) __NDK_FPABI_MATH__;
+float __builtin_fmodf(float, float) __NDK_FPABI_MATH__;
+float __builtin_roundf(float) __NDK_FPABI_MATH__;
+
+float __builtin_erff(float) __NDK_FPABI_MATH__;
+float __builtin_erfcf(float) __NDK_FPABI_MATH__;
+float __builtin_hypotf(float, float) __NDK_FPABI_MATH__;
+float __builtin_lgammaf(float) __NDK_FPABI_MATH__;
+float __builtin_tgammaf(float) __NDK_FPABI_MATH__;
+
+float __builtin_acoshf(float) __NDK_FPABI_MATH__;
+float __builtin_asinhf(float) __NDK_FPABI_MATH__;
+float __builtin_atanhf(float) __NDK_FPABI_MATH__;
+float __builtin_cbrtf(float) __NDK_FPABI_MATH__;
+float __builtin_logbf(float) __NDK_FPABI_MATH__;
+float __builtin_copysignf(float, float) __NDK_FPABI_MATH__ __pure2;
+long long __builtin_llrintf(float) __NDK_FPABI_MATH__;
+long long __builtin_llroundf(float) __NDK_FPABI_MATH__;
+long __builtin_lrintf(float) __NDK_FPABI_MATH__;
+long __builtin_lroundf(float) __NDK_FPABI_MATH__;
+float __builtin_nanf(const char *) __NDK_FPABI_MATH__ __pure2;
+float __builtin_nearbyintf(float) __NDK_FPABI_MATH__;
+float __builtin_nextafterf(float, float) __NDK_FPABI_MATH__;
+float __builtin_remainderf(float, float) __NDK_FPABI_MATH__;
+float __builtin_remquof(float, float, int *) __NDK_FPABI_MATH__;
+float __builtin_rintf(float) __NDK_FPABI_MATH__;
+float __builtin_scalblnf(float, long) __NDK_FPABI_MATH__;
+float __builtin_scalbnf(float, int) __NDK_FPABI_MATH__;
+float __builtin_truncf(float) __NDK_FPABI_MATH__;
+
+float __builtin_fdimf(float, float) __NDK_FPABI_MATH__;
+float __builtin_fmaf(float, float, float) __NDK_FPABI_MATH__;
+float __builtin_fmaxf(float, float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_fminf(float, float) __NDK_FPABI_MATH__ __pure2;
+#endif
+
+/*
+ * float versions of BSD math library entry points
+ */
+#if __BSD_VISIBLE
+float __builtin_dremf(float, float) __NDK_FPABI_MATH__;
+int __builtin_finitef(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_gammaf(float) __NDK_FPABI_MATH__;
+float __builtin_j0f(float) __NDK_FPABI_MATH__;
+float __builtin_j1f(float) __NDK_FPABI_MATH__;
+float __builtin_jnf(int, float) __NDK_FPABI_MATH__;
+float __builtin_scalbf(float, float) __NDK_FPABI_MATH__;
+float __builtin_y0f(float) __NDK_FPABI_MATH__;
+float __builtin_y1f(float) __NDK_FPABI_MATH__;
+float __builtin_ynf(int, float) __NDK_FPABI_MATH__;
+
+/*
+ * Float versions of reentrant version of gamma & lgamma; passes
+ * signgam back by reference as the second argument; user must
+ * allocate space for signgam.
+ */
+float __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__;
+float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__;
+
+/*
+ * float version of IEEE Test Vector
+ */
+float __builtin_significandf(float) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE */
+
+/*
+ * long double versions of ISO/POSIX math functions
+ */
+#if __ISO_C_VISIBLE >= 1999
+long double __builtin_acoshl(long double) __NDK_FPABI_MATH__;
+long double __builtin_acosl(long double) __NDK_FPABI_MATH__;
+long double __builtin_asinhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_asinl(long double) __NDK_FPABI_MATH__;
+long double __builtin_atan2l(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_atanhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_atanl(long double) __NDK_FPABI_MATH__;
+long double __builtin_cbrtl(long double) __NDK_FPABI_MATH__;
+long double __builtin_ceill(long double) __NDK_FPABI_MATH__;
+long double __builtin_copysignl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_coshl(long double) __NDK_FPABI_MATH__;
+long double __builtin_cosl(long double) __NDK_FPABI_MATH__;
+long double __builtin_erfcl(long double) __NDK_FPABI_MATH__;
+long double __builtin_erfl(long double) __NDK_FPABI_MATH__;
+long double __builtin_exp2l(long double) __NDK_FPABI_MATH__;
+long double __builtin_expl(long double) __NDK_FPABI_MATH__;
+long double __builtin_expm1l(long double) __NDK_FPABI_MATH__;
+long double __builtin_fabsl(long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fdiml(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_floorl(long double) __NDK_FPABI_MATH__;
+long double __builtin_fmal(long double, long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_fmaxl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fminl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fmodl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_frexpl(long double value, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double __builtin_hypotl(long double, long double) __NDK_FPABI_MATH__;
+int __builtin_ilogbl(long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_ldexpl(long double, int) __NDK_FPABI_MATH__;
+long double __builtin_lgammal(long double) __NDK_FPABI_MATH__;
+long long __builtin_llrintl(long double) __NDK_FPABI_MATH__;
+long long __builtin_llroundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_log10l(long double) __NDK_FPABI_MATH__;
+long double __builtin_log1pl(long double) __NDK_FPABI_MATH__;
+long double __builtin_log2l(long double) __NDK_FPABI_MATH__;
+long double __builtin_logbl(long double) __NDK_FPABI_MATH__;
+long double __builtin_logl(long double) __NDK_FPABI_MATH__;
+long __builtin_lrintl(long double) __NDK_FPABI_MATH__;
+long __builtin_lroundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_modfl(long double, long double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double __builtin_nanl(const char *) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_nearbyintl(long double) __NDK_FPABI_MATH__;
+long double __builtin_nextafterl(long double, long double) __NDK_FPABI_MATH__;
+double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__;
+float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__;
+long double __builtin_nexttowardl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_powl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_remainderl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_remquol(long double, long double, int *) __NDK_FPABI_MATH__;
+long double __builtin_rintl(long double) __NDK_FPABI_MATH__;
+long double __builtin_roundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_scalblnl(long double, long) __NDK_FPABI_MATH__;
+long double __builtin_scalbnl(long double, int) __NDK_FPABI_MATH__;
+long double __builtin_sinhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_sinl(long double) __NDK_FPABI_MATH__;
+long double __builtin_sqrtl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tanhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tanl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tgammal(long double) __NDK_FPABI_MATH__;
+long double __builtin_truncl(long double) __NDK_FPABI_MATH__;
+
+#endif /* __ISO_C_VISIBLE >= 1999 */
+
+#if defined(_GNU_SOURCE)
+void __builtin_sincos(double, double*, double*) __NDK_FPABI_MATH__;
+void __builtin_sincosf(float, float*, float*) __NDK_FPABI_MATH__;
+void __builtin_sincosl(long double, long double*, long double*) __NDK_FPABI_MATH__;
#endif /* _GNU_SOURCE */
#pragma GCC visibility pop
diff --git a/9/platforms/android-19/arch-mips64/usr/include/nsswitch.h b/9/platforms/android-19/arch-mips64/usr/include/nsswitch.h
index e03844b..af88433 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/nsswitch.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/nsswitch.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nsswitch.h,v 1.18 2005/11/29 03:12:58 christos Exp $ */
+/* $NetBSD: nsswitch.h,v 1.21 2011/07/17 20:54:34 joerg Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -15,13 +15,6 @@
* 2. 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.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the NetBSD
- * Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
@@ -137,6 +130,7 @@ typedef struct {
#else
# define NS_NIS_CB(F,C)
#endif
+#define NS_NULL_CB { .src = NULL },
/*
* ns_src - `nsswitch source'
@@ -149,7 +143,6 @@ typedef struct {
} ns_src;
-#if 0
/*
* Default sourcelists (if nsswitch.conf is missing, corrupt,
* or the requested database doesn't have an entry)
@@ -161,7 +154,7 @@ extern const ns_src __nsdefaultfiles[];
extern const ns_src __nsdefaultfiles_forceall[];
extern const ns_src __nsdefaultnis[];
extern const ns_src __nsdefaultnis_forceall[];
-#endif
+
/*
* ns_mtab - `nsswitch method table'
@@ -222,7 +215,7 @@ typedef struct {
__BEGIN_DECLS
int nsdispatch(void *, const ns_dtab [], const char *,
- const char *, const ns_src [], ...);
+ const char *, const ns_src [], ...) __LIBC_ABI_PUBLIC__;
#ifdef _NS_PRIVATE
int _nsdbtaddsrc(ns_dbt *, const ns_src *);
diff --git a/9/platforms/android-19/arch-mips64/usr/include/signal.h b/9/platforms/android-19/arch-mips64/usr/include/signal.h
index 0063b24..f1849c5 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/signal.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/signal.h
@@ -34,6 +34,7 @@
#include <limits.h> /* For LONG_BIT */
#include <string.h> /* For memset() */
#include <sys/types.h>
+#include <asm/sigcontext.h>
#if defined(__LP64__) || defined(__mips__)
/* For 64-bit (and mips), the kernel's struct sigaction doesn't match the POSIX one,
diff --git a/9/platforms/android-19/arch-mips64/usr/include/stdlib.h b/9/platforms/android-19/arch-mips64/usr/include/stdlib.h
index 266aa5e..62b7a67 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/stdlib.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/stdlib.h
@@ -100,9 +100,10 @@ extern unsigned short *seed48(unsigned short*);
extern double erand48(unsigned short xsubi[3]);
extern double drand48(void);
extern void srand48(long);
-extern unsigned int arc4random(void);
-extern void arc4random_stir(void);
-extern void arc4random_addrandom(unsigned char *, int);
+
+unsigned int arc4random(void);
+unsigned int arc4random_uniform(unsigned int);
+void arc4random_buf(void*, size_t);
#define RAND_MAX 0x7fffffff
diff --git a/9/platforms/android-19/arch-mips64/usr/include/strings.h b/9/platforms/android-19/arch-mips64/usr/include/strings.h
index c4d5f6c..ae261cf 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/strings.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/strings.h
@@ -43,8 +43,16 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-#define bcopy(b1, b2, len) (void)(memmove((b2), (b1), (len)))
-#define bzero(b, len) (void)(memset((b), '\0', (len)))
+#if defined(__BIONIC_FORTIFY)
+#define bcopy(b1, b2, len) \
+ (void)(__builtin___memmove_chk((b2), (b1), (len), __bos0(b2)))
+#define bzero(b, len) \
+ (void)(__builtin___memset_chk((b), '\0', (len), __bos0(b)))
+#else
+#define bcopy(b1, b2, len) (void)(__builtin_memmove((b2), (b1), (len)))
+#define bzero(b, len) (void)(__builtin_memset((b), '\0', (len)))
+#endif
+
int ffs(int);
int strcasecmp(const char *, const char *);
diff --git a/9/platforms/android-19/arch-mips64/usr/include/sys/sha1.h b/9/platforms/android-19/arch-mips64/usr/include/sys/sha1.h
deleted file mode 100644
index f7ada46..0000000
--- a/9/platforms/android-19/arch-mips64/usr/include/sys/sha1.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* $NetBSD: sha1.h,v 1.13 2005/12/26 18:41:36 perry Exp $ */
-
-/*
- * SHA-1 in C
- * By Steve Reid <steve@edmweb.com>
- * 100% Public Domain
- */
-
-#ifndef _SYS_SHA1_H_
-#define _SYS_SHA1_H_
-
-#include <sys/cdefs.h>
-#include <sys/types.h>
-
-#define SHA1_DIGEST_LENGTH 20
-#define SHA1_DIGEST_STRING_LENGTH 41
-
-typedef struct {
- uint32_t state[5];
- uint32_t count[2];
- u_char buffer[64];
-} SHA1_CTX;
-
-__BEGIN_DECLS
-void SHA1Transform(uint32_t[5], const u_char[64]);
-void SHA1Init(SHA1_CTX *);
-void SHA1Update(SHA1_CTX *, const u_char *, u_int);
-void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
-__END_DECLS
-
-#endif /* _SYS_SHA1_H_ */
diff --git a/9/platforms/android-19/arch-mips64/usr/include/sys/socket.h b/9/platforms/android-19/arch-mips64/usr/include/sys/socket.h
index 7edaac9..ae2f238 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/sys/socket.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/sys/socket.h
@@ -107,7 +107,7 @@ struct cmsghdr {
int cmsg_type;
};
-#define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg))
+#define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr((mhdr), (cmsg))
#define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
#define CMSG_DATA(cmsg) ((void*)((char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr))))
#define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
@@ -117,7 +117,7 @@ struct cmsghdr {
? (struct cmsghdr*) (msg)->msg_control : (struct cmsghdr*) NULL)
#define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char*)(cmsg) - (char*)(mhdr)->msg_control)))
-struct cmsghdr* cmsg_nxthdr(struct msghdr*, struct cmsghdr*);
+struct cmsghdr* __cmsg_nxthdr(struct msghdr*, struct cmsghdr*);
#define SCM_RIGHTS 0x01
#define SCM_CREDENTIALS 0x02
diff --git a/9/platforms/android-19/arch-mips64/usr/include/sys/types.h b/9/platforms/android-19/arch-mips64/usr/include/sys/types.h
index 9a76ad2..a5fa692 100644
--- a/9/platforms/android-19/arch-mips64/usr/include/sys/types.h
+++ b/9/platforms/android-19/arch-mips64/usr/include/sys/types.h
@@ -91,12 +91,17 @@ typedef __kernel_time_t __time_t;
typedef __time_t time_t;
/* This historical accident means that we had a 32-bit off_t on 32-bit architectures. */
-#ifndef _OFF_T_DEFINED_
-#define _OFF_T_DEFINED_
+#if !defined(__LP64__)
typedef __kernel_off_t off_t;
-#endif
typedef __kernel_loff_t loff_t;
typedef loff_t off64_t;
+#else
+/* We could re-use the LP32 definitions, but that would mean that although off_t and loff_t/off64_t
+ * would be the same size, they wouldn't actually be the same type, which can lead to warnings. */
+typedef __kernel_off_t off_t;
+typedef off_t loff_t;
+typedef loff_t off64_t;
+#endif
/* while POSIX wants these in <sys/types.h>, we
* declare then in <pthread.h> instead */
diff --git a/9/platforms/android-19/arch-mips64/usr/lib64/libc.a b/9/platforms/android-19/arch-mips64/usr/lib64/libc.a
index a9a58d2..4414b5c 100644
--- a/9/platforms/android-19/arch-mips64/usr/lib64/libc.a
+++ b/9/platforms/android-19/arch-mips64/usr/lib64/libc.a
Binary files differ
diff --git a/9/platforms/android-19/arch-mips64/usr/lib64/libc.so b/9/platforms/android-19/arch-mips64/usr/lib64/libc.so
index c41ce84..8adcfe5 100755
--- a/9/platforms/android-19/arch-mips64/usr/lib64/libc.so
+++ b/9/platforms/android-19/arch-mips64/usr/lib64/libc.so
Binary files differ
diff --git a/9/platforms/android-19/arch-mips64/usr/lib64/libm.a b/9/platforms/android-19/arch-mips64/usr/lib64/libm.a
index 747dc76..59779f0 100644
--- a/9/platforms/android-19/arch-mips64/usr/lib64/libm.a
+++ b/9/platforms/android-19/arch-mips64/usr/lib64/libm.a
Binary files differ
diff --git a/9/platforms/android-19/arch-mips64/usr/lib64/libm.so b/9/platforms/android-19/arch-mips64/usr/lib64/libm.so
index b872056..bed35ae 100755
--- a/9/platforms/android-19/arch-mips64/usr/lib64/libm.so
+++ b/9/platforms/android-19/arch-mips64/usr/lib64/libm.so
Binary files differ
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h b/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
index cd68154..4450bb6 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include <linux/fadvise.h>
#include <linux/fcntl.h>
+#include <linux/uio.h>
#include <unistd.h> /* this is not required, but makes client code much happier */
__BEGIN_DECLS
@@ -51,9 +52,12 @@ struct flock64 {
#define F_SETLKW64 F_SETLKW
#endif
-#ifndef O_ASYNC
-#define O_ASYNC FASYNC
-#endif
+#define O_ASYNC FASYNC
+
+#define SPLICE_F_MOVE 1
+#define SPLICE_F_NONBLOCK 2
+#define SPLICE_F_MORE 4
+#define SPLICE_F_GIFT 8
#define SYNC_FILE_RANGE_WAIT_BEFORE 1
#define SYNC_FILE_RANGE_WRITE 2
@@ -70,7 +74,10 @@ extern int open(const char*, int, ...);
extern int open64(const char*, int, ...);
extern int posix_fallocate64(int, off64_t, off64_t);
extern int posix_fallocate(int, off_t, off_t);
+extern ssize_t splice(int, off64_t*, int, off64_t*, size_t, unsigned int);
+extern ssize_t tee(int, int, size_t, unsigned int);
extern int unlinkat(int, const char*, int);
+extern ssize_t vmsplice(int, const struct iovec*, size_t, unsigned int);
#if defined(__BIONIC_FORTIFY)
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/math.h b/9/platforms/android-19/arch-x86_64/usr/include/math.h
index 4faec33..79d9c5c 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/math.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/math.h
@@ -172,300 +172,585 @@ extern int signgam;
/*
* ANSI/POSIX
*/
-int __fpclassifyd(double) __pure2;
-int __fpclassifyf(float) __pure2;
-int __fpclassifyl(long double) __pure2;
-int __isfinitef(float) __pure2;
-int __isfinite(double) __pure2;
-int __isfinitel(long double) __pure2;
-int __isinff(float) __pure2;
-int __isinfl(long double) __pure2;
-int __isnanf(float) __pure2;
-int __isnanl(long double) __pure2;
-int __isnormalf(float) __pure2;
-int __isnormal(double) __pure2;
-int __isnormall(long double) __pure2;
-int __signbit(double) __pure2;
-int __signbitf(float) __pure2;
-int __signbitl(long double) __pure2;
-
-double acos(double);
-double asin(double);
-double atan(double);
-double atan2(double, double);
-double cos(double);
-double sin(double);
-double tan(double);
-
-double cosh(double);
-double sinh(double);
-double tanh(double);
-
-double exp(double);
-double frexp(double, int *); /* fundamentally !__pure2 */
-double ldexp(double, int);
-double log(double);
-double log10(double);
-double modf(double, double *); /* fundamentally !__pure2 */
-
-double pow(double, double);
-double sqrt(double);
-
-double ceil(double);
-double fabs(double) __pure2;
-double floor(double);
-double fmod(double, double);
+int __fpclassifyd(double) __NDK_FPABI_MATH__ __pure2;
+int __fpclassifyf(float) __NDK_FPABI_MATH__ __pure2;
+int __fpclassifyl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isfinitef(float) __NDK_FPABI_MATH__ __pure2;
+int __isfinite(double) __NDK_FPABI_MATH__ __pure2;
+int __isfinitel(long double) __NDK_FPABI_MATH__ __pure2;
+int __isinff(float) __NDK_FPABI_MATH__ __pure2;
+int __isinfl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isnanf(float) __NDK_FPABI_MATH__ __pure2;
+int __isnanl(long double) __NDK_FPABI_MATH__ __pure2;
+int __isnormalf(float) __NDK_FPABI_MATH__ __pure2;
+int __isnormal(double) __NDK_FPABI_MATH__ __pure2;
+int __isnormall(long double) __NDK_FPABI_MATH__ __pure2;
+int __signbit(double) __NDK_FPABI_MATH__ __pure2;
+int __signbitf(float) __NDK_FPABI_MATH__ __pure2;
+int __signbitl(long double) __NDK_FPABI_MATH__ __pure2;
+
+double acos(double) __NDK_FPABI_MATH__;
+double asin(double) __NDK_FPABI_MATH__;
+double atan(double) __NDK_FPABI_MATH__;
+double atan2(double, double) __NDK_FPABI_MATH__;
+double cos(double) __NDK_FPABI_MATH__;
+double sin(double) __NDK_FPABI_MATH__;
+double tan(double) __NDK_FPABI_MATH__;
+
+double cosh(double) __NDK_FPABI_MATH__;
+double sinh(double) __NDK_FPABI_MATH__;
+double tanh(double) __NDK_FPABI_MATH__;
+
+double exp(double) __NDK_FPABI_MATH__;
+double frexp(double, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+double ldexp(double, int) __NDK_FPABI_MATH__;
+double log(double) __NDK_FPABI_MATH__;
+double log10(double) __NDK_FPABI_MATH__;
+double modf(double, double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+double pow(double, double) __NDK_FPABI_MATH__;
+double sqrt(double) __NDK_FPABI_MATH__;
+
+double ceil(double) __NDK_FPABI_MATH__;
+double fabs(double) __NDK_FPABI_MATH__ __pure2;
+double floor(double) __NDK_FPABI_MATH__;
+double fmod(double, double) __NDK_FPABI_MATH__;
/*
* These functions are not in C90.
*/
#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE
-double acosh(double);
-double asinh(double);
-double atanh(double);
-double cbrt(double);
-double erf(double);
-double erfc(double);
-double exp2(double);
-double expm1(double);
-double fma(double, double, double);
-double hypot(double, double);
-int ilogb(double) __pure2;
-int (isinf)(double) __pure2;
-int (isnan)(double) __pure2;
-double lgamma(double);
-long long llrint(double);
-long long llround(double);
-double log1p(double);
-double log2(double);
-double logb(double);
-long lrint(double);
-long lround(double);
-double nan(const char *) __pure2;
-double nextafter(double, double);
-double remainder(double, double);
-double remquo(double, double, int *);
-double rint(double);
+double acosh(double) __NDK_FPABI_MATH__;
+double asinh(double) __NDK_FPABI_MATH__;
+double atanh(double) __NDK_FPABI_MATH__;
+double cbrt(double) __NDK_FPABI_MATH__;
+double erf(double) __NDK_FPABI_MATH__;
+double erfc(double) __NDK_FPABI_MATH__;
+double exp2(double) __NDK_FPABI_MATH__;
+double expm1(double) __NDK_FPABI_MATH__;
+double fma(double, double, double) __NDK_FPABI_MATH__;
+double hypot(double, double) __NDK_FPABI_MATH__;
+int ilogb(double) __NDK_FPABI_MATH__ __pure2;
+int (isinf)(double) __NDK_FPABI_MATH__ __pure2;
+int (isnan)(double) __NDK_FPABI_MATH__ __pure2;
+double lgamma(double) __NDK_FPABI_MATH__;
+long long llrint(double) __NDK_FPABI_MATH__;
+long long llround(double) __NDK_FPABI_MATH__;
+double log1p(double) __NDK_FPABI_MATH__;
+double log2(double) __NDK_FPABI_MATH__;
+double logb(double) __NDK_FPABI_MATH__;
+long lrint(double) __NDK_FPABI_MATH__;
+long lround(double) __NDK_FPABI_MATH__;
+double nan(const char *) __NDK_FPABI_MATH__ __pure2;
+double nextafter(double, double) __NDK_FPABI_MATH__;
+double remainder(double, double) __NDK_FPABI_MATH__;
+double remquo(double, double, int *) __NDK_FPABI_MATH__;
+double rint(double) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
#if __BSD_VISIBLE || __XSI_VISIBLE
-double j0(double);
-double j1(double);
-double jn(int, double);
-double y0(double);
-double y1(double);
-double yn(int, double);
+double j0(double) __NDK_FPABI_MATH__;
+double j1(double) __NDK_FPABI_MATH__;
+double jn(int, double) __NDK_FPABI_MATH__;
+double y0(double) __NDK_FPABI_MATH__;
+double y1(double) __NDK_FPABI_MATH__;
+double yn(int, double) __NDK_FPABI_MATH__;
#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
-double gamma(double);
+double gamma(double) __NDK_FPABI_MATH__;
#endif
#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
-double scalb(double, double);
+double scalb(double, double) __NDK_FPABI_MATH__;
#endif
#endif /* __BSD_VISIBLE || __XSI_VISIBLE */
#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
-double copysign(double, double) __pure2;
-double fdim(double, double);
-double fmax(double, double) __pure2;
-double fmin(double, double) __pure2;
-double nearbyint(double);
-double round(double);
-double scalbln(double, long);
-double scalbn(double, int);
-double tgamma(double);
-double trunc(double);
+double copysign(double, double) __NDK_FPABI_MATH__ __pure2;
+double fdim(double, double) __NDK_FPABI_MATH__;
+double fmax(double, double) __NDK_FPABI_MATH__ __pure2;
+double fmin(double, double) __NDK_FPABI_MATH__ __pure2;
+double nearbyint(double) __NDK_FPABI_MATH__;
+double round(double) __NDK_FPABI_MATH__;
+double scalbln(double, long) __NDK_FPABI_MATH__;
+double scalbn(double, int) __NDK_FPABI_MATH__;
+double tgamma(double) __NDK_FPABI_MATH__;
+double trunc(double) __NDK_FPABI_MATH__;
#endif
/*
* BSD math library entry points
*/
#if __BSD_VISIBLE
-double drem(double, double);
-int finite(double) __pure2;
-int isnanf(float) __pure2;
-long double significandl(long double);
+double drem(double, double) __NDK_FPABI_MATH__;
+int finite(double) __NDK_FPABI_MATH__ __pure2;
+int isnanf(float) __NDK_FPABI_MATH__ __pure2;
+long double significandl(long double) __NDK_FPABI_MATH__;
/*
* Reentrant version of gamma & lgamma; passes signgam back by reference
* as the second argument; user must allocate space for signgam.
*/
-double gamma_r(double, int *);
-double lgamma_r(double, int *);
+double gamma_r(double, int *) __NDK_FPABI_MATH__;
+double lgamma_r(double, int *) __NDK_FPABI_MATH__;
/*
* IEEE Test Vector
*/
-double significand(double);
+double significand(double) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE */
/* float versions of ANSI/POSIX functions */
#if __ISO_C_VISIBLE >= 1999
-float acosf(float);
-float asinf(float);
-float atanf(float);
-float atan2f(float, float);
-float cosf(float);
-float sinf(float);
-float tanf(float);
-
-float coshf(float);
-float sinhf(float);
-float tanhf(float);
-
-float exp2f(float);
-float expf(float);
-float expm1f(float);
-float frexpf(float, int *); /* fundamentally !__pure2 */
-int ilogbf(float) __pure2;
-float ldexpf(float, int);
-float log10f(float);
-float log1pf(float);
-float log2f(float);
-float logf(float);
-float modff(float, float *); /* fundamentally !__pure2 */
-
-float powf(float, float);
-float sqrtf(float);
-
-float ceilf(float);
-float fabsf(float) __pure2;
-float floorf(float);
-float fmodf(float, float);
-float roundf(float);
-
-float erff(float);
-float erfcf(float);
-float hypotf(float, float);
-float lgammaf(float);
-float tgammaf(float);
-
-float acoshf(float);
-float asinhf(float);
-float atanhf(float);
-float cbrtf(float);
-float logbf(float);
-float copysignf(float, float) __pure2;
-long long llrintf(float);
-long long llroundf(float);
-long lrintf(float);
-long lroundf(float);
-float nanf(const char *) __pure2;
-float nearbyintf(float);
-float nextafterf(float, float);
-float remainderf(float, float);
-float remquof(float, float, int *);
-float rintf(float);
-float scalblnf(float, long);
-float scalbnf(float, int);
-float truncf(float);
-
-float fdimf(float, float);
-float fmaf(float, float, float);
-float fmaxf(float, float) __pure2;
-float fminf(float, float) __pure2;
+float acosf(float) __NDK_FPABI_MATH__;
+float asinf(float) __NDK_FPABI_MATH__;
+float atanf(float) __NDK_FPABI_MATH__;
+float atan2f(float, float) __NDK_FPABI_MATH__;
+float cosf(float) __NDK_FPABI_MATH__;
+float sinf(float) __NDK_FPABI_MATH__;
+float tanf(float) __NDK_FPABI_MATH__;
+
+float coshf(float) __NDK_FPABI_MATH__;
+float sinhf(float) __NDK_FPABI_MATH__;
+float tanhf(float) __NDK_FPABI_MATH__;
+
+float exp2f(float) __NDK_FPABI_MATH__;
+float expf(float) __NDK_FPABI_MATH__;
+float expm1f(float) __NDK_FPABI_MATH__;
+float frexpf(float, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+int ilogbf(float) __NDK_FPABI_MATH__ __pure2;
+float ldexpf(float, int) __NDK_FPABI_MATH__;
+float log10f(float) __NDK_FPABI_MATH__;
+float log1pf(float) __NDK_FPABI_MATH__;
+float log2f(float) __NDK_FPABI_MATH__;
+float logf(float) __NDK_FPABI_MATH__;
+float modff(float, float *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+float powf(float, float) __NDK_FPABI_MATH__;
+float sqrtf(float) __NDK_FPABI_MATH__;
+
+float ceilf(float) __NDK_FPABI_MATH__;
+float fabsf(float) __NDK_FPABI_MATH__ __pure2;
+float floorf(float) __NDK_FPABI_MATH__;
+float fmodf(float, float) __NDK_FPABI_MATH__;
+float roundf(float) __NDK_FPABI_MATH__;
+
+float erff(float) __NDK_FPABI_MATH__;
+float erfcf(float) __NDK_FPABI_MATH__;
+float hypotf(float, float) __NDK_FPABI_MATH__;
+float lgammaf(float) __NDK_FPABI_MATH__;
+float tgammaf(float) __NDK_FPABI_MATH__;
+
+float acoshf(float) __NDK_FPABI_MATH__;
+float asinhf(float) __NDK_FPABI_MATH__;
+float atanhf(float) __NDK_FPABI_MATH__;
+float cbrtf(float) __NDK_FPABI_MATH__;
+float logbf(float) __NDK_FPABI_MATH__;
+float copysignf(float, float) __NDK_FPABI_MATH__ __pure2;
+long long llrintf(float) __NDK_FPABI_MATH__;
+long long llroundf(float) __NDK_FPABI_MATH__;
+long lrintf(float) __NDK_FPABI_MATH__;
+long lroundf(float) __NDK_FPABI_MATH__;
+float nanf(const char *) __NDK_FPABI_MATH__ __pure2;
+float nearbyintf(float) __NDK_FPABI_MATH__;
+float nextafterf(float, float) __NDK_FPABI_MATH__;
+float remainderf(float, float) __NDK_FPABI_MATH__;
+float remquof(float, float, int *) __NDK_FPABI_MATH__;
+float rintf(float) __NDK_FPABI_MATH__;
+float scalblnf(float, long) __NDK_FPABI_MATH__;
+float scalbnf(float, int) __NDK_FPABI_MATH__;
+float truncf(float) __NDK_FPABI_MATH__;
+
+float fdimf(float, float) __NDK_FPABI_MATH__;
+float fmaf(float, float, float) __NDK_FPABI_MATH__;
+float fmaxf(float, float) __NDK_FPABI_MATH__ __pure2;
+float fminf(float, float) __NDK_FPABI_MATH__ __pure2;
#endif
/*
* float versions of BSD math library entry points
*/
#if __BSD_VISIBLE
-float dremf(float, float);
-int finitef(float) __pure2;
-float gammaf(float);
-float j0f(float);
-float j1f(float);
-float jnf(int, float);
-float scalbf(float, float);
-float y0f(float);
-float y1f(float);
-float ynf(int, float);
+float dremf(float, float) __NDK_FPABI_MATH__;
+int finitef(float) __NDK_FPABI_MATH__ __pure2;
+float gammaf(float) __NDK_FPABI_MATH__;
+float j0f(float) __NDK_FPABI_MATH__;
+float j1f(float) __NDK_FPABI_MATH__;
+float jnf(int, float) __NDK_FPABI_MATH__;
+float scalbf(float, float) __NDK_FPABI_MATH__;
+float y0f(float) __NDK_FPABI_MATH__;
+float y1f(float) __NDK_FPABI_MATH__;
+float ynf(int, float) __NDK_FPABI_MATH__;
/*
* Float versions of reentrant version of gamma & lgamma; passes
* signgam back by reference as the second argument; user must
* allocate space for signgam.
*/
-float gammaf_r(float, int *);
-float lgammaf_r(float, int *);
+float gammaf_r(float, int *) __NDK_FPABI_MATH__;
+float lgammaf_r(float, int *) __NDK_FPABI_MATH__;
/*
* float version of IEEE Test Vector
*/
-float significandf(float);
+float significandf(float) __NDK_FPABI_MATH__;
#endif /* __BSD_VISIBLE */
/*
* long double versions of ISO/POSIX math functions
*/
#if __ISO_C_VISIBLE >= 1999
-long double acoshl(long double);
-long double acosl(long double);
-long double asinhl(long double);
-long double asinl(long double);
-long double atan2l(long double, long double);
-long double atanhl(long double);
-long double atanl(long double);
-long double cbrtl(long double);
-long double ceill(long double);
-long double copysignl(long double, long double) __pure2;
-long double coshl(long double);
-long double cosl(long double);
-long double erfcl(long double);
-long double erfl(long double);
-long double exp2l(long double);
-long double expl(long double);
-long double expm1l(long double);
-long double fabsl(long double) __pure2;
-long double fdiml(long double, long double);
-long double floorl(long double);
-long double fmal(long double, long double, long double);
-long double fmaxl(long double, long double) __pure2;
-long double fminl(long double, long double) __pure2;
-long double fmodl(long double, long double);
-long double frexpl(long double value, int *); /* fundamentally !__pure2 */
-long double hypotl(long double, long double);
-int ilogbl(long double) __pure2;
-long double ldexpl(long double, int);
-long double lgammal(long double);
-long long llrintl(long double);
-long long llroundl(long double);
-long double log10l(long double);
-long double log1pl(long double);
-long double log2l(long double);
-long double logbl(long double);
-long double logl(long double);
-long lrintl(long double);
-long lroundl(long double);
-long double modfl(long double, long double *); /* fundamentally !__pure2 */
-long double nanl(const char *) __pure2;
-long double nearbyintl(long double);
-long double nextafterl(long double, long double);
-double nexttoward(double, long double);
-float nexttowardf(float, long double);
-long double nexttowardl(long double, long double);
-long double powl(long double, long double);
-long double remainderl(long double, long double);
-long double remquol(long double, long double, int *);
-long double rintl(long double);
-long double roundl(long double);
-long double scalblnl(long double, long);
-long double scalbnl(long double, int);
-long double sinhl(long double);
-long double sinl(long double);
-long double sqrtl(long double);
-long double tanhl(long double);
-long double tanl(long double);
-long double tgammal(long double);
-long double truncl(long double);
+long double acoshl(long double) __NDK_FPABI_MATH__;
+long double acosl(long double) __NDK_FPABI_MATH__;
+long double asinhl(long double) __NDK_FPABI_MATH__;
+long double asinl(long double) __NDK_FPABI_MATH__;
+long double atan2l(long double, long double) __NDK_FPABI_MATH__;
+long double atanhl(long double) __NDK_FPABI_MATH__;
+long double atanl(long double) __NDK_FPABI_MATH__;
+long double cbrtl(long double) __NDK_FPABI_MATH__;
+long double ceill(long double) __NDK_FPABI_MATH__;
+long double copysignl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double coshl(long double) __NDK_FPABI_MATH__;
+long double cosl(long double) __NDK_FPABI_MATH__;
+long double erfcl(long double) __NDK_FPABI_MATH__;
+long double erfl(long double) __NDK_FPABI_MATH__;
+long double exp2l(long double) __NDK_FPABI_MATH__;
+long double expl(long double) __NDK_FPABI_MATH__;
+long double expm1l(long double) __NDK_FPABI_MATH__;
+long double fabsl(long double) __NDK_FPABI_MATH__ __pure2;
+long double fdiml(long double, long double) __NDK_FPABI_MATH__;
+long double floorl(long double) __NDK_FPABI_MATH__;
+long double fmal(long double, long double, long double) __NDK_FPABI_MATH__;
+long double fmaxl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double fminl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double fmodl(long double, long double) __NDK_FPABI_MATH__;
+long double frexpl(long double value, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double hypotl(long double, long double) __NDK_FPABI_MATH__;
+int ilogbl(long double) __NDK_FPABI_MATH__ __pure2;
+long double ldexpl(long double, int) __NDK_FPABI_MATH__;
+long double lgammal(long double) __NDK_FPABI_MATH__;
+long long llrintl(long double) __NDK_FPABI_MATH__;
+long long llroundl(long double) __NDK_FPABI_MATH__;
+long double log10l(long double) __NDK_FPABI_MATH__;
+long double log1pl(long double) __NDK_FPABI_MATH__;
+long double log2l(long double) __NDK_FPABI_MATH__;
+long double logbl(long double) __NDK_FPABI_MATH__;
+long double logl(long double) __NDK_FPABI_MATH__;
+long lrintl(long double) __NDK_FPABI_MATH__;
+long lroundl(long double) __NDK_FPABI_MATH__;
+long double modfl(long double, long double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double nanl(const char *) __NDK_FPABI_MATH__ __pure2;
+long double nearbyintl(long double) __NDK_FPABI_MATH__;
+long double nextafterl(long double, long double) __NDK_FPABI_MATH__;
+double nexttoward(double, long double) __NDK_FPABI_MATH__;
+float nexttowardf(float, long double) __NDK_FPABI_MATH__;
+long double nexttowardl(long double, long double) __NDK_FPABI_MATH__;
+long double powl(long double, long double) __NDK_FPABI_MATH__;
+long double remainderl(long double, long double) __NDK_FPABI_MATH__;
+long double remquol(long double, long double, int *) __NDK_FPABI_MATH__;
+long double rintl(long double) __NDK_FPABI_MATH__;
+long double roundl(long double) __NDK_FPABI_MATH__;
+long double scalblnl(long double, long) __NDK_FPABI_MATH__;
+long double scalbnl(long double, int) __NDK_FPABI_MATH__;
+long double sinhl(long double) __NDK_FPABI_MATH__;
+long double sinl(long double) __NDK_FPABI_MATH__;
+long double sqrtl(long double) __NDK_FPABI_MATH__;
+long double tanhl(long double) __NDK_FPABI_MATH__;
+long double tanl(long double) __NDK_FPABI_MATH__;
+long double tgammal(long double) __NDK_FPABI_MATH__;
+long double truncl(long double) __NDK_FPABI_MATH__;
#endif /* __ISO_C_VISIBLE >= 1999 */
#if defined(_GNU_SOURCE)
-void sincos(double, double*, double*);
-void sincosf(float, float*, float*);
-void sincosl(long double, long double*, long double*);
+void sincos(double, double*, double*) __NDK_FPABI_MATH__;
+void sincosf(float, float*, float*) __NDK_FPABI_MATH__;
+void sincosl(long double, long double*, long double*) __NDK_FPABI_MATH__;
+#endif /* _GNU_SOURCE */
+
+/* builtin version of all the above math functions are annotated too */
+
+double __builtin_acos(double) __NDK_FPABI_MATH__;
+double __builtin_asin(double) __NDK_FPABI_MATH__;
+double __builtin_atan(double) __NDK_FPABI_MATH__;
+double __builtin_atan2(double, double) __NDK_FPABI_MATH__;
+double __builtin_cos(double) __NDK_FPABI_MATH__;
+double __builtin_sin(double) __NDK_FPABI_MATH__;
+double __builtin_tan(double) __NDK_FPABI_MATH__;
+
+double __builtin_cosh(double) __NDK_FPABI_MATH__;
+double __builtin_sinh(double) __NDK_FPABI_MATH__;
+double __builtin_tanh(double) __NDK_FPABI_MATH__;
+
+double __builtin_exp(double) __NDK_FPABI_MATH__;
+double __builtin_frexp(double, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+double __builtin_ldexp(double, int) __NDK_FPABI_MATH__;
+double __builtin_log(double) __NDK_FPABI_MATH__;
+double __builtin_log10(double) __NDK_FPABI_MATH__;
+double __builtin_modf(double, double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+double __builtin_pow(double, double) __NDK_FPABI_MATH__;
+double __builtin_sqrt(double) __NDK_FPABI_MATH__;
+
+double __builtin_ceil(double) __NDK_FPABI_MATH__;
+double __builtin_fabs(double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_floor(double) __NDK_FPABI_MATH__;
+double __builtin_fmod(double, double) __NDK_FPABI_MATH__;
+
+/*
+ * These functions are not in C90.
+ */
+#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE
+double __builtin_acosh(double) __NDK_FPABI_MATH__;
+double __builtin_asinh(double) __NDK_FPABI_MATH__;
+double __builtin_atanh(double) __NDK_FPABI_MATH__;
+double __builtin_cbrt(double) __NDK_FPABI_MATH__;
+double __builtin_erf(double) __NDK_FPABI_MATH__;
+double __builtin_erfc(double) __NDK_FPABI_MATH__;
+double __builtin_exp2(double) __NDK_FPABI_MATH__;
+double __builtin_expm1(double) __NDK_FPABI_MATH__;
+double __builtin_fma(double, double, double) __NDK_FPABI_MATH__;
+double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
+int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
+#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 6)
+int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2;
+int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
+#else
+/* clang < 3.5 has faulty prototype for __builtin_isnan */
+#endif
+double __builtin_lgamma(double) __NDK_FPABI_MATH__;
+long long __builtin_llrint(double) __NDK_FPABI_MATH__;
+long long __builtin_llround(double) __NDK_FPABI_MATH__;
+double __builtin_log1p(double) __NDK_FPABI_MATH__;
+double __builtin_log2(double) __NDK_FPABI_MATH__;
+double __builtin_logb(double) __NDK_FPABI_MATH__;
+long __builtin_lrint(double) __NDK_FPABI_MATH__;
+long __builtin_lround(double) __NDK_FPABI_MATH__;
+double __builtin_nan(const char *) __NDK_FPABI_MATH__ __pure2;
+double __builtin_nextafter(double, double) __NDK_FPABI_MATH__;
+double __builtin_remainder(double, double) __NDK_FPABI_MATH__;
+double __builtin_remquo(double, double, int *) __NDK_FPABI_MATH__;
+double __builtin_rint(double) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
+
+#if __BSD_VISIBLE || __XSI_VISIBLE
+double __builtin_j0(double) __NDK_FPABI_MATH__;
+double __builtin_j1(double) __NDK_FPABI_MATH__;
+double __builtin_jn(int, double) __NDK_FPABI_MATH__;
+double __builtin_y0(double) __NDK_FPABI_MATH__;
+double __builtin_y1(double) __NDK_FPABI_MATH__;
+double __builtin_yn(int, double) __NDK_FPABI_MATH__;
+
+#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
+double __builtin_gamma(double) __NDK_FPABI_MATH__;
+#endif
+
+#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
+double __builtin_scalb(double, double) __NDK_FPABI_MATH__;
+#endif
+#endif /* __BSD_VISIBLE || __XSI_VISIBLE */
+
+#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
+double __builtin_copysign(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_fdim(double, double) __NDK_FPABI_MATH__;
+double __builtin_fmax(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_fmin(double, double) __NDK_FPABI_MATH__ __pure2;
+double __builtin_nearbyint(double) __NDK_FPABI_MATH__;
+double __builtin_round(double) __NDK_FPABI_MATH__;
+double __builtin_scalbln(double, long) __NDK_FPABI_MATH__;
+double __builtin_scalbn(double, int) __NDK_FPABI_MATH__;
+double __builtin_tgamma(double) __NDK_FPABI_MATH__;
+double __builtin_trunc(double) __NDK_FPABI_MATH__;
+#endif
+
+/*
+ * BSD math library entry points
+ */
+#if __BSD_VISIBLE
+double __builtin_drem(double, double) __NDK_FPABI_MATH__;
+int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2;
+int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2;
+long double significandl(long double) __NDK_FPABI_MATH__;
+
+/*
+ * Reentrant version of gamma & lgamma; passes signgam back by reference
+ * as the second argument; user must allocate space for signgam.
+ */
+double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__;
+double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__;
+
+/*
+ * IEEE Test Vector
+ */
+double __builtin_significand(double) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE */
+
+/* float versions of ANSI/POSIX functions */
+#if __ISO_C_VISIBLE >= 1999
+float __builtin_acosf(float) __NDK_FPABI_MATH__;
+float __builtin_asinf(float) __NDK_FPABI_MATH__;
+float __builtin_atanf(float) __NDK_FPABI_MATH__;
+float __builtin_atan2f(float, float) __NDK_FPABI_MATH__;
+float __builtin_cosf(float) __NDK_FPABI_MATH__;
+float __builtin_sinf(float) __NDK_FPABI_MATH__;
+float __builtin_tanf(float) __NDK_FPABI_MATH__;
+
+float __builtin_coshf(float) __NDK_FPABI_MATH__;
+float __builtin_sinhf(float) __NDK_FPABI_MATH__;
+float __builtin_tanhf(float) __NDK_FPABI_MATH__;
+
+float __builtin_exp2f(float) __NDK_FPABI_MATH__;
+float __builtin_expf(float) __NDK_FPABI_MATH__;
+float __builtin_expm1f(float) __NDK_FPABI_MATH__;
+float __builtin_frexpf(float, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+int __builtin_ilogbf(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_ldexpf(float, int) __NDK_FPABI_MATH__;
+float __builtin_log10f(float) __NDK_FPABI_MATH__;
+float __builtin_log1pf(float) __NDK_FPABI_MATH__;
+float __builtin_log2f(float) __NDK_FPABI_MATH__;
+float __builtin_logf(float) __NDK_FPABI_MATH__;
+float __builtin_modff(float, float *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+
+float __builtin_powf(float, float) __NDK_FPABI_MATH__;
+float __builtin_sqrtf(float) __NDK_FPABI_MATH__;
+
+float __builtin_ceilf(float) __NDK_FPABI_MATH__;
+float __builtin_fabsf(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_floorf(float) __NDK_FPABI_MATH__;
+float __builtin_fmodf(float, float) __NDK_FPABI_MATH__;
+float __builtin_roundf(float) __NDK_FPABI_MATH__;
+
+float __builtin_erff(float) __NDK_FPABI_MATH__;
+float __builtin_erfcf(float) __NDK_FPABI_MATH__;
+float __builtin_hypotf(float, float) __NDK_FPABI_MATH__;
+float __builtin_lgammaf(float) __NDK_FPABI_MATH__;
+float __builtin_tgammaf(float) __NDK_FPABI_MATH__;
+
+float __builtin_acoshf(float) __NDK_FPABI_MATH__;
+float __builtin_asinhf(float) __NDK_FPABI_MATH__;
+float __builtin_atanhf(float) __NDK_FPABI_MATH__;
+float __builtin_cbrtf(float) __NDK_FPABI_MATH__;
+float __builtin_logbf(float) __NDK_FPABI_MATH__;
+float __builtin_copysignf(float, float) __NDK_FPABI_MATH__ __pure2;
+long long __builtin_llrintf(float) __NDK_FPABI_MATH__;
+long long __builtin_llroundf(float) __NDK_FPABI_MATH__;
+long __builtin_lrintf(float) __NDK_FPABI_MATH__;
+long __builtin_lroundf(float) __NDK_FPABI_MATH__;
+float __builtin_nanf(const char *) __NDK_FPABI_MATH__ __pure2;
+float __builtin_nearbyintf(float) __NDK_FPABI_MATH__;
+float __builtin_nextafterf(float, float) __NDK_FPABI_MATH__;
+float __builtin_remainderf(float, float) __NDK_FPABI_MATH__;
+float __builtin_remquof(float, float, int *) __NDK_FPABI_MATH__;
+float __builtin_rintf(float) __NDK_FPABI_MATH__;
+float __builtin_scalblnf(float, long) __NDK_FPABI_MATH__;
+float __builtin_scalbnf(float, int) __NDK_FPABI_MATH__;
+float __builtin_truncf(float) __NDK_FPABI_MATH__;
+
+float __builtin_fdimf(float, float) __NDK_FPABI_MATH__;
+float __builtin_fmaf(float, float, float) __NDK_FPABI_MATH__;
+float __builtin_fmaxf(float, float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_fminf(float, float) __NDK_FPABI_MATH__ __pure2;
+#endif
+
+/*
+ * float versions of BSD math library entry points
+ */
+#if __BSD_VISIBLE
+float __builtin_dremf(float, float) __NDK_FPABI_MATH__;
+int __builtin_finitef(float) __NDK_FPABI_MATH__ __pure2;
+float __builtin_gammaf(float) __NDK_FPABI_MATH__;
+float __builtin_j0f(float) __NDK_FPABI_MATH__;
+float __builtin_j1f(float) __NDK_FPABI_MATH__;
+float __builtin_jnf(int, float) __NDK_FPABI_MATH__;
+float __builtin_scalbf(float, float) __NDK_FPABI_MATH__;
+float __builtin_y0f(float) __NDK_FPABI_MATH__;
+float __builtin_y1f(float) __NDK_FPABI_MATH__;
+float __builtin_ynf(int, float) __NDK_FPABI_MATH__;
+
+/*
+ * Float versions of reentrant version of gamma & lgamma; passes
+ * signgam back by reference as the second argument; user must
+ * allocate space for signgam.
+ */
+float __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__;
+float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__;
+
+/*
+ * float version of IEEE Test Vector
+ */
+float __builtin_significandf(float) __NDK_FPABI_MATH__;
+#endif /* __BSD_VISIBLE */
+
+/*
+ * long double versions of ISO/POSIX math functions
+ */
+#if __ISO_C_VISIBLE >= 1999
+long double __builtin_acoshl(long double) __NDK_FPABI_MATH__;
+long double __builtin_acosl(long double) __NDK_FPABI_MATH__;
+long double __builtin_asinhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_asinl(long double) __NDK_FPABI_MATH__;
+long double __builtin_atan2l(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_atanhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_atanl(long double) __NDK_FPABI_MATH__;
+long double __builtin_cbrtl(long double) __NDK_FPABI_MATH__;
+long double __builtin_ceill(long double) __NDK_FPABI_MATH__;
+long double __builtin_copysignl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_coshl(long double) __NDK_FPABI_MATH__;
+long double __builtin_cosl(long double) __NDK_FPABI_MATH__;
+long double __builtin_erfcl(long double) __NDK_FPABI_MATH__;
+long double __builtin_erfl(long double) __NDK_FPABI_MATH__;
+long double __builtin_exp2l(long double) __NDK_FPABI_MATH__;
+long double __builtin_expl(long double) __NDK_FPABI_MATH__;
+long double __builtin_expm1l(long double) __NDK_FPABI_MATH__;
+long double __builtin_fabsl(long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fdiml(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_floorl(long double) __NDK_FPABI_MATH__;
+long double __builtin_fmal(long double, long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_fmaxl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fminl(long double, long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_fmodl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_frexpl(long double value, int *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double __builtin_hypotl(long double, long double) __NDK_FPABI_MATH__;
+int __builtin_ilogbl(long double) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_ldexpl(long double, int) __NDK_FPABI_MATH__;
+long double __builtin_lgammal(long double) __NDK_FPABI_MATH__;
+long long __builtin_llrintl(long double) __NDK_FPABI_MATH__;
+long long __builtin_llroundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_log10l(long double) __NDK_FPABI_MATH__;
+long double __builtin_log1pl(long double) __NDK_FPABI_MATH__;
+long double __builtin_log2l(long double) __NDK_FPABI_MATH__;
+long double __builtin_logbl(long double) __NDK_FPABI_MATH__;
+long double __builtin_logl(long double) __NDK_FPABI_MATH__;
+long __builtin_lrintl(long double) __NDK_FPABI_MATH__;
+long __builtin_lroundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_modfl(long double, long double *) __NDK_FPABI_MATH__; /* fundamentally !__pure2 */
+long double __builtin_nanl(const char *) __NDK_FPABI_MATH__ __pure2;
+long double __builtin_nearbyintl(long double) __NDK_FPABI_MATH__;
+long double __builtin_nextafterl(long double, long double) __NDK_FPABI_MATH__;
+double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__;
+float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__;
+long double __builtin_nexttowardl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_powl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_remainderl(long double, long double) __NDK_FPABI_MATH__;
+long double __builtin_remquol(long double, long double, int *) __NDK_FPABI_MATH__;
+long double __builtin_rintl(long double) __NDK_FPABI_MATH__;
+long double __builtin_roundl(long double) __NDK_FPABI_MATH__;
+long double __builtin_scalblnl(long double, long) __NDK_FPABI_MATH__;
+long double __builtin_scalbnl(long double, int) __NDK_FPABI_MATH__;
+long double __builtin_sinhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_sinl(long double) __NDK_FPABI_MATH__;
+long double __builtin_sqrtl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tanhl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tanl(long double) __NDK_FPABI_MATH__;
+long double __builtin_tgammal(long double) __NDK_FPABI_MATH__;
+long double __builtin_truncl(long double) __NDK_FPABI_MATH__;
+
+#endif /* __ISO_C_VISIBLE >= 1999 */
+
+#if defined(_GNU_SOURCE)
+void __builtin_sincos(double, double*, double*) __NDK_FPABI_MATH__;
+void __builtin_sincosf(float, float*, float*) __NDK_FPABI_MATH__;
+void __builtin_sincosl(long double, long double*, long double*) __NDK_FPABI_MATH__;
#endif /* _GNU_SOURCE */
#pragma GCC visibility pop
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/nsswitch.h b/9/platforms/android-19/arch-x86_64/usr/include/nsswitch.h
index e03844b..af88433 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/nsswitch.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/nsswitch.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nsswitch.h,v 1.18 2005/11/29 03:12:58 christos Exp $ */
+/* $NetBSD: nsswitch.h,v 1.21 2011/07/17 20:54:34 joerg Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -15,13 +15,6 @@
* 2. 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.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the NetBSD
- * Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
@@ -137,6 +130,7 @@ typedef struct {
#else
# define NS_NIS_CB(F,C)
#endif
+#define NS_NULL_CB { .src = NULL },
/*
* ns_src - `nsswitch source'
@@ -149,7 +143,6 @@ typedef struct {
} ns_src;
-#if 0
/*
* Default sourcelists (if nsswitch.conf is missing, corrupt,
* or the requested database doesn't have an entry)
@@ -161,7 +154,7 @@ extern const ns_src __nsdefaultfiles[];
extern const ns_src __nsdefaultfiles_forceall[];
extern const ns_src __nsdefaultnis[];
extern const ns_src __nsdefaultnis_forceall[];
-#endif
+
/*
* ns_mtab - `nsswitch method table'
@@ -222,7 +215,7 @@ typedef struct {
__BEGIN_DECLS
int nsdispatch(void *, const ns_dtab [], const char *,
- const char *, const ns_src [], ...);
+ const char *, const ns_src [], ...) __LIBC_ABI_PUBLIC__;
#ifdef _NS_PRIVATE
int _nsdbtaddsrc(ns_dbt *, const ns_src *);
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/signal.h b/9/platforms/android-19/arch-x86_64/usr/include/signal.h
index 0063b24..f1849c5 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/signal.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/signal.h
@@ -34,6 +34,7 @@
#include <limits.h> /* For LONG_BIT */
#include <string.h> /* For memset() */
#include <sys/types.h>
+#include <asm/sigcontext.h>
#if defined(__LP64__) || defined(__mips__)
/* For 64-bit (and mips), the kernel's struct sigaction doesn't match the POSIX one,
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/stdlib.h b/9/platforms/android-19/arch-x86_64/usr/include/stdlib.h
index 266aa5e..62b7a67 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/stdlib.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/stdlib.h
@@ -100,9 +100,10 @@ extern unsigned short *seed48(unsigned short*);
extern double erand48(unsigned short xsubi[3]);
extern double drand48(void);
extern void srand48(long);
-extern unsigned int arc4random(void);
-extern void arc4random_stir(void);
-extern void arc4random_addrandom(unsigned char *, int);
+
+unsigned int arc4random(void);
+unsigned int arc4random_uniform(unsigned int);
+void arc4random_buf(void*, size_t);
#define RAND_MAX 0x7fffffff
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/strings.h b/9/platforms/android-19/arch-x86_64/usr/include/strings.h
index c4d5f6c..ae261cf 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/strings.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/strings.h
@@ -43,8 +43,16 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-#define bcopy(b1, b2, len) (void)(memmove((b2), (b1), (len)))
-#define bzero(b, len) (void)(memset((b), '\0', (len)))
+#if defined(__BIONIC_FORTIFY)
+#define bcopy(b1, b2, len) \
+ (void)(__builtin___memmove_chk((b2), (b1), (len), __bos0(b2)))
+#define bzero(b, len) \
+ (void)(__builtin___memset_chk((b), '\0', (len), __bos0(b)))
+#else
+#define bcopy(b1, b2, len) (void)(__builtin_memmove((b2), (b1), (len)))
+#define bzero(b, len) (void)(__builtin_memset((b), '\0', (len)))
+#endif
+
int ffs(int);
int strcasecmp(const char *, const char *);
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/sys/sha1.h b/9/platforms/android-19/arch-x86_64/usr/include/sys/sha1.h
deleted file mode 100644
index f7ada46..0000000
--- a/9/platforms/android-19/arch-x86_64/usr/include/sys/sha1.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* $NetBSD: sha1.h,v 1.13 2005/12/26 18:41:36 perry Exp $ */
-
-/*
- * SHA-1 in C
- * By Steve Reid <steve@edmweb.com>
- * 100% Public Domain
- */
-
-#ifndef _SYS_SHA1_H_
-#define _SYS_SHA1_H_
-
-#include <sys/cdefs.h>
-#include <sys/types.h>
-
-#define SHA1_DIGEST_LENGTH 20
-#define SHA1_DIGEST_STRING_LENGTH 41
-
-typedef struct {
- uint32_t state[5];
- uint32_t count[2];
- u_char buffer[64];
-} SHA1_CTX;
-
-__BEGIN_DECLS
-void SHA1Transform(uint32_t[5], const u_char[64]);
-void SHA1Init(SHA1_CTX *);
-void SHA1Update(SHA1_CTX *, const u_char *, u_int);
-void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
-__END_DECLS
-
-#endif /* _SYS_SHA1_H_ */
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/sys/socket.h b/9/platforms/android-19/arch-x86_64/usr/include/sys/socket.h
index 7edaac9..ae2f238 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/sys/socket.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/sys/socket.h
@@ -107,7 +107,7 @@ struct cmsghdr {
int cmsg_type;
};
-#define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg))
+#define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr((mhdr), (cmsg))
#define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
#define CMSG_DATA(cmsg) ((void*)((char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr))))
#define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
@@ -117,7 +117,7 @@ struct cmsghdr {
? (struct cmsghdr*) (msg)->msg_control : (struct cmsghdr*) NULL)
#define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char*)(cmsg) - (char*)(mhdr)->msg_control)))
-struct cmsghdr* cmsg_nxthdr(struct msghdr*, struct cmsghdr*);
+struct cmsghdr* __cmsg_nxthdr(struct msghdr*, struct cmsghdr*);
#define SCM_RIGHTS 0x01
#define SCM_CREDENTIALS 0x02
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/sys/types.h b/9/platforms/android-19/arch-x86_64/usr/include/sys/types.h
index 9a76ad2..a5fa692 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/sys/types.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/sys/types.h
@@ -91,12 +91,17 @@ typedef __kernel_time_t __time_t;
typedef __time_t time_t;
/* This historical accident means that we had a 32-bit off_t on 32-bit architectures. */
-#ifndef _OFF_T_DEFINED_
-#define _OFF_T_DEFINED_
+#if !defined(__LP64__)
typedef __kernel_off_t off_t;
-#endif
typedef __kernel_loff_t loff_t;
typedef loff_t off64_t;
+#else
+/* We could re-use the LP32 definitions, but that would mean that although off_t and loff_t/off64_t
+ * would be the same size, they wouldn't actually be the same type, which can lead to warnings. */
+typedef __kernel_off_t off_t;
+typedef off_t loff_t;
+typedef loff_t off64_t;
+#endif
/* while POSIX wants these in <sys/types.h>, we
* declare then in <pthread.h> instead */
diff --git a/9/platforms/android-19/arch-x86_64/usr/lib64/libc.a b/9/platforms/android-19/arch-x86_64/usr/lib64/libc.a
index 559e23a..04cf000 100644
--- a/9/platforms/android-19/arch-x86_64/usr/lib64/libc.a
+++ b/9/platforms/android-19/arch-x86_64/usr/lib64/libc.a
Binary files differ
diff --git a/9/platforms/android-19/arch-x86_64/usr/lib64/libc.so b/9/platforms/android-19/arch-x86_64/usr/lib64/libc.so
index c48879e..b5daeac 100755
--- a/9/platforms/android-19/arch-x86_64/usr/lib64/libc.so
+++ b/9/platforms/android-19/arch-x86_64/usr/lib64/libc.so
Binary files differ
diff --git a/9/platforms/android-19/arch-x86_64/usr/lib64/libm.a b/9/platforms/android-19/arch-x86_64/usr/lib64/libm.a
index 05f19b6..61a49f6 100644
--- a/9/platforms/android-19/arch-x86_64/usr/lib64/libm.a
+++ b/9/platforms/android-19/arch-x86_64/usr/lib64/libm.a
Binary files differ
diff --git a/9/platforms/android-19/arch-x86_64/usr/lib64/libm.so b/9/platforms/android-19/arch-x86_64/usr/lib64/libm.so
index ff7079a..75bd6dd 100755
--- a/9/platforms/android-19/arch-x86_64/usr/lib64/libm.so
+++ b/9/platforms/android-19/arch-x86_64/usr/lib64/libm.so
Binary files differ