c8cf3513ecb265ba3aadc846aa2113290a504c44 |
|
20-Aug-2014 |
Hans Boehm <hboehm@google.com> |
Fix, generalize stdatomic.h; improve test. We seem to use this stdatomic.h sometimes, and slightly different prebuilts at other times, making them all difficult to test, and making it unclear which one we're testing. This generalizes the bionic header so that it can be used directly as the prebuilt header as well. So long as they don't diverge again, that should somewhat improve test coverage. Use the correct builtin for atomic_is_lock_free. Fix atomic_flag_init. Turn on atomic tests even with __GLIBC__, since they now appear to pass. Include uchar.h in stdatomic.h where needed. Add a basic memory ordering test. Fix bit-rotted comments in bionic tests makefile. Prerequisite for fixing b/16880454 and Bug:16513433 Change-Id: If6a14c1075b379395ba5d93357d56025c0ffab68 (cherry picked from commit 00aaea364501b3b0abe58dae461136159df1e356)
|
b902641d7303d2ea24c10f6d6e7ff49e7ee75611 |
|
24-Jul-2014 |
Elliott Hughes <enh@google.com> |
Implement twalk(3), add unit tests. I've also added insque(3) and remque(3) (from NetBSD because the OpenBSD ones are currently broken for non-circular lists). I've not added the three hash table functions that should be in this header because they operate on a single global hash table and thus aren't likely to be useful. Bug: https://code.google.com/p/android/issues/detail?id=73719 (cherry picked from commit 3e424d0a241f8ae5194514dabc4ad899f5a5416d) Change-Id: I5882a6b48c80fea8ac6b9c27e7b9de10b202b4ff
|
8e32b7b3543eadbb58a92443fb57d60aac92ef88 |
|
11-Jul-2014 |
Christopher Ferris <cferris@google.com> |
Make jemalloc the default choice. Change-Id: I5ff0cf0c396b7ae6278e6fcd5a0d50f8b966fb54
|
d06ee1d6db6165126161044fb662301bf9f04b3a |
|
02-Jul-2014 |
Elliott Hughes <enh@google.com> |
Build all bionic test files -Werror and fix our one warning. Change-Id: I62bb0528fd1bcb9aa4c61e44c78158a592690fc7
|
fcac81ef04ade6f31eddb71bfc9a30a1ecf47840 |
|
02-Jul-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Native tests are now multilib=both by default Change-Id: I788ac0b871703c137727a65e017c4466127c0190
|
1f5e1a3cbc564c593fe1090894ecdb070f36e20c |
|
03-Jun-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Move libraries for unit-tests to separate folder Change-Id: I1653f3f2fd63ba25525369bc725c8f7438ecf021
|
e5fdaa4f9d102461a4d8a865e6ca84666893b9e7 |
|
14-Jun-2014 |
Dan Albert <danalbert@google.com> |
Revert "Backing this one out since the counterpart needs to be sent upstream." This reverts commit a04d2bc28e7d7fcaf34ad71e4a6608a13cf84197. Change-Id: I1b49165ca5d4bafdba7948818256a6167a363aca
|
a04d2bc28e7d7fcaf34ad71e4a6608a13cf84197 |
|
14-Jun-2014 |
Dan Albert <danalbert@google.com> |
Backing this one out since the counterpart needs to be sent upstream. This reverts commit 5ee320dd35fafc11eaf90c62198e08c6670e35b4. Change-Id: I1a9c6b06c3aca595f01c629f7649be743dc48e77
|
5ee320dd35fafc11eaf90c62198e08c6670e35b4 |
|
12-Jun-2014 |
Dan Albert <danalbert@google.com> |
Hides valloc(3)/pvalloc(3) on LP64. These were removed from POSIX 2004. Hides the header declarations for all targets, and hides the symbols for LP64. Bug: 13935372 Change-Id: Id592f67e9b7051517a05f536e1373b30162e669c
|
e9f7a9c340a3af11de720042fdc5061b65dc9b78 |
|
11-Jun-2014 |
Christopher Ferris <cferris@google.com> |
Allow bionic-unit-tests-glibc to be built again. When we switched to 64 bit host build be default, we no longer build the glibc unit tests. Fix that, and also set all host targets to build multilib. This change also changes the name of bionic-unit-tests-glibc to add the suffix of 32 or 64 depending on the host type built. Change-Id: Ife13f9d80f351750ff02825b086d44bb0c2df828
|
7f722b366aad52000465818ffbdc880676be9aae |
|
10-Jun-2014 |
Ying Wang <wangying@google.com> |
Use PRIVATE_POST_INSTALL_CMD to create symlink. Bug: 15520908 Change-Id: Ib3349f7adb6def81abf07bfb9d37093e4a599d09
|
7a7f9952c12b216fbf91fc4cdbb97045e8861115 |
|
02-Jun-2014 |
Dan Albert <danalbert@google.com> |
Adds functionality specified by uchar.h mbrtoc32 and c32rtomb get their implementations from mbrtowc and wcrtomb. The wc functions now simply call the c32 functions. Bug: 14646575 Change-Id: I49d4b95fed0f9d790260c996c4d0f8bfd1686324
|
d286796fce1e6fff407b719a53eb2afbeb96c327 |
|
04-Jun-2014 |
Elliott Hughes <enh@google.com> |
Turn on -Wunused and fix the mistakes it uncovers. Change-Id: I023d2d8b547fbc21d4124bb7510d42b06a0dc501
|
214e64135ee22e8aa7f71e56e0f5662dc6746ad0 |
|
31-May-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Make atexit.dlclose work for glibc * build libtest_atexit.so * remove atexit(NULL) - glibc segfaults on it Bug: 15350494 Change-Id: I27d79130c32c5691b0e8790a57d92f9710f5bf4a
|
d178c83d45ef5ff5caa6f8e92d461ada72c37bd2 |
|
30-May-2014 |
Christopher Ferris <cferris@google.com> |
Fix unwinding_through_signal_frame test. I accidentally removed the compilcation of the test implementation file with special flags needed for the test to work. This change creates the impl as a library with those flags back. Bug: 14819262 Change-Id: Ib84fd26a7f4d40a0267d3ed686185b0abc5a3706
|
e6c57fcb05b0dcbfa8129bb6f7d99093f4819370 |
|
24-May-2014 |
Elliott Hughes <enh@google.com> |
Add C11 <stdatomic.h>. Bug: 14903517 Change-Id: I631dbfdaa698cf7fea8e3b5e18a32586383e62a5
|
72bbd423579bb971dc06cdd3c06201faf3fe95e6 |
|
08-May-2014 |
Christopher Ferris <cferris@google.com> |
Support for jemalloc to replace dlmalloc. To use jemalloc, add MALLOC_IMPL = jemalloc in a board config file and you get the new version automatically. Update the pthread_create_key tests since jemalloc uses a few keys. Add a new test to verify memalign works as expected. Bug: 981363 Change-Id: I16eb152b291a95bd2499e90492fc6b4bd7053836
|
b648a8a57ee42533a5bf127225a252f73ca2cbbc |
|
20-May-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add RTLD_NOLOAD support and some related changes. * Aligned RTLD_ values with glibc for lp64 * dlopen supports RTLD_NOLOAD flag * soinfo_unload calls find_library(.., RTLD_NOLOAD) instead of naive find_loaded_library_by_name() * dlopen changed to add child to caller soinfo instead of somain. Bug: https://code.google.com/p/android/issues/detail?id=64069 Change-Id: I1a65f2c34f3e0edc6d2c41a2e408b58195feb640
|
7a39094465bbd01a22565fce1f1155c762f8d145 |
|
20-May-2014 |
Dan Albert <danalbert@google.com> |
Revert "Removes bionic's dependence on stlport" This reverts commit 4d35da1df8b74c1965b2201f6089e7d7bb352def. Change-Id: Ie9a2620441edb55dbc5949e13a4b913ea4e66797
|
4d35da1df8b74c1965b2201f6089e7d7bb352def |
|
19-May-2014 |
Dan Albert <danalbert@google.com> |
Removes bionic's dependence on stlport Only affects tests/benchmarks. Confirmed passing on arm. Change-Id: If158e23e8cd06e7597ef6f3c9376f6799b467e62
|
568d64dc6213b137e43d65e007cc2c60adc16071 |
|
14-May-2014 |
Jingwei Zhang <jingwei.zhang@intel.com> |
Accuracy tests for libm This patch adds tests for 14 math functions to address coverage issue of math functions discussed in: https://android-review.googlesource.com/#/c/49653/ Change-Id: Ia7200b93d4f5c7928a3fb827ca6932226384a116 Signed-off-by: Jingwei Zhang <jingwei.zhang@intel.com> Signed-off-by: Yong Yao <yong.yao@intel.com>
|
d59e50063ad708509f3ad83350be33f5612c4f54 |
|
09-May-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Improve detection of already loaded libraries Linker is now able to resolve symlinked libraries correctly. soinfo is extended to save the graph of dependencies during load/unload. Dependencies are used only in CallConstructor. Bug: 9741592 Change-Id: Id9c48a74c46aa89bcdf3d54ec2f8ba3d398130b1
|
6a41b0fb0e589c4afc4ecbcf7c425f0aa40eaea4 |
|
14-May-2014 |
Elliott Hughes <enh@google.com> |
Flesh out <arpa/inet.h>. Use the upstream OpenBSD implementations of these functions. Also ensure we have symbols for htonl, htons, ntohl, and ntohs. gtest doesn't like us using the macro versions in ASSERT_EQ. Bug: 14840760 Change-Id: I68720e9aca14838df457d2bb27b999d5818ac2b5
|
eb664e24c074b88539b743668109d8b4eaa925bd |
|
13-May-2014 |
Elliott Hughes <enh@google.com> |
Add getmntent_r to our collection of <mntent.h> compatibility stubs. This helps build 'external/flo' out of the box. Bug: 14841211 Change-Id: I30dde77239cceaf1f5743163744eb3604d27a266
|
7db180919c335287b201e859faa8ee0dbe281cde |
|
08-May-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Test dlopen with symlinked .so files Bug: 9741592 Change-Id: I68c59d6f4e690136395c3dc3de13f99ce38de528
|
6396da98cb3313048ae9a8147523ed61f675fd50 |
|
06-May-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add missing test for atexit test suite. Change-Id: I3d14d7df1da53ccef534c106633593551ab6a7cb
|
0e9d7fccb9c3b688992f2ef9ac1cfd1f456b1ed7 |
|
07-May-2014 |
Calin Juravle <calin@google.com> |
Fix bionic-unit-tests-glibc-run target Configure multilib for bionic-unit-tests-glibc-run target (the path to the host executable was already patched to support multilib build but the multilib itself wasn't configured). Change-Id: If533fbdb19bc737e543cf85a0787505458f24579
|
26052616915fe2324755687c7db73d69c521b34d |
|
02-May-2014 |
Torne (Richard Coles) <torne@google.com> |
Test that relro sharing actually saves memory. Spawn 20 child processes, have them all load the library, and compare the total PSS used in the case where we use dlopen() and the case where we use android_dlopen_ext() with relro sharing. We assume we will save at least 10% of the memory; in practise this example saves 40% or more so this should be a reasonable threshold. Bug: 14299541 Change-Id: Idccf6b8b0eb137abae2200f1ce68fb76b3cbdd75
|
6b56691a678420477595a531b2d2829980eb51c0 |
|
29-Apr-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fixes for __cxa_finalize * Ability to register atexit handler from atexit handler * Correct way to handle both forms of atexit handler Bug: https://code.google.com/p/android/issues/detail?id=66595 Bug: 4998315 Change-Id: I39529afaef97b6e1469c21389d54c0d7d175da28
|
26ec9679ff01fb155ae21015f31cc95bed24f670 |
|
30-Apr-2014 |
Torne (Richard Coles) <torne@google.com> |
Handle empty relro segment or incorrectly sized file. If the file has no relro segment, the generated relro file will have length 0, which caused mmap to fail. If the relro file has nonzero size, but is too short (e.g. because it's for the wrong version of the library), the linker would segfault while comparing the data. Fix both these issues: don't try to map a zero length file, and don't try to compare data that would be beyond the end of the file. Improve test to explicitly generate two versions of the library: one with -z relro, and one with -z norelro, so we can test both cases; also explicitly test the case where the relro file has length 0. Bug: 14299541 Change-Id: Id8b95585edda90e8bb5de452a35b70ed2d224934
|
b8425c549a0bfe08b01b5906b95603d8523c1b16 |
|
30-Apr-2014 |
Dan Albert <danalbert@google.com> |
Adds quick_exit(3) and at_quick_exit(3) from freebsd Change-Id: I4fe88abd8f7b8aa45e58aeb2529d59a8d555d338
|
3d7a0d9b08ecab054b2dff8332507644de3690b0 |
|
29-Apr-2014 |
Elliott Hughes <enh@google.com> |
Switch to the OpenBSD wcsto* functions. This replaces a partial set of non-functional functions with a complete set of functions, all of which actually work. This requires us to implement mbsnrtowcs and wcsnrtombs which completes the set of what we need for libc++. The mbsnrtowcs is basically a copy & paste of wcsnrtombs, but I'm going to go straight to looking at using the OpenBSD UTF-8 implementation rather than keep polishing our home-grown turd. (This patch also opportunistically switches us over to upstream btowc, mbrlen, and wctob, since they're all trivially expressed in terms of other functions.) Change-Id: I0f81443840de0f1aa73b96f0b51988976793a323
|
5090964da02c956f099a49b5a3eb732c0085c58b |
|
29-Apr-2014 |
Christopher Ferris <cferris@google.com> |
Fix potential makefile bug. Since multilib is not set every time, it needs to be per module or there is a change that another target will use the multilib value set previously. Change-Id: I5c30e18d5111705cb3f6e3d4cd9ef8a28c9b746c
|
0c567f1e6cfceada98ba10deb4bac6030c9d20f7 |
|
23-Apr-2014 |
Elliott Hughes <enh@google.com> |
Fix the glibc tests again. The glibc tests are just a regular host binary; they don't require that you're targeting x86 or x86_64. They do seem to pick up the suffix of the target though, even though they're always 32-bit. Change-Id: I689ca2a4f8d7b397afa4df722b95b0d7ec904bf6
|
156c3afcf178b8a6c29b9edc7e8d13999a58d857 |
|
23-Apr-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Follow up on building tests for both platforms this makes run-on-host work properly Change-Id: Iaed93ca9d96359b64bbeff995280ecd70fc9cc60
|
345b49a7c07fde18e9397ffba9079ff81a4c3d74 |
|
22-Apr-2014 |
Christopher Ferris <cferris@google.com> |
Build 32/64 bit versions of tests/benchmarks. Change-Id: I4d146377aac6573a214dfaa5cab5cce8b10538b4
|
f3c73901cb5ca4de2651151cf2c65b31a729466e |
|
18-Apr-2014 |
Elliott Hughes <enh@google.com> |
Upgrade our <ctype.h> implementation to OpenBSD head. Adding the perfunctory <ctype.h> tests showed that we'd accidentally dropped several symbols. This puts everything back in its proper place and switches us to upstream head at the same time. Change-Id: Ib527ad280c9baded81e667fa598698526d93e66f
|
12bbb9164578b6512b8b07a3fb093858244b7c7b |
|
06-Feb-2014 |
Torne (Richard Coles) <torne@google.com> |
Support loading libraries to a reserved address. Add flags and parameters to android_dlopen_ext() to allow loading a library at an already-reserved fixed address. If the library to be loaded will not fit within the space reserved, then the linker will either fail, or allocate its own address space as usual, according to which flag has been specified. This behaviour only applies to the specific library requested; any other libraries loaded as dependencies will be loaded in the normal fashion. There is a new gtest included to cover the functionality added. Bug: 13005501 Change-Id: I5d1810375b20fc51ba6a9b3191a25f9792c687f1
|
8c42606ae10b59318c9a4ea83854049bab5b9328 |
|
10-Apr-2014 |
Elliott Hughes <enh@google.com> |
Add a test for external/stlport a6df82320fcb8f26af0d067c7768fedbaeb9ad88. Change-Id: If4df9f5df41ae5453a3dff6bb032b419819f8703
|
77e944fd46728075fe632bcb5211da9daf5b7e68 |
|
05-Apr-2014 |
Elliott Hughes <enh@google.com> |
Implement wctomb(3) for ltrace. This is an implementation in the style of the rest: char == byte. We might want to come back and implement UTF-8, but this is enough for ltrace. Bug: 13747066 Change-Id: Ib2b63609c9014fdef9a8491e067467c4fc5ae3cc
|
108f6dc3168fa492a7ba906466ac65749f5fbda5 |
|
31-Mar-2014 |
Christopher Ferris <cferris@google.com> |
Move accept4 tests into sys_socket_test.cpp. In addition, create basic recvmmsg, sendmmsg tests. Change-Id: Ie9f4954446d98b5eb5e553d3c616c1ee67c3cb66
|
9cea3775056d0a8d04d49c3983440b89d82a462b |
|
31-Mar-2014 |
Christopher Ferris <cferris@google.com> |
Small accept4 fixes. Put the accept4 test in the sorted order, and put the accept4 define in sorted order. Also add the missing SYS_RECVMMSG and SYS_SENDMMSG defines. Change-Id: Iba55354975e0d5027dbee53f6de752c2df719493
|
50282f72bb9be6b49212a3978faec70786e9f97f |
|
25-Mar-2014 |
Pavel Chupin <pavel.v.chupin@intel.com> |
Add lconv declaration and localeconv(3) lconv is taken from ndk/sources/android/support/include/locale.h and matches bsd/glibc upstream. Keep old declaration for 32-bits for compatibility. localeconv.c and deps are taken from openbsd upstream. Changed strtod.c accordingly. Change-Id: I9fcc4d15f5674d192950d80edf26f36006cd31b4 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
|
2f3ba8844ab8ed6be02485c79c1e974a6513b492 |
|
18-Feb-2014 |
Andrei Emeltchenko <andrei.emeltchenko@intel.com> |
Add accept4 unit test to bionic. Change-Id: I1cce5fb8dab16f03164fdd288f35a814d7c49c6a
|
722706672617d009279a8485b895bd3389de0396 |
|
19-Mar-2014 |
Calin Juravle <calin@google.com> |
Added a test flag to bionic run-test targets. It makes it much easier to pass arguments to the tests. Change-Id: Ia91eba4868627a3cea3f8d2c26ba01af4e860b12
|
6ff0c75c838e73d2aeccc0102ab58a7b865172ca |
|
10-Feb-2014 |
Guillaume Ranquet <guillaumex.ranquet@intel.com> |
Add recvmmsg and sendmmsg syscalls. Also add the corresponding constant, struct, and function declarations to <sys/socket.h>, and perfunctory tests so we know that the symbols actually exist. Signed-off-by: Guillaume Ranquet <guillaumex.ranquet@intel.com> Change-Id: Ib0d854239d3716be90ad70973c579aff4895a4f7
|
d4934a70e69365c97b1378820152e134a0089b5e |
|
24-Feb-2014 |
Calin Juravle <calin@google.com> |
Added ftw64, nftw64 Bug: 13076637 Change-Id: I5b926526f935b00bba14c2807b61d85f95089c33
|
da030de702b756077fec536ed139e7ea38b51022 |
|
20-Feb-2014 |
Calin Juravle <calin@google.com> |
Fixed int fast types for LP64 Bug: 13110474 Change-Id: Id5591603ad4ba7e149c0852f4abb25e4e5a5d065
|
db1ea3474899ebbd783aba872d3005f95a816d0f |
|
18-Jan-2014 |
Elliott Hughes <enh@google.com> |
Implement some of the missing LFS64 support. This gives us: * <dirent.h> struct dirent64 readdir64, readdir64_r, alphasort64, scandir64 * <fcntl.h> creat64, openat64, open64. * <sys/stat.h> struct stat64 fstat64, fstatat64, lstat64, stat64. * <sys/statvfs.h> struct statvfs64 statvfs64, fstatvfs64. * <sys/vfs.h> struct statfs64 statfs64, fstatfs64. This also removes some of the incorrect #define hacks we've had in the past (for stat64, for example, which we promised to clean up way back in bug 8472078). Bug: 11865851 Bug: 8472078 Change-Id: Ia46443521918519f2dfa64d4621027dfd13ac566
|
f04935c85e0b466f0d30d2cd4c0fa2fff62e7d6d |
|
21-Dec-2013 |
Christopher Ferris <cferris@google.com> |
Make sure that the same tests are on all platforms. In order to be able to generate a list of tests for cts, the same set of tests must exist across all platforms. This CL adds empty tests where a test was conditionally compiled out. This CL creates a single library libBionicTests that includes all of the tests found in bionic-unit-tests-static. Also fix a few missing include files in some test files. Tested by running and compiling the tests for every platform and verifying the same number of tests are on each platform. Change-Id: I9989d4bfebb0f9c409a0ce7e87169299eac605a2
|
431166d99519f6794f10c48694913d2fe864b841 |
|
28-Jan-2014 |
Elliott Hughes <enh@google.com> |
Fix 32-bit mmap/mmap64 handling of negative offsets. We don't actually need to worry about sign extension if we reject negative values ourselves. Previously it was possible to come up with negative but aligned values that we would pass to the kernel; in the case of mmap (as opposed to mmap64) we'd incorrectly turn those into large positive offsets. Change-Id: I2aa583e0f892d59bb77429aea8730b72db32dcb0
|
d1973ca51325393f304e82a4d79874f33e54ac16 |
|
22-Jan-2014 |
Colin Cross <ccross@android.com> |
bionic: rename aarch64 target to arm64 Rename aarch64 build targets to arm64. The gcc toolchain is still aarch64. Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3
|
0f461e35f63200641fc53bba222845a84589c024 |
|
09-Jan-2014 |
Elliott Hughes <enh@google.com> |
Fix <sys/resource.h>. The situation here is a bit confusing. On 64-bit, rlimit and rlimit64 are the same, and so getrlimit/getrlimit64, setrlimit/setrlimit64, and prlimit/prlimit64 are all the same. On 32-bit, rlimit and rlimit64 are different. 32-bit architectures other than MIPS go one step further by having an even more limited getrlimit system call, so arm and x86 need to use ugetrlimit instead of getrlimit. Worse, the 32-bit architectures don't have 64-bit getrlimit- and setrlimit-equivalent system calls, and you have to use prlimit64 instead. There's no 32-bit prlimit system call, so there's no easy implementation of that --- what should we do if the result of prlimit64 won't fit in a struct rlimit? Since 32-bit survived without prlimit/prlimit64 for this long, I'm not going to bother implementing prlimit for 32-bit. We need the rlimit64 functions to be able to build strace 4.8 out of the box. Change-Id: I1903d913b23016a2fc3b9f452885ac730d71e001
|
894f8cb1395d3409bb995d18abc1b3409c557d01 |
|
03-Jan-2014 |
Elliott Hughes <enh@google.com> |
Fix dev_t (for LP64). 32-bit Android's dev_t was wrong too. We can't fix that without ABI breakage, but we can at least fix 64-bit Android. And add tests. Bug: https://code.google.com/p/android/issues/detail?id=54966 Change-Id: Ie2e42cc042b78b669a1a44e55f959dbd9c52c5c9
|
e7c59f9e2041812c597ff1c8689d47d1bfd32883 |
|
18-Dec-2013 |
Elliott Hughes <enh@google.com> |
Fix compilation of crtbegin.c and pthread_debug.cpp. Because there was no default := for the aarch64 libc_crt_target_cflags, the += was causing libc_crt_target_cflags to be recursively-defined variable, which meant that when we were compiling crtbegin.c LOCAL_PATH would be bionic/tests/ and we'd have -Ibionic/tests/include/ and find none of our include files. Also fix linking of pthread_debug.cpp, at least in the disabled mode. The enabled mode was already broken for all architectures, and continues to be broken after this change. It's been broken for long enough that we might want to just remove it... (aarch64 is using the FSF linker where arm uses the gold linker.) Change-Id: I7db2e386694f6933db043138e6e97e5ae54d4174
|
e365f9d6543bc6607864ef61257505239dde15d1 |
|
10-Oct-2013 |
Marcus Oakland <marcus.oakland@arm.com> |
AArch64: Linker64 support for AArch64 Addition of support for AArch64 in the linker64 target. Change-Id: I8dfd9711278f6706063e91f626b6007ea7a3dd6e Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
|
282e232e2a32cca8a288e81edddfd95f450cfc79 |
|
22-Oct-2013 |
Serban Constantinescu <serban.constantinescu@arm.com> |
AArch64: Add fixes to bionic/tests This patch adds minor fixes to the bionic unit tests. Change-Id: Ie10f33c631ed6c10987923d678711d22931ddb05 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
|
bd3efbc9b585e0c9801b0b35f282347cb8692ca8 |
|
16-Nov-2013 |
Colin Cross <ccross@android.com> |
bionic: move benchmarks out of tests directory Change-Id: I4d054965198af22c9a9c821d1bc53f4e9ea01248
|
b687ad3c3491fffe22507cafc9347e10cbf6bd31 |
|
07-Nov-2013 |
Christopher Ferris <cferris@google.com> |
Add new tests for memory/string routines. Create a few generic testing functions to allow any memory/string tests to be created. Add alignment tests for memcpy/memset/strcat/strcpy/strlen. Add an overread test for memcpy/strcat/strcpy/strlen. This test attempts to verify that the functions do not read past the end of their buffers (src buffer in the case of src/dst functions). Bug: 9797008 Change-Id: Ib3223ca1b99e729ae8229adc2d03f4dc3103d97c
|
e61dc71efca544f4066a93706b639a29b3600229 |
|
13-Nov-2013 |
Elliott Hughes <enh@google.com> |
Add a unit test for syscall(2). Change-Id: Ic7d9735d46711af93c3a1747de7b2eb8cebea094
|
062092543fdbd6fa2676e4f5b37a15f7bba94332 |
|
07-Nov-2013 |
Elliott Hughes <enh@google.com> |
Clean up the 32-bit kernel support, fix LP64 fcntl declaration. In practice, thanks to all the registers the stubs don't actually change, but it's confusing to have an incorrect declaration. I suspect that fcntl remains broken for aarch64; it happens to work for x86_64 because the first vararg argument gets placed in the right register anyway, but I have no reason to believe that's true for aarch64. This patch adds a unit test, though, so we'll be able to tell when we get as far as running the unit tests. Change-Id: I58dd0054fe99d7d51d04c22781d8965dff1afbf3
|
b38e4d536f6592cf22b984c143ee6790d6df2351 |
|
25-Oct-2013 |
Christopher Ferris <cferris@google.com> |
Update running bionic unit tests on host. Add a bionic-unit-tests-glibc-run target to run the glibc bionic unit tests. Modify the bionic-unit-tests-run-on-host to make sure that the /system/bin directory is created properly. Also remove the EXTERNAL_STORAGE variable which isn't used any more. Bug: 11234772 Change-Id: I9aea501d05700b29e938f672474d550b1872a78b
|
11952073af22568bba0b661f7a9d4402c443a888 |
|
25-Oct-2013 |
Elliott Hughes <enh@google.com> |
Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. (aarch64 kernels don't have these system calls.) Change-Id: I6f64075aa412f71520f2df71c3d69b647f91c1ca
|
f8fcfbc85a3ce3e195626b90736d3a484331494b |
|
22-Oct-2013 |
Elliott Hughes <enh@google.com> |
Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. Modern architectures only get the *at(2) system calls. For example, aarch64 doesn't have open(2), and expects userspace to use openat(2) instead. Change-Id: I87b4ed79790cb8a80844f5544ac1a13fda26c7b5
|
53bfdae4ffdbd43d0c019d1a35af1f8477a272c9 |
|
19-Oct-2013 |
Elliott Hughes <enh@google.com> |
Fix the x86_64 clone implementation. Change-Id: Ia75f46dcb4d3222049e9a6a6fabc2b17223b47f7
|
17558dec7fc60775c940be0e494b42829f35e0b1 |
|
17-Oct-2013 |
Pavel Chupin <pavel.v.chupin@intel.com> |
x86_64: Fix bionic tests build-and-run Change-Id: Iab48362893a212afbcbc362fdfaff5bfa5b55259 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
|
5b9310e502003e584bcb3a028ca3db7aa4d3f01b |
|
03-Oct-2013 |
Elliott Hughes <enh@google.com> |
Fix 32-bit issues in tests, and add a trivial test for the FD_* macros. Change-Id: Ia3f21ce1f0ed9236527fe44d36ccb7de6bf63113
|
427e8cf90248f7da0a789fb3b4fb9a859c19aacd |
|
27-Sep-2013 |
Christopher Ferris <cferris@google.com> |
Fix line that got removed by merge. (cherry picked from commit f14d71fcf74e755ece4f8ca2ca2b7483424aa432) Change-Id: Id3dd54d9efd87ef2bbb2c90adae2ce3911695027
|
f14d71fcf74e755ece4f8ca2ca2b7483424aa432 |
|
27-Sep-2013 |
Christopher Ferris <cferris@google.com> |
Fix line that got removed by merge. Change-Id: I8c1f3624b52161893d1e04f0a156df613f90e39d
|
34c2a9fc37848d446bf91ce61783884232fffeb1 |
|
29-Aug-2013 |
Christopher Ferris <cferris@google.com> |
Move stack unwinding test into library. Bug: 8291716 (cherry picked from commit 8240bed918722944c9985bc0cca89eb44c4f6c91) Change-Id: I1da2d0757ed304c352229f9818c052925d4e976a
|
f4af911065b1b392085b857b891e5496bc75f478 |
|
27-Aug-2013 |
Christopher Ferris <cferris@google.com> |
Create bionic unit test library for use with CTS. Bug: 8291716 (cherry picked from commit 153d92765bb693541abf49a2a1d31335e2c90348) Change-Id: Ia53b85b95621b7000034e4c6259d6586d0987dee
|
b4f7616fd618875768b8fffc122b58bdb84a9969 |
|
20-Sep-2013 |
Elliott Hughes <enh@google.com> |
Ensure we have the off64_t variant of every function that takes an off_t. Change-Id: Ib2eee0cf13162be3b62559b84e90c6dcf5aab1c3
|
e60c4f0a6cb5836caa8d0de299cc83fe4b13744c |
|
19-Sep-2013 |
Elliott Hughes <enh@google.com> |
Fix host tests that need the shell. By making the /system/bin/sh available. Change-Id: I99200c1ddc922a2f6b5cea8ff2da98aedbe70e7b
|
f22fb68751c4040f3335cb0bd2d47f87c3ee1aac |
|
06-Sep-2013 |
Pavel Chupin <pavel.v.chupin@intel.com> |
Add bionic-unit-tests-run-on-host special target Allows running the tests linked with bionic .so on the host if host and target are compatible. See more comments and usage limitation inlined. make bionic-unit-tests-run-on-host should do build and run. Change-Id: I5946fa72e009d324baa9da18f460294b3c1a615e Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
|
8240bed918722944c9985bc0cca89eb44c4f6c91 |
|
29-Aug-2013 |
Christopher Ferris <cferris@google.com> |
Move stack unwinding test into library. Bug: 8291716 Change-Id: Ia270f074b574a8fe86b5ad435bdef80999c64295
|
153d92765bb693541abf49a2a1d31335e2c90348 |
|
27-Aug-2013 |
Christopher Ferris <cferris@google.com> |
Create bionic unit test library for use with CTS. Bug: 8291716 Change-Id: I46b749348456fae7892eecca6b44aef51a0e4747
|
e9e10c13ff3fdb7104aafd0707b2c851851c9d1f |
|
15-Aug-2013 |
Jeff Hao <jeffhao@google.com> |
Fix pthread_getcpuclockid. clock_gettime was returning EINVAL for the values produced by pthread_getcpuclockid. Bug: 10346183 (cherry picked from commit 9b06cc3c1b2c4e2b08582f3fc9393a05aa589766) Change-Id: Ib81a7024c218a4502f256c3002b9030e2aaa278d
|
9b06cc3c1b2c4e2b08582f3fc9393a05aa589766 |
|
15-Aug-2013 |
Jeff Hao <jeffhao@google.com> |
Fix pthread_getcpuclockid. clock_gettime was returning EINVAL for the values produced by pthread_getcpuclockid. Bug: 10346183 Change-Id: Iabe643d7d46110bb311a0367aa0fc737f653208e
|
840a114eb12773c5af39c0c97675b27aa6dee78c |
|
09-Aug-2013 |
Elliott Hughes <enh@google.com> |
Add futimens. (cherry picked from commit d0be7c8f9a06b3ca8ea7647ea35c8f9dc63f0fe1) Bug: 10239370 Change-Id: I0087e85a94d83b6ce68ec6a0768c44cbe4bd0132
|
d0be7c8f9a06b3ca8ea7647ea35c8f9dc63f0fe1 |
|
09-Aug-2013 |
Elliott Hughes <enh@google.com> |
Add futimens. Bug: 10239370 Change-Id: I518340084103dc339ef8a065d4837d6258a1381d
|
06040fd75c1edff9e5ffb2b3d3e2a6e66d57c11d |
|
09-Jul-2013 |
Elliott Hughes <enh@google.com> |
Add <sys/statvfs.h>. Bug: 2512019 Change-Id: I6e7fd3fa281977cc4bc270481a95416b5b2dc351
|
74f0833df6d04d51eb4e554845862ed7279f78b0 |
|
03-Jul-2013 |
Elliott Hughes <enh@google.com> |
Fix inttypes.h PRI?PTR and SCN?PTR macros. Our intptr_t and uintptr_t aren't "long". Add a compilation test so we remember to fix this to cope with 32- and 64-bit later. Bug: http://code.google.com/p/android/issues/detail?id=57218 Change-Id: I2f816d339edb4f7d57e4418b818fb4c602093f38
|
5bcf39842e8c4b02ae557a2765a84e724f762469 |
|
28-Jun-2013 |
Nick Kralevich <nnk@google.com> |
Reorganize FORTIFY_SOURCE tests. Get rid of a lot of the duplication in the various FORTIFY_SOURCE tests. Instead, we build 4 separate static libraries, with 4 different compile time options, and link them into the final test binary. Change-Id: Idb0b7cccc8dd837adb037bf4ddfe8942ae138230
|
c45087bffa528c0809f0df2e0a3708eba7018b33 |
|
25-Jan-2013 |
Sergey Melnikov <sergey.melnikov@intel.com> |
Kernel dso support for 'dl_iterate_phdr' function Kernel provides virtual DSO for stack unwinding/exception handlind info for signal usage case. Stack unwinding routines use 'dl_iterate_phdr' function for additional DWARF info gathering from DSOs. Patch enables virtual DSO enumeration via dl_iterate_phdr function. Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com> Change-Id: Ic2882b28f40b456a088bc1e63c50cbfda7e4a102
|
16d1af167f8e36a9aa4a07ae77034ad519b00463 |
|
17-Jun-2013 |
Nick Kralevich <nnk@google.com> |
libc: add limited FORTIFY_SOURCE support for clang In 829c089f83ddee37203b52bcb294867a9ae7bdbc, we disabled all FORTIFY_SOURCE support when compiling under clang. At the time, we didn't have proper test cases, and couldn't easily create targeted clang tests. This change re-enables FORTIFY_SOURCE support under clang for a limited set of functions, where we have explicit unittests available. The functions are: * memcpy * memmove * strcpy * strncpy * strcat * strncat * memset * strlen (with modifications) * strchr (with modifications) * strrchr (with modifications) It may be possible, in the future, to enable other functions. However, I need to write unittests first. For strlen, strchr, and strrchr, clang unconditionally calls the fortified version of the relevant function. If it doesn't know the size of the buffer it's dealing with, it passes in ((size_t) -1), which is the largest possible size_t. I added two new clang specific unittest files, primarily copied from fortify?_test.cpp. I've also rebuild the entire system with these changes, and didn't observe any obvious problems. Change-Id: If12a15089bb0ffe93824b485290d05b14355fcaa
|
b27e200ad6170ba3163f5ae6ba581bdaabb2e696 |
|
29-Jan-2013 |
Colin Cross <ccross@android.com> |
bionic: add tests for properties (cherry picked from commit 37d9f75dde881a0ba1c1b3253b1be19d4096963d) Change-Id: Iac00ce10a4272032a1cbdbc4204277d6876e3365
|
37d9f75dde881a0ba1c1b3253b1be19d4096963d |
|
29-Jan-2013 |
Colin Cross <ccross@android.com> |
bionic: add tests for properties Change-Id: I09b212966f1c9624631653ef2c7a71de78bbbec1
|
885f3b9cad01b8158aadc55c159c17dbf34f622c |
|
22-May-2013 |
Christopher Ferris <cferris@google.com> |
Implement malloc_usable_size for debug impls. - Implemented chk_memalign. - Fixed a few bugs in leak_memalign. - Implemented {leak,fill,check,qemu}_malloc_usable_size. - Make malloc_usable_size update at run time. - Add malloc_test.cpp as a small set of tests for the malloc debug routines. - Fix the qemu routines since it's been broken since it moved to C++. - Add support for the %u format to the out_vformat in libc_logging.cpp. This is used by the emulator code. Tested using the bionic-unit-tests with setprop libc.debug.malloc set to 1, 5, and 10. I tested as much as possible on the emulator, but tracing doesn't appear to be working properly. Bug: 6143477 Merge change from internal master. (cherry-picked from commit 3d594c258045783fc9e1956ce7a4d91e302f011e) Change-Id: I4ae00fffba82315a8c283f35893fd554460722fb
|
3d594c258045783fc9e1956ce7a4d91e302f011e |
|
22-May-2013 |
Christopher Ferris <cferris@google.com> |
Implement malloc_usable_size for debug impls. - Implemented chk_memalign. - Fixed a few bugs in leak_memalign. - Implemented {leak,fill,check,qemu}_malloc_usable_size. - Make malloc_usable_size update at run time. - Add malloc_test.cpp as a small set of tests for the malloc debug routines. - Fix the qemu routines since it's been broken since it moved to C++. - Add support for the %u format to the out_vformat in libc_logging.cpp. This is used by the emulator code. Tested using the bionic-unit-tests with setprop libc.debug.malloc set to 1, 5, and 10. I tested as much as possible on the emulator, but tracing doesn't appear to be working properly. Bug: 6143477 Change-Id: Ieba99b58c2228c88d80afd264501004a4dadd212
|
1aae9bd170883805f2e7975cd3dbd2502b083cc1 |
|
29-Apr-2013 |
Nick Kralevich <nnk@google.com> |
strncpy: implement _FORTIFY_SOURCE=2 Add support for fortify source level 2 to strncpy. This will enable detection of more areas where strncpy is used inappropriately. For example, this would have detected bug 8727221. Move the fortify_source tests out of string_test.cpp, and put it into fortify1_test.cpp. Create a new fortify2_test.cpp file, which copies all the tests in fortify1_test.cpp, and adds fortify_source level 2 specific tests. Change-Id: Ica0fba531cc7d0609e4f23b8176739b13f7f7a83
|
9b84824dfd597d8137137fa33295faa26cc70ae0 |
|
03-Apr-2013 |
Kito Cheng <kito@0xlab.org> |
Prevent name conflict for eventfd.cpp and eventfd.s when building libc.a - eventfd.cpp and eventfd.s will output to the same file when building libc.a out/target/product/*/obj/STATIC_LIBRARIES/libc_intermediates/WHOLE/libc_common_objs/eventfd.o - And then `eventfd` will undefined when statically linked to libc. Also add a unit test. (cherry-pick of 8baa929d5d3bcf63381cf78ba76168c80c303f5e.) Change-Id: Icd0eb0f4ce0511fb9ec00a504d491afd47d744d3
|
8baa929d5d3bcf63381cf78ba76168c80c303f5e |
|
03-Apr-2013 |
Kito Cheng <kito@0xlab.org> |
Prevent name conflict for eventfd.cpp and eventfd.s when building libc.a - eventfd.cpp and eventfd.s will output to the same file when building libc.a out/target/product/*/obj/STATIC_LIBRARIES/libc_intermediates/WHOLE/libc_common_objs/eventfd.o - And then `eventfd` will undefined when statically linked to libc. Also add a unit test. Change-Id: Ib310ade3256712ca617a90539e8eb07459c98505
|
8f2a5a0b40fc82126c691d5c30131d908772aab7 |
|
15-Mar-2013 |
Elliott Hughes <enh@google.com> |
Clean up internal libc logging. We only need one logging API, and I prefer the one that does no allocation and is thus safe to use in any context. Also use O_CLOEXEC when opening the /dev/log files. Move everything logging-related into one header file. Change-Id: Ic1e3ea8e9b910dc29df351bff6c0aa4db26fbb58
|
744df77d4730cff99ac36f9761153620105dd9d7 |
|
14-Mar-2013 |
Elliott Hughes <enh@google.com> |
am 2e7b8d63: am f861bc5c: Merge "Don\'t search off the end of the index for bad Olson ids." * commit '2e7b8d6399fdea6e43dd07f353346324d2bf4ec4': Don't search off the end of the index for bad Olson ids.
|
e0175ca7e440a87e9d03f249fc8f210063df7908 |
|
14-Mar-2013 |
Elliott Hughes <enh@google.com> |
Don't search off the end of the index for bad Olson ids. In the old code, the index was a file to itself, so it made sense to read until you hit the end of the file. In the new code, the index is followed by hundreds of KiB of data, so we need to just search the index. Bug: 8368791 Change-Id: Icf5f8b5516cf3a93679fa849c9f6cd1cb100e0f1
|
4a05bef4c06dac05f1c9aa8cfc5b7e7dd6642385 |
|
12-Mar-2013 |
Elliott Hughes <enh@google.com> |
Cache the most-recently used timezone for mktime_tz and localtime_tz. Normally, the C library implicitly caches your timezone by virtue of the fact that the prehistoric API assumes a single timezone for the entire process. The unfortunate mktime_tz and localtime_tz extensions work around this, but represent timezones as strings to their callers, so code that makes heavy use of these needs a cache to be able to perform acceptably until it can hopefully one day be rewritten to use java.util.Calendar or icu4c. Bug: 8270865 Change-Id: I92e3964e86dc33ceac925f819cc5e26ff4203f50
|
26a13bcfb894b19ea4c53e4456b07bedd233dda4 |
|
14-Feb-2013 |
Elliott Hughes <enh@google.com> |
Stop using the local gcc. Some build servers are still out of date, so we're better off having the known quanitity of the consistently out-of-date prebuilt host gcc. Change-Id: Ib6308ae926ffa1ac5d95efbbf32052344c17a6b8
|
73964c592c8d23901e9479893dfbd3d0f25bab04 |
|
13-Feb-2013 |
Elliott Hughes <enh@google.com> |
Everyone has CLZ. Even armv5 had CLZ. Change-Id: I51bc8d1166d09940fd0d3f4c7717edf26977082c
|
d3b9d11369ee15dc0ce512014284c3c5432f2813 |
|
13-Feb-2013 |
Elliott Hughes <enh@google.com> |
Add a test that getaddrinfo works when hints are NULL. Bug: 1827911 Change-Id: I9e1b774c44c10a8c5391bcf3baf1607f50eaf214
|
3e898476c7230b60a0f76968e64ff25f475b48c0 |
|
12-Feb-2013 |
Elliott Hughes <enh@google.com> |
Revert "Revert "More pthreads cleanup."" This reverts commit 6f94de3ca49e4ea147b1c59e5818fa175846518f (Doesn't try to increase the number of TLS slots; that leads to an inability to boot. Adds more tests.) Change-Id: Ia7d25ba3995219ed6e686463dbba80c95cc831ca
|
9edb3e004b487e08cbbb54f2af18b15241550513 |
|
07-Feb-2013 |
Elliott Hughes <enh@google.com> |
Improve benchmarking tool, add a few math benchmarks. Change-Id: I641305dd0e4ac0705381e735ed1604c5be7aa536
|
a0ee07829a9ba7e99ef68e8c12551301cc797f0f |
|
31-Jan-2013 |
Elliott Hughes <enh@google.com> |
Upgrade libm. This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies the set of functions we support on ARM, MIPS, and x86, fixes "long double", adds ISO C99 support, and adds basic unit tests. It turns out that our "long double" functions have always been broken for non-normal numbers. This patch fixes that by not using the upstream implementations and just forwarding to the regular "double" implementation instead (since "long double" on Android is just "double" anyway, which is what BSD doesn't support). All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64. Bug: 3169850 Bug: 8012787 Bug: https://code.google.com/p/android/issues/detail?id=6697 Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
|
41b3179c9ef03ebb447cac7f5e8405dce399cb17 |
|
28-Jan-2013 |
Elliott Hughes <enh@google.com> |
Unit tests for formatting code, fix %%. Also fix <signal.h> and <stdio.h> so they don't cause compiler warnings. Change-Id: Ib1a746bf01de22d47dbd964de0e6af80a7c96303
|
2c5153b043b44e9935a334ae9b2d5a4bc5258b40 |
|
11-Jan-2013 |
Nick Kralevich <nnk@google.com> |
libc: add getauxval() Add support for getauxval(). This method allows a program an easy way to retrieve information from the kernel auxiliary vector, and will hopefully replace other clumsy ways of accessing this same information. This particular function was also added to glibc in glibc 2.16. See the following URLs for more details. * http://lwn.net/Articles/519085/ * http://www.gnu.org/software/libc/manual/html_node/Auxiliary-Vector.html This change is a prerequisite for bug 7959813. Bug: http://code.google.com/p/android/issues/detail?id=38441 Change-Id: Iba19d899df334bddc6f4899077ece2fc87564ea8
|
dcab1b2c76a498c56bc00024613386de8b4b2aae |
|
11-Jan-2013 |
Nick Kralevich <nnk@google.com> |
Add stack canaries / strcpy tests. Add a test to ensure that stack canaries are working correctly. Since stack canaries aren't normally generated on non-string functions, we have to enable stack-protector-all. Add a test to ensure that an out of bounds strcpy generates a runtime failure. Change-Id: Id0d3e59fc4b9602da019e4d35c5c653e1a57fae4
|
a43e906221a3e9c70a66118a8692cd46f77e144e |
|
07-Jan-2013 |
Elliott Hughes <enh@google.com> |
Don't test GNU-style ELF hashes on MIPS. The MIPS toolchain can't generate them because they're incompatible with the MIPS ABI (which requires .dynsym match the GOT, while GNU-style requires .dynsym to be sorted by hash code), so there's nothing to test. Change-Id: I2220f452fe6fe595ec1312544cc741dd390a36a5
|
a55f63083fb16b2595f517a3260083e5f8cddd02 |
|
02-Jan-2013 |
Elliott Hughes <enh@google.com> |
Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK). Bug: http://code.google.com/p/android/issues/detail?id=39680 Change-Id: I11cf10a66f9d305868a725f04f581099fb88bbfc
|
e66190d2a97a713ae4b4786e60ca3d67ab8aa192 |
|
19-Dec-2012 |
Elliott Hughes <enh@google.com> |
Check for unknown flags passed to dlopen(3). Change-Id: I56f4aab0e5a1487bc32d2c4d231e8bd15c4ac8da
|
da73f655fcbac6e1a8bfd35303cef6f41187d12b |
|
01-Dec-2012 |
Elliott Hughes <enh@google.com> |
Add argument checking to sigemptyset(3) and friends. You could argue that this is hurting people smart enough to have manually allocated a large-enough sigset_t, but those people are smart enough to implement their own sigset functions too. I wonder whether our least unpleasant way out of our self-inflicted 32-bit cesspool is to have equivalents of _FILE_OFFSET_BITS such as _SIGSET_T_BITS, so calling code could opt in? You'd have to be careful passing sigset_t arguments between code compiled with different options. Bug: 5828899 Change-Id: I0ae60ee8544835b069a2b20568f38ec142e0737b
|
7be369d4c60e9df2316fdb6c73181a40020abef2 |
|
09-Nov-2012 |
Elliott Hughes <enh@google.com> |
Simple google3-compatible benchmarking. Based on our open-source RE2 benchmarking code. Includes benchmarks for a handful of <string.h> functions. Change-Id: I30eb70d25dbf4ad5f2ca44976a8ce3b1ff7dad01
|
90e10d41c4271a5d517f60f4ff1d2891b8ccc034 |
|
03-Nov-2012 |
Elliott Hughes <enh@google.com> |
Rewrite <fenv.h> for ARM. The old code was one big no-op. Bug: http://code.google.com/p/android/issues/detail?id=38196 Change-Id: I201a6ffa477385b2629f45e8c948bdfbd47b5bf1
|
124fae9eabd7a25d80dfa8c3b56bed0f0fba16f1 |
|
31-Oct-2012 |
Elliott Hughes <enh@google.com> |
Reject .so files with no sysv hash table. Also ensure that dlopen(3) errors always include the name of the library we failed to open. Also fix a bug where we'd fall back to searching LD_LIBRARY_PATH and the built-in paths for names that include slashes. Bug: http://code.google.com/p/android/issues/detail?id=38479 Change-Id: Ib2c009ed083344a7a012749d58f8679db2f26c78
|
58b575485c446f9d76ee00f67516ed42cf017769 |
|
29-Oct-2012 |
Elliott Hughes <enh@google.com> |
Clean up the <libgen.h> implementation a little, bring in tests. Most of these tests were in system/extras, but I've added more to cover other cases explicitly mentioned by POSIX. Change-Id: I5e8d77e4179028d77306935cceadbb505515dcde
|
063cfb2084ea4b12d3c85b2d2c44e888f0857eb4 |
|
26-Oct-2012 |
Elliott Hughes <enh@google.com> |
Clean up the implementation of the <dirent.h> functions. Change-Id: I3c647cc9588525afc41fee90ee468d58cd13503a
|
ad88a0863110798cef5169dcf917e18b967a7cf6 |
|
25-Oct-2012 |
Elliott Hughes <enh@google.com> |
Per-thread -fstack-protector guards for x86. Based on a pair of patches from Intel: https://android-review.googlesource.com/#/c/43909/ https://android-review.googlesource.com/#/c/44903/ For x86, this patch supports _both_ the global that ARM/MIPS use and the per-thread TLS entry (%gs:20) that GCC uses by default. This lets us support binaries built with any x86 toolchain (right now, the NDK is emitting x86 code that uses the global). I've also extended the original tests to cover ARM/MIPS too, and be a little more thorough for x86. Change-Id: I02f279a80c6b626aecad449771dec91df235ad01
|
774c7f54ff375d71106283d42779b0cc5f238f87 |
|
01-Oct-2012 |
Elliott Hughes <enh@google.com> |
Upgrade to the current NetBSD rand implementation. Also add basic unit tests. Change-Id: I7fc7ef61d47c1e8fdf8b8eff67a635220c3afd56
|
91875dcd6e17b7f3b251efe9b236b905ef414dde |
|
25-Sep-2012 |
Elliott Hughes <enh@google.com> |
Fix tmpfile(3). This could be better, but at least now it works. Change-Id: I88b7cf3f7ce8e5fa0b3fe678b7d1679a68ffffc9
|
2a54e5ecd0a96398e8d7d9b1629ecf8fb1633a2b |
|
13-Sep-2012 |
Kenny Root <kroot@google.com> |
Add tests for Android-specific stubs Also fix problem with multi-user IDs that the home directory was returned as "/data" instead of "/" unlike all the other uids. Change-Id: I914d22052e5a86552989f8969b85aadbc748c65d
|
b5f053b5a7deb084e7a052d527e0aa41339ae05c |
|
08-Sep-2012 |
Irina Tirdea <irina.tirdea@intel.com> |
Make strerror(3) and strsignal(3) thread-safe, and add psignal(3) and psiginfo(3). Change-Id: I426109db25e907980d6cb3a7a695796e45783b78
|
38bfa21695b19c21784d2074de30d5d102f08972 |
|
13-Sep-2012 |
Elliott Hughes <enh@google.com> |
Fix Mac build. Change-Id: Id625806fab0f2f7f90f9508c5fce649afe970414
|
acf5aa76a56f101607aeb8e6d1fbea24d0d4f68c |
|
13-Sep-2012 |
jeffhao <jeffhao@google.com> |
Added new test for dlopen which is failing for MIPS. Change-Id: I2240faefb387a11647f49b1a15699907a40f98c1
|
bfeab1bbe7e8d0c08b7e3f46aedab64e3b2bf706 |
|
06-Sep-2012 |
Elliott Hughes <enh@google.com> |
Don't corrupt the thread list in static executables. Several previous changes conspired to make a mess of the thread list in static binaries. This was most obvious when trying to call pthread_key_delete(3) on the main thread. Bug: http://code.google.com/p/android/issues/detail?id=36893 Change-Id: I2a2f553114d8fb40533c481252b410c10656da2e
|
2e8f4345dfe16e64d7a3c26f688f17f2b48b2dd1 |
|
05-Sep-2012 |
Elliott Hughes <enh@google.com> |
Add missing dependencies. Change-Id: I53c1cfb59ac7a89952a8d6b906b2b9e16a66624f
|
5ac9eee1d3291a0d203a125849b4636a11c0d124 |
|
01-Sep-2012 |
Benoit Goby <benoit@android.com> |
bionic: Fix TINY_ANDROID build (cherry-pick of 545d5dbbcb0dc9e44323c4f2e687a3aace75a483.) Change-Id: Ifc91e84ffed5a3a287accabd7f08b02752688db6
|
7b841f3b4ad121dd64f639c1858b42defffd60bd |
|
16-Aug-2012 |
Joe Onorato <joeo@google.com> |
Don't over-generalize makefiles. Host modules always build. This isn't needed on eng builds. Change-Id: I5821ced7a8a9042fd2094204e07470d8002263ca
|
04a83a48ed89f433c78e31106ed50059764797a0 |
|
17-Aug-2012 |
Elliott Hughes <enh@google.com> |
Enhance getcwd(3) to handle NULL like glibc. Bug: http://code.google.com/p/android/issues/detail?id=36085 Change-Id: I960a1b585887eb66176c61d29c5c61c239a4003f
|
cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8 |
|
15-Aug-2012 |
Elliott Hughes <enh@google.com> |
Switch to the current NetBSD regex implementation. Change-Id: If32b28dd85d6a7ab8957ab81d19fa4c0de9499d5
|