b36efa4343d79e3fb548d12d039193850246b892 |
|
15-Sep-2016 |
Josh Gao <jmgao@google.com> |
Fix instances of '#if __LP64__'. Triggers -Wundef, which is on in -Weverything. Bug: http://b/31496165 Change-Id: Ib06107073f7dd1d584c19c222d0430da9d35630b
|
203e13d97de840e01eded6a267fef9f245cf3a15 |
|
22-Jul-2016 |
Elliott Hughes <enh@google.com> |
Always include <sys/cdefs.h>. I made a mistake caught by code review earlier, so let's try to be safer by default. This patch also moves all our "forwarding" headers to the guardless just-include-the-other-thing style that we usually use. (Where we have a comment explaining where the header comes from, I've kept that.) Change-Id: I37342cf5e2563c6a269b2ba61a697069b1c7913b
|
5470c183611737af5ec954984e4bdb5da8c99b73 |
|
22-Jul-2016 |
Elliott Hughes <enh@google.com> |
Make it possible to build bionic with -I instead of -isystem. Various things: * work around -Wnullability-completeness. * use C++ casts in C++ and C casts in C. * stop using attributes clang doesn't support (such as `warning`). * remove duplicate definitions of XATTR_CREATE and XATTR_REPLACE. Change-Id: I07649e46275b28a23ca477deea119fe843999533
|
5704c423c81790195161c1757ae79da188590c51 |
|
26-Jan-2016 |
Elliott Hughes <enh@google.com> |
Implement POSIX lockf. This has been requested a few times over the years. This is basically a very late rebase of https://android-review.googlesource.com/45470 which was abandoned years ago. One addition is that this version has _FILE_OFFSET_BITS=64 support. POSIX puts this in <unistd.h>. glibc also has it in <fcntl.h>. Bug: http://b/13077650 Change-Id: I5862b1dc326e326c01ad92438ecc1578d19ba739
|
d0a80a927f874472f5397a02a818eb2e6fce9456 |
|
22-Jul-2014 |
Dan Albert <danalbert@google.com> |
There is no _MIN for unsigned types. Change-Id: I49c38e51197b750210bdbf28c9cf6db30452a206 (cherry picked from commit ee7f1b5946dffa3aa95394b8cf6f15527f1068eb)
|
ee7f1b5946dffa3aa95394b8cf6f15527f1068eb |
|
22-Jul-2014 |
Dan Albert <danalbert@google.com> |
There is no _MIN for unsigned types. Change-Id: I49c38e51197b750210bdbf28c9cf6db30452a206
|
83c07b5e50207458445262ed10b79aa6b2d2d0ce |
|
22-Apr-2014 |
Elliott Hughes <enh@google.com> |
Fix WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN. GCC tells us everything we need to know. clang does its usual half-assed job. Change-Id: Id4d664529b10345274602768cd564d3df717e931
|
da030de702b756077fec536ed139e7ea38b51022 |
|
20-Feb-2014 |
Calin Juravle <calin@google.com> |
Fixed int fast types for LP64 Bug: 13110474 Change-Id: Id5591603ad4ba7e149c0852f4abb25e4e5a5d065
|
9f87a0b285128542a221f2b69d3b959a4e33c054 |
|
07-Feb-2014 |
Elliott Hughes <enh@google.com> |
Remove <sys/_types.h>. Bug: 12213562 Change-Id: I0d10664f9da60739bdbad0408be0dd61eea3c1fe
|
e2a292d278b94fec3d078b1f1b27c1f89942c276 |
|
25-Jan-2014 |
Elliott Hughes <enh@google.com> |
Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64). The various committees decided that everyone should get all these macros, all the time. Bug: 12708004 Change-Id: Ib56010dcba9b0656e5701546fefb7f78dc0bf916
|
debc021491530ff014166d48232b906d66a62b54 |
|
08-Oct-2013 |
Serban Constantinescu <serban.constantinescu@arm.com> |
AArch64: Fix definitions for STDINT_LIMITS This patches fixes the definitions for STDINT_LIMITS on __LP64__ systems. Change-Id: I5eb1664e9ef7c303432a2b041c99cec663816b75 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
|
5e72c513bf034bb4f657380aec567e3ebce447a2 |
|
02-Oct-2013 |
Elliott Hughes <enh@google.com> |
Remove #define _BITSIZE 32. I've no idea what _BITSIZE was supposed to be, glibc doesn't have it, the BSDs don't have it, and no code is currently using it. But having it set unconditionally to 32 sounds like a bad idea. Change-Id: I900235c1489afba891fff0bc3b43e9d593249a4f
|
a9a02acc9f5d7b13c742172fe1763840eecd8578 |
|
30-Sep-2013 |
Elliott Hughes <enh@google.com> |
Fix inttypes.h and stdint.h for 64-bit (and C++11). Change-Id: I394630348413c9aafcac137ce1ca5f0a93d9ab6f
|
0a9c615a899daa37b671711acc2c9be0a245919f |
|
18-Dec-2012 |
Pavel Chupin <pavel.v.chupin@intel.com> |
Fix stdint.h intptr_t/uintptr_t for x86_64/x32 Patch is required in NDK headers as well to be able to build multilib GCC with libgomp support. It's here: https://android-review.googlesource.com/#/c/62982 Change-Id: I2bec25d8cbca0e5ef1a0857008ececd92f4911be Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
|
dc5d3426d8c50c29c3a92ff9c9ca61d069e8dfeb |
|
22-Nov-2012 |
Sergey Melnikov <sergey.melnikov@intel.com> |
stdint.h header is not fully compatible with C99(ISO9899:1999) stdint.h provides macros with incorrect type: * UINT8_C * UINT16_C * UINT8_MAX * UINT16_MAX Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com> Change-Id: I2d130c782d4485bf6c9e9f068de0bdaa4ba7303f
|
7c89506e3af3ee97691a98329f0d7b5edef49218 |
|
14-Jun-2013 |
Elliott Hughes <enh@google.com> |
Ensure that <stdint.h> defines SIZE_MAX and friends. We were missing SIG_ATOMIC_MAX, SIG_ATOMIC_MIN, SIZE_MAX, WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN. Change-Id: I2535f36bc220fbaea009b483599b7af811c4cb5c
|
9248d3a58cdc6573bb8803ae9f266575e4ce64d2 |
|
13-Jun-2013 |
Elliott Hughes <enh@google.com> |
Revert "Add SIZE_MAX to <stdint.h> in a way that might actually work." This reverts commit d8627af159c6b1bc40296fb29297c61b30a5a8e2 which caused build breakage: In file included from bionic/libc/include/limits.h:86:0, from bionic/libc/include/stdint.h:33, from bionic/libc/arch-arm/bionic/crtbegin.c:31: bionic/libc/include/sys/limits.h:30:26: fatal error: linux/limits.h: No such file or directory compilation terminated. make: *** [out/target/product/generic/obj/lib/crtbegin_dynamic1.o] Error 1 Change-Id: I128095ecb99df92626e1f57e34c61e08c98a4078
|
d8627af159c6b1bc40296fb29297c61b30a5a8e2 |
|
12-Jun-2013 |
Elliott Hughes <enh@google.com> |
Add SIZE_MAX to <stdint.h> in a way that might actually work. Take two. Change-Id: I7d08b6d14c82a171312a7f5898270b4441d5cfa2
|
2c157aec9b37f49367f9411e2c2253bf3975f11c |
|
12-Jun-2013 |
Elliott Hughes <enh@google.com> |
<stdint.h> should expose SIZE_MAX. Change-Id: Id27222c24955c83f29ad953933cbdc48b6f1e900
|
3975cec694a0c9b42e3f7e671fcd678da92836c3 |
|
30-Nov-2012 |
Elliott Hughes <enh@google.com> |
Remove (near-)duplicate definitions of size_t and ssize_t. The near duplicates upset fussier compilers that insist that typedefs be exactly the same, but the fix isn't to make all copies identical... Change-Id: Icfdace41726f36ec33c9ae919dbb5a54d3529cc9
|
6d6731adc0cd0fb249a2b73a575e5ab2204643cc |
|
17-Aug-2012 |
Elliott Hughes <enh@google.com> |
Always define the 64-bit int types. These preprocessor tricks have caused trouble for -std=gnu99 and -ansi, and both netbsd's libc and glibc seem to unconditionally define these types. Change-Id: Ib8dffa341a8ca88f80d275ba2b7f93a4c910ee32
|
8b3cea67326c1afb9b7815ae042819c0c3a1f144 |
|
11-Mar-2011 |
David 'Digit' Turner <digit@android.com> |
libc: <stdint.h>: Don't make __STD_CONSTANT_MACROS available if only __STD_LIMIT_MACROS is defined. Change-Id: I8b0ea266eab9c6f75d8407b704953ecaef948221
|
0e5411b4ba15946bde04c7ee69b0c20129443b36 |
|
10-Mar-2011 |
David 'Digit' Turner <digit@android.com> |
libc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition Change-Id: I3c74269901a288c448734dd7eb442a62b9348db8
|
08ff1a647484e67f23d1d8a0364b2e930dd2b9da |
|
10-Mar-2011 |
David 'Digit' Turner <digit@android.com> |
libc: <stdint.h>: Proper C++ This patch prevents the definition of various macros when <stdint.h> is included from C++. The ISO C99 standard mentions that when this header is included from a C++ source file, limit and constant related macros should only be defined when asked explicitely by defining __STDC_LIMIT_MACROS and __STD_CONSTANT_MACROS, respectively. The <stdint.h> lacked the proper #ifdef .. #endif blocks for the following macros: INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, PTRDIFF_MIN, PTRDIFF_MAX INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX, INPTR_C, UINTPR_C, PTRDIFF_C, INTMAX_C, UINTMAX_C This is intended to fix http://code.google.com/p/android/issues/detail?id=14380 after we copy this file to development/ndk/platforms/android-3/include/ Change-Id: Ia77e0822edfaaf568ea599d7de673b310eeeaa4a
|
c88110e284d6fcb5922c72f524dc3b4f24139580 |
|
08-Sep-2009 |
Martin Storsjo <martin@martin.st> |
Define 64 bit types if compiling with -std=c99 Compiling with -std=c99 defines __STRICT_ANSI__, but the 64 bit types and type macros should still be defined in this case. This helps compiling third party code that needs -std=c99 with the NDK.
|
1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
1767f908af327fa388b1c66883760ad851267013 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
4e468ed2eb86a2406e14f1eca82072ee501d05fd |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
|
a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
|