diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-02-05 12:17:02 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-02-05 12:17:02 +0800 |
commit | a1ec217d9be90f989de16aaff2584688e374dc3f (patch) | |
tree | d1a076c706cd5905c2bbf7b92cdcf79245f13930 /9 | |
parent | 733874f3f5180fc248286514eac91100b9b9b4e2 (diff) | |
download | prebuilts_ndk-a1ec217d9be90f989de16aaff2584688e374dc3f.zip prebuilts_ndk-a1ec217d9be90f989de16aaff2584688e374dc3f.tar.gz prebuilts_ndk-a1ec217d9be90f989de16aaff2584688e374dc3f.tar.bz2 |
Refresh headers to NDK r9c+
Change-Id: I33c5205492e0e8932450658b8f33aa16d63c56c0
Diffstat (limited to '9')
426 files changed, 7861 insertions, 569 deletions
diff --git a/9/platforms/android-12/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-12/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-12/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-12/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-12/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-12/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-12/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-12/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-12/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-12/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-12/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-12/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-12/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-12/arch-arm/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-12/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-12/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-12/arch-arm/usr/include/android/looper.h b/9/platforms/android-12/arch-arm/usr/include/android/looper.h index a9d8426..74c0383 100644 --- a/9/platforms/android-12/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-12/arch-arm/usr/include/android/looper.h @@ -148,7 +148,8 @@ enum { /** * For callback-based event loops, this is the prototype of the function - * that is called. It is given the file descriptor it is associated with, + * that is called when a file descriptor event occurs. + * It is given the file descriptor it is associated with, * a bitmask of the poll events that were triggered (typically ALOOPER_EVENT_INPUT), * and the data pointer that was originally supplied. * @@ -252,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-12/arch-arm/usr/include/fts.h b/9/platforms/android-12/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-12/arch-arm/usr/include/fts.h +++ b/9/platforms/android-12/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-12/arch-arm/usr/include/jni.h b/9/platforms/android-12/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-12/arch-arm/usr/include/jni.h +++ b/9/platforms/android-12/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-12/arch-arm/usr/include/math.h b/9/platforms/android-12/arch-arm/usr/include/math.h index 6a43ac6..97c76d3 100644 --- a/9/platforms/android-12/arch-arm/usr/include/math.h +++ b/9/platforms/android-12/arch-arm/usr/include/math.h @@ -487,6 +487,217 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-12/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-12/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-12/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-12/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-12/arch-arm/usr/include/sys/utime.h b/9/platforms/android-12/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-12/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-12/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-12/arch-arm/usr/include/sys/wait.h b/9/platforms/android-12/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-12/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-12/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-12/arch-arm/usr/include/time.h b/9/platforms/android-12/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-12/arch-arm/usr/include/time.h +++ b/9/platforms/android-12/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-12/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-12/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-12/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-12/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-12/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-12/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-12/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-12/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-12/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-12/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-12/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-12/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-12/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-12/arch-mips/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-12/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-12/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-12/arch-mips/usr/include/android/looper.h b/9/platforms/android-12/arch-mips/usr/include/android/looper.h index a9d8426..74c0383 100644 --- a/9/platforms/android-12/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-12/arch-mips/usr/include/android/looper.h @@ -148,7 +148,8 @@ enum { /** * For callback-based event loops, this is the prototype of the function - * that is called. It is given the file descriptor it is associated with, + * that is called when a file descriptor event occurs. + * It is given the file descriptor it is associated with, * a bitmask of the poll events that were triggered (typically ALOOPER_EVENT_INPUT), * and the data pointer that was originally supplied. * @@ -252,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-12/arch-mips/usr/include/fts.h b/9/platforms/android-12/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-12/arch-mips/usr/include/fts.h +++ b/9/platforms/android-12/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-12/arch-mips/usr/include/jni.h b/9/platforms/android-12/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-12/arch-mips/usr/include/jni.h +++ b/9/platforms/android-12/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-12/arch-mips/usr/include/math.h b/9/platforms/android-12/arch-mips/usr/include/math.h index 6a43ac6..97c76d3 100644 --- a/9/platforms/android-12/arch-mips/usr/include/math.h +++ b/9/platforms/android-12/arch-mips/usr/include/math.h @@ -487,6 +487,217 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-12/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-12/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-12/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-12/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-12/arch-mips/usr/include/sys/utime.h b/9/platforms/android-12/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-12/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-12/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-12/arch-mips/usr/include/sys/wait.h b/9/platforms/android-12/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-12/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-12/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-12/arch-mips/usr/include/time.h b/9/platforms/android-12/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-12/arch-mips/usr/include/time.h +++ b/9/platforms/android-12/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-12/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-12/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-12/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-12/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-12/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-12/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-12/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-12/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-12/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-12/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-12/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-12/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-12/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-12/arch-x86/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-12/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-12/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-12/arch-x86/usr/include/android/looper.h b/9/platforms/android-12/arch-x86/usr/include/android/looper.h index a9d8426..74c0383 100644 --- a/9/platforms/android-12/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-12/arch-x86/usr/include/android/looper.h @@ -148,7 +148,8 @@ enum { /** * For callback-based event loops, this is the prototype of the function - * that is called. It is given the file descriptor it is associated with, + * that is called when a file descriptor event occurs. + * It is given the file descriptor it is associated with, * a bitmask of the poll events that were triggered (typically ALOOPER_EVENT_INPUT), * and the data pointer that was originally supplied. * @@ -252,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-12/arch-x86/usr/include/fts.h b/9/platforms/android-12/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-12/arch-x86/usr/include/fts.h +++ b/9/platforms/android-12/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-12/arch-x86/usr/include/jni.h b/9/platforms/android-12/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-12/arch-x86/usr/include/jni.h +++ b/9/platforms/android-12/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-12/arch-x86/usr/include/math.h b/9/platforms/android-12/arch-x86/usr/include/math.h index 6a43ac6..97c76d3 100644 --- a/9/platforms/android-12/arch-x86/usr/include/math.h +++ b/9/platforms/android-12/arch-x86/usr/include/math.h @@ -487,6 +487,217 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-12/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-12/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-12/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-12/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-12/arch-x86/usr/include/sys/utime.h b/9/platforms/android-12/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-12/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-12/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-12/arch-x86/usr/include/sys/wait.h b/9/platforms/android-12/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-12/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-12/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-12/arch-x86/usr/include/time.h b/9/platforms/android-12/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-12/arch-x86/usr/include/time.h +++ b/9/platforms/android-12/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-13/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-13/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-13/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-13/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-13/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-13/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-13/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-13/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-13/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-13/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-13/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-13/arch-arm/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-13/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-13/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-13/arch-arm/usr/include/android/asset_manager.h b/9/platforms/android-13/arch-arm/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-13/arch-arm/usr/include/android/asset_manager.h +++ b/9/platforms/android-13/arch-arm/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-arm/usr/include/android/looper.h b/9/platforms/android-13/arch-arm/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-13/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-13/arch-arm/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-13/arch-arm/usr/include/android/tts.h b/9/platforms/android-13/arch-arm/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-13/arch-arm/usr/include/android/tts.h +++ b/9/platforms/android-13/arch-arm/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-13/arch-arm/usr/include/fts.h b/9/platforms/android-13/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-13/arch-arm/usr/include/fts.h +++ b/9/platforms/android-13/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-13/arch-arm/usr/include/jni.h b/9/platforms/android-13/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-13/arch-arm/usr/include/jni.h +++ b/9/platforms/android-13/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-13/arch-arm/usr/include/math.h b/9/platforms/android-13/arch-arm/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-13/arch-arm/usr/include/math.h +++ b/9/platforms/android-13/arch-arm/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-13/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-13/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-13/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-13/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-13/arch-arm/usr/include/sys/utime.h b/9/platforms/android-13/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-13/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-13/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-13/arch-arm/usr/include/sys/wait.h b/9/platforms/android-13/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-13/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-13/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-13/arch-arm/usr/include/time.h b/9/platforms/android-13/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-13/arch-arm/usr/include/time.h +++ b/9/platforms/android-13/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-13/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-13/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-13/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-13/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-13/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-13/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-13/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-13/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-13/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-13/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-13/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-13/arch-mips/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-13/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-13/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-13/arch-mips/usr/include/android/asset_manager.h b/9/platforms/android-13/arch-mips/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-13/arch-mips/usr/include/android/asset_manager.h +++ b/9/platforms/android-13/arch-mips/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-mips/usr/include/android/looper.h b/9/platforms/android-13/arch-mips/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-13/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-13/arch-mips/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-13/arch-mips/usr/include/android/tts.h b/9/platforms/android-13/arch-mips/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-13/arch-mips/usr/include/android/tts.h +++ b/9/platforms/android-13/arch-mips/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-13/arch-mips/usr/include/fts.h b/9/platforms/android-13/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-13/arch-mips/usr/include/fts.h +++ b/9/platforms/android-13/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-13/arch-mips/usr/include/jni.h b/9/platforms/android-13/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-13/arch-mips/usr/include/jni.h +++ b/9/platforms/android-13/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-13/arch-mips/usr/include/math.h b/9/platforms/android-13/arch-mips/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-13/arch-mips/usr/include/math.h +++ b/9/platforms/android-13/arch-mips/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-13/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-13/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-13/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-13/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-13/arch-mips/usr/include/sys/utime.h b/9/platforms/android-13/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-13/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-13/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-13/arch-mips/usr/include/sys/wait.h b/9/platforms/android-13/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-13/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-13/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-13/arch-mips/usr/include/time.h b/9/platforms/android-13/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-13/arch-mips/usr/include/time.h +++ b/9/platforms/android-13/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-13/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-13/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-13/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-13/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-13/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-13/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-13/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-13/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-13/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-13/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-13/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-13/arch-x86/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-13/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-13/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-13/arch-x86/usr/include/android/asset_manager.h b/9/platforms/android-13/arch-x86/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-13/arch-x86/usr/include/android/asset_manager.h +++ b/9/platforms/android-13/arch-x86/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-13/arch-x86/usr/include/android/looper.h b/9/platforms/android-13/arch-x86/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-13/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-13/arch-x86/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-13/arch-x86/usr/include/android/tts.h b/9/platforms/android-13/arch-x86/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-13/arch-x86/usr/include/android/tts.h +++ b/9/platforms/android-13/arch-x86/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-13/arch-x86/usr/include/fts.h b/9/platforms/android-13/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-13/arch-x86/usr/include/fts.h +++ b/9/platforms/android-13/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-13/arch-x86/usr/include/jni.h b/9/platforms/android-13/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-13/arch-x86/usr/include/jni.h +++ b/9/platforms/android-13/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-13/arch-x86/usr/include/math.h b/9/platforms/android-13/arch-x86/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-13/arch-x86/usr/include/math.h +++ b/9/platforms/android-13/arch-x86/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-13/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-13/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-13/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-13/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-13/arch-x86/usr/include/sys/utime.h b/9/platforms/android-13/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-13/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-13/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-13/arch-x86/usr/include/sys/wait.h b/9/platforms/android-13/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-13/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-13/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-13/arch-x86/usr/include/time.h b/9/platforms/android-13/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-13/arch-x86/usr/include/time.h +++ b/9/platforms/android-13/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-14/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-14/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-14/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-14/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-14/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-14/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-14/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-14/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-14/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-14/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-14/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-14/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-14/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-14/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-14/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-14/arch-arm/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-14/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-14/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-14/arch-arm/usr/include/android/asset_manager.h b/9/platforms/android-14/arch-arm/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-14/arch-arm/usr/include/android/asset_manager.h +++ b/9/platforms/android-14/arch-arm/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-arm/usr/include/android/looper.h b/9/platforms/android-14/arch-arm/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-14/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-14/arch-arm/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-14/arch-arm/usr/include/android/rect.h b/9/platforms/android-14/arch-arm/usr/include/android/rect.h index 64d487d..bcd42a9 100644 --- a/9/platforms/android-14/arch-arm/usr/include/android/rect.h +++ b/9/platforms/android-14/arch-arm/usr/include/android/rect.h @@ -18,6 +18,8 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include <stdint.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-arm/usr/include/android/tts.h b/9/platforms/android-14/arch-arm/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-14/arch-arm/usr/include/android/tts.h +++ b/9/platforms/android-14/arch-arm/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-14/arch-arm/usr/include/fts.h b/9/platforms/android-14/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-14/arch-arm/usr/include/fts.h +++ b/9/platforms/android-14/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-14/arch-arm/usr/include/jni.h b/9/platforms/android-14/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-14/arch-arm/usr/include/jni.h +++ b/9/platforms/android-14/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-14/arch-arm/usr/include/math.h b/9/platforms/android-14/arch-arm/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-14/arch-arm/usr/include/math.h +++ b/9/platforms/android-14/arch-arm/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-14/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-14/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-14/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-14/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-14/arch-arm/usr/include/sys/utime.h b/9/platforms/android-14/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-14/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-14/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-14/arch-arm/usr/include/sys/wait.h b/9/platforms/android-14/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-14/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-14/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-14/arch-arm/usr/include/time.h b/9/platforms/android-14/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-14/arch-arm/usr/include/time.h +++ b/9/platforms/android-14/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-14/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-14/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-14/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-14/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-14/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-14/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-14/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-14/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-14/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-14/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-14/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-14/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-14/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-14/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-14/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-14/arch-mips/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-14/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-14/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-14/arch-mips/usr/include/android/asset_manager.h b/9/platforms/android-14/arch-mips/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-14/arch-mips/usr/include/android/asset_manager.h +++ b/9/platforms/android-14/arch-mips/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-mips/usr/include/android/looper.h b/9/platforms/android-14/arch-mips/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-14/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-14/arch-mips/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-14/arch-mips/usr/include/android/rect.h b/9/platforms/android-14/arch-mips/usr/include/android/rect.h index 64d487d..bcd42a9 100644 --- a/9/platforms/android-14/arch-mips/usr/include/android/rect.h +++ b/9/platforms/android-14/arch-mips/usr/include/android/rect.h @@ -18,6 +18,8 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include <stdint.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-mips/usr/include/android/tts.h b/9/platforms/android-14/arch-mips/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-14/arch-mips/usr/include/android/tts.h +++ b/9/platforms/android-14/arch-mips/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-14/arch-mips/usr/include/fts.h b/9/platforms/android-14/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-14/arch-mips/usr/include/fts.h +++ b/9/platforms/android-14/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-14/arch-mips/usr/include/jni.h b/9/platforms/android-14/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-14/arch-mips/usr/include/jni.h +++ b/9/platforms/android-14/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-14/arch-mips/usr/include/math.h b/9/platforms/android-14/arch-mips/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-14/arch-mips/usr/include/math.h +++ b/9/platforms/android-14/arch-mips/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-14/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-14/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-14/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-14/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-14/arch-mips/usr/include/sys/utime.h b/9/platforms/android-14/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-14/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-14/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-14/arch-mips/usr/include/sys/wait.h b/9/platforms/android-14/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-14/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-14/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-14/arch-mips/usr/include/time.h b/9/platforms/android-14/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-14/arch-mips/usr/include/time.h +++ b/9/platforms/android-14/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-14/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-14/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-14/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-14/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-14/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-14/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-14/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-14/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-14/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-14/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-14/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-14/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-14/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-14/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-14/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-14/arch-x86/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-14/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-14/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-14/arch-x86/usr/include/android/asset_manager.h b/9/platforms/android-14/arch-x86/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-14/arch-x86/usr/include/android/asset_manager.h +++ b/9/platforms/android-14/arch-x86/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-x86/usr/include/android/looper.h b/9/platforms/android-14/arch-x86/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-14/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-14/arch-x86/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-14/arch-x86/usr/include/android/rect.h b/9/platforms/android-14/arch-x86/usr/include/android/rect.h index 64d487d..bcd42a9 100644 --- a/9/platforms/android-14/arch-x86/usr/include/android/rect.h +++ b/9/platforms/android-14/arch-x86/usr/include/android/rect.h @@ -18,6 +18,8 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include <stdint.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-14/arch-x86/usr/include/android/tts.h b/9/platforms/android-14/arch-x86/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-14/arch-x86/usr/include/android/tts.h +++ b/9/platforms/android-14/arch-x86/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-14/arch-x86/usr/include/fts.h b/9/platforms/android-14/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-14/arch-x86/usr/include/fts.h +++ b/9/platforms/android-14/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-14/arch-x86/usr/include/jni.h b/9/platforms/android-14/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-14/arch-x86/usr/include/jni.h +++ b/9/platforms/android-14/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-14/arch-x86/usr/include/math.h b/9/platforms/android-14/arch-x86/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-14/arch-x86/usr/include/math.h +++ b/9/platforms/android-14/arch-x86/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-14/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-14/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-14/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-14/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-14/arch-x86/usr/include/sys/utime.h b/9/platforms/android-14/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-14/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-14/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-14/arch-x86/usr/include/sys/wait.h b/9/platforms/android-14/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-14/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-14/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-14/arch-x86/usr/include/time.h b/9/platforms/android-14/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-14/arch-x86/usr/include/time.h +++ b/9/platforms/android-14/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-15/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-15/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-15/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-15/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-15/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-15/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-15/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-15/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-15/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-15/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-15/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-15/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-15/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-15/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-15/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-15/arch-arm/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-15/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-15/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-15/arch-arm/usr/include/android/asset_manager.h b/9/platforms/android-15/arch-arm/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-15/arch-arm/usr/include/android/asset_manager.h +++ b/9/platforms/android-15/arch-arm/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-arm/usr/include/android/looper.h b/9/platforms/android-15/arch-arm/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-15/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-15/arch-arm/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-15/arch-arm/usr/include/android/rect.h b/9/platforms/android-15/arch-arm/usr/include/android/rect.h index 64d487d..bcd42a9 100644 --- a/9/platforms/android-15/arch-arm/usr/include/android/rect.h +++ b/9/platforms/android-15/arch-arm/usr/include/android/rect.h @@ -18,6 +18,8 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include <stdint.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-arm/usr/include/android/tts.h b/9/platforms/android-15/arch-arm/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-15/arch-arm/usr/include/android/tts.h +++ b/9/platforms/android-15/arch-arm/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-15/arch-arm/usr/include/fts.h b/9/platforms/android-15/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-15/arch-arm/usr/include/fts.h +++ b/9/platforms/android-15/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-15/arch-arm/usr/include/jni.h b/9/platforms/android-15/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-15/arch-arm/usr/include/jni.h +++ b/9/platforms/android-15/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-15/arch-arm/usr/include/math.h b/9/platforms/android-15/arch-arm/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-15/arch-arm/usr/include/math.h +++ b/9/platforms/android-15/arch-arm/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-15/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-15/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-15/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-15/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-15/arch-arm/usr/include/sys/utime.h b/9/platforms/android-15/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-15/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-15/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-15/arch-arm/usr/include/sys/wait.h b/9/platforms/android-15/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-15/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-15/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-15/arch-arm/usr/include/time.h b/9/platforms/android-15/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-15/arch-arm/usr/include/time.h +++ b/9/platforms/android-15/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-15/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-15/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-15/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-15/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-15/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-15/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-15/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-15/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-15/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-15/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-15/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-15/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-15/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-15/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-15/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-15/arch-mips/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-15/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-15/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-15/arch-mips/usr/include/android/asset_manager.h b/9/platforms/android-15/arch-mips/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-15/arch-mips/usr/include/android/asset_manager.h +++ b/9/platforms/android-15/arch-mips/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-mips/usr/include/android/looper.h b/9/platforms/android-15/arch-mips/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-15/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-15/arch-mips/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-15/arch-mips/usr/include/android/rect.h b/9/platforms/android-15/arch-mips/usr/include/android/rect.h index 64d487d..bcd42a9 100644 --- a/9/platforms/android-15/arch-mips/usr/include/android/rect.h +++ b/9/platforms/android-15/arch-mips/usr/include/android/rect.h @@ -18,6 +18,8 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include <stdint.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-mips/usr/include/android/tts.h b/9/platforms/android-15/arch-mips/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-15/arch-mips/usr/include/android/tts.h +++ b/9/platforms/android-15/arch-mips/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-15/arch-mips/usr/include/fts.h b/9/platforms/android-15/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-15/arch-mips/usr/include/fts.h +++ b/9/platforms/android-15/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-15/arch-mips/usr/include/jni.h b/9/platforms/android-15/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-15/arch-mips/usr/include/jni.h +++ b/9/platforms/android-15/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-15/arch-mips/usr/include/math.h b/9/platforms/android-15/arch-mips/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-15/arch-mips/usr/include/math.h +++ b/9/platforms/android-15/arch-mips/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-15/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-15/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-15/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-15/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-15/arch-mips/usr/include/sys/utime.h b/9/platforms/android-15/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-15/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-15/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-15/arch-mips/usr/include/sys/wait.h b/9/platforms/android-15/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-15/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-15/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-15/arch-mips/usr/include/time.h b/9/platforms/android-15/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-15/arch-mips/usr/include/time.h +++ b/9/platforms/android-15/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-15/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-15/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-15/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-15/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-15/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-15/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-15/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-15/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-15/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-15/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-15/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-15/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-15/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-15/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-15/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-15/arch-x86/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-15/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-15/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-15/arch-x86/usr/include/android/asset_manager.h b/9/platforms/android-15/arch-x86/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-15/arch-x86/usr/include/android/asset_manager.h +++ b/9/platforms/android-15/arch-x86/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-x86/usr/include/android/looper.h b/9/platforms/android-15/arch-x86/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-15/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-15/arch-x86/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-15/arch-x86/usr/include/android/rect.h b/9/platforms/android-15/arch-x86/usr/include/android/rect.h index 64d487d..bcd42a9 100644 --- a/9/platforms/android-15/arch-x86/usr/include/android/rect.h +++ b/9/platforms/android-15/arch-x86/usr/include/android/rect.h @@ -18,6 +18,8 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include <stdint.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-15/arch-x86/usr/include/android/tts.h b/9/platforms/android-15/arch-x86/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-15/arch-x86/usr/include/android/tts.h +++ b/9/platforms/android-15/arch-x86/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-15/arch-x86/usr/include/fts.h b/9/platforms/android-15/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-15/arch-x86/usr/include/fts.h +++ b/9/platforms/android-15/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-15/arch-x86/usr/include/jni.h b/9/platforms/android-15/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-15/arch-x86/usr/include/jni.h +++ b/9/platforms/android-15/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-15/arch-x86/usr/include/math.h b/9/platforms/android-15/arch-x86/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-15/arch-x86/usr/include/math.h +++ b/9/platforms/android-15/arch-x86/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-15/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-15/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-15/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-15/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-15/arch-x86/usr/include/sys/utime.h b/9/platforms/android-15/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-15/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-15/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-15/arch-x86/usr/include/sys/wait.h b/9/platforms/android-15/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-15/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-15/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-15/arch-x86/usr/include/time.h b/9/platforms/android-15/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-15/arch-x86/usr/include/time.h +++ b/9/platforms/android-15/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-16/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-16/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-16/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-16/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-16/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-16/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-16/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-16/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-16/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-16/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-16/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-16/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-16/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-16/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-16/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-16/arch-arm/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-16/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-16/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-16/arch-arm/usr/include/android/asset_manager.h b/9/platforms/android-16/arch-arm/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-16/arch-arm/usr/include/android/asset_manager.h +++ b/9/platforms/android-16/arch-arm/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-arm/usr/include/android/looper.h b/9/platforms/android-16/arch-arm/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-16/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-16/arch-arm/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-16/arch-arm/usr/include/android/tts.h b/9/platforms/android-16/arch-arm/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-16/arch-arm/usr/include/android/tts.h +++ b/9/platforms/android-16/arch-arm/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-16/arch-arm/usr/include/fts.h b/9/platforms/android-16/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-16/arch-arm/usr/include/fts.h +++ b/9/platforms/android-16/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-16/arch-arm/usr/include/jni.h b/9/platforms/android-16/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-16/arch-arm/usr/include/jni.h +++ b/9/platforms/android-16/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-16/arch-arm/usr/include/math.h b/9/platforms/android-16/arch-arm/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-16/arch-arm/usr/include/math.h +++ b/9/platforms/android-16/arch-arm/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-16/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-16/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-16/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-16/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-16/arch-arm/usr/include/sys/utime.h b/9/platforms/android-16/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-16/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-16/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-16/arch-arm/usr/include/sys/wait.h b/9/platforms/android-16/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-16/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-16/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-16/arch-arm/usr/include/time.h b/9/platforms/android-16/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-16/arch-arm/usr/include/time.h +++ b/9/platforms/android-16/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-16/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-16/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-16/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-16/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-16/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-16/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-16/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-16/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-16/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-16/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-16/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-16/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-16/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-16/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-16/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-16/arch-mips/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-16/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-16/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-16/arch-mips/usr/include/android/asset_manager.h b/9/platforms/android-16/arch-mips/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-16/arch-mips/usr/include/android/asset_manager.h +++ b/9/platforms/android-16/arch-mips/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-mips/usr/include/android/looper.h b/9/platforms/android-16/arch-mips/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-16/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-16/arch-mips/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-16/arch-mips/usr/include/android/tts.h b/9/platforms/android-16/arch-mips/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-16/arch-mips/usr/include/android/tts.h +++ b/9/platforms/android-16/arch-mips/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-16/arch-mips/usr/include/fts.h b/9/platforms/android-16/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-16/arch-mips/usr/include/fts.h +++ b/9/platforms/android-16/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-16/arch-mips/usr/include/jni.h b/9/platforms/android-16/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-16/arch-mips/usr/include/jni.h +++ b/9/platforms/android-16/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-16/arch-mips/usr/include/math.h b/9/platforms/android-16/arch-mips/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-16/arch-mips/usr/include/math.h +++ b/9/platforms/android-16/arch-mips/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-16/arch-mips/usr/include/sys/utime.h b/9/platforms/android-16/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-16/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-16/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-16/arch-mips/usr/include/sys/wait.h b/9/platforms/android-16/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-16/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-16/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-16/arch-mips/usr/include/time.h b/9/platforms/android-16/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-16/arch-mips/usr/include/time.h +++ b/9/platforms/android-16/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-16/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-16/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-16/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-16/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-16/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-16/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-16/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-16/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-16/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-16/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-16/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-16/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-16/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-16/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-16/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-16/arch-x86/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-16/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-16/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-16/arch-x86/usr/include/android/asset_manager.h b/9/platforms/android-16/arch-x86/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-16/arch-x86/usr/include/android/asset_manager.h +++ b/9/platforms/android-16/arch-x86/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-16/arch-x86/usr/include/android/looper.h b/9/platforms/android-16/arch-x86/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-16/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-16/arch-x86/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-16/arch-x86/usr/include/android/tts.h b/9/platforms/android-16/arch-x86/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-16/arch-x86/usr/include/android/tts.h +++ b/9/platforms/android-16/arch-x86/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-16/arch-x86/usr/include/fts.h b/9/platforms/android-16/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-16/arch-x86/usr/include/fts.h +++ b/9/platforms/android-16/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-16/arch-x86/usr/include/jni.h b/9/platforms/android-16/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-16/arch-x86/usr/include/jni.h +++ b/9/platforms/android-16/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-16/arch-x86/usr/include/math.h b/9/platforms/android-16/arch-x86/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-16/arch-x86/usr/include/math.h +++ b/9/platforms/android-16/arch-x86/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-16/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-16/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-16/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-16/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-16/arch-x86/usr/include/sys/utime.h b/9/platforms/android-16/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-16/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-16/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-16/arch-x86/usr/include/sys/wait.h b/9/platforms/android-16/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-16/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-16/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-16/arch-x86/usr/include/time.h b/9/platforms/android-16/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-16/arch-x86/usr/include/time.h +++ b/9/platforms/android-16/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-17/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-17/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-17/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-17/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-17/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-17/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-17/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-17/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-17/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-17/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-17/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-17/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-17/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-17/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-17/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-17/arch-arm/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-17/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-17/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-17/arch-arm/usr/include/android/asset_manager.h b/9/platforms/android-17/arch-arm/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-17/arch-arm/usr/include/android/asset_manager.h +++ b/9/platforms/android-17/arch-arm/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-arm/usr/include/android/looper.h b/9/platforms/android-17/arch-arm/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-17/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-17/arch-arm/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-17/arch-arm/usr/include/android/tts.h b/9/platforms/android-17/arch-arm/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-17/arch-arm/usr/include/android/tts.h +++ b/9/platforms/android-17/arch-arm/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-17/arch-arm/usr/include/fts.h b/9/platforms/android-17/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-17/arch-arm/usr/include/fts.h +++ b/9/platforms/android-17/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-17/arch-arm/usr/include/jni.h b/9/platforms/android-17/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-17/arch-arm/usr/include/jni.h +++ b/9/platforms/android-17/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-17/arch-arm/usr/include/math.h b/9/platforms/android-17/arch-arm/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-17/arch-arm/usr/include/math.h +++ b/9/platforms/android-17/arch-arm/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-17/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-17/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-17/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-17/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-17/arch-arm/usr/include/sys/utime.h b/9/platforms/android-17/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-17/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-17/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-17/arch-arm/usr/include/sys/wait.h b/9/platforms/android-17/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-17/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-17/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-17/arch-arm/usr/include/time.h b/9/platforms/android-17/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-17/arch-arm/usr/include/time.h +++ b/9/platforms/android-17/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-17/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-17/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-17/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-17/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-17/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-17/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-17/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-17/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-17/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-17/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-17/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-17/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-17/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-17/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-17/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-17/arch-mips/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-17/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-17/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-17/arch-mips/usr/include/android/asset_manager.h b/9/platforms/android-17/arch-mips/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-17/arch-mips/usr/include/android/asset_manager.h +++ b/9/platforms/android-17/arch-mips/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-mips/usr/include/android/looper.h b/9/platforms/android-17/arch-mips/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-17/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-17/arch-mips/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-17/arch-mips/usr/include/android/tts.h b/9/platforms/android-17/arch-mips/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-17/arch-mips/usr/include/android/tts.h +++ b/9/platforms/android-17/arch-mips/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-17/arch-mips/usr/include/fts.h b/9/platforms/android-17/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-17/arch-mips/usr/include/fts.h +++ b/9/platforms/android-17/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-17/arch-mips/usr/include/jni.h b/9/platforms/android-17/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-17/arch-mips/usr/include/jni.h +++ b/9/platforms/android-17/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-17/arch-mips/usr/include/math.h b/9/platforms/android-17/arch-mips/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-17/arch-mips/usr/include/math.h +++ b/9/platforms/android-17/arch-mips/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-17/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-17/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-17/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-17/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-17/arch-mips/usr/include/sys/utime.h b/9/platforms/android-17/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-17/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-17/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-17/arch-mips/usr/include/sys/wait.h b/9/platforms/android-17/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-17/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-17/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-17/arch-mips/usr/include/time.h b/9/platforms/android-17/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-17/arch-mips/usr/include/time.h +++ b/9/platforms/android-17/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-17/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-17/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-17/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-17/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-17/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-17/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-17/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-17/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-17/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-17/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-17/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-17/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-17/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-17/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-17/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-17/arch-x86/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-17/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-17/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-17/arch-x86/usr/include/android/asset_manager.h b/9/platforms/android-17/arch-x86/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-17/arch-x86/usr/include/android/asset_manager.h +++ b/9/platforms/android-17/arch-x86/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-17/arch-x86/usr/include/android/looper.h b/9/platforms/android-17/arch-x86/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-17/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-17/arch-x86/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-17/arch-x86/usr/include/android/tts.h b/9/platforms/android-17/arch-x86/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-17/arch-x86/usr/include/android/tts.h +++ b/9/platforms/android-17/arch-x86/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-17/arch-x86/usr/include/fts.h b/9/platforms/android-17/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-17/arch-x86/usr/include/fts.h +++ b/9/platforms/android-17/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-17/arch-x86/usr/include/jni.h b/9/platforms/android-17/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-17/arch-x86/usr/include/jni.h +++ b/9/platforms/android-17/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-17/arch-x86/usr/include/math.h b/9/platforms/android-17/arch-x86/usr/include/math.h index e46cf46..408f262 100644 --- a/9/platforms/android-17/arch-x86/usr/include/math.h +++ b/9/platforms/android-17/arch-x86/usr/include/math.h @@ -492,6 +492,220 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-17/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-17/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-17/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-17/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-17/arch-x86/usr/include/sys/utime.h b/9/platforms/android-17/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-17/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-17/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-17/arch-x86/usr/include/sys/wait.h b/9/platforms/android-17/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-17/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-17/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-17/arch-x86/usr/include/time.h b/9/platforms/android-17/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-17/arch-x86/usr/include/time.h +++ b/9/platforms/android-17/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-18/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-18/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-18/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-18/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-18/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-18/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-18/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-18/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-18/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-18/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-18/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-18/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-18/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-18/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-18/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-18/arch-arm/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-18/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-18/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-18/arch-arm/usr/include/android/asset_manager.h b/9/platforms/android-18/arch-arm/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-18/arch-arm/usr/include/android/asset_manager.h +++ b/9/platforms/android-18/arch-arm/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-arm/usr/include/android/input.h b/9/platforms/android-18/arch-arm/usr/include/android/input.h index a660761..a660d7e 100644 --- a/9/platforms/android-18/arch-arm/usr/include/android/input.h +++ b/9/platforms/android-18/arch-arm/usr/include/android/input.h @@ -581,23 +581,23 @@ int64_t AMotionEvent_getEventTime(const AInputEvent* motion_event); * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getXOffset(const AInputEvent* motion_event); +float AMotionEvent_getXOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the Y coordinate offset. * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getYOffset(const AInputEvent* motion_event); +float AMotionEvent_getYOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the X coordinates being reported. * You can multiply this number with an X coordinate sample to find the * actual hardware value of the X coordinate. */ -float AMotionEvent_getXPrecision(const AInputEvent* motion_event); +float AMotionEvent_getXPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the Y coordinates being reported. * You can multiply this number with a Y coordinate sample to find the * actual hardware value of the Y coordinate. */ -float AMotionEvent_getYPrecision(const AInputEvent* motion_event); +float AMotionEvent_getYPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the number of pointers of data contained in this event. * Always >= 1. */ @@ -618,29 +618,29 @@ int32_t AMotionEvent_getToolType(const AInputEvent* motion_event, size_t pointer * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the original raw X coordinate of this event. * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current X coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current Y coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current pressure of this event for the given pointer index. * The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure), * although values higher than 1 may be generated depending on the calibration of * the input device. */ -float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index. * This represents some approximation of the area of the screen being @@ -648,27 +648,27 @@ float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_i * touch is normalized with the device specific range of values * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ -float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index. @@ -678,11 +678,11 @@ float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_ * indicates that the major axis of contact is oriented to the left. * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ -float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the value of the request axis for the given pointer index. */ float AMotionEvent_getAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index); + int32_t axis, size_t pointer_index) __NDK_FPABI__; /* Get the number of historical points in this event. These are movements that * have occurred between this event and the previous event. This only applies @@ -703,7 +703,7 @@ int64_t AMotionEvent_getHistoricalEventTime(const AInputEvent* motion_event, * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical raw Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -713,21 +713,21 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical X coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical pressure of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -735,7 +735,7 @@ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointe * although values higher than 1 may be generated depending on the calibration of * the input device. */ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index that * occurred between this event and the previous motion event. @@ -745,19 +745,19 @@ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ float AMotionEvent_getHistoricalSize(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -765,7 +765,7 @@ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -773,7 +773,7 @@ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_ * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index that @@ -785,12 +785,12 @@ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_ * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ float AMotionEvent_getHistoricalOrientation(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical value of the request axis for the given pointer index * that occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index, size_t history_index); + int32_t axis, size_t pointer_index, size_t history_index) __NDK_FPABI__; /* diff --git a/9/platforms/android-18/arch-arm/usr/include/android/looper.h b/9/platforms/android-18/arch-arm/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-18/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-18/arch-arm/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-18/arch-arm/usr/include/android/tts.h b/9/platforms/android-18/arch-arm/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-18/arch-arm/usr/include/android/tts.h +++ b/9/platforms/android-18/arch-arm/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-18/arch-arm/usr/include/fts.h b/9/platforms/android-18/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-18/arch-arm/usr/include/fts.h +++ b/9/platforms/android-18/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-18/arch-arm/usr/include/jni.h b/9/platforms/android-18/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-18/arch-arm/usr/include/jni.h +++ b/9/platforms/android-18/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-18/arch-arm/usr/include/math.h b/9/platforms/android-18/arch-arm/usr/include/math.h index 59b4499..e24c001 100644 --- a/9/platforms/android-18/arch-arm/usr/include/math.h +++ b/9/platforms/android-18/arch-arm/usr/include/math.h @@ -495,8 +495,226 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ long double log2l(long double) __NDK_FPABI_MATH__; + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +long double __builtin_log2l(long double) __NDK_FPABI_MATH__; + +/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-18/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-18/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-18/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-18/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-18/arch-arm/usr/include/sys/utime.h b/9/platforms/android-18/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-18/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-18/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-18/arch-arm/usr/include/sys/wait.h b/9/platforms/android-18/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-18/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-18/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-18/arch-arm/usr/include/time.h b/9/platforms/android-18/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-18/arch-arm/usr/include/time.h +++ b/9/platforms/android-18/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-18/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-18/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-18/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-18/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-18/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-18/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-18/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-18/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-18/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-18/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-18/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-18/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-18/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-18/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-18/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-18/arch-mips/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-18/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-18/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-18/arch-mips/usr/include/android/asset_manager.h b/9/platforms/android-18/arch-mips/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-18/arch-mips/usr/include/android/asset_manager.h +++ b/9/platforms/android-18/arch-mips/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-mips/usr/include/android/input.h b/9/platforms/android-18/arch-mips/usr/include/android/input.h index a660761..a660d7e 100644 --- a/9/platforms/android-18/arch-mips/usr/include/android/input.h +++ b/9/platforms/android-18/arch-mips/usr/include/android/input.h @@ -581,23 +581,23 @@ int64_t AMotionEvent_getEventTime(const AInputEvent* motion_event); * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getXOffset(const AInputEvent* motion_event); +float AMotionEvent_getXOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the Y coordinate offset. * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getYOffset(const AInputEvent* motion_event); +float AMotionEvent_getYOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the X coordinates being reported. * You can multiply this number with an X coordinate sample to find the * actual hardware value of the X coordinate. */ -float AMotionEvent_getXPrecision(const AInputEvent* motion_event); +float AMotionEvent_getXPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the Y coordinates being reported. * You can multiply this number with a Y coordinate sample to find the * actual hardware value of the Y coordinate. */ -float AMotionEvent_getYPrecision(const AInputEvent* motion_event); +float AMotionEvent_getYPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the number of pointers of data contained in this event. * Always >= 1. */ @@ -618,29 +618,29 @@ int32_t AMotionEvent_getToolType(const AInputEvent* motion_event, size_t pointer * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the original raw X coordinate of this event. * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current X coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current Y coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current pressure of this event for the given pointer index. * The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure), * although values higher than 1 may be generated depending on the calibration of * the input device. */ -float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index. * This represents some approximation of the area of the screen being @@ -648,27 +648,27 @@ float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_i * touch is normalized with the device specific range of values * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ -float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index. @@ -678,11 +678,11 @@ float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_ * indicates that the major axis of contact is oriented to the left. * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ -float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the value of the request axis for the given pointer index. */ float AMotionEvent_getAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index); + int32_t axis, size_t pointer_index) __NDK_FPABI__; /* Get the number of historical points in this event. These are movements that * have occurred between this event and the previous event. This only applies @@ -703,7 +703,7 @@ int64_t AMotionEvent_getHistoricalEventTime(const AInputEvent* motion_event, * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical raw Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -713,21 +713,21 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical X coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical pressure of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -735,7 +735,7 @@ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointe * although values higher than 1 may be generated depending on the calibration of * the input device. */ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index that * occurred between this event and the previous motion event. @@ -745,19 +745,19 @@ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ float AMotionEvent_getHistoricalSize(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -765,7 +765,7 @@ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -773,7 +773,7 @@ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_ * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index that @@ -785,12 +785,12 @@ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_ * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ float AMotionEvent_getHistoricalOrientation(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical value of the request axis for the given pointer index * that occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index, size_t history_index); + int32_t axis, size_t pointer_index, size_t history_index) __NDK_FPABI__; /* diff --git a/9/platforms/android-18/arch-mips/usr/include/android/looper.h b/9/platforms/android-18/arch-mips/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-18/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-18/arch-mips/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-18/arch-mips/usr/include/android/tts.h b/9/platforms/android-18/arch-mips/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-18/arch-mips/usr/include/android/tts.h +++ b/9/platforms/android-18/arch-mips/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-18/arch-mips/usr/include/fts.h b/9/platforms/android-18/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-18/arch-mips/usr/include/fts.h +++ b/9/platforms/android-18/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-18/arch-mips/usr/include/jni.h b/9/platforms/android-18/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-18/arch-mips/usr/include/jni.h +++ b/9/platforms/android-18/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-18/arch-mips/usr/include/math.h b/9/platforms/android-18/arch-mips/usr/include/math.h index 59b4499..e24c001 100644 --- a/9/platforms/android-18/arch-mips/usr/include/math.h +++ b/9/platforms/android-18/arch-mips/usr/include/math.h @@ -495,8 +495,226 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ long double log2l(long double) __NDK_FPABI_MATH__; + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +long double __builtin_log2l(long double) __NDK_FPABI_MATH__; + +/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-18/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-18/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-18/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-18/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-18/arch-mips/usr/include/sys/utime.h b/9/platforms/android-18/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-18/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-18/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-18/arch-mips/usr/include/sys/wait.h b/9/platforms/android-18/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-18/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-18/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-18/arch-mips/usr/include/time.h b/9/platforms/android-18/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-18/arch-mips/usr/include/time.h +++ b/9/platforms/android-18/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-18/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-18/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-18/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-18/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-18/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-18/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-18/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-18/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-18/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-18/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-18/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-18/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-18/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-18/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-18/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-18/arch-x86/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-18/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-18/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-18/arch-x86/usr/include/android/asset_manager.h b/9/platforms/android-18/arch-x86/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-18/arch-x86/usr/include/android/asset_manager.h +++ b/9/platforms/android-18/arch-x86/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-18/arch-x86/usr/include/android/input.h b/9/platforms/android-18/arch-x86/usr/include/android/input.h index a660761..a660d7e 100644 --- a/9/platforms/android-18/arch-x86/usr/include/android/input.h +++ b/9/platforms/android-18/arch-x86/usr/include/android/input.h @@ -581,23 +581,23 @@ int64_t AMotionEvent_getEventTime(const AInputEvent* motion_event); * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getXOffset(const AInputEvent* motion_event); +float AMotionEvent_getXOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the Y coordinate offset. * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getYOffset(const AInputEvent* motion_event); +float AMotionEvent_getYOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the X coordinates being reported. * You can multiply this number with an X coordinate sample to find the * actual hardware value of the X coordinate. */ -float AMotionEvent_getXPrecision(const AInputEvent* motion_event); +float AMotionEvent_getXPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the Y coordinates being reported. * You can multiply this number with a Y coordinate sample to find the * actual hardware value of the Y coordinate. */ -float AMotionEvent_getYPrecision(const AInputEvent* motion_event); +float AMotionEvent_getYPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the number of pointers of data contained in this event. * Always >= 1. */ @@ -618,29 +618,29 @@ int32_t AMotionEvent_getToolType(const AInputEvent* motion_event, size_t pointer * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the original raw X coordinate of this event. * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current X coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current Y coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current pressure of this event for the given pointer index. * The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure), * although values higher than 1 may be generated depending on the calibration of * the input device. */ -float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index. * This represents some approximation of the area of the screen being @@ -648,27 +648,27 @@ float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_i * touch is normalized with the device specific range of values * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ -float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index. @@ -678,11 +678,11 @@ float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_ * indicates that the major axis of contact is oriented to the left. * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ -float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the value of the request axis for the given pointer index. */ float AMotionEvent_getAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index); + int32_t axis, size_t pointer_index) __NDK_FPABI__; /* Get the number of historical points in this event. These are movements that * have occurred between this event and the previous event. This only applies @@ -703,7 +703,7 @@ int64_t AMotionEvent_getHistoricalEventTime(const AInputEvent* motion_event, * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical raw Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -713,21 +713,21 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical X coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical pressure of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -735,7 +735,7 @@ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointe * although values higher than 1 may be generated depending on the calibration of * the input device. */ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index that * occurred between this event and the previous motion event. @@ -745,19 +745,19 @@ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ float AMotionEvent_getHistoricalSize(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -765,7 +765,7 @@ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -773,7 +773,7 @@ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_ * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index that @@ -785,12 +785,12 @@ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_ * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ float AMotionEvent_getHistoricalOrientation(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical value of the request axis for the given pointer index * that occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index, size_t history_index); + int32_t axis, size_t pointer_index, size_t history_index) __NDK_FPABI__; /* diff --git a/9/platforms/android-18/arch-x86/usr/include/android/looper.h b/9/platforms/android-18/arch-x86/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-18/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-18/arch-x86/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-18/arch-x86/usr/include/android/tts.h b/9/platforms/android-18/arch-x86/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-18/arch-x86/usr/include/android/tts.h +++ b/9/platforms/android-18/arch-x86/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-18/arch-x86/usr/include/fts.h b/9/platforms/android-18/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-18/arch-x86/usr/include/fts.h +++ b/9/platforms/android-18/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-18/arch-x86/usr/include/jni.h b/9/platforms/android-18/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-18/arch-x86/usr/include/jni.h +++ b/9/platforms/android-18/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-18/arch-x86/usr/include/math.h b/9/platforms/android-18/arch-x86/usr/include/math.h index 59b4499..e24c001 100644 --- a/9/platforms/android-18/arch-x86/usr/include/math.h +++ b/9/platforms/android-18/arch-x86/usr/include/math.h @@ -495,8 +495,226 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ long double log2l(long double) __NDK_FPABI_MATH__; + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +long double __builtin_log2l(long double) __NDK_FPABI_MATH__; + +/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-18/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-18/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-18/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-18/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-18/arch-x86/usr/include/sys/utime.h b/9/platforms/android-18/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-18/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-18/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-18/arch-x86/usr/include/sys/wait.h b/9/platforms/android-18/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-18/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-18/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-18/arch-x86/usr/include/time.h b/9/platforms/android-18/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-18/arch-x86/usr/include/time.h +++ b/9/platforms/android-18/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-19/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-19/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-19/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-19/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-19/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-19/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-19/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-19/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-19/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-19/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-19/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-19/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-19/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-19/arch-arm/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-19/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-19/arch-arm/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-19/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-19/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-19/arch-arm/usr/include/android/asset_manager.h b/9/platforms/android-19/arch-arm/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-19/arch-arm/usr/include/android/asset_manager.h +++ b/9/platforms/android-19/arch-arm/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-arm/usr/include/android/input.h b/9/platforms/android-19/arch-arm/usr/include/android/input.h index a660761..a660d7e 100644 --- a/9/platforms/android-19/arch-arm/usr/include/android/input.h +++ b/9/platforms/android-19/arch-arm/usr/include/android/input.h @@ -581,23 +581,23 @@ int64_t AMotionEvent_getEventTime(const AInputEvent* motion_event); * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getXOffset(const AInputEvent* motion_event); +float AMotionEvent_getXOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the Y coordinate offset. * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getYOffset(const AInputEvent* motion_event); +float AMotionEvent_getYOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the X coordinates being reported. * You can multiply this number with an X coordinate sample to find the * actual hardware value of the X coordinate. */ -float AMotionEvent_getXPrecision(const AInputEvent* motion_event); +float AMotionEvent_getXPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the Y coordinates being reported. * You can multiply this number with a Y coordinate sample to find the * actual hardware value of the Y coordinate. */ -float AMotionEvent_getYPrecision(const AInputEvent* motion_event); +float AMotionEvent_getYPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the number of pointers of data contained in this event. * Always >= 1. */ @@ -618,29 +618,29 @@ int32_t AMotionEvent_getToolType(const AInputEvent* motion_event, size_t pointer * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the original raw X coordinate of this event. * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current X coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current Y coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current pressure of this event for the given pointer index. * The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure), * although values higher than 1 may be generated depending on the calibration of * the input device. */ -float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index. * This represents some approximation of the area of the screen being @@ -648,27 +648,27 @@ float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_i * touch is normalized with the device specific range of values * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ -float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index. @@ -678,11 +678,11 @@ float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_ * indicates that the major axis of contact is oriented to the left. * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ -float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the value of the request axis for the given pointer index. */ float AMotionEvent_getAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index); + int32_t axis, size_t pointer_index) __NDK_FPABI__; /* Get the number of historical points in this event. These are movements that * have occurred between this event and the previous event. This only applies @@ -703,7 +703,7 @@ int64_t AMotionEvent_getHistoricalEventTime(const AInputEvent* motion_event, * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical raw Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -713,21 +713,21 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical X coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical pressure of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -735,7 +735,7 @@ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointe * although values higher than 1 may be generated depending on the calibration of * the input device. */ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index that * occurred between this event and the previous motion event. @@ -745,19 +745,19 @@ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ float AMotionEvent_getHistoricalSize(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -765,7 +765,7 @@ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -773,7 +773,7 @@ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_ * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index that @@ -785,12 +785,12 @@ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_ * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ float AMotionEvent_getHistoricalOrientation(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical value of the request axis for the given pointer index * that occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index, size_t history_index); + int32_t axis, size_t pointer_index, size_t history_index) __NDK_FPABI__; /* diff --git a/9/platforms/android-19/arch-arm/usr/include/android/looper.h b/9/platforms/android-19/arch-arm/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-19/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-19/arch-arm/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-19/arch-arm/usr/include/android/tts.h b/9/platforms/android-19/arch-arm/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-19/arch-arm/usr/include/android/tts.h +++ b/9/platforms/android-19/arch-arm/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-19/arch-arm/usr/include/fts.h b/9/platforms/android-19/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-19/arch-arm/usr/include/fts.h +++ b/9/platforms/android-19/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-19/arch-arm/usr/include/jni.h b/9/platforms/android-19/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-19/arch-arm/usr/include/jni.h +++ b/9/platforms/android-19/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-19/arch-arm/usr/include/math.h b/9/platforms/android-19/arch-arm/usr/include/math.h index 59b4499..e24c001 100644 --- a/9/platforms/android-19/arch-arm/usr/include/math.h +++ b/9/platforms/android-19/arch-arm/usr/include/math.h @@ -495,8 +495,226 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ long double log2l(long double) __NDK_FPABI_MATH__; + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +long double __builtin_log2l(long double) __NDK_FPABI_MATH__; + +/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-19/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-19/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-19/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-19/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-19/arch-arm/usr/include/sys/utime.h b/9/platforms/android-19/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-19/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-19/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-19/arch-arm/usr/include/sys/wait.h b/9/platforms/android-19/arch-arm/usr/include/sys/wait.h index da29734..b30b7ec 100644 --- a/9/platforms/android-19/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-19/arch-arm/usr/include/sys/wait.h @@ -48,11 +48,7 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) -{ - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); -} +extern pid_t wait4(pid_t, int *, int, struct rusage *); /* Posix states that idtype_t should be an enumeration type, but * the kernel headers define P_ALL, P_PID and P_PGID as constant macros diff --git a/9/platforms/android-19/arch-arm/usr/include/time.h b/9/platforms/android-19/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-19/arch-arm/usr/include/time.h +++ b/9/platforms/android-19/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-19/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-19/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-19/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-19/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-19/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-19/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-19/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-19/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-19/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-19/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-19/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-19/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-19/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-19/arch-mips/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-19/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-19/arch-mips/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-19/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-19/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-19/arch-mips/usr/include/android/asset_manager.h b/9/platforms/android-19/arch-mips/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-19/arch-mips/usr/include/android/asset_manager.h +++ b/9/platforms/android-19/arch-mips/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-mips/usr/include/android/input.h b/9/platforms/android-19/arch-mips/usr/include/android/input.h index a660761..a660d7e 100644 --- a/9/platforms/android-19/arch-mips/usr/include/android/input.h +++ b/9/platforms/android-19/arch-mips/usr/include/android/input.h @@ -581,23 +581,23 @@ int64_t AMotionEvent_getEventTime(const AInputEvent* motion_event); * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getXOffset(const AInputEvent* motion_event); +float AMotionEvent_getXOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the Y coordinate offset. * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getYOffset(const AInputEvent* motion_event); +float AMotionEvent_getYOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the X coordinates being reported. * You can multiply this number with an X coordinate sample to find the * actual hardware value of the X coordinate. */ -float AMotionEvent_getXPrecision(const AInputEvent* motion_event); +float AMotionEvent_getXPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the Y coordinates being reported. * You can multiply this number with a Y coordinate sample to find the * actual hardware value of the Y coordinate. */ -float AMotionEvent_getYPrecision(const AInputEvent* motion_event); +float AMotionEvent_getYPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the number of pointers of data contained in this event. * Always >= 1. */ @@ -618,29 +618,29 @@ int32_t AMotionEvent_getToolType(const AInputEvent* motion_event, size_t pointer * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the original raw X coordinate of this event. * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current X coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current Y coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current pressure of this event for the given pointer index. * The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure), * although values higher than 1 may be generated depending on the calibration of * the input device. */ -float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index. * This represents some approximation of the area of the screen being @@ -648,27 +648,27 @@ float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_i * touch is normalized with the device specific range of values * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ -float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index. @@ -678,11 +678,11 @@ float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_ * indicates that the major axis of contact is oriented to the left. * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ -float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the value of the request axis for the given pointer index. */ float AMotionEvent_getAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index); + int32_t axis, size_t pointer_index) __NDK_FPABI__; /* Get the number of historical points in this event. These are movements that * have occurred between this event and the previous event. This only applies @@ -703,7 +703,7 @@ int64_t AMotionEvent_getHistoricalEventTime(const AInputEvent* motion_event, * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical raw Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -713,21 +713,21 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical X coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical pressure of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -735,7 +735,7 @@ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointe * although values higher than 1 may be generated depending on the calibration of * the input device. */ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index that * occurred between this event and the previous motion event. @@ -745,19 +745,19 @@ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ float AMotionEvent_getHistoricalSize(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -765,7 +765,7 @@ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -773,7 +773,7 @@ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_ * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index that @@ -785,12 +785,12 @@ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_ * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ float AMotionEvent_getHistoricalOrientation(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical value of the request axis for the given pointer index * that occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index, size_t history_index); + int32_t axis, size_t pointer_index, size_t history_index) __NDK_FPABI__; /* diff --git a/9/platforms/android-19/arch-mips/usr/include/android/looper.h b/9/platforms/android-19/arch-mips/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-19/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-19/arch-mips/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-19/arch-mips/usr/include/android/tts.h b/9/platforms/android-19/arch-mips/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-19/arch-mips/usr/include/android/tts.h +++ b/9/platforms/android-19/arch-mips/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-19/arch-mips/usr/include/fts.h b/9/platforms/android-19/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-19/arch-mips/usr/include/fts.h +++ b/9/platforms/android-19/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-19/arch-mips/usr/include/jni.h b/9/platforms/android-19/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-19/arch-mips/usr/include/jni.h +++ b/9/platforms/android-19/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-19/arch-mips/usr/include/math.h b/9/platforms/android-19/arch-mips/usr/include/math.h index 59b4499..e24c001 100644 --- a/9/platforms/android-19/arch-mips/usr/include/math.h +++ b/9/platforms/android-19/arch-mips/usr/include/math.h @@ -495,8 +495,226 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ long double log2l(long double) __NDK_FPABI_MATH__; + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +long double __builtin_log2l(long double) __NDK_FPABI_MATH__; + +/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-19/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-19/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-19/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-19/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-19/arch-mips/usr/include/sys/utime.h b/9/platforms/android-19/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-19/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-19/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-19/arch-mips/usr/include/sys/wait.h b/9/platforms/android-19/arch-mips/usr/include/sys/wait.h index da29734..b30b7ec 100644 --- a/9/platforms/android-19/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-19/arch-mips/usr/include/sys/wait.h @@ -48,11 +48,7 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) -{ - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); -} +extern pid_t wait4(pid_t, int *, int, struct rusage *); /* Posix states that idtype_t should be an enumeration type, but * the kernel headers define P_ALL, P_PID and P_PGID as constant macros diff --git a/9/platforms/android-19/arch-mips/usr/include/time.h b/9/platforms/android-19/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-19/arch-mips/usr/include/time.h +++ b/9/platforms/android-19/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-19/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-19/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-19/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-19/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-19/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-19/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-19/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-19/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-19/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-19/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-19/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h b/9/platforms/android-19/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h index 10f36f4..7c9bba5 100644 --- a/9/platforms/android-19/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h +++ b/9/platforms/android-19/arch-x86/usr/include/OMXAL/OpenMAXAL_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenMAXAL.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-19/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-19/arch-x86/usr/include/SLES/OpenSLES_Android.h index f295518..4d8f656 100644 --- a/9/platforms/android-19/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-19/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -24,6 +24,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-19/arch-x86/usr/include/android/asset_manager.h b/9/platforms/android-19/arch-x86/usr/include/android/asset_manager.h index f5df46b..6ac350e 100644 --- a/9/platforms/android-19/arch-x86/usr/include/android/asset_manager.h +++ b/9/platforms/android-19/arch-x86/usr/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-19/arch-x86/usr/include/android/input.h b/9/platforms/android-19/arch-x86/usr/include/android/input.h index a660761..a660d7e 100644 --- a/9/platforms/android-19/arch-x86/usr/include/android/input.h +++ b/9/platforms/android-19/arch-x86/usr/include/android/input.h @@ -581,23 +581,23 @@ int64_t AMotionEvent_getEventTime(const AInputEvent* motion_event); * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getXOffset(const AInputEvent* motion_event); +float AMotionEvent_getXOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the Y coordinate offset. * For touch events on the screen, this is the delta that was added to the raw * screen coordinates to adjust for the absolute position of the containing windows * and views. */ -float AMotionEvent_getYOffset(const AInputEvent* motion_event); +float AMotionEvent_getYOffset(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the X coordinates being reported. * You can multiply this number with an X coordinate sample to find the * actual hardware value of the X coordinate. */ -float AMotionEvent_getXPrecision(const AInputEvent* motion_event); +float AMotionEvent_getXPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the precision of the Y coordinates being reported. * You can multiply this number with a Y coordinate sample to find the * actual hardware value of the Y coordinate. */ -float AMotionEvent_getYPrecision(const AInputEvent* motion_event); +float AMotionEvent_getYPrecision(const AInputEvent* motion_event) __NDK_FPABI__; /* Get the number of pointers of data contained in this event. * Always >= 1. */ @@ -618,29 +618,29 @@ int32_t AMotionEvent_getToolType(const AInputEvent* motion_event, size_t pointer * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the original raw X coordinate of this event. * For touch events on the screen, this is the original location of the event * on the screen, before it had been adjusted for the containing window * and views. */ -float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current X coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current Y coordinate of this event for the given pointer index. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ -float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current pressure of this event for the given pointer index. * The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure), * although values higher than 1 may be generated depending on the calibration of * the input device. */ -float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index. * This represents some approximation of the area of the screen being @@ -648,27 +648,27 @@ float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_i * touch is normalized with the device specific range of values * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ -float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index. */ -float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index. * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ -float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the current orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index. @@ -678,11 +678,11 @@ float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_ * indicates that the major axis of contact is oriented to the left. * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ -float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index); +float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__; /* Get the value of the request axis for the given pointer index. */ float AMotionEvent_getAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index); + int32_t axis, size_t pointer_index) __NDK_FPABI__; /* Get the number of historical points in this event. These are movements that * have occurred between this event and the previous event. This only applies @@ -703,7 +703,7 @@ int64_t AMotionEvent_getHistoricalEventTime(const AInputEvent* motion_event, * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical raw Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -713,21 +713,21 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical X coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalX(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical Y coordinate of this event for the given pointer index that * occurred between this event and the previous motion event. * Whole numbers are pixels; the value may have a fraction for input devices * that are sub-pixel precise. */ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical pressure of this event for the given pointer index that * occurred between this event and the previous motion event. @@ -735,7 +735,7 @@ float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointe * although values higher than 1 may be generated depending on the calibration of * the input device. */ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the current scaled value of the approximate size for the given pointer index that * occurred between this event and the previous motion event. @@ -745,19 +745,19 @@ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t * and scaled to a value between 0 and 1. The value of size can be used to * determine fat touch events. */ float AMotionEvent_getHistoricalSize(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the touch area * at the point of contact for the given pointer index that * occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the major axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -765,7 +765,7 @@ float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical length of the minor axis of an ellipse that describes the size * of the approaching tool for the given pointer index that @@ -773,7 +773,7 @@ float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_ * The tool area represents the estimated size of the finger or pen that is * touching the device independent of its actual touch area at the point of contact. */ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical orientation of the touch area and tool area in radians clockwise from * vertical for the given pointer index that @@ -785,12 +785,12 @@ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_ * The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians * (finger pointing fully right). */ float AMotionEvent_getHistoricalOrientation(const AInputEvent* motion_event, size_t pointer_index, - size_t history_index); + size_t history_index) __NDK_FPABI__; /* Get the historical value of the request axis for the given pointer index * that occurred between this event and the previous motion event. */ float AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, - int32_t axis, size_t pointer_index, size_t history_index); + int32_t axis, size_t pointer_index, size_t history_index) __NDK_FPABI__; /* diff --git a/9/platforms/android-19/arch-x86/usr/include/android/looper.h b/9/platforms/android-19/arch-x86/usr/include/android/looper.h index 24e3967..74c0383 100644 --- a/9/platforms/android-19/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-19/arch-x86/usr/include/android/looper.h @@ -253,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-19/arch-x86/usr/include/android/tts.h b/9/platforms/android-19/arch-x86/usr/include/android/tts.h index fb15108..946498e 100644 --- a/9/platforms/android-19/arch-x86/usr/include/android/tts.h +++ b/9/platforms/android-19/arch-x86/usr/include/android/tts.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include <stdint.h> + #define ANDROID_TTS_ENGINE_PROPERTY_CONFIG "engineConfig" #define ANDROID_TTS_ENGINE_PROPERTY_PITCH "pitch" #define ANDROID_TTS_ENGINE_PROPERTY_RATE "rate" @@ -90,7 +92,7 @@ extern android_tts_engine_t *android_getTtsEngine(); /* Including the old version for legacy support (Froyo compatibility). * This should return the same thing as android_getTtsEngine. */ -extern "C" android_tts_engine_t *getTtsEngine(); +android_tts_engine_t *getTtsEngine(); // A callback type used to notify the framework of new synthetized // audio samples, status will be SYNTH_DONE for the last sample of diff --git a/9/platforms/android-19/arch-x86/usr/include/fts.h b/9/platforms/android-19/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-19/arch-x86/usr/include/fts.h +++ b/9/platforms/android-19/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-19/arch-x86/usr/include/jni.h b/9/platforms/android-19/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-19/arch-x86/usr/include/jni.h +++ b/9/platforms/android-19/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-19/arch-x86/usr/include/math.h b/9/platforms/android-19/arch-x86/usr/include/math.h index 59b4499..e24c001 100644 --- a/9/platforms/android-19/arch-x86/usr/include/math.h +++ b/9/platforms/android-19/arch-x86/usr/include/math.h @@ -495,8 +495,226 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ long double log2l(long double) __NDK_FPABI_MATH__; + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +long double __builtin_log2l(long double) __NDK_FPABI_MATH__; + +/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-19/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-19/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-19/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-19/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-19/arch-x86/usr/include/sys/utime.h b/9/platforms/android-19/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-19/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-19/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-19/arch-x86/usr/include/sys/wait.h b/9/platforms/android-19/arch-x86/usr/include/sys/wait.h index da29734..b30b7ec 100644 --- a/9/platforms/android-19/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-19/arch-x86/usr/include/sys/wait.h @@ -48,11 +48,7 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) -{ - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); -} +extern pid_t wait4(pid_t, int *, int, struct rusage *); /* Posix states that idtype_t should be an enumeration type, but * the kernel headers define P_ALL, P_PID and P_PGID as constant macros diff --git a/9/platforms/android-19/arch-x86/usr/include/time.h b/9/platforms/android-19/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-19/arch-x86/usr/include/time.h +++ b/9/platforms/android-19/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-3/arch-arm/usr/include/jni.h b/9/platforms/android-3/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-3/arch-arm/usr/include/jni.h +++ b/9/platforms/android-3/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-3/arch-arm/usr/include/math.h b/9/platforms/android-3/arch-arm/usr/include/math.h index c1d9bd8..b572298 100644 --- a/9/platforms/android-3/arch-arm/usr/include/math.h +++ b/9/platforms/android-3/arch-arm/usr/include/math.h @@ -480,7 +480,221 @@ long double tgammal(long double) __NDK_FPABI_MATH__; #endif long double truncl(long double) __NDK_FPABI_MATH__; -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ +/* BIONIC: GLibc compatibility - required by the ARM toolchain */ +#ifdef _GNU_SOURCE +void sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +#endif + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; + __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-3/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-3/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-3/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-3/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-3/arch-arm/usr/include/sys/utime.h b/9/platforms/android-3/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-3/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-3/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-3/arch-arm/usr/include/sys/wait.h b/9/platforms/android-3/arch-arm/usr/include/sys/wait.h index d49684c..e720c2c 100644 --- a/9/platforms/android-3/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-3/arch-arm/usr/include/sys/wait.h @@ -32,6 +32,9 @@ #include <sys/types.h> #include <sys/resource.h> #include <linux/wait.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -47,10 +50,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } __END_DECLS diff --git a/9/platforms/android-3/arch-arm/usr/include/time.h b/9/platforms/android-3/arch-arm/usr/include/time.h index 40fd5c9..87f5314 100644 --- a/9/platforms/android-3/arch-arm/usr/include/time.h +++ b/9/platforms/android-3/arch-arm/usr/include/time.h @@ -105,8 +105,12 @@ extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct times #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-4/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-4/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-4/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-4/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-4/arch-arm/usr/include/jni.h b/9/platforms/android-4/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-4/arch-arm/usr/include/jni.h +++ b/9/platforms/android-4/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-4/arch-arm/usr/include/math.h b/9/platforms/android-4/arch-arm/usr/include/math.h index c1d9bd8..b572298 100644 --- a/9/platforms/android-4/arch-arm/usr/include/math.h +++ b/9/platforms/android-4/arch-arm/usr/include/math.h @@ -480,7 +480,221 @@ long double tgammal(long double) __NDK_FPABI_MATH__; #endif long double truncl(long double) __NDK_FPABI_MATH__; -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ +/* BIONIC: GLibc compatibility - required by the ARM toolchain */ +#ifdef _GNU_SOURCE +void sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +#endif + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; + __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-4/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-4/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-4/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-4/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-4/arch-arm/usr/include/sys/utime.h b/9/platforms/android-4/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-4/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-4/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-4/arch-arm/usr/include/sys/wait.h b/9/platforms/android-4/arch-arm/usr/include/sys/wait.h index d49684c..e720c2c 100644 --- a/9/platforms/android-4/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-4/arch-arm/usr/include/sys/wait.h @@ -32,6 +32,9 @@ #include <sys/types.h> #include <sys/resource.h> #include <linux/wait.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -47,10 +50,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } __END_DECLS diff --git a/9/platforms/android-4/arch-arm/usr/include/time.h b/9/platforms/android-4/arch-arm/usr/include/time.h index 40fd5c9..87f5314 100644 --- a/9/platforms/android-4/arch-arm/usr/include/time.h +++ b/9/platforms/android-4/arch-arm/usr/include/time.h @@ -105,8 +105,12 @@ extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct times #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-5/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-5/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-5/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-5/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-5/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-5/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-5/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-5/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-5/arch-arm/usr/include/jni.h b/9/platforms/android-5/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-5/arch-arm/usr/include/jni.h +++ b/9/platforms/android-5/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-5/arch-arm/usr/include/math.h b/9/platforms/android-5/arch-arm/usr/include/math.h index c1d9bd8..b572298 100644 --- a/9/platforms/android-5/arch-arm/usr/include/math.h +++ b/9/platforms/android-5/arch-arm/usr/include/math.h @@ -480,7 +480,221 @@ long double tgammal(long double) __NDK_FPABI_MATH__; #endif long double truncl(long double) __NDK_FPABI_MATH__; -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ +/* BIONIC: GLibc compatibility - required by the ARM toolchain */ +#ifdef _GNU_SOURCE +void sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +#endif + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; + __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-5/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-5/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-5/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-5/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-5/arch-arm/usr/include/sys/utime.h b/9/platforms/android-5/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-5/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-5/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-5/arch-arm/usr/include/sys/wait.h b/9/platforms/android-5/arch-arm/usr/include/sys/wait.h index d49684c..e720c2c 100644 --- a/9/platforms/android-5/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-5/arch-arm/usr/include/sys/wait.h @@ -32,6 +32,9 @@ #include <sys/types.h> #include <sys/resource.h> #include <linux/wait.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -47,10 +50,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } __END_DECLS diff --git a/9/platforms/android-5/arch-arm/usr/include/time.h b/9/platforms/android-5/arch-arm/usr/include/time.h index 40fd5c9..87f5314 100644 --- a/9/platforms/android-5/arch-arm/usr/include/time.h +++ b/9/platforms/android-5/arch-arm/usr/include/time.h @@ -105,8 +105,12 @@ extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct times #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-8/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-8/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-8/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-8/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-8/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-8/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-8/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-8/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-8/arch-arm/usr/include/fts.h b/9/platforms/android-8/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-8/arch-arm/usr/include/fts.h +++ b/9/platforms/android-8/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-8/arch-arm/usr/include/jni.h b/9/platforms/android-8/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-8/arch-arm/usr/include/jni.h +++ b/9/platforms/android-8/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-8/arch-arm/usr/include/math.h b/9/platforms/android-8/arch-arm/usr/include/math.h index c1d9bd8..b572298 100644 --- a/9/platforms/android-8/arch-arm/usr/include/math.h +++ b/9/platforms/android-8/arch-arm/usr/include/math.h @@ -480,7 +480,221 @@ long double tgammal(long double) __NDK_FPABI_MATH__; #endif long double truncl(long double) __NDK_FPABI_MATH__; -/* #endif */ /* __ISO_C_VISIBLE >= 1999 */ +/* BIONIC: GLibc compatibility - required by the ARM toolchain */ +#ifdef _GNU_SOURCE +void sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; +#endif + +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; + __END_DECLS #endif /* !_MATH_H_ */ diff --git a/9/platforms/android-8/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-8/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-8/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-8/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-8/arch-arm/usr/include/sys/utime.h b/9/platforms/android-8/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-8/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-8/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-8/arch-arm/usr/include/sys/wait.h b/9/platforms/android-8/arch-arm/usr/include/sys/wait.h index d49684c..e720c2c 100644 --- a/9/platforms/android-8/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-8/arch-arm/usr/include/sys/wait.h @@ -32,6 +32,9 @@ #include <sys/types.h> #include <sys/resource.h> #include <linux/wait.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -47,10 +50,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } __END_DECLS diff --git a/9/platforms/android-8/arch-arm/usr/include/time.h b/9/platforms/android-8/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-8/arch-arm/usr/include/time.h +++ b/9/platforms/android-8/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-9/arch-arm/usr/include/EGL/eglext.h b/9/platforms/android-9/arch-arm/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-9/arch-arm/usr/include/EGL/eglext.h +++ b/9/platforms/android-9/arch-arm/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-9/arch-arm/usr/include/GLES/glext.h b/9/platforms/android-9/arch-arm/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-9/arch-arm/usr/include/GLES/glext.h +++ b/9/platforms/android-9/arch-arm/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-9/arch-arm/usr/include/GLES2/gl2ext.h b/9/platforms/android-9/arch-arm/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-9/arch-arm/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-9/arch-arm/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-9/arch-arm/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-9/arch-arm/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-9/arch-arm/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-9/arch-arm/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-9/arch-arm/usr/include/android/looper.h b/9/platforms/android-9/arch-arm/usr/include/android/looper.h index a9d8426..74c0383 100644 --- a/9/platforms/android-9/arch-arm/usr/include/android/looper.h +++ b/9/platforms/android-9/arch-arm/usr/include/android/looper.h @@ -148,7 +148,8 @@ enum { /** * For callback-based event loops, this is the prototype of the function - * that is called. It is given the file descriptor it is associated with, + * that is called when a file descriptor event occurs. + * It is given the file descriptor it is associated with, * a bitmask of the poll events that were triggered (typically ALOOPER_EVENT_INPUT), * and the data pointer that was originally supplied. * @@ -252,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-9/arch-arm/usr/include/fts.h b/9/platforms/android-9/arch-arm/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-9/arch-arm/usr/include/fts.h +++ b/9/platforms/android-9/arch-arm/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-9/arch-arm/usr/include/jni.h b/9/platforms/android-9/arch-arm/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-9/arch-arm/usr/include/jni.h +++ b/9/platforms/android-9/arch-arm/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-9/arch-arm/usr/include/math.h b/9/platforms/android-9/arch-arm/usr/include/math.h index 6a43ac6..97c76d3 100644 --- a/9/platforms/android-9/arch-arm/usr/include/math.h +++ b/9/platforms/android-9/arch-arm/usr/include/math.h @@ -487,6 +487,217 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-9/arch-arm/usr/include/sys/prctl.h b/9/platforms/android-9/arch-arm/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-9/arch-arm/usr/include/sys/prctl.h +++ b/9/platforms/android-9/arch-arm/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-9/arch-arm/usr/include/sys/utime.h b/9/platforms/android-9/arch-arm/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-9/arch-arm/usr/include/sys/utime.h +++ b/9/platforms/android-9/arch-arm/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-9/arch-arm/usr/include/sys/wait.h b/9/platforms/android-9/arch-arm/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-9/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-9/arch-arm/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-9/arch-arm/usr/include/time.h b/9/platforms/android-9/arch-arm/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-9/arch-arm/usr/include/time.h +++ b/9/platforms/android-9/arch-arm/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-9/arch-mips/usr/include/EGL/eglext.h b/9/platforms/android-9/arch-mips/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-9/arch-mips/usr/include/EGL/eglext.h +++ b/9/platforms/android-9/arch-mips/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-9/arch-mips/usr/include/GLES/glext.h b/9/platforms/android-9/arch-mips/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-9/arch-mips/usr/include/GLES/glext.h +++ b/9/platforms/android-9/arch-mips/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-9/arch-mips/usr/include/GLES2/gl2ext.h b/9/platforms/android-9/arch-mips/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-9/arch-mips/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-9/arch-mips/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-9/arch-mips/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-9/arch-mips/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-9/arch-mips/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-9/arch-mips/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-9/arch-mips/usr/include/android/looper.h b/9/platforms/android-9/arch-mips/usr/include/android/looper.h index a9d8426..74c0383 100644 --- a/9/platforms/android-9/arch-mips/usr/include/android/looper.h +++ b/9/platforms/android-9/arch-mips/usr/include/android/looper.h @@ -148,7 +148,8 @@ enum { /** * For callback-based event loops, this is the prototype of the function - * that is called. It is given the file descriptor it is associated with, + * that is called when a file descriptor event occurs. + * It is given the file descriptor it is associated with, * a bitmask of the poll events that were triggered (typically ALOOPER_EVENT_INPUT), * and the data pointer that was originally supplied. * @@ -252,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-9/arch-mips/usr/include/fts.h b/9/platforms/android-9/arch-mips/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-9/arch-mips/usr/include/fts.h +++ b/9/platforms/android-9/arch-mips/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-9/arch-mips/usr/include/jni.h b/9/platforms/android-9/arch-mips/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-9/arch-mips/usr/include/jni.h +++ b/9/platforms/android-9/arch-mips/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-9/arch-mips/usr/include/math.h b/9/platforms/android-9/arch-mips/usr/include/math.h index 6a43ac6..97c76d3 100644 --- a/9/platforms/android-9/arch-mips/usr/include/math.h +++ b/9/platforms/android-9/arch-mips/usr/include/math.h @@ -487,6 +487,217 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-9/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-9/arch-mips/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-9/arch-mips/usr/include/sys/prctl.h +++ b/9/platforms/android-9/arch-mips/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-9/arch-mips/usr/include/sys/utime.h b/9/platforms/android-9/arch-mips/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-9/arch-mips/usr/include/sys/utime.h +++ b/9/platforms/android-9/arch-mips/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-9/arch-mips/usr/include/sys/wait.h b/9/platforms/android-9/arch-mips/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-9/arch-mips/usr/include/sys/wait.h +++ b/9/platforms/android-9/arch-mips/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-9/arch-mips/usr/include/time.h b/9/platforms/android-9/arch-mips/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-9/arch-mips/usr/include/time.h +++ b/9/platforms/android-9/arch-mips/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/9/platforms/android-9/arch-x86/usr/include/EGL/eglext.h b/9/platforms/android-9/arch-x86/usr/include/EGL/eglext.h index a08932a..7b6ed1b 100644 --- a/9/platforms/android-9/arch-x86/usr/include/EGL/eglext.h +++ b/9/platforms/android-9/arch-x86/usr/include/EGL/eglext.h @@ -28,7 +28,7 @@ extern "C" { ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ -#include <EGL/eglplatform.h> +#include <EGL/egl.h> /*************************************************************/ diff --git a/9/platforms/android-9/arch-x86/usr/include/GLES/glext.h b/9/platforms/android-9/arch-x86/usr/include/GLES/glext.h index 65ab5e4..015165f 100644 --- a/9/platforms/android-9/arch-x86/usr/include/GLES/glext.h +++ b/9/platforms/android-9/arch-x86/usr/include/GLES/glext.h @@ -3,6 +3,8 @@ /* $Revision: 10965 $ on $Date:: 2010-04-09 02:11:29 -0700 #$ */ +#include <GLES/gl.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-9/arch-x86/usr/include/GLES2/gl2ext.h b/9/platforms/android-9/arch-x86/usr/include/GLES2/gl2ext.h index 9db4e25..793e0c2 100644 --- a/9/platforms/android-9/arch-x86/usr/include/GLES2/gl2ext.h +++ b/9/platforms/android-9/arch-x86/usr/include/GLES2/gl2ext.h @@ -3,6 +3,8 @@ /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ +#include <GLES2/gl2.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/9/platforms/android-9/arch-x86/usr/include/SLES/OpenSLES_Android.h b/9/platforms/android-9/arch-x86/usr/include/SLES/OpenSLES_Android.h index 829df68..01568d2 100644 --- a/9/platforms/android-9/arch-x86/usr/include/SLES/OpenSLES_Android.h +++ b/9/platforms/android-9/arch-x86/usr/include/SLES/OpenSLES_Android.h @@ -21,6 +21,8 @@ extern "C" { #endif +#include "OpenSLES.h" + /*---------------------------------------------------------------------------*/ /* Android common types */ /*---------------------------------------------------------------------------*/ diff --git a/9/platforms/android-9/arch-x86/usr/include/android/looper.h b/9/platforms/android-9/arch-x86/usr/include/android/looper.h index a9d8426..74c0383 100644 --- a/9/platforms/android-9/arch-x86/usr/include/android/looper.h +++ b/9/platforms/android-9/arch-x86/usr/include/android/looper.h @@ -148,7 +148,8 @@ enum { /** * For callback-based event loops, this is the prototype of the function - * that is called. It is given the file descriptor it is associated with, + * that is called when a file descriptor event occurs. + * It is given the file descriptor it is associated with, * a bitmask of the poll events that were triggered (typically ALOOPER_EVENT_INPUT), * and the data pointer that was originally supplied. * @@ -252,4 +253,4 @@ int ALooper_removeFd(ALooper* looper, int fd); }; #endif -#endif // ANDROID_NATIVE_WINDOW_H +#endif // ANDROID_LOOPER_H diff --git a/9/platforms/android-9/arch-x86/usr/include/fts.h b/9/platforms/android-9/arch-x86/usr/include/fts.h index da26a88..d18fc2c 100644 --- a/9/platforms/android-9/arch-x86/usr/include/fts.h +++ b/9/platforms/android-9/arch-x86/usr/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/types.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ diff --git a/9/platforms/android-9/arch-x86/usr/include/jni.h b/9/platforms/android-9/arch-x86/usr/include/jni.h index 21ad370..f36398f 100644 --- a/9/platforms/android-9/arch-x86/usr/include/jni.h +++ b/9/platforms/android-9/arch-x86/usr/include/jni.h @@ -1138,14 +1138,14 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); #define JNIIMPORT #define JNIEXPORT __attribute__ ((visibility ("default"))) -#define JNICALL +#define JNICALL __NDK_FPABI__ /* * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus } diff --git a/9/platforms/android-9/arch-x86/usr/include/math.h b/9/platforms/android-9/arch-x86/usr/include/math.h index 6a43ac6..97c76d3 100644 --- a/9/platforms/android-9/arch-x86/usr/include/math.h +++ b/9/platforms/android-9/arch-x86/usr/include/math.h @@ -487,6 +487,217 @@ void sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; void sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; #endif +/* 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__; +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; +/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */ +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5) +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_logb(double) __NDK_FPABI_MATH__; +long __builtin_lrint(double) __NDK_FPABI_MATH__; +long __builtin_lround(double) __NDK_FPABI_MATH__; +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__; +double __builtin_j0(double) __NDK_FPABI_MATH__; +double __builtin_j1(double) __NDK_FPABI_MATH__; +double __builtin_jn(int, double) __NDK_FPABI_MATH__; +double __builtin_scalb(double, 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__; +double __builtin_gamma(double) __NDK_FPABI_MATH__; +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__; +double __builtin_drem(double, double) __NDK_FPABI_MATH__; +int __builtin_finite(double) __NDK_FPABI_MATH__ __pure2; +int __builtin_isnanf(float) __NDK_FPABI_MATH__ __pure2; +double __builtin_gamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_lgamma_r(double, int *) __NDK_FPABI_MATH__; +double __builtin_significand(double) __NDK_FPABI_MATH__; +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_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_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_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; +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 __builtin_gammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_lgammaf_r(float, int *) __NDK_FPABI_MATH__; +float __builtin_significandf(float) __NDK_FPABI_MATH__; +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__; +#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4) +double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__; +#else +/* clang < 3.4 */ +double __builtin_nexttoward(double, double) __NDK_FPABI_MATH__; +float __builtin_nexttowardf(float, float) __NDK_FPABI_MATH__; +#endif +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__; +void __builtin_sincos(double x, double *sin, double *cos) __NDK_FPABI_MATH__; +void __builtin_sincosf(float x, float *sin, float *cos) __NDK_FPABI_MATH__; +void __builtin_sincosl(long double x, long double *sin, long double *cos) __NDK_FPABI_MATH__; + /* #endif */ /* __ISO_C_VISIBLE >= 1999 */ __END_DECLS diff --git a/9/platforms/android-9/arch-x86/usr/include/sys/prctl.h b/9/platforms/android-9/arch-x86/usr/include/sys/prctl.h index 359d684..00e5837 100644 --- a/9/platforms/android-9/arch-x86/usr/include/sys/prctl.h +++ b/9/platforms/android-9/arch-x86/usr/include/sys/prctl.h @@ -29,6 +29,7 @@ #define _SYS_PRCTL_H #include <linux/prctl.h> +#include <sys/cdefs.h> __BEGIN_DECLS diff --git a/9/platforms/android-9/arch-x86/usr/include/sys/utime.h b/9/platforms/android-9/arch-x86/usr/include/sys/utime.h index 9f8810e..918d153 100644 --- a/9/platforms/android-9/arch-x86/usr/include/sys/utime.h +++ b/9/platforms/android-9/arch-x86/usr/include/sys/utime.h @@ -28,6 +28,7 @@ #ifndef _SYS_UTIME_H_ #define _SYS_UTIME_H_ +#include <sys/types.h> #include <linux/utime.h> #endif /* _SYS_UTIME_H_ */ diff --git a/9/platforms/android-9/arch-x86/usr/include/sys/wait.h b/9/platforms/android-9/arch-x86/usr/include/sys/wait.h index da29734..51e070b 100644 --- a/9/platforms/android-9/arch-x86/usr/include/sys/wait.h +++ b/9/platforms/android-9/arch-x86/usr/include/sys/wait.h @@ -33,6 +33,9 @@ #include <sys/resource.h> #include <linux/wait.h> #include <signal.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -48,10 +51,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } /* Posix states that idtype_t should be an enumeration type, but diff --git a/9/platforms/android-9/arch-x86/usr/include/time.h b/9/platforms/android-9/arch-x86/usr/include/time.h index e7ead0f..38e89fd 100644 --- a/9/platforms/android-9/arch-x86/usr/include/time.h +++ b/9/platforms/android-9/arch-x86/usr/include/time.h @@ -94,15 +94,21 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); |