Elliott Hughes
4bdc2a6105
am ca3396ef: am 192e169a: Merge "x86 has an assembler bcopy implementation."
...
* commit 'ca3396ef2d08777f83362c72939aed7cfd4f6edf':
x86 has an assembler bcopy implementation.
2015-01-27 05:59:07 +00:00
Elliott Hughes
192e169a40
Merge "x86 has an assembler bcopy implementation."
2015-01-27 05:46:56 +00:00
Elliott Hughes
1edfd9e36a
x86 has an assembler bcopy implementation.
...
Change-Id: I4ed7af3c5b104f86550120401f773150c460f37b
2015-01-26 21:45:56 -08:00
Elliott Hughes
0dadeb8134
am 2bb5664f: am 643a9be8: Merge "[Arm64] Fix overlapping fp fields in jmp_buf"
...
* commit '2bb5664f5e73221bbc14def1721bb541c901b277':
[Arm64] Fix overlapping fp fields in jmp_buf
2015-01-27 05:05:56 +00:00
Elliott Hughes
5bf4a1729a
am dedacf10: am 5c7964c5: Merge "Clean up <stdlib.h> slightly."
...
* commit 'dedacf109b35e74d76594c29560a09f4ef3eb94d':
Clean up <stdlib.h> slightly.
2015-01-27 05:00:11 +00:00
Elliott Hughes
643a9be82e
Merge "[Arm64] Fix overlapping fp fields in jmp_buf"
2015-01-27 04:56:20 +00:00
Elliott Hughes
5c7964c5f1
Merge "Clean up <stdlib.h> slightly."
2015-01-27 04:49:07 +00:00
Lorenzo Colitti
ecbeee61ed
am 329db346: am f2d02c38: Merge "Make bionic compile even if resolver debugging is enabled."
...
* commit '329db346f54c629e0c9fcc98c21c19619a573e9b':
Make bionic compile even if resolver debugging is enabled.
2015-01-27 04:14:09 +00:00
Lorenzo Colitti
f2d02c38fb
Merge "Make bionic compile even if resolver debugging is enabled."
2015-01-27 04:02:42 +00:00
Duane Sand
dbaab26021
[Arm64] Fix overlapping fp fields in jmp_buf
...
Change-Id: I9be9f118108f3f6e2bb02a5b01e0420fbfd15d85
2015-01-26 16:20:05 -08:00
Elliott Hughes
76f8916b90
Clean up <stdlib.h> slightly.
...
Interestingly, this mostly involves cleaning up our implementation of
various <string.h> functions.
Change-Id: Ifaef49b5cb997134f7bc0cc31bdac844bdb9e089
2015-01-26 14:28:41 -08:00
Christopher Ferris
62c51518ab
am a5af57d3: am 419ed122: Merge "Update kernel headers to v3.18.3."
...
* commit 'a5af57d3e6e8cccf32d0e84eb148b5f4b9db3552':
Update kernel headers to v3.18.3.
2015-01-26 21:45:15 +00:00
Christopher Ferris
419ed122aa
Merge "Update kernel headers to v3.18.3."
2015-01-26 21:27:52 +00:00
Elliott Hughes
46bed722eb
am e3c350f8: am 247cfe03: Merge "Add <error.h>."
...
* commit 'e3c350f8c8a3be0637e4894639b14a3965a1b312':
Add <error.h>.
2015-01-26 20:53:58 +00:00
Elliott Hughes
247cfe0382
Merge "Add <error.h>."
2015-01-26 20:38:46 +00:00
Elliott Hughes
b8a8cf0d1a
Add <error.h>.
...
Bug: https://code.google.com/p/android/issues/detail?id=79170
Change-Id: Id91765fac45124545e2674a5b2c814707c1a448b
2015-01-26 11:57:11 -08:00
Christopher Ferris
82d7504cd7
Update kernel headers to v3.18.3.
...
Bug: 19127803
Change-Id: I67fa0832322ddd0032d909476047578be052bcf2
2015-01-26 10:57:07 -08:00
Lorenzo Colitti
616344d169
Make bionic compile even if resolver debugging is enabled.
...
The code now compiles with all combinations of DEBUG and
DEBUG_DATA except DEBUG_DATA=1, DEBUG=0, which is unsupported.
Change-Id: I9035a65c649df73092f1fc0864ae1cdd9a14aa3b
2015-01-26 16:05:27 +09:00
Dan Albert
7102d69ef1
am 2991f2a3: am 6eb5dc1d: Merge "Fix coverage build after adding clang coverage."
...
* commit '2991f2a3d92f54757c0e726a3dcaa103cd8fed9e':
Fix coverage build after adding clang coverage.
2015-01-25 23:05:47 +00:00
Dan Albert
6eb5dc1d9c
Merge "Fix coverage build after adding clang coverage."
2015-01-25 22:51:37 +00:00
Dan Albert
6e9e6ad3bf
Fix coverage build after adding clang coverage.
...
Static libraries are painful. Details are in the comment. I'll try to
get prebuilts in to the tree so I can fix this on Monday. Until then,
this isn't actually a regression because we've not had coverage
available for this library until now anyway.
Bug: 17574078
Change-Id: I7505c8a94007203e15a6cf192caa06004849d7d9
2015-01-25 14:27:51 -08:00
Elliott Hughes
9e4827de12
am 7eed99da: am 66eeec8e: Merge "Reduce <stdlib.h> namespace pollution."
...
* commit '7eed99dad95003b8b40e6a1136bd83ac68dc54dc':
Reduce <stdlib.h> namespace pollution.
2015-01-24 23:53:11 +00:00
Elliott Hughes
c5dc02a91e
Reduce <stdlib.h> namespace pollution.
...
<stdlib.h> shouldn't drag in all of <string.h>.
Change-Id: I949172f7ff17e329e411e5054e50f79c13775444
2015-01-24 15:22:57 -08:00
Elliott Hughes
fe1709bdca
am 12144696: am 62d20fb2: Merge "Reduce <signal.h> namespace pollution."
...
* commit '12144696ac9b53462fbfb0fb4f1a181e10df7437':
Reduce <signal.h> namespace pollution.
2015-01-24 22:47:01 +00:00
Elliott Hughes
6466292a7e
Reduce <signal.h> namespace pollution.
...
<signal.h> shouldn't drag in all of <string.h>.
Change-Id: I57aea36dad5e89ea2f9541c35594ca6225e532be
2015-01-24 14:18:16 -08:00
Elliott Hughes
cf936c1e43
am 61a80735: am 6e15edcc: Merge "Say "Bad file descriptor" rather than "Bad file number"."
...
* commit '61a8073565dd9870f4f93a96f91881955833757b':
Say "Bad file descriptor" rather than "Bad file number".
2015-01-24 22:18:09 +00:00
Elliott Hughes
6e15edcca5
Merge "Say "Bad file descriptor" rather than "Bad file number"."
2015-01-24 22:08:20 +00:00
Elliott Hughes
d309877eee
Say "Bad file descriptor" rather than "Bad file number".
...
This text is actually in POSIX (though it's not mandatory) and it's what glibc
says. Who says "file number" anyway?
Change-Id: Icc91ac24587c2bc692e0b97c19d32ac1bdda4ea7
2015-01-24 13:38:57 -08:00
Elliott Hughes
e5cfda5b5d
am 94a4a173: am 59936a3b: Merge "Fix optimized fread."
...
* commit '94a4a173d24ce8feac5c49fb5ad209a836d41439':
Fix optimized fread.
2015-01-24 21:38:15 +00:00
Elliott Hughes
e6bb5a2776
Fix optimized fread.
...
gcov does writes after reads on the same stream, but the bulk read optimization
was clobbering the FILE _flags, causing fwrite to fail.
Bug: 19129055
Change-Id: I9650cb7de4bb173a706b502406266ed0d2b654d7
2015-01-24 12:35:41 -08:00
Dan Albert
2e7715b29f
am f908b21a: am ab58559a: Merge "Add a basic NDK compatibility library."
...
* commit 'f908b21a5cdb68184907ac6cb1475dfe771c28cf':
Add a basic NDK compatibility library.
2015-01-23 00:54:53 +00:00
Dan Albert
ab58559a9c
Merge "Add a basic NDK compatibility library."
2015-01-23 00:46:54 +00:00
Elliott Hughes
9455d3b7a0
am d4517fb3: am 53df4bfc: Merge "Use a more specific return type for app_id_from_name."
...
* commit 'd4517fb37ce5d306fa3d6f65e0fcfe949e7fd6fd':
Use a more specific return type for app_id_from_name.
2015-01-22 20:26:36 +00:00
Elliott Hughes
c56af08c21
Use a more specific return type for app_id_from_name.
...
I suspect we can simplify this code, but I don't know enough about it
to get involved now.
Change-Id: I1c39761ae31beb70d41ffa6f0e396a4f17529d46
2015-01-22 11:02:59 -08:00
Dan Albert
9c3fd59b00
Add a basic NDK compatibility library.
...
We know we can safely statically link `libm`, since it doesn't have
any dependencies on the OS or the layout of a data type that has
changed between releases (like `pthread_t`).
We can safely statically link `libc_syscalls` because the user can
check for and handle `ENOSYS`.
Update `ndk_missing_symbols.py` to account for symbols that are in the
compatibility library.
Improve `symbols.py` to be able to pull symbols from a static library.
Change-Id: Ifb0ede1e8b4a8f0f33865d9fed72fb8b4d443fbc
2015-01-21 18:12:15 -08:00
Elliott Hughes
f7b64d0900
am 69838daa: am d1668a71: Merge "Turn on -Wold-style-cast and fix the errors."
...
* commit '69838daa8764eb4d008df679e961fb510a37687b':
Turn on -Wold-style-cast and fix the errors.
2015-01-22 02:02:46 +00:00
Dan Albert
0855e923f6
am c673a2fe: am 4f11c59b: Merge "Add ndk_missing_symbols.py."
...
* commit 'c673a2fea9246665ff87d619c48e882800a0793d':
Add ndk_missing_symbols.py.
2015-01-22 01:54:29 +00:00
Elliott Hughes
d1668a71df
Merge "Turn on -Wold-style-cast and fix the errors."
2015-01-22 01:52:06 +00:00
Dan Albert
4f11c59b3f
Merge "Add ndk_missing_symbols.py."
2015-01-22 01:25:57 +00:00
Elliott Hughes
8b5df3920f
Turn on -Wold-style-cast and fix the errors.
...
A couple of dodgy cases where we cast away const, but otherwise pretty boring.
Change-Id: Ibc39ebd525377792b5911464be842121c20f03b9
2015-01-21 17:09:58 -08:00
Dan Albert
169eb66451
Add ndk_missing_symbols.py.
...
ndk_missing_symbols.py pulls libc.so and libm.so off a running device
or emulator and shows the list of symbols that are in the current
bionic that aren't available on the target.
Change-Id: Ia92c315a6a0ce2e5c33db0b62c8fab41c08a4c31
2015-01-21 17:09:50 -08:00
Elliott Hughes
0edffb85fa
am a2e5d98b: am 2a8c929a: Merge "Implement __fsetlocking."
...
* commit 'a2e5d98b641bef4c5611f6aba5defff74abcad93':
Implement __fsetlocking.
2015-01-22 00:13:10 +00:00
Elliott Hughes
8c4994bbc1
Implement __fsetlocking.
...
The old __isthreaded hack was never very useful on Android because all user
code runs in a VM where there are lots of threads running. But __fsetlocking
lets a caller say "I'll worry about the locking for this FILE*", which is
useful for the normal case where you don't share a FILE* between threads
so you don't need any locking.
Bug: 17154740
Bug: 18593728
Change-Id: I2a8dddc29d3edff39a3d7d793387f2253608a68d
2015-01-21 10:33:30 -08:00
Elliott Hughes
eb1ac69d45
am 45bdcf89: am f3743584: Merge "Fix signed/unsigned comparison that was upsetting clang."
...
* commit '45bdcf895b7f4cd6b4741fe33bc7a56d40fb220a':
Fix signed/unsigned comparison that was upsetting clang.
2015-01-21 02:21:59 +00:00
Elliott Hughes
e574a70d1e
am c4f1cfc9: am a779719d: Merge "Add TEMP_FAILURE_RETRY to stdio\'s low-level read/write functions."
...
* commit 'c4f1cfc9fc5ba053525cd155d50fae8b67df0392':
Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions.
2015-01-21 02:21:58 +00:00
Elliott Hughes
6428c625e8
am 7d196768: am 927d8be7: Merge "Fix build error when XLOG is enabled"
...
* commit '7d196768029f36b0e3fa57ba747ce58ef2b1c9d6':
Fix build error when XLOG is enabled
2015-01-21 02:21:57 +00:00
Elliott Hughes
822fe55ea9
am 06645218: am c053a428: Merge "Optimized fread."
...
* commit '0664521893e88f2cd266306e707a832d9d1f94a2':
Optimized fread.
2015-01-21 02:21:56 +00:00
Elliott Hughes
e69e6458cc
Fix signed/unsigned comparison that was upsetting clang.
...
bionic/libc/stdio/fread.c:86:27: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Werror,-Wsign-compare]
Change-Id: Ia7e1e053e0cb13113e8f2eede820be013acbab82
2015-01-20 16:52:04 -08:00
Elliott Hughes
8885dcc779
Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions.
...
This is correctness rather than performance, but found while investigating
performance.
Bug: 18593728
Change-Id: Idbdfed89d1931fcfae65db29d662108d4bbd9b65
2015-01-20 16:18:32 -08:00
Patrick Tjin
a6a0949b1d
Fix build error when XLOG is enabled
...
(cherrypick of 79a49c9857f3949fc13373eeb179f27b6ecdca81.)
Change-Id: I7bb44fd1fe3ef2ddfc115247f328eccfceeb5352
Signed-off-by: Patrick Tjin <pattjin@google.com>
2015-01-20 16:12:45 -08:00