Commit Graph

474 Commits

Author SHA1 Message Date
Grigoriy Kraynov
eaf0281f45 Remove missing functions imaxabs() and imaxdiv() from inttypes.h
Bionic does not have actual implementation of those functions.
Further implementations should be introduced in new
API-level in order to prevent break of compatibility.

Change-Id: I0aa65ea28082cf4a88c383ce0d8eceaa5288c027
Signed-off-by: Grigoriy Kraynov <grigoriy.kraynov@intel.com>
2013-08-12 16:31:10 +04:00
Andrew Hsieh
52d6614480 Merge "Update mips crtfiles from bionic with C versions" 2013-08-06 01:21:29 +00:00
Andrew Hsieh
cb4fcab5c4 Merge "Add minimal supports to build multilib x86 toolchain with OpenMP" 2013-08-06 01:21:03 +00:00
Andrew Hsieh
f43a290c1b Update mips crtfiles from bionic with C versions
Copied from bionic but adding back .ctors and .dtors to be
compatible with old Android system linkers.  Otherwise
static executable may segfault.

Change-Id: If834123161744cd2387a2c031a2315e818c2f123
2013-08-05 14:21:06 +08:00
Andrew Hsieh
09073f3d88 Add minimal supports to build multilib x86 toolchain with OpenMP
Change-Id: I095c15d2a2de11992890c2a03be0f90332d372de
2013-08-02 17:06:40 +08:00
Andrew Hsieh
aecb5c6d65 Add boostrap lib to build multilib x86 GCC with OpenMP support
Build instructions:

  cd AOSP=<your-AOSP-path>
  cd $AOSP/bionic/libc
  ln -s arch-x86 arch-x86_64

  export NDK=$AOSP/ndk
  cd $NDK
  ./build/tools/gen-platforms.sh --dst-dir=$NDK --ndk-dir=$NDK --overlay --arch=x86_64

  # copy $NDK/platforms/android-9/arch-x86_64/usr/lib, lib64, and libx32 over

Change-Id: I021a34fa139456540bc0afdb1d9636df165f92fe
2013-08-02 14:34:01 +08:00
Andrew Hsieh
80c93fbede Fix gles3jni build with clang at android-11
jni/gl3stub.c:21:5: error: implicit declaration of function 'eglGetProcAddress' is invalid in C99
    FIND_PROC(glReadBuffer);
    ^
jni/gl3stub.c:20:37: note: expanded from macro 'FIND_PROC'
    #define FIND_PROC(s) s = (void*)eglGetProcAddress(#s)
                                    ^
1 error generated.

Change-Id: I907f33e3d88f3e96bf7958102e90bf15529748b9
2013-07-31 13:27:23 +08:00
Andrew Hsieh
65675341ac Add TCP_INFO state enum values.
See b.android.com/38881 and fix in bionic
0dff43cab41e4a0bd5bd018584952c68cb224977

Change-Id: I2417fe3cf43919bf363f36c337ea6813f13699d8
2013-07-29 20:15:57 -07:00
Pavel Chupin
e5c9f8ec5a Update x86 crtfiles from bionic with C versions
Files are copied as is from bionic head.
Also adding arch-x86_64 symlink to be able to generate arch-x86_64
crtfiles/libs.

Change-Id: I0b40c1c19bb4e3b24b25fa2bcb9236469fa32a3e
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-07-25 20:55:38 +04:00
Andrew Hsieh
f05c9f97b3 am 85f9f764: Merge "Workaround for libportable wait4 implementation."
* commit '85f9f764507761e011fc14398e7ddf08b5d383c5':
  Workaround for libportable wait4 implementation.
2013-07-22 12:14:00 -07:00
Andrew Hsieh
85f9f76450 Merge "Workaround for libportable wait4 implementation." 2013-07-22 19:11:18 +00:00
Andrew Hsieh
54009f7e95 am 5d774594: Merge "ndk: Fix WCHAR_MIN / WCHAR_MAX definitions."
* commit '5d7745946dfc76dc2c82ef4ff097dedd8913e393':
  ndk: Fix WCHAR_MIN / WCHAR_MAX definitions.
2013-07-22 09:30:19 -07:00
David 'Digit' Turner
fe8625d401 ndk: Fix WCHAR_MIN / WCHAR_MAX definitions.
This fixes WCHAR_MIN / WCHAR_MAX to be signed / unsigned based on
the target ABI.

This only impacts ARM where wchar_t is really 'unsigned int'.
One can define _WCHAR_IS_ALWAYS_SIGNED to restore the old behaviour.

See http://b.android.com/55749

Change-Id: Idb63b7b11aecd3cfee37f5b6dd2eba78b308876f
2013-07-20 00:56:53 +02:00
Andrew Hsieh
2bb3bd5a59 am e96f2b6a: am 66623113: Merge "[MIPS] Add missing REAL macros."
* commit 'e96f2b6a5a93bbcd631070d5f1e82c8b7f845cee':
  [MIPS] Add missing REAL macros.
2013-07-15 09:38:06 -07:00
Andrew Hsieh
e96f2b6a5a am 66623113: Merge "[MIPS] Add missing REAL macros."
* commit '66623113fa2192374220e3df25fc040fa0ab6ade':
  [MIPS] Add missing REAL macros.
2013-07-15 09:35:13 -07:00
Lai Wei-Chih
db279bedd6 [MIPS] Add missing REAL macros.
Change-Id: If396e16a759d90f94213deb536f3d1c9dcb6c132
2013-07-15 10:09:06 +08:00
Jesse Hall
2bfb93da26 am 4b571253: Merge "Load ES3 functions with eglGetProcAddress, not dlsym" into jb-mr2-dev
* commit '4b571253095629540ecee414caa9e601ec304e6a':
  Load ES3 functions with eglGetProcAddress, not dlsym
2013-07-10 09:36:09 -07:00
Jesse Hall
b7a2e33c11 Load ES3 functions with eglGetProcAddress, not dlsym
Using dlopen/dlsym works, but eglGetProcAddress is a little easier and
more consistent with how GL extension functions (rather than these
non-extension functions) are loaded.

Change-Id: I082c193f08f7d5456389ab783a06cd38a9632d53
2013-07-09 11:31:33 -07:00
Andrew Hsieh
1175ccb028 am c7ef0a3c: am 56de69b3: Merge "ndk: <sys/cdefs.h>: make wchar_t 32-bit for all API levels."
* commit 'c7ef0a3c0379a2ca81b6f82a9746c3c5405b8598':
  ndk: <sys/cdefs.h>: make wchar_t 32-bit for all API levels.
2013-07-08 16:01:54 -07:00
Andrew Hsieh
c7ef0a3c03 am 56de69b3: Merge "ndk: <sys/cdefs.h>: make wchar_t 32-bit for all API levels."
* commit '56de69b35beee71b7575fe86c0885f12523f481e':
  ndk: <sys/cdefs.h>: make wchar_t 32-bit for all API levels.
2013-07-08 16:00:16 -07:00
Andrew Hsieh
56de69b35b Merge "ndk: <sys/cdefs.h>: make wchar_t 32-bit for all API levels." 2013-07-08 22:59:16 +00:00
Andrew Hsieh
822b8e0705 am c42111c3: am 7fc5e915: Merge "Fix <inttypes.h> declaration for pointer-related PRI/SCN macros."
* commit 'c42111c3ed4c48a957b810c3f4d6f9f56f2f5931':
  Fix <inttypes.h> declaration for pointer-related PRI/SCN macros.
2013-07-08 09:34:45 -07:00
Andrew Hsieh
c42111c3ed am 7fc5e915: Merge "Fix <inttypes.h> declaration for pointer-related PRI/SCN macros."
* commit '7fc5e915158c638740e7fecf270b92038c696fa3':
  Fix <inttypes.h> declaration for pointer-related PRI/SCN macros.
2013-07-08 09:32:09 -07:00
David 'Digit' Turner
f85e243cdb ndk: <sys/cdefs.h>: make wchar_t 32-bit for all API levels.
This patch ensures that wchar_t is a 32-bit number when targetting
API level < 9 (i.e. Froyo or older).

You can restore the previous (and broken) behaviour by defining
_WCHAR_IS_8BIT at compile time. See http://b.android.com/57267
for more context.

BUG=57267

Change-Id: Ib334e8fe95a3f592d5d4bb157b0f123984133597
2013-07-04 16:30:41 +02:00
David 'Digit' Turner
530a3ca575 Fix <inttypes.h> declaration for pointer-related PRI/SCN macros.
This ports the following Bionic libc fix to the NDK header:

  https://android-review.googlesource.com/#/c/61703/2

BUG=57218

Change-Id: I0c5fef17f0c1bb3a89c00edf51f494cbf7bda435
2013-07-03 15:13:49 +02:00
Jesse Hall
a2ad5a69b7 am 163e7c5e: Merge "Add a sample showing how to use OpenGL ES 3.0" into jb-mr2-dev
* commit '163e7c5e50124f6ea87e6aed49722bae1fd42563':
  Add a sample showing how to use OpenGL ES 3.0
2013-06-29 21:09:49 -07:00
Jesse Hall
2eceb17d62 am 5e427929: Merge "Add GLESv3 to future NDK release" into jb-mr2-dev
* commit '5e42792955753495f3643260b7a8af099dac32f9':
  Add GLESv3 to future NDK release
2013-06-29 21:04:31 -07:00
Jesse Hall
a451b018f6 Add a sample showing how to use OpenGL ES 3.0
Change-Id: If834a23ad3ad2164e6fdc40f865ee28cfa93de7e
2013-06-24 11:12:42 -07:00
Andrew Hsieh
e5499c53e8 am ae9621de: Merge "Fix wchar.h not to redefine WCHAR_MAX/WCHAR_MIN"
* commit 'ae9621de63000a4c54e95fc9424f7a02f2d9af9a':
  Fix wchar.h not to redefine WCHAR_MAX/WCHAR_MIN
2013-06-21 13:52:51 -07:00
Andrew Hsieh
f56a37e539 Fix wchar.h not to redefine WCHAR_MAX/WCHAR_MIN
Change-Id: I6c6f2e020b72cce4c8665133ea0a0c5db977e348
2013-06-21 11:11:35 -07:00
Andrew Hsieh
ca71e0f9da am 720848df: Merge "Header comparison tool for Bionic vs NDK platforms"
* commit '720848df0b749e6c6f97249fcf7f9d5afce5be53':
  Header comparison tool for Bionic vs NDK platforms
2013-06-21 08:12:21 -07:00
Grigoriy Kraynov
a67bdae6b1 Header comparison tool for Bionic vs NDK platforms
This tool is useful to compare headers between Bionic and NDK platforms.
It shows a summary list of non-equal headers and writes diff report to file.
See 'ndk/tools/headers-diff-bionic-vs-ndk.py --help' for details.

Change-Id: I3a9cf8a5e2dc862e34e27ab343ca17a0b4597b4d
Signed-off-by: Grigoriy Kraynov <grigoriy.kraynov@intel.com>
2013-06-21 14:01:40 +00:00
Andrew Hsieh
a8c949ea49 am 1db04560: Merge "Add clone in x86"
* commit '1db0456074007500c7e289e893e41149f8d8ff3c':
  Add clone in x86
2013-06-20 09:34:34 -07:00
WenHan Gu
3d4172fa77 Workaround for libportable wait4 implementation.
Follow https://android-review.googlesource.com/#/c/55573 and
this should be revert once being solved.

Change-Id: Ib9dabc1effaf59d541bc80bfce3f250a3d5fc8b2
2013-06-20 12:15:40 +08:00
Andrew Hsieh
d166ec49f9 Add clone in x86
clone is already declared in header and exists in both arm/mips libc.
Add the missing one in libc.so and libc.a (*1) for x86.

(*) only updated bionic_clone.o and clone.o from build after
22d366cc09383956dc264ed4641572e609392eee

Change-Id: Ibcb39948d48b84398543d84304ead21dab534c40
2013-06-19 18:02:20 -07:00
Andrew Hsieh
ace0c1c3db am 91009134: Merge "stdint.h header is not fully compatible with C99(ISO9899:1999)"
* commit '91009134462a1757982e5e80064075e52295e57c':
  stdint.h header is not fully compatible with C99(ISO9899:1999)
2013-06-19 13:31:29 -07:00
Andrew Hsieh
9100913446 Merge "stdint.h header is not fully compatible with C99(ISO9899:1999)" 2013-06-19 20:30:02 +00:00
Jesse Hall
c05863dac1 Add GLESv3 to future NDK release
* Headers were copied from frameworks/native/opengl/include/GLES3/.
* Symbol lists were generated with ndk/build/tools/gen-system-symbols.sh.
* Symbols are identical between architectures

Change-Id: I011094ea3b479cf166ffb6bef3778cde683fc502
2013-06-18 10:19:36 -07:00
Andrew Hsieh
fecb58b41d am 38c1a99c: Merge "Fix malloc_usable_size() declaration."
* commit '38c1a99c6193e4daecc48e67fc03a35b058045ee':
  Fix malloc_usable_size() declaration.
2013-06-05 22:36:47 -07:00
Andrew Hsieh
38c1a99c61 Merge "Fix malloc_usable_size() declaration." 2013-06-06 05:35:06 +00:00
Andrew Hsieh
2878c1ec89 am f2d1fca8: Merge "Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event"
* commit 'f2d1fca86d4f94207eee67f54ff3eb50192dcbad':
  Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event
2013-05-28 17:08:50 -07:00
Andrew Hsieh
5b1e1adadc Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event
See b.android.com/55873

Change-Id: I5ad9160ff286c291feece2deda647af66e251bb5
2013-05-27 12:12:53 +08:00
David 'Digit' Turner
bb37dac9fa Fix malloc_usable_size() declaration.
This doesn't break the ABI.

See https://android-review.googlesource.com/#/c/59195 for corresponding
fix in the C library.

See http://b.android.com/55725 for details.

Change-Id: Id01e38ef7951368897b9bbaae09741fa927fd548
2013-05-23 10:08:44 +02:00
Andrew Hsieh
a09e0b1c4b am 19202f5a: Merge "Implement optimized __swap16md and __swap32md."
* commit '19202f5a753e1d2120dad5d177fc11d4e5e7bf7a':
  Implement optimized __swap16md and __swap32md.
2013-05-16 08:47:15 -07:00
Lai Wei-Chih
7e7f8b295f Implement optimized __swap16md and __swap32md. 2013-05-15 21:04:52 +08:00
Michael Wright
4f842f0072 am a7d5ca6b: Stop errors being logged erroneously on event predispatch
* commit 'a7d5ca6b2eaaa5a1c7766dea477c0d6c795b3721':
  Stop errors being logged erroneously on event predispatch
2013-04-23 16:46:09 -07:00
Michael Wright
a7d5ca6b2e Stop errors being logged erroneously on event predispatch
Change-Id: Ie4d15a7d01b9d63e7db16a2701024e6108eb0cc0
2013-04-22 18:11:08 -07:00
Andrew Hsieh
25c7f95934 Fix x86 endian.h
See https://code.google.com/p/android/issues/detail?id=54465
and https://android-review.googlesource.com/#/c/57242

Change-Id: Ib61fc0696e4979421f9bc6916c776a41fdc8be71
2013-04-22 11:25:41 +08:00
Andrew Hsieh
13dfb24d10 Merge "[MIPS] Cleaned up sig_0 error messages and added a few more checks." 2013-04-07 01:07:31 +00:00
Pete Delaney
b294db4498 [MIPS] Cleaned up sig_0 error messages and added a few more checks.
Change-Id: I316e60d891af99c18fc4b838b35a6d8977d0e7c8
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
2013-04-05 16:00:35 -07:00