Elliott Hughes
9b49321ea5
am 4cf6b531
: am 8a326a17
: am 4f6ed4a1
: Merge "Remove unnecessary #includes of <sys/atomics.h>."
...
* commit '4cf6b531c2d7408ea5fa754e5b1bf4711c5fe396':
Remove unnecessary #includes of <sys/atomics.h>.
2014-05-22 18:28:15 +00:00
Elliott Hughes
2ea60ff0b4
Remove unnecessary #includes of <sys/atomics.h>.
...
Bug: 14903517
Change-Id: I7b5bcebe58774a441da986cc02376dd88e00ea0e
2014-05-22 11:00:21 -07:00
Calin Juravle
a959644d5d
am 5f8626a3
: am db3cda2d
: am 254fa885
: Merge "Switch to POSIX dprintf/vdprintf."
...
* commit '5f8626a3755dc397fc48c67ed36243877aea18d7':
Switch to POSIX dprintf/vdprintf.
2014-05-22 16:49:09 +00:00
Calin Juravle
63590a2f95
am 77761e4c
: am ddf52021
: am d1dc009c
: Merge "Add padding to mips ucontext_t."
...
* commit '77761e4cc8719933bf66be7894e1b3da27bd03dd':
Add padding to mips ucontext_t.
2014-05-22 13:33:29 +00:00
Calin Juravle
e5d8092d89
am 3625f432
: am 841a1a13
: am 156c7d3d
: Merge "Clean up ucontext.h TODOs."
...
* commit '3625f432b39c1f9a7f23d2219eb421d4478cd852':
Clean up ucontext.h TODOs.
2014-05-22 13:33:29 +00:00
Calin Juravle
f9aac10cf3
am d75b6e2e
: am 6cec7775
: am 17216716
: Merge "Mutex-free implementation of pthread_rwlock"
...
* commit 'd75b6e2e478fddfbdd404d44e0d33383965b2f39':
Mutex-free implementation of pthread_rwlock
2014-05-22 13:33:28 +00:00
Calin Juravle
254fa8857f
Merge "Switch to POSIX dprintf/vdprintf."
2014-05-22 13:28:52 +00:00
Elliott Hughes
fcac8ff97f
Switch to POSIX dprintf/vdprintf.
...
Bug: 11156955
Change-Id: I734bd02db514367ab119a48304aae9767958e367
2014-05-22 11:27:06 +01:00
Calin Juravle
d1dc009c56
Merge "Add padding to mips ucontext_t."
2014-05-22 10:16:41 +00:00
Calin Juravle
156c7d3d0a
Merge "Clean up ucontext.h TODOs."
2014-05-22 10:16:12 +00:00
Calin Juravle
172167163a
Merge "Mutex-free implementation of pthread_rwlock"
2014-05-22 10:15:03 +00:00
Calin Juravle
76f352eec1
Mutex-free implementation of pthread_rwlock
...
Bug: 8133149
Change-Id: Id6775010d95f2634b173daa55d87a59a3cf4131b
2014-05-22 11:11:15 +01:00
Elliott Hughes
2c52565940
am e2d7d274
: am 176e71fb
: am 3d4a7b02
: Merge "Hide most of the private futex functions."
...
* commit 'e2d7d274f5c6edf38b9a27ad87178619ed6c4ab3':
Hide most of the private futex functions.
2014-05-22 03:09:10 +00:00
Elliott Hughes
d5ed63a6a8
Hide most of the private futex functions.
...
Also hide part of the system properties compatibility code, since
we needed to touch that to keep it building.
I'll remove __futex_syscall4 and futex in a later patch.
Bug: 11156955
Change-Id: Ibbf42414c5bb07fb9f1c4a169922844778e4eeae
2014-05-21 18:30:00 -07:00
Christopher Ferris
486396a8c9
am 328b2b6b
: am 05645db0
: am f97d8713
: Merge "Add cfi directives for arm64 assembler."
...
* commit '328b2b6bfb73ee5bded6719ac15e0a3381c1800f':
Add cfi directives for arm64 assembler.
2014-05-22 01:22:39 +00:00
Christopher Ferris
f97d8713a2
Merge "Add cfi directives for arm64 assembler."
2014-05-22 01:08:22 +00:00
Christopher Ferris
df22a121b2
Add cfi directives for arm64 assembler.
...
Fix syscall generator to add cfi directives and add the directives
for all arm64 assembler.
Bug: 15138290
Change-Id: I7f0e4a16c141ac624e5276917a3a1ed45778e057
2014-05-21 17:46:52 -07:00
Elliott Hughes
0e00375a5c
am 17e44b89
: am fc951aae
: am bf0a4407
: Merge "Remove an unnecessary instruction from arm64 __bionic_clone."
...
* commit '17e44b89e11286f3dcf7b35f9bb6432864ac085e':
Remove an unnecessary instruction from arm64 __bionic_clone.
2014-05-22 00:33:42 +00:00
Elliott Hughes
bf0a440730
Merge "Remove an unnecessary instruction from arm64 __bionic_clone."
2014-05-21 23:44:55 +00:00
Elliott Hughes
f93f50d7ea
Remove an unnecessary instruction from arm64 __bionic_clone.
...
Change-Id: Ib0dd5079d10b3634901d561932259653945176ee
2014-05-21 16:29:55 -07:00
Christopher Ferris
63900a7110
am 845e5c77
: am fc11ebc5
: am 3d5a4240
: Merge "Fix build."
...
* commit '845e5c77b551b7b3079f9e6adf1f780f96729c33':
Fix build.
2014-05-21 19:49:46 +00:00
Christopher Ferris
8d2410d33d
Fix build.
...
Change-Id: I5a35eee4074e35f459c86c7f9b1d9b0754888940
2014-05-21 11:45:51 -07:00
Christopher Ferris
c1df57d60e
am bce2357e
: am c1be1ecc
: am 011076b7
: Merge "Support for jemalloc to replace dlmalloc."
...
* commit 'bce2357e42fdfb45556ec57ccb54d587e645f196':
Support for jemalloc to replace dlmalloc.
2014-05-21 18:24:30 +00:00
Elliott Hughes
91b4613403
am 68396799
: am c5f723ae
: am c1b7f44c
: Merge "Remove __syslog; we have the public klogctl API."
...
* commit '683967991425addf38a24024ae5503768a813b64':
Remove __syslog; we have the public klogctl API.
2014-05-21 18:17:26 +00:00
Christopher Ferris
011076b720
Merge "Support for jemalloc to replace dlmalloc."
2014-05-21 18:12:50 +00:00
Elliott Hughes
3db501139b
am c323b97c
: am 87987df9
: am daf69128
: Merge "Fix x86_64 __set_tls.c build failure."
...
* commit 'c323b97c52297c4342dd45e329bad816f3bc5746':
Fix x86_64 __set_tls.c build failure.
2014-05-21 18:10:23 +00:00
Elliott Hughes
c1b7f44c13
Merge "Remove __syslog; we have the public klogctl API."
2014-05-21 18:07:05 +00:00
Neil Fuller
a073b4ee0a
am 55326c4b
: am b7a23959
: am 76805140
: Merge "Treat zero or >1 dat files as an error"
...
* commit '55326c4b9714cba3e7bf0e27ceea0e2b91240d6f':
Treat zero or >1 dat files as an error
2014-05-21 17:28:39 +00:00
Calin Juravle
ae0f8f1e48
Add padding to mips ucontext_t.
...
Bug: 12828904
Change-Id: I49e7adcebf769a9c30dc43def36501260369b1ac
2014-05-21 18:16:17 +01:00
Calin Juravle
eb454522da
Clean up ucontext.h TODOs.
...
There's no need to expose gregset_t and fpregset_t when they
are not used in ucontext_t.
Bug: 12828904
Change-Id: Ieda1edf0ab18015f444c4d385fe9c41c4544017f
2014-05-21 18:15:35 +01:00
Elliott Hughes
7136927d39
Fix x86_64 __set_tls.c build failure.
...
Change-Id: I697b8ab4ce781d7aebeddb1391b63c653511bbcb
2014-05-21 10:02:00 -07:00
Neil Fuller
768051405e
Merge "Treat zero or >1 dat files as an error"
2014-05-21 16:18:59 +00:00
Neil Fuller
43f3715953
Treat zero or >1 dat files as an error
...
Based on feedback from
I7efbd6f453fe2b3e71f564121ff0f64a74289d86
Change-Id: Ie131ab8475083350dc183d9f6d5ea7a0b0617c5b
2014-05-21 17:18:17 +01:00
Elliott Hughes
b8297bfdf6
am ee2939db
: am ceed7b76
: am 29f2906b
: Merge "Add a few more symbols to check-symbols-glibc."
...
* commit 'ee2939dbf9d6574394249548e94a31575b4ada2d':
Add a few more symbols to check-symbols-glibc.
2014-05-21 15:35:58 +00:00
Elliott Hughes
66af04b512
am a7293ddb
: am 7a611f18
: am 9f0a52e4
: Merge "Hide __get_sp."
...
* commit 'a7293ddb8da94cc823ec28b851f69ef2d99a70d4':
Hide __get_sp.
2014-05-21 15:31:13 +00:00
Elliott Hughes
802383df53
am f55dc413
: am 0aa1fb1c
: am 7471a370
: Merge "Hide __set_tls."
...
* commit 'f55dc41303417904136902698191fd0f0fe3a061':
Hide __set_tls.
2014-05-21 15:31:12 +00:00
Elliott Hughes
29f2906bda
Merge "Add a few more symbols to check-symbols-glibc."
2014-05-21 15:23:35 +00:00
Elliott Hughes
9f0a52e4e5
Merge "Hide __get_sp."
2014-05-21 15:21:16 +00:00
Elliott Hughes
7471a37003
Merge "Hide __set_tls."
2014-05-21 15:21:01 +00:00
Neil Fuller
9e2595d7b6
am fa5903ed
: am 3248b9d3
: am 22784885
: Merge "Change update-tzdata.py to update ICU data as well"
...
* commit 'fa5903edf32062d95a4a09f34571a640c1429eb6':
Change update-tzdata.py to update ICU data as well
2014-05-21 11:17:01 +00:00
Neil Fuller
2278488546
Merge "Change update-tzdata.py to update ICU data as well"
2014-05-21 08:11:40 +00:00
Elliott Hughes
46a55a4478
Remove __syslog; we have the public klogctl API.
...
Bug: 11156955
Change-Id: I5c2cc02f39f76dd32984135f5c12c10bf2853796
2014-05-20 21:01:00 -07:00
Elliott Hughes
b497c43336
Add a few more symbols to check-symbols-glibc.
...
Bug: 11156955
Change-Id: Iee0bae6f9742eca188abc7a337371c50888a0ad6
2014-05-20 20:58:23 -07:00
Elliott Hughes
a75869f0b2
Hide __set_tls.
...
Bug: 11156955
Change-Id: If82c10ae412651361d09591017d1c3a411bd6f0b
2014-05-20 20:32:28 -07:00
Elliott Hughes
dc961faa95
am 58425608
: am a9e2ffd8
: am 20177b9f
: Merge "Remove perf_event_open."
...
* commit '5842560845af94c2f15a1e7186c800e0f1e6224b':
Remove perf_event_open.
2014-05-21 03:28:15 +00:00
Elliott Hughes
c3705f6415
Hide __get_sp.
...
Bug: 11156955
Change-Id: I55d8d320521e80c2085af28933a18b00cf5c714e
2014-05-20 20:22:50 -07:00
Elliott Hughes
4e631ba568
Remove perf_event_open.
...
This was accidentally added at a time when you couldn't add a constant
to <syscall.h> without generating an assembly stub! (You no longer need
to add the constants at all.)
Bug: 11156955
Change-Id: I053c17879138787976c744a5ecf7d30ee51dc48f
2014-05-20 16:24:55 -07:00
Christopher Ferris
72bbd42357
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
2014-05-20 14:47:33 -07:00
Christopher Ferris
223069e0e1
am 1a5d6435
: am 78f22ecb
: am afb89c2a
: Merge "denver: optimize memmove"
...
* commit '1a5d64357968393d03c66c564066add0d589b760':
denver: optimize memmove
2014-05-20 20:18:04 +00:00
Dmitriy Ivanov
8151d09639
am 1350ed3d
: am 5277e772
: am 0a8f296e
: Merge "Add RTLD_NOLOAD support and some related changes."
...
* commit '1350ed3d5252ed2beb8eb06564660c2cc97747f9':
Add RTLD_NOLOAD support and some related changes.
2014-05-20 20:17:54 +00:00
Christopher Ferris
afb89c2a01
Merge "denver: optimize memmove"
2014-05-20 19:56:13 +00:00
Shu Zhang
6c80ccdeed
denver: optimize memmove
...
Optimize 32-bit denver memmove with reversal memcpy.
Change-Id: Iaad0a9475248cdd7e4f50d58bea9db1b767abc88
2014-05-20 12:31:38 -07:00
Dmitriy Ivanov
0a8f296e09
Merge "Add RTLD_NOLOAD support and some related changes."
2014-05-20 19:11:09 +00:00
Dmitriy Ivanov
b648a8a57e
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
2014-05-20 12:02:24 -07:00
Elliott Hughes
7435e9e974
am 7bdf1e48
: am da095f3c
: am ce0e1b81
: Merge "Add a script for finding symbols in bionic that aren\'t in glibc."
...
* commit '7bdf1e48ff8711f35163f95764bb1d467b205b96':
Add a script for finding symbols in bionic that aren't in glibc.
2014-05-20 18:35:30 +00:00
Elliott Hughes
ce0e1b81cc
Merge "Add a script for finding symbols in bionic that aren't in glibc."
2014-05-20 18:25:24 +00:00
Calin Juravle
077cbee5d1
am 995b9704
: am bcd1a312
: am b2b0f7e1
: Merge "Add uc_regspace to arm\'s ucontext_t"
...
* commit '995b9704d8ba70d4d09ef0c3453d5f25ed099816':
Add uc_regspace to arm's ucontext_t
2014-05-20 18:15:40 +00:00
Neil Fuller
246c688020
Change update-tzdata.py to update ICU data as well
...
The update-tzdata.py tool now uses downloaded Olson data
to update ICU (*new*) at the same time as it updates Bionic
data.
Change-Id: I7efbd6f453fe2b3e71f564121ff0f64a74289d86
2014-05-20 11:48:43 +01:00
Calin Juravle
b2b0f7e1ae
Merge "Add uc_regspace to arm's ucontext_t"
2014-05-20 10:14:49 +00:00
Elliott Hughes
5a93e88c7f
Add a script for finding symbols in bionic that aren't in glibc.
...
Bug: 11156955
Change-Id: I9772f054f6a92b842531df084dee0ea9c28806be
2014-05-19 18:01:07 -07:00
Dan Albert
4cc742e920
am 60bab8a7
: am d8cc98ad
: am 94a9ba2b
: Merge "Removes RTTI support from libc"
...
* commit '60bab8a7ef30f72eb26a843afc3e0bdd02d3796d':
Removes RTTI support from libc
2014-05-20 00:23:09 +00:00
Elliott Hughes
310ecf1ae9
am 348adca2
: am be3db39e
: am 948acf71
: Merge "Switch back to OpenBSD inet_ntop now they\'re FORTIFY clean."
...
* commit '348adca20e68c42bdfbf594aaa675062d3595761':
Switch back to OpenBSD inet_ntop now they're FORTIFY clean.
2014-05-20 00:23:09 +00:00
Sreeram Ramachandran
7c30167b3a
am d70e0c88
: am 54c83fee
: am 9925c1a8
: Merge "Mark sockets on creation (socket()) and accept4()."
...
* commit 'd70e0c884c19c08aa44c038dbf2f12a5b55c73fe':
Mark sockets on creation (socket()) and accept4().
2014-05-20 00:23:03 +00:00
Dan Albert
94a9ba2b4a
Merge "Removes RTTI support from libc"
2014-05-19 23:21:46 +00:00
Elliott Hughes
948acf710e
Merge "Switch back to OpenBSD inet_ntop now they're FORTIFY clean."
2014-05-19 23:19:32 +00:00
Elliott Hughes
f51d3e8767
Switch back to OpenBSD inet_ntop now they're FORTIFY clean.
...
Change-Id: I04798a4966c352a8a12feebdff9646e3bad5933f
2014-05-19 15:55:29 -07:00
Sreeram Ramachandran
903b78873a
Mark sockets on creation (socket()) and accept4().
...
Remove the separate syscall for accept() and implement it as accept4(..., 0).
Change-Id: Ib0b8f5d7c5013b91eae6bbc3847852eb355c7714
2014-05-19 15:19:16 -07:00
Paul Jensen
5240b562e7
Query libnetd_client for the appropriate netId for host resolution.
...
If libnetd_client can't be found, operate as before and use the default netId
potentially overriden by a more specific netId passed in to
android_get*fornet().
(cherry picked from commit 559c7842cc
)
Change-Id: I42ef3293172651870fb46d2de22464c4f03e8e0b
2014-05-19 12:49:52 -07:00
Calin Juravle
0e85fb6121
Add uc_regspace to arm's ucontext_t
...
Bug: 12828904
Bug: 12875898
Change-Id: Ic5d532bd0ef58cad9e36a99fc2995c4b069121b2
2014-05-19 19:14:03 +01:00
Dan Albert
48ee47ce25
Removes RTTI support from libc
...
Our type_info stub implementation is incompatible with the libc++ headers. Since
we don't need this support internally and anyone that wants RTTI support will
have to use libc++ anyway, this can be safely removed.
Change-Id: Ied8b67a0d86a4eb0e31191a50cceba0e39a16a6d
2014-05-19 10:32:42 -07:00
Sreeram Ramachandran
57a2627575
Fix build breakage.
...
Change-Id: I1835198c64c28021b81f0c790f108685a3f456c7
2014-05-19 10:21:39 -07:00
Sreeram Ramachandran
7fe1063797
resolved conflicts for merge of e7329284
to master
...
Change-Id: Iaeb09451ed1a268a025ce3033ab018f28f954848
2014-05-19 09:57:54 -07:00
Paul Jensen
559c7842cc
Query libnetd_client for the appropriate netId for host resolution.
...
If libnetd_client can't be found, operate as before and use the default netId
potentially overriden by a more specific netId passed in to
android_get*fornet().
Change-Id: I42ef3293172651870fb46d2de22464c4f03e8e0b
2014-05-19 11:23:12 +00:00
Sreeram Ramachandran
72c53933f8
Cosmetic changes to netd client files.
...
+ Name the dispatch header correctly (NetdClientDispatch.h).
+ Hide the global dispatch variable (__netdClientDispatch).
+ Explain why it's okay to read the variable without locking.
+ Use quotes instead of angle-brackets for non-system includes.
+ Add necessary declarations for C compiles (and not just C++).
Change-Id: Id0932165e71d81da5fce77a684f40c2263f58e61
2014-05-18 15:18:36 -07:00
Elliott Hughes
3810729e54
am 91a7e878
: am 81e4ab45
: am 8b9a22f3
: Merge "Fix the newly-introduced warning and turn on -Werror."
...
* commit '91a7e878f22776c8b15fb1aceb4823718611fe12':
Fix the newly-introduced warning and turn on -Werror.
2014-05-17 00:23:14 +00:00
Elliott Hughes
4c2da039ba
Fix the newly-introduced warning and turn on -Werror.
...
I cleaned up most of our warnings last week but forgot to turn on -Werror,
so of course we're getting new warnings already. I've left -Werror commented
out in those places where we still have warnings to deal with before we can
turn on -Werror.
Change-Id: Ia58ff8b8c1ada4bf81eec6f19ec1d34e133cf4b1
2014-05-16 16:50:34 -07:00
Elliott Hughes
0f43d02843
am 19a54ce4
: am 88a8e09b
: am 5e6e3edb
: Merge "Export get_malloc_leak_info and free_malloc_leak_info, used by ddms."
...
* commit '19a54ce4d446cdea01a7d50c2951481f3ed006bd':
Export get_malloc_leak_info and free_malloc_leak_info, used by ddms.
2014-05-16 23:40:25 +00:00
Elliott Hughes
f4ad3d6dd7
am b95ce9b3
: am 838c5c25
: am a23ee2cf
: Merge "Hide _exit_with_stack_teardown."
...
* commit 'b95ce9b3d7b94878cb1a42e19cf059ad4d1455e8':
Hide _exit_with_stack_teardown.
2014-05-16 23:33:44 +00:00
Elliott Hughes
7c9923d05f
Export get_malloc_leak_info and free_malloc_leak_info, used by ddms.
...
Bug: 11156955
Change-Id: I84043f7b2c0ea0e336f6e2af3b7adb2f8488bd53
2014-05-16 16:29:55 -07:00
Elliott Hughes
31d0398de6
Hide _exit_with_stack_teardown.
...
Bug: 11156955
Change-Id: Ida3020343c9975177dc324918cd1f10c455eb173
2014-05-16 16:17:44 -07:00
Elliott Hughes
7c8d98db59
am f8cb4542
: am 30f89b6f
: am aafa3d0e
: Merge "Hide various debug malloc implementation details."
...
* commit 'f8cb45429b2cd4df8908f998fdc72b0fa235474a':
Hide various debug malloc implementation details.
2014-05-16 23:15:33 +00:00
Elliott Hughes
aafa3d0e46
Merge "Hide various debug malloc implementation details."
2014-05-16 23:04:02 +00:00
Elliott Hughes
968aaf5d8d
am fd5155e7
: am 48ecb3a6
: am 58b52fb1
: Merge "Remove dead code."
...
* commit 'fd5155e7eb64563285831c774e112cf7513adb43':
Remove dead code.
2014-05-16 23:00:35 +00:00
Elliott Hughes
3ac925850a
am 45740160
: am 67e34f30
: am e2d5746a
: Merge "Hide __signalfd4, used to implement signalfd(3)."
...
* commit '4574016027cce3132c6a348de8f0585348b4ffd5':
Hide __signalfd4, used to implement signalfd(3).
2014-05-16 23:00:34 +00:00
Elliott Hughes
58b52fb133
Merge "Remove dead code."
2014-05-16 22:52:41 +00:00
Elliott Hughes
7222b1b594
Hide __signalfd4, used to implement signalfd(3).
...
Bug: 11156955
Change-Id: I50842279cb5b32ec8bd45193435574e415cd806e
2014-05-16 15:47:29 -07:00
Elliott Hughes
6b7987cca3
Hide various debug malloc implementation details.
...
Bug: 11156955
Change-Id: Ib9d69d49ecec8eff4f12392bde94d843ae53d442
2014-05-16 15:23:54 -07:00
Elliott Hughes
bd27a8b4af
Remove dead code.
...
This doesn't exist upstream.
Really we should upgrade to the current arc4random, but that's a bigger
job for another day.
Bug: 11156955
Change-Id: If6cd41b79139c64c17e81999e246cf4f00882ce8
2014-05-16 14:43:00 -07:00
Elliott Hughes
971f66e469
am 1453b3df
: am 7177d1d6
: am d9b06298
: Merge "Hide __futex_wake_ex and __futex_wait_ex."
...
* commit '1453b3df559609252633e40d677aadaf5dd70309':
Hide __futex_wake_ex and __futex_wait_ex.
2014-05-16 20:07:34 +00:00
Elliott Hughes
3973de9616
Hide __futex_wake_ex and __futex_wait_ex.
...
Also remove some cruft that isn't needed now we're using uapi headers.
Bug: 11156955
Change-Id: I936b9c5b01d8bd6bfb2e5bc0e3f86cd86739cc04
2014-05-16 12:53:31 -07:00
Elliott Hughes
a0accd85c9
am 0178eba2
: am 9700b6ca
: am 22ade3c3
: Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden."
...
* commit '0178eba213dfec500e71cd9889ece5af2f7de4cb':
With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
2014-05-16 18:10:33 +00:00
Elliott Hughes
22ade3c30d
Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden."
2014-05-16 18:00:51 +00:00
Elliott Hughes
879180c3ac
With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
...
This patch is conservative and just touches LP64. (But not because we
know of anyone using this in LP32.)
Bug: 13367666
Change-Id: Id45652debc4534584479b16b501401f6f23acea9
2014-05-16 10:58:59 -07:00
Elliott Hughes
ae04d58b96
am 505de840
: am 80cff53e
: am 2a602272
: Merge "Move libstdc++ into libc."
...
* commit '505de840a225be10947f6aa25b25e8e623e670e5':
Move libstdc++ into libc.
2014-05-16 17:40:55 +00:00
Elliott Hughes
2a60227223
Merge "Move libstdc++ into libc."
2014-05-16 16:37:20 +00:00
Christopher Ferris
02aabff12e
am c98359cc
: am 0d9c78af
: am 5265ad62
: Merge "Fix comment typo."
...
* commit 'c98359cc6bffdffe03067740a0ad691cc16d83fa':
Fix comment typo.
2014-05-16 02:21:53 +00:00
Christopher Ferris
5265ad6273
Merge "Fix comment typo."
2014-05-16 02:14:07 +00:00
Christopher Ferris
9029d2f638
Fix comment typo.
...
Change-Id: I1909f724826b531daf14fec4853e40d578fc0f59
2014-05-15 19:11:58 -07:00
Dmitriy Ivanov
6a0f7d6187
am a161eea2
: am 7f3d6b69
: am 0a5b0166
: Merge "Register _cleanup function with atexit"
...
* commit 'a161eea241da06c70995248df7a00b6553050e05':
Register _cleanup function with atexit
2014-05-16 00:43:54 +00:00
Dmitriy Ivanov
0a5b016623
Merge "Register _cleanup function with atexit"
2014-05-16 00:37:54 +00:00
Elliott Hughes
c571c26820
am 9eb2d38d
: am b9fdad77
: am ec81b4a3
: Merge "Scrub uapi headers slightly harder."
...
* commit '9eb2d38d53b2d00a9b5bd189a34f51afb7c385bf':
Scrub uapi headers slightly harder.
2014-05-15 23:12:23 +00:00
Dmitriy Ivanov
623b0d05bd
Register _cleanup function with atexit
...
* Register cleanup function with atexit
instead of calling it explicitly on
exit()
* abort() no longer calls _cleanup:
Flushing stdio buffers on abort is no
longer required by POSIX.
* dlmalloc no longer need to reset cleanup
(see above)
* Upstream findfp.c makebuf.c setvbuf.cexit.c
to openbsd versions.
Bug: 14415367
Change-Id: I277058852485a9d3dbb13e5c232db5f9948d78ac
2014-05-15 13:05:21 -07:00
Elliott Hughes
8ed7a23309
Scrub uapi headers slightly harder.
...
There's no point having always-false tests. It just makes the headers
harder to read.
Bug: 11560081
Change-Id: I6187755e1514ca9ff5642b3c1b0489f22edddaf5
2014-05-15 12:01:11 -07:00
Calin Juravle
bfcc82b3c0
am 4c9eab72
: am 83c94c6d
: am 98efae4c
: Merge "Fill in missing bits in x86(_64) ucontext_t"
...
* commit '4c9eab723481df5921296c2dba2dbdd8a81b1395':
Fill in missing bits in x86(_64) ucontext_t
2014-05-15 10:34:37 +00:00
Calin Juravle
a6ab968ca0
Fill in missing bits in x86(_64) ucontext_t
...
Bug: 12828904
Bug: 12875898
Change-Id: I0ec0dfe16af80bfb3153f3c3b1b3d180eff30f39
2014-05-15 10:34:06 +01:00
Andrew Hsieh
61c88b5648
am 5d76a6c2
: am c67e917a
: am d0a89921
: Merge "Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h"
...
* commit '5d76a6c26e47cbd1b9c98b0151dda1677db32af6':
Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h
2014-05-15 01:59:52 +00:00
Elliott Hughes
15b641a267
Move libstdc++ into libc.
...
The Android build system always links against libstdc++.so anyway. Having
operator new and operator delete in a separate library means we can't use
constructors and destructors on heap-allocated objects inside the C library,
which is quite an unfortunate limitation.
This will be cheaper too; on LP64 we can stop linking against the [now empty]
libstdc++.so giving the dynamic linker one less library to worry about for
every process.
There's precedent too --- we already have no libpthread or librt.
For now I'm leaving the include files where they are, and I'm generating a
dummy libstdc++.so and libstdc++.a. We can come back and clean that up later
if all goes well.
Bug: 13367666
Change-Id: I6f3e27ea7c30d03d6394965d0400c9dc87fa83db
2014-05-14 18:18:55 -07:00
Christopher Ferris
4903b31733
am 70240fda
: am 493cfc33
: am 1596b884
: Merge "Increase minimum thread size for 64 bit."
...
* commit '70240fda03d5a375b6bb4e25dd50d1e7803a140e':
Increase minimum thread size for 64 bit.
2014-05-15 01:13:50 +00:00
Andrew Hsieh
9b5b40b4df
Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h
...
See 93e1907ae1
Change-Id: Icb207f4e17cfffdd6d37500656434adf1cc34427
2014-05-15 09:11:11 +08:00
Christopher Ferris
1596b88464
Merge "Increase minimum thread size for 64 bit."
2014-05-15 01:06:25 +00:00
Christopher Ferris
ea5248ee1b
Increase minimum thread size for 64 bit.
...
Bug: 14468519
Change-Id: I642a5515acf5fbed46e77e176f6b5dd3b7c7bd45
2014-05-14 18:02:11 -07:00
Elliott Hughes
71db4f6571
am e05c4ebb
: am 4cbb778b
: am f280130f
: Merge "Remove the unused __system_property_wait."
...
* commit 'e05c4ebb651dc73ba86ae45242707c285847df2b':
Remove the unused __system_property_wait.
2014-05-15 00:30:41 +00:00
Christopher Ferris
0799b77011
am d849068a
: am cd5b7920
: am bc7f8a79
: Merge "Do not keep struct state on the stack."
...
* commit 'd849068a35040083ef56cfe457011bbf3a0d305c':
Do not keep struct state on the stack.
2014-05-15 00:12:30 +00:00
Elliott Hughes
3e786987b5
Remove the unused __system_property_wait.
...
This isn't declared in any header file.
Bug: 14970171
Change-Id: Ib9fce61343dfb6b6ccd7e1430e1a6e34e4e869df
2014-05-14 17:02:09 -07:00
Christopher Ferris
8a8b0c9bfc
Do not keep struct state on the stack.
...
This structure is huge (~18000 bytes on arm64) and can blow out
the stack very easily.
Modify the code to allocate these structures instead of leaving them
on the stack.
Bug: 14468519
Change-Id: I774f71235d896d32a14ab1af06f95ca9ef819f52
2014-05-14 16:50:41 -07:00
Elliott Hughes
f693d2916b
am c6057a5f
: am d60d67db
: am aeec2ae7
: Merge "Remove the broken pthread deadlock prediction."
...
* commit 'c6057a5f618cca842432c3a28af1a9293b551aff':
Remove the broken pthread deadlock prediction.
2014-05-14 19:54:24 +00:00
Sreeram Ramachandran
49ec2a0cdc
Merge "Mark sockets on accept()."
2014-05-14 19:40:50 +00:00
Elliott Hughes
07f1ded139
Remove the broken pthread deadlock prediction.
...
This hasn't built in over one release cycle and no one even noticed.
art does this the right way and other projects should do the same.
Change-Id: I7d1fb84c4080e008f329ee73e209ce85a36e6d55
2014-05-14 11:38:22 -07:00
Sreeram Ramachandran
8f0cd8aa22
Mark sockets on accept().
...
(cherry picked from commit 58b1f3f6a30a660ad81637c2b50382c3d279243b)
Change-Id: I5d09be413cf720fbed905f96313b007997ada76c
2014-05-14 11:10:22 -07:00
Elliott Hughes
a0d2534ef4
am b270fd33
: am 7451897c
: am e6c27a7a
: Merge "Fix a typo in the big g_ search/replace."
...
* commit 'b270fd332922b365091f835b1b61ed221a87f102':
Fix a typo in the big g_ search/replace.
2014-05-14 18:09:56 +00:00
Elliott Hughes
cd46104cf8
Fix a typo in the big g_ search/replace.
...
Change-Id: I79261de70d225236d0eadff288220258d697437f
2014-05-14 10:58:58 -07:00
Elliott Hughes
73a3760ea8
am b2da973f
: am 6eb0fe2b
: am 15c13bd6
: Merge "Switch to g_ for globals."
...
* commit 'b2da973fe9e7a1c9e774433eeae86c517321ebdc':
Switch to g_ for globals.
2014-05-14 17:50:17 +00:00
Elliott Hughes
1728b23965
Switch to g_ for globals.
...
That's what the Google style guide recommends, and we're starting
to get a mix.
Change-Id: Ib0c53a890bb5deed5c679e887541a715faea91fc
2014-05-14 10:02:03 -07:00
Ross McIlroy
4586f8d3ae
am 582cf711
: am bc45edaa
: am bac79558
: Merge "Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc."
...
* commit '582cf711309138e4e7e0c46696491028c823834d':
Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc.
2014-05-14 14:40:05 +00:00
Ross McIlroy
bac795586b
Merge "Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc."
2014-05-14 14:27:41 +00:00
Ross McIlroy
0c8a5f82e6
Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc.
...
Glibc calls the tag pointer in user_fpregs_struct ftw instead of twd.
Change-Id: I4a8dab777fa889de0b9927035cd18557ae6f3263
2014-05-14 13:29:19 +01:00
Sreeram Ramachandran
dedf2922d5
Mark sockets on accept().
...
Conflicts:
libc/SYSCALLS.TXT
Change-Id: I5d09be413cf720fbed905f96313b007997ada76c
2014-05-14 04:26:51 -07:00
Paul Jensen
41d9a50371
Add support for deleting per-network DNS resolver caches.
...
This is required when the possible range of NetIds is large to
prevent netd consuming excessive amounts of memory.
This required replacing the per-cache locks in favor of a single
global lock to prevent accesses to deleted caches.
Change-Id: I99d058bafea5de743e56075dbed74031da4df63f
2014-05-14 04:16:18 -07:00
Calin Juravle
7fbc7481cc
am 32cd82f0
: am 7c0b313d
: am a7318774
: Merge "Change wctype_t from int to long."
...
* commit '32cd82f093184fc3b6b43171f16ed5d74ca02795':
Change wctype_t from int to long.
2014-05-14 10:47:04 +00:00
Calin Juravle
9d60edbcfe
am c16e4332
: am d36bbf13
: am fd3171b4
: Merge "Change wctype_t from enum to int"
...
* commit 'c16e4332e42ff152c06963c398e9195576d6aae4':
Change wctype_t from enum to int
2014-05-14 10:47:04 +00:00
Calin Juravle
a731877406
Merge "Change wctype_t from int to long."
2014-05-14 10:33:46 +00:00
Calin Juravle
fd3171b465
Merge "Change wctype_t from enum to int"
2014-05-14 10:33:35 +00:00
Elliott Hughes
8e168d2a01
am 28c9e21f
: am 2146f78c
: am 3e684183
: Merge "Use the NetBSD inet_ntop until the OpenBSD bug is fixed."
...
* commit '28c9e21fe7bfadf0af5d183d6bcad5bf638de91b':
Use the NetBSD inet_ntop until the OpenBSD bug is fixed.
2014-05-14 02:33:31 +00:00
Elliott Hughes
5c8c88dd8d
Use the NetBSD inet_ntop until the OpenBSD bug is fixed.
...
Stupidly I found this bug by accident when writing the existing
tests, but I didn't think any real code would hit it. It turns
out that libcore always uses an INET6_ADDRSTRLEN-sized buffer
even when working with AF_INET addresses.
Change-Id: Ieffc8e4bbe9b66b49b033e3e7101c896e097e6f8
2014-05-13 19:17:46 -07:00
Elliott Hughes
d8e8909f95
am 46afef32
: am 9b1e2a14
: am 3557f2f6
: Merge "Fix <sys/endian.h> uint32_t build failures."
...
* commit '46afef329fee8de35d092e3f1e635d11d6f6e91d':
Fix <sys/endian.h> uint32_t build failures.
2014-05-14 01:56:31 +00:00
Elliott Hughes
135b103fd9
Fix <sys/endian.h> uint32_t build failures.
...
Change-Id: I833b51318f0bf7749073859b7ffacc668c27558e
2014-05-13 18:42:12 -07:00
Elliott Hughes
aa8e269d29
am 239347d9
: am cb6f6243
: am 17f8ef87
: Merge "Flesh out <arpa/inet.h>."
...
* commit '239347d97effbd711f07da75def7620a1557988b':
Flesh out <arpa/inet.h>.
2014-05-14 01:21:59 +00:00
Elliott Hughes
6033068d17
am 62c24c83
: am f984afd0
: am 57722375
: Merge "We don\'t need two copies of <nsswitch.h>."
...
* commit '62c24c83538258fa2cd7e31d9b616bbb32d6398f':
We don't need two copies of <nsswitch.h>.
2014-05-14 01:21:58 +00:00
Elliott Hughes
17f8ef87b5
Merge "Flesh out <arpa/inet.h>."
2014-05-14 01:09:01 +00:00
Elliott Hughes
6a41b0fb0e
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
2014-05-13 18:08:29 -07:00
Elliott Hughes
5772237588
Merge "We don't need two copies of <nsswitch.h>."
2014-05-14 01:06:11 +00:00
Elliott Hughes
eed3d0d1f3
We don't need two copies of <nsswitch.h>.
...
Change-Id: I3f874326d96f41249f5c9b1b3c2885f858589029
2014-05-13 18:05:29 -07:00
Sreeram Ramachandran
47b93faa48
Fix build (take two).
...
Make sure __netdClientDispatch is defined in the same set of libraries that
refer to it (e.g.: with connect.cpp).
(cherry picked from commit 8205a61248
)
Change-Id: I86d7bf2df5bde09f75a35b204eac0e1361747e22
2014-05-13 17:48:52 -07:00
Sreeram Ramachandran
8205a61248
Fix build (take two).
...
Make sure __netdClientDispatch is defined in the same set of libraries that
refer to it (e.g.: with connect.cpp).
Change-Id: I86d7bf2df5bde09f75a35b204eac0e1361747e22
2014-05-13 17:24:03 -07:00
Sreeram Ramachandran
2677d133dd
Fix build.
...
(cherry picked from commit 06e8796ee9
)
Change-Id: I33293d8bc62cbb22e23a704c4242e7e9d3fce7c5
2014-05-13 16:59:38 -07:00
Sreeram Ramachandran
06e8796ee9
Fix build.
...
Change-Id: I33293d8bc62cbb22e23a704c4242e7e9d3fce7c5
2014-05-13 16:30:12 -07:00
Sreeram Ramachandran
20f8da95c0
am af36c9ae
: am 9b5bc6fd
: am 79b56f4b
: Merge "Introduce netd_client, a dynamic library that talks to netd."
...
* commit 'af36c9ae139b08109fa9ffad923b542e3a64f612':
Introduce netd_client, a dynamic library that talks to netd.
2014-05-13 22:20:38 +00:00
Elliott Hughes
05ba476c11
am 5c0fe1a3
: am b00435d1
: am 0ccef7ec
: Merge "Upgrade to tzdata2014c."
...
* commit '5c0fe1a39d35886e30792f3b6023bc9799e5ebc2':
Upgrade to tzdata2014c.
2014-05-13 18:42:26 +00:00
Sreeram Ramachandran
ceb5bd787c
Introduce netd_client, a dynamic library that talks to netd.
...
The library exists outside bionic. It is dynamically loaded, to replace selected
standard socket syscalls with versions that talk to netd.
Change connect() to use the library if available.
(cherry picked from commit 3a6b627a14df8111b03e452f2df4b5f4938e0e49)
Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
2014-05-13 11:30:03 -07:00
Elliott Hughes
a8e0f0e633
am 1d8130e8
: am 56b18bb4
: am a26dd781
: Merge "Add getmntent_r to our collection of <mntent.h> compatibility stubs."
...
* commit '1d8130e8b30e25ad8e3e33bbd0d08f8e44f73a35':
Add getmntent_r to our collection of <mntent.h> compatibility stubs.
2014-05-13 18:27:32 +00:00
Elliott Hughes
121cb5f4a7
Upgrade to tzdata2014c.
...
From the release notes:
Changes affecting near-future time stamps
Egypt observes DST starting 2014-05-15 at 24:00.
(Thanks to Ahmad El-Dardiry and Gunther Vermier.)
Details have not been announced, except that DST will not be
observed during Ramadan. Guess that DST will stop during the same
Ramadan dates as Morocco, and that Egypt's future spring and fall
transitions will be the same as 2010 when it last observed DST,
namely April's last Friday at 00:00 to September's last Thursday at
23:00 standard time. Also, guess that Ramadan transitions will be
at 00:00 standard time.
Change-Id: I6a20cae02a314871acbd52cb90fcbebd37625810
2014-05-13 11:23:18 -07:00
Elliott Hughes
280bd7a9f4
am 2fbb0fb7
: am 2b5503b5
: am dbcba8f5
: Merge "Reduce stack usage of tmpfile(3)."
...
* commit '2fbb0fb751b985c6f8a6fa556cf5fe51c88e6645':
Reduce stack usage of tmpfile(3).
2014-05-13 17:49:29 +00:00
Elliott Hughes
eb664e24c0
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
2014-05-13 10:44:07 -07:00
Elliott Hughes
dbcba8f5f9
Merge "Reduce stack usage of tmpfile(3)."
2014-05-13 17:32:48 +00:00
Calin Juravle
1b530a9f80
am 493f718d
: am 66faa0c2
: am f34f0ccb
: Merge "Use __LP64__ instead of __LP32__ in sched.h"
...
* commit '493f718d87722615b2657dc6a0254dc3c3714a16':
Use __LP64__ instead of __LP32__ in sched.h
2014-05-13 17:29:56 +00:00
Calin Juravle
f34f0ccb0e
Merge "Use __LP64__ instead of __LP32__ in sched.h"
2014-05-13 17:16:30 +00:00
Elliott Hughes
b6943186ce
Reduce stack usage of tmpfile(3).
...
Also ensure that none of our home-grown code uses more than 2KiB per frame.
Change-Id: I8987a17d72f4b7f082bb7fa25e137c8433664c14
2014-05-13 10:14:22 -07:00
Calin Juravle
dd09699fae
Use __LP64__ instead of __LP32__ in sched.h
...
Gcc defines only __LP64__ so testing __LP32__ will always be false.
Bug: 14881256
Change-Id: Ic63c1d562be09c3eb4b9e17c9e5ef2d9e404db80
2014-05-13 16:07:28 +01:00
Calin Juravle
b55f2631dc
Change wctype_t from int to long.
...
On LP64 this brings us on par with the other libcs where wctype_t is 8
bytes.
Bug: 12875898
Change-Id: Ice4f538ccf0634ef6667a8d90d0f7f09cec9e1b0
2014-05-13 13:11:27 +01:00
Calin Juravle
0c472479a2
Change wctype_t from enum to int
...
This increases bionic source compatibility with other libcs where
"wctype_t foo = 0;" is valid without -fpermissive.
Bug: 14646243
Change-Id: Ia9bd0785bc42c7b46e2bb6c3d9b9a9d3f769d983
2014-05-13 12:47:27 +01:00
Calin Juravle
3b0d098df1
am d0c625f5
: am d9f0e8f2
: am ddda264f
: Merge "Undef private *_BODY defines after use"
...
* commit 'd0c625f5de63e659e524710fe49ae1061d585dc6':
Undef private *_BODY defines after use
2014-05-13 10:41:10 +00:00
Calin Juravle
f963da22ec
Undef private *_BODY defines after use
...
Bug: 14865741
Change-Id: I1398f7b3f64e3c94f2714cede5b61205dfa78a24
2014-05-13 11:01:11 +01:00
Calin Juravle
e1a15335be
am df45321d
: am e0913cd4
: am e788f5e0
: Merge "Support mb sequences across calls to mb*to*wcs* functions"
...
* commit 'df45321da1b41ee3fb6c2a5504f6e84ea3599361':
Support mb sequences across calls to mb*to*wcs* functions
2014-05-13 09:49:39 +00:00
Calin Juravle
e788f5e04b
Merge "Support mb sequences across calls to mb*to*wcs* functions"
2014-05-13 09:36:01 +00:00
Christopher Ferris
823074c5e4
am 66d0e685
: am 199e830a
: am 1abb1b93
: Merge "Add 64-bit Silvermont-optimized string/memory functions."
...
* commit '66d0e685145a400b08f5e4ec6bbc61ed8185cd39':
Add 64-bit Silvermont-optimized string/memory functions.
2014-05-13 00:59:29 +00:00
Christopher Ferris
64010b8f7e
am 19e15c5b
: am 5a3303da
: am c1d26965
: Merge "Add 32-bit Silvermont-optimized string/memory functions."
...
* commit '19e15c5bf6eecf2baa5bf8dd50fcf028477991bf':
Add 32-bit Silvermont-optimized string/memory functions.
2014-05-13 00:38:59 +00:00
Varvara Rainchik
a020a244ae
Add 64-bit Silvermont-optimized string/memory functions.
...
Add following functions:
bcopy, bzero, memcpy, memmove, memset, stpcpy, stpncpy, strcat, strcpy,
strlen, strncat, strncpy, memcmp, strcmp, strncmp.
Set all these functions as the default ones.
Change-Id: Ic66b250ad8c349a43d25e2d4dea075604f6df6ac
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-05-12 17:37:07 -07:00
Elliott Hughes
3ff9c0246c
am 5a19b361
: am 0b1a2ee7
: am 8b307e0e
: Merge "Remove the useless indirection in mips\' __set_tls."
...
* commit '5a19b361684283e51e00d532af231f5e9e4a9456':
Remove the useless indirection in mips' __set_tls.
2014-05-13 00:33:52 +00:00
Christopher Ferris
c1d26965ae
Merge "Add 32-bit Silvermont-optimized string/memory functions."
2014-05-13 00:26:50 +00:00
Calin Juravle
15a6310e4b
Support mb sequences across calls to mb*to*wcs* functions
...
Bug: 13077905
Change-Id: I5abdc7cc3c27c109b7900c94b112f18a95c35763
2014-05-13 00:24:25 +01:00
Elliott Hughes
8b307e0e98
Merge "Remove the useless indirection in mips' __set_tls."
2014-05-12 23:14:51 +00:00
Elliott Hughes
dcbef06ce6
Remove the useless indirection in mips' __set_tls.
...
Change-Id: I12e9d6716c42ccbccc9a186441aca0736bb22d05
2014-05-12 16:11:06 -07:00
Varvara Rainchik
5a92284167
Add 32-bit Silvermont-optimized string/memory functions.
...
Add following functions:
bcopy, memcpy, memmove, memset, bzero, memcmp, wmemcmp, strlen,
strcpy, strncpy, stpcpy, stpncpy.
Create new directories inside arch-x86 to specify architecture: atom,
silvermont and generic (non atom or silvermont architectures are treated like generic).
Due to introducing optimized versions of stpcpy and stpncpy,
c-implementations of these functions are moved from
common for architectures makefile to arm and mips specific makefiles.
Change-Id: I990f8061c3e9bca1f154119303da9e781c5d086e
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-05-12 13:56:59 -07:00
Calin Juravle
3c831506cf
am 26fbede0
: am e032a18c
: am d67c6af2
: Merge "Reserve space for the future in statvfs(64)"
...
* commit '26fbede03e32a679836ac0b4fabe7be0d9458759':
Reserve space for the future in statvfs(64)
2014-05-12 10:11:57 +00:00
Calin Juravle
324f9e22ef
am fc7cc469
: am 60e11324
: am 4d695bf5
: Merge "Align struct passwd definition with other variations of libc"
...
* commit 'fc7cc469d320b8bb66dd40d93692cd159040a04f':
Align struct passwd definition with other variations of libc
2014-05-12 10:07:24 +00:00
Calin Juravle
d67c6af2f6
Merge "Reserve space for the future in statvfs(64)"
2014-05-12 09:59:57 +00:00
Calin Juravle
7bec1212c7
Reserve space for the future in statvfs(64)
...
The kernel struct has some spare space at the end too, and some extra
fields, so having a bit of flexibility in statvfs might be worthwhile.
Bug: 14681331
Bug: 12875898
Change-Id: I5b502c5dd9d2e3bb8f34804f83c02669cefce01e
2014-05-12 10:56:39 +01:00
Calin Juravle
4d695bf560
Merge "Align struct passwd definition with other variations of libc"
2014-05-12 09:53:41 +00:00
Elliott Hughes
d35f1b508e
am 5ce362b4
: am cf113ab9
: am 4b57305a
: Merge "Bring in google3-style DISALLOW_* macros."
...
* commit '5ce362b4c5a942beea8dc90542f00d19b3b49845':
Bring in google3-style DISALLOW_* macros.
2014-05-10 03:46:15 +00:00
Elliott Hughes
8eac9af24e
Bring in google3-style DISALLOW_* macros.
...
I've been meaning to do this for a very long time...
Change-Id: Ia8c16eee7c026c3c9505399948485fb778fb0152
2014-05-09 19:12:08 -07:00
Elliott Hughes
4e499eb7bf
am f05495fd
: am c66df5e9
: am b2c3c803
: Merge "Align the child stack in clone(2)."
...
* commit 'f05495fdab6a73575560190ae88cc0f2ba0a5a74':
Align the child stack in clone(2).
2014-05-10 00:51:17 +00:00
Elliott Hughes
0d236aa3f1
Align the child stack in clone(2).
...
Also let clone(2) set the TLS for x86.
Also ensure we initialize the TLS before we clone(2) for all architectures.
Change-Id: Ie5fa4466e1c9ee116a281dfedef574c5ba60c0b5
2014-05-09 17:06:51 -07:00
Elliott Hughes
656e405f8b
am 1bca28eb
: am 0db4c690
: am 8fa5c252
: Merge "Align arm64 stacks to 16 bytes in __bionic_clone."
...
* commit '1bca28eb0d75763ba1813bed65b68f913dc6d79e':
Align arm64 stacks to 16 bytes in __bionic_clone.
2014-05-09 21:54:56 +00:00
Christopher Ferris
e58f9950ae
am 262700ac
: am aabcf287
: am b222097d
: Merge "Use larger neon instructions for moving data."
...
* commit '262700ac96e4cdb299f542e7e7723b980dd2244f':
Use larger neon instructions for moving data.
2014-05-09 21:54:55 +00:00
Calin Juravle
c768874c66
Align struct passwd definition with other variations of libc
...
Add pg_gecos ("real name") field to struct passwd.
Bug: 14679430
Bug: 12875898
Change-Id: I833ec2c46f6a6259b7232a8e3f7942968ef0b50d
2014-05-09 22:29:23 +01:00
Elliott Hughes
8fa5c2528c
Merge "Align arm64 stacks to 16 bytes in __bionic_clone."
2014-05-09 21:28:05 +00:00
Elliott Hughes
fff3c0fdcf
Align arm64 stacks to 16 bytes in __bionic_clone.
...
Also ensure that arm64/x86-64/x86 assembler uses local labels.
(There are are so many non-local labels in arm that fixing them
seems out of scope.)
Also synchronize the __bionic_clone.S comments.
Change-Id: I03b4f84780d996b54d6637a074638196bbb01cd4
2014-05-09 12:16:20 -07:00
Christopher Ferris
2146d142b2
Use larger neon instructions for moving data.
...
Included is a new target generic-neon that will use neon instructions
on 64 bit platforms where appropriate.
Change-Id: Iaf71b768780aa9240a24539cd87666ca9298e4c6
2014-05-09 11:29:37 -07:00
Elliott Hughes
137945c0d5
am 5f98c5a5
: am df3aa079
: am 55b4c8a4
: Merge "Hide the __bionic_clone and __bionic_clone_entry implementation details."
...
* commit '5f98c5a54a63be80c59bcdf0d278c3e37cf9b325':
Hide the __bionic_clone and __bionic_clone_entry implementation details.
2014-05-09 16:26:26 +00:00
Elliott Hughes
954cf0d4e2
Hide the __bionic_clone and __bionic_clone_entry implementation details.
...
clone(2) is the public symbol.
Also switch a test from __bionic_clone to clone; testing public API
means the test now works on glibc too.
Change-Id: If59def26a00c3afadb8a6cf9442094c35a59ffde
2014-05-08 19:00:23 -07:00
Elliott Hughes
b91610c95a
am 8eed5d8b
: am fae100f9
: am a3ce6bdb
: Merge "Fix LOG_ID_CRASH build failure."
...
* commit '8eed5d8bca6a3a2810bce17c2316ad44a3daa191':
Fix LOG_ID_CRASH build failure.
2014-05-08 18:31:14 +00:00
Elliott Hughes
19d97abe9b
am 64b53953
: am 96fd4159
: am 1ee18d0e
: Merge "Send bionic\'s fatal logging to the crash log."
...
* commit '64b539533dc3a6ca21c680003d60fe1fcdd6fbdb':
Send bionic's fatal logging to the crash log.
2014-05-08 18:31:12 +00:00
Elliott Hughes
ae0a62b014
Fix LOG_ID_CRASH build failure.
...
Change-Id: I66517e30c568d7f36f6bf6b1e4507ecf14f01226
2014-05-07 17:12:40 -07:00
Elliott Hughes
011101905d
Send bionic's fatal logging to the crash log.
...
Bug: 14159417
Change-Id: I7aa986fb8e11660035221f9bb4fe0bc40ac36c58
2014-05-07 16:35:59 -07:00
Elliott Hughes
66d8ed603b
am 62fcc2f6
: am b40f4243
: am 8ec38997
: Merge "Give bionic\'s __ANDROID_API__ a more reasonable value."
...
* commit '62fcc2f6f012e7c66e61e564c3592f466a2be188':
Give bionic's __ANDROID_API__ a more reasonable value.
2014-05-07 22:35:24 +00:00
Calin Juravle
9b6b11b0f9
am 71ee6889
: am ed4e01f7
: am e292875c
: Merge "Reserve some space in sem_t for the future."
...
* commit '71ee6889457eb238c6a1bcbba5ecf0587f8b71c8':
Reserve some space in sem_t for the future.
2014-05-07 22:35:22 +00:00
Calin Juravle
7fbe52b9af
am 478a1b57
: am c2787015
: am b6c48b20
: Merge "Allow for better utmp logging."
...
* commit '478a1b57bd44220373cedc72813ae7a9e26f328a':
Allow for better utmp logging.
2014-05-07 22:35:21 +00:00
Calin Juravle
c5413a55e1
am 2b180ea8
: am b742e82e
: am fc2af0ca
: Merge "Fix ino_t and suseconds_t"
...
* commit '2b180ea80c79db5887c03e7d6cf2b40e7036f8e0':
Fix ino_t and suseconds_t
2014-05-07 22:35:20 +00:00
Calin Juravle
363eb3de3a
am 2b4313a2
: am adf5e63a
: am 764a8882
: Merge "Leave more space for extensions in pthread_rwlockattr_t"
...
* commit '2b4313a2737a9df2c0ce2e05077980ce638643c3':
Leave more space for extensions in pthread_rwlockattr_t
2014-05-07 22:35:19 +00:00
Elliott Hughes
c47ec798bc
am 5d73936f
: am 1ecf7633
: am 6ad9cd41
: Merge "Change the interface for fatal logging."
...
* commit '5d73936fabd2cdcb336ec7c84d52e91a7d5e76de':
Change the interface for fatal logging.
2014-05-07 22:35:19 +00:00
Elliott Hughes
4aa2e6a32a
Give bionic's __ANDROID_API__ a more reasonable value.
...
This matches what frameworks/base does with Build.VERSION and means that
bionic's version number will always sort >= than any released version.
This should prevent confusion in code that builds both against bionic
and the NDK.
(Note that <sys/cdefs.h> drags this in, so it's always in the namespace.)
Bug: 14613709
Change-Id: I91fb745920e848a6b20f2f5797c0a7d6cde6c032
2014-05-07 12:57:51 -07:00
Calin Juravle
e292875cf5
Merge "Reserve some space in sem_t for the future."
2014-05-07 14:04:32 +00:00
Calin Juravle
b6c48b20e4
Merge "Allow for better utmp logging."
2014-05-07 14:04:22 +00:00
Calin Juravle
fc2af0ca47
Merge "Fix ino_t and suseconds_t"
2014-05-07 14:04:12 +00:00
Calin Juravle
764a888218
Merge "Leave more space for extensions in pthread_rwlockattr_t"
2014-05-07 14:04:01 +00:00
Elliott Hughes
c78368f04f
Change the interface for fatal logging.
...
This more general interface lets liblog give us any fatal log message,
regardless of source. This means we can remove the special case for
LOG_ALWAYS_FATAL with a simpler scheme that automatically works for
the VM too.
Change-Id: Ia6dbf7c3dbabf223081bd5159294835d954bb067
2014-05-06 20:37:22 -07:00
Elliott Hughes
8cfe8c1d40
am c46ffbd5
: am 4a7afa48
: am e05df251
: Merge "Fix a gethnamaddr.c warning that\'s already fixed upstream."
...
* commit 'c46ffbd51e48a8902db18b5f98d767766063c236':
Fix a gethnamaddr.c warning that's already fixed upstream.
2014-05-06 20:52:55 +00:00
Elliott Hughes
e05df25145
Merge "Fix a gethnamaddr.c warning that's already fixed upstream."
2014-05-06 20:42:10 +00:00
Elliott Hughes
80a4b70efd
am 33ba85cb
: am 856e6a35
: am 89ca3c5a
: Merge "Sync with upstream OpenBSD wcsftime.c."
...
* commit '33ba85cbd6807bd15f7b197a0807f6a95b6e57b5':
Sync with upstream OpenBSD wcsftime.c.
2014-05-06 20:29:36 +00:00
Elliott Hughes
3e5f0c9849
Fix a gethnamaddr.c warning that's already fixed upstream.
...
We're still way out of sync, but this cleans up a tiny corner.
Change-Id: I51e76601785bf351d6418841b56e08a900a84d82
2014-05-06 11:23:40 -07:00
Elliott Hughes
2716f3e805
Sync with upstream OpenBSD wcsftime.c.
...
They removed the code nobody wants rather than fix the ""/L"" mixup.
Even better!
Change-Id: Ib4333acf5e90d69586805a218d2894c5dffcb82f
2014-05-06 11:12:34 -07:00
Calin Juravle
6726862e9a
Fix ino_t and suseconds_t
...
Align ino_t and suseconds_t definitions with kernel
and OpenBSD upstream.
Bug: 14583346
Bug: 12875898
Change-Id: I0d97c6b4fc85b261472575290e6f6f2df1c8a36a
2014-05-06 18:41:26 +01:00
Elliott Hughes
59effda9ca
am 00708229
: am 41d97fa1
: am 100168ab
: Merge "Fix <math.h> to quieten most of our warnings."
...
* commit '0070822911bc5d5a6cf6c00c57b80b15803d8fbe':
Fix <math.h> to quieten most of our warnings.
2014-05-06 17:29:52 +00:00
Elliott Hughes
100168abff
Merge "Fix <math.h> to quieten most of our warnings."
2014-05-06 17:18:16 +00:00
Calin Juravle
0686d5e26f
Reserve some space in sem_t for the future.
...
Reserve 12 more bytes in sem_t to give room for future implementation
improvements. This gets us to a 16 bytes sem_t. Glibc uses 32 bytes (16
actual use + 16 reserved), while OpenBSD has 16 bytes (out of which 4
are for padding).
Bug: 14587103
Bug: 12875898
Change-Id: Id835cc5abf874c651e6b5ad5b8f29c9d6ab08d5a
2014-05-06 16:24:27 +01:00
Calin Juravle
7d8f303353
Allow for better utmp logging.
...
Increase (UT_NAMESIZE,UT_LINESIZE,UT_HOSTSIZE) to (32,32,256).
Nobody writes utmp on Android but it would be nice to be aligned
with others who use 32,32,256 (like glibc). If ever used it will produce
nicer logging. There is no consensus in BSDs for these values.
Bug: 14584341
Bug: 12875898
Change-Id: I94af10b982b8f9fcaea897c4cf968563f38403f9
2014-05-06 15:44:14 +01:00
Calin Juravle
289ce81cde
am bfc812da
: am c6141470
: am 7b1a95bc
: Merge "Add include guard to fileext.h"
...
* commit 'bfc812da93c785f66e9ad4486a94f6aaa3a6fa9d':
Add include guard to fileext.h
2014-05-06 13:54:53 +00:00
Calin Juravle
7b1a95bc76
Merge "Add include guard to fileext.h"
2014-05-06 13:47:19 +00:00
Calin Juravle
7c435f2415
Leave more space for extensions in pthread_rwlockattr_t
...
Change pthread_rwlockattr_t from int to long. On LP64 this gives us more
room for extensibility since longs are 8 bytes. glibc also reserves 8
bytes for this.
Bug: 14582681
Bug: 12875898
Change-Id: I55d599be0fdbbf0cb55957ec0ea62ab042bdee94
2014-05-06 13:40:24 +01:00
Elliott Hughes
9a5a3e8e74
Fix <math.h> to quieten most of our warnings.
...
I've reported the wcsftime bug upstream, but we really just want to use -D
to ensure the buggy code isn't built. (I've also brought our strftime a bit
closer to upstream now we have the right define.)
I don't think upstream is likely to fix all their sign-compare and
uninitialized warnings, so let's just silence them.
As for libm, again upstream isn't likely to fix all their warnings, and
silencing those made the ones that were our fault stand out. I've fixed
our <math.h> to fix the warnings caused by our lack of definitions for
the non-imprecise long-double functions. I checked the C99 standard, and
all these functions are there.
Change-Id: Iee8e1182c1db375058fb2c451eceb212bab47a37
2014-05-05 21:19:47 -07:00
Elliott Hughes
4e6c71fab9
am b8d60a2a
: am e71e6a2e
: am 185dd72a
: Merge "bionic: make epoll_event structure packed"
...
* commit 'b8d60a2a0c7febce87b0511c86c3fc168c8089a4':
bionic: make epoll_event structure packed
2014-05-06 02:59:58 +00:00
Philip Hatcher
9ded07cff6
bionic: make epoll_event structure packed
...
Description: In the kernel the epoll_event structure is packed
in 64 bit kernel builds to allow the structure to be more easily
compatible with 32 bit user space. As a result, when user space
is 64-bit the structure must be packed as well.
Add unit test to show the ptr alignment issue.
Change-Id: I2c4848d5e38a357219091f350f9b6e3da05090da
Signed-off-by: Philip Hatcher <philip.hatcher@intel.com>
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Reviewed-by: Hazarika, Prodyut <prodyut.hazarika@intel.com>
Tested-by: Hazarika, Prodyut <prodyut.hazarika@intel.com>
2014-05-05 19:48:55 -07:00
Elliott Hughes
30dc3f8313
am 1911676c
: am e0cbc5da
: am 4356adc3
: Merge "Remove the non-standard time64 stuff for LP64."
...
* commit '1911676cecafeb9ae31bfb2718c7d3a351ce50b6':
Remove the non-standard time64 stuff for LP64.
2014-05-06 02:02:44 +00:00
Elliott Hughes
52defb7c70
Remove the non-standard time64 stuff for LP64.
...
We need a workaround in strftime as long as we still need to support
64-bit times on LP32.
Change-Id: I8ffb616f6312d4063fb9ea3c36b52653e8f4c5f8
2014-05-05 17:14:02 -07:00
Elliott Hughes
a07758a8bf
am 3356c72f
: am 48931ca1
: am 629d892d
: Merge "Update the NOTICE files and improve the script slightly."
...
* commit '3356c72f273ba62128088e37214d786aa54b06cc':
Update the NOTICE files and improve the script slightly.
2014-05-05 23:37:25 +00:00
Elliott Hughes
629d892d0b
Merge "Update the NOTICE files and improve the script slightly."
2014-05-05 23:24:00 +00:00
Elliott Hughes
bfa582d032
Update the NOTICE files and improve the script slightly.
...
Change-Id: Ia131634cd97ca9523e1b63dce41f66247cbaa311
2014-05-05 16:23:15 -07:00
Elliott Hughes
2a0d2202ef
am b303cdc2
: am 9d586d85
: am 6916166e
: Merge "Sync with upstream OpenBSD."
...
* commit 'b303cdc2c18a28becb2be5b5394dc599022f7ace':
Sync with upstream OpenBSD.
2014-05-05 22:18:03 +00:00
Elliott Hughes
7ef978f183
am c13ea3e2
: am bab07de0
: am ad534985
: Merge "Disable %n in printf and vfwprintf."
...
* commit 'c13ea3e2365a4b42c10fa437c588e25a9807687e':
Disable %n in printf and vfwprintf.
2014-05-05 21:58:52 +00:00
Elliott Hughes
e0a36f49a9
Sync with upstream OpenBSD.
...
These trivial differences are are only current differences from upstream
OpenBSD.
Change-Id: Iddbee2c803911915a25e1da8b246e8403fa72daf
2014-05-05 14:57:23 -07:00
Elliott Hughes
ad534985ec
Merge "Disable %n in printf and vfwprintf."
2014-05-05 21:49:22 +00:00
Elliott Hughes
e2341d08fa
Disable %n in printf and vfwprintf.
...
Bug: 14492135
Change-Id: If190bede29e5f68a65043ddbe8e878c660933d03
2014-05-05 14:43:17 -07:00
Elliott Hughes
eac1c72997
am 2357a4cc
: am d2943b60
: am 8ec21d9d
: Merge "Switch to current upstream OpenBSD wsetup.c."
...
* commit '2357a4cc7451e0387c236ab19467254483250cc1':
Switch to current upstream OpenBSD wsetup.c.
2014-05-05 21:41:39 +00:00
Elliott Hughes
8ec21d9ded
Merge "Switch to current upstream OpenBSD wsetup.c."
2014-05-05 21:33:22 +00:00
Elliott Hughes
53b24382f5
Switch to current upstream OpenBSD wsetup.c.
...
Change-Id: I2c1123f3e1d3c4af7fd7bf354e763934a39b78c0
2014-05-05 14:31:20 -07:00
Dmitriy Ivanov
e2822af5ee
am c2419e9d
: am e9e4f08e
: am 580b2469
: Merge "Fixes for __cxa_finalize"
...
* commit 'c2419e9df73156f348f498514d5a423846ce1514':
Fixes for __cxa_finalize
2014-05-05 21:15:34 +00:00
Dmitriy Ivanov
580b246917
Merge "Fixes for __cxa_finalize"
2014-05-05 21:04:33 +00:00
Dmitriy Ivanov
6b56691a67
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
2014-05-05 11:36:57 -07:00
Elliott Hughes
f4c78487e3
am 2d92358a
: am 23481495
: am a334c1ec
: Merge "Fix iswctype."
...
* commit '2d92358af5ad1846bcbe449f810bc978053dd2dd':
Fix iswctype.
2014-05-04 03:33:34 +00:00
Elliott Hughes
efe3deb908
am 821fc960
: am d18a844c
: am 640b4a5a
: Merge "Switch to current upstream OpenBSD fwrite.c."
...
* commit '821fc9603351815b4dc8cd0217204f6cf68d96d0':
Switch to current upstream OpenBSD fwrite.c.
2014-05-04 03:30:02 +00:00
Elliott Hughes
a334c1ec13
Merge "Fix iswctype."
2014-05-04 03:25:45 +00:00
Elliott Hughes
792ae72e41
Switch to current upstream OpenBSD fwrite.c.
...
Change-Id: Ife527aafc1e5438f477d711902efe6e6f59f3f8e
2014-05-02 18:22:23 -07:00
Elliott Hughes
39372de58c
am c4ced713
: am c01893cd
: am e987803c
: Merge "Sync with current OpenBSD stdio."
...
* commit 'c4ced713b857b68254effa753aad461082a41c3d':
Sync with current OpenBSD stdio.
2014-05-03 01:05:51 +00:00
Elliott Hughes
f1ada79a83
Sync with current OpenBSD stdio.
...
We'd fallen a little behind.
Bug: 14492135
Change-Id: Ic1137ef10bffccecebd5ce51086c23db006d0ea3
2014-05-02 17:56:56 -07:00
Elliott Hughes
c42f5c6fe6
Fix iswctype.
...
This doesn't matter until we fix the other isw* functions, of course.
Change-Id: I0baed1c933259cf22444da391bc4a56446d66773
2014-05-02 16:25:59 -07:00
Elliott Hughes
bd0d92794f
am 885275ec
: am 9abfd44b
: am d6ff0dce
: Merge "Use the OpenBSD wcsftime."
...
* commit '885275eccac451fd2fce1e4e0a997976e39dc243':
Use the OpenBSD wcsftime.
2014-05-02 23:11:12 +00:00
Elliott Hughes
efaa461bd6
Use the OpenBSD wcsftime.
...
Change-Id: I81929355d245ba1e58b4a464ca6cf45915e0238e
2014-05-02 15:57:50 -07:00
Calin Juravle
9287223674
Add include guard to fileext.h
...
Change-Id: I89b0e3bf0b15989727b5903b40bec92d49e122d9
2014-05-02 17:34:58 +01:00
Elliott Hughes
f3e94ae85f
am 6e62c932
: am fb49002b
: am 790890fd
: Merge "Fix wchar_t signedness problems found on x86-64."
...
* commit '6e62c9326aa15f68ce52216b7c3ce3f4f49f7279':
Fix wchar_t signedness problems found on x86-64.
2014-05-02 02:38:54 +00:00
Elliott Hughes
0d0ccfe2ce
Fix wchar_t signedness problems found on x86-64.
...
The existing tests caught this.
Change-Id: I6269844ae4301fd2c596241a59e97eb67ef166fa
2014-05-01 19:03:18 -07:00
Elliott Hughes
dc0ef86203
am c2ee2cd0
: am ba8c37f1
: am 7da31910
: Merge "Fix wchar.cpp signed/unsigned comparison build failure."
...
* commit 'c2ee2cd09dfcaa9780285c948c091fd85d6b2171':
Fix wchar.cpp signed/unsigned comparison build failure.
2014-05-02 01:23:15 +00:00
Elliott Hughes
568c86a489
Fix wchar.cpp signed/unsigned comparison build failure.
...
Change-Id: Id20b91f3d57c4430987b5cc88ac99c245801d73b
2014-05-01 16:49:55 -07:00
Elliott Hughes
831e1d796c
am 5d4c9114
: am 745b023b
: am f0291ca6
: Merge "Switch to a working UTF-8 mb/wc implementation."
...
* commit '5d4c911436445e627dcc9533bfc0792941b83a44':
Switch to a working UTF-8 mb/wc implementation.
2014-05-01 23:21:54 +00:00
Elliott Hughes
f0291ca6b7
Merge "Switch to a working UTF-8 mb/wc implementation."
2014-05-01 23:12:41 +00:00
Elliott Hughes
5a0aa3dee2
Switch to a working UTF-8 mb/wc implementation.
...
Although glibc gets by with an 8-byte mbstate_t, OpenBSD uses 12 bytes (of
the 128 bytes it reserves!).
We can actually implement UTF-8 encoding/decoding with a 0-byte mbstate_t
which means we can make things work on LP32 too, as long as we accept the
limitation that the caller needs to present us with a complete sequence
before we'll process it.
Our behavior is fine when going from characters to bytes; we just
update the source wchar_t** to say how far through the input we got.
I'll come back and use the 4 bytes we do have to cope with byte sequences
split across multiple input buffers. The fact that we don't support
UTF-8 sequences longer than 4 bytes plus the fact that the first byte of
a UTF-8 sequence encodes the length means we shouldn't need the other
fields OpenBSD used (at the cost of some recomputation in cases where a
sequence is split across buffers).
This patch also makes the minimal changes necessary to setlocale(3) to
make us behave like glibc when an app requests UTF-8. (The difference
being that our "C" locale is the same as our "C.UTF-8" locale.)
Change-Id: Ied327a8c4643744b3611bf6bb005a9b389ba4c2f
2014-05-01 14:46:54 -07:00
Elliott Hughes
834c136cec
am 0d443726
: am d2623501
: am 8979cfe1
: Merge "Keep the kernel header scrubber\'s data structures in sync."
...
* commit '0d4437263e65b7acc4546753ac79577b94ccc6ba':
Keep the kernel header scrubber's data structures in sync.
2014-05-01 17:36:06 +00:00
Elliott Hughes
fddbafdc0a
Keep the kernel header scrubber's data structures in sync.
...
If you rewrite the tokens of a #if you need to rewrite the expression to match
because either might be used later. This was showing up as SIGRTMAX being
rewritten in a #define but not in the #ifndef that guarded it, for which case
I've added a unit test.
Change-Id: I6929675461a1afe272edd667594529fd84a3dc4d
2014-05-01 10:27:49 -07:00
Elliott Hughes
fc4d9263a3
am 01dc4152
: am 4a41581a
: am 9fb53dd4
: Merge "Make SIGRTMIN hide the real-time signals we use internally."
...
* commit '01dc4152b736c822a11cbbff3240eec7143659e3':
Make SIGRTMIN hide the real-time signals we use internally.
2014-04-30 18:48:56 +00:00
Calin Juravle
3fdf865669
am 9981c35d
: am b55562dd
: am 77473e40
: Merge "Fix cpu_set_t"
...
* commit '9981c35d3e4d4be35ca827b479e49e2f703bade0':
Fix cpu_set_t
2014-04-30 17:36:24 +00:00
Dan Albert
e9681d9cbc
am 9f2d5003
: am a51f7153
: am 45667317
: Merge "Adds quick_exit(3) and at_quick_exit(3) from freebsd"
...
* commit '9f2d500334da3f7f4d52e73f26419e467ecea09b':
Adds quick_exit(3) and at_quick_exit(3) from freebsd
2014-04-30 17:36:20 +00:00
Calin Juravle
742150e088
am f595e1ff
: am fb15c73f
: am d4ae59dc
: Merge "Reserve space in mbstate to allow for proper wchar support"
...
* commit 'f595e1ffdab12ef85a134638fabdf52a2d92db52':
Reserve space in mbstate to allow for proper wchar support
2014-04-30 17:36:19 +00:00
Elliott Hughes
c14cde0b03
am c8af363f
: am ff7dec44
: am 01933d92
: Merge "Switch to OpenBSD stdio wide printf functions."
...
* commit 'c8af363f50461b87432ef20d011f4aab72f77fcc':
Switch to OpenBSD stdio wide printf functions.
2014-04-30 17:36:18 +00:00
Elliott Hughes
8352c69ea1
am a9b10332
: am 608aa733
: am 85e780d0
: Merge "Switch to OpenBSD stdio wide get/put functions."
...
* commit 'a9b10332b451298ca7afc7ff00804c3940cd15aa':
Switch to OpenBSD stdio wide get/put functions.
2014-04-30 17:34:10 +00:00
Elliott Hughes
574eed1bde
am b21c7985
: am 25009c3b
: am c19c8e6f
: Merge "Switch to the OpenBSD implementations of the wide scanf functions."
...
* commit 'b21c7985c434a6c8641b4a53072f06bbc5f6ca2b':
Switch to the OpenBSD implementations of the wide scanf functions.
2014-04-30 17:34:09 +00:00
Elliott Hughes
0990d4fda8
Make SIGRTMIN hide the real-time signals we use internally.
...
__SIGRTMIN will continue to tell the truth. This matches glibc's
behavior (as evidenced by the fact that we don't need a special case
in the strsignal test now).
Change-Id: I1abe1681d516577afa8cd39c837ef12467f68dd2
2014-04-30 10:06:09 -07:00
Calin Juravle
77473e4085
Merge "Fix cpu_set_t"
2014-04-30 16:09:08 +00:00
Dan Albert
4566731772
Merge "Adds quick_exit(3) and at_quick_exit(3) from freebsd"
2014-04-30 15:39:14 +00:00
Calin Juravle
b743790cca
Fix cpu_set_t
...
- extend CPU_SETSIZE for LP64
- fix CPU_(AND|OR|XOR) macros
- fix CPU_OP_S macro
- fix __sched_cpucount
- tidy up the code
Change-Id: I741afff4d0c473e8a1ee6b4141981dc24467e0d4
2014-04-30 14:30:15 +01:00
Elliott Hughes
eaefa1a5ae
am 7bc266b1
: am 42f33234
: am c6e563c8
: Merge "Fix build (signed char issue)."
...
* commit '7bc266b1285051d7ffaa1d312f1f3e08dc5f2bfa':
Fix build (signed char issue).
2014-04-30 12:50:57 +00:00
Calin Juravle
d4ae59dcf2
Merge "Reserve space in mbstate to allow for proper wchar support"
2014-04-30 10:34:09 +00:00
Dan Albert
b8425c549a
Adds quick_exit(3) and at_quick_exit(3) from freebsd
...
Change-Id: I4fe88abd8f7b8aa45e58aeb2529d59a8d555d338
2014-04-29 19:17:00 -07:00
Elliott Hughes
806b2a94b1
am 934e793b
: am 15848671
: am 55cd8276
: Merge "Switch to the OpenBSD wcsto* functions."
...
* commit '934e793b19bd280e16b0ef76275dcad590bdc48f':
Switch to the OpenBSD wcsto* functions.
2014-04-30 00:53:09 +00:00
Elliott Hughes
94336d8ecf
Switch to OpenBSD stdio wide printf functions.
...
Change-Id: Icf4f8685d021ec6b7482ca1cc021ce8184098e4a
2014-04-29 17:39:29 -07:00
Elliott Hughes
c932225e10
Switch to OpenBSD stdio wide get/put functions.
...
Change-Id: I71f8769cdea874e55d397ca7682d9d4e659d3dcb
2014-04-29 17:08:03 -07:00
Elliott Hughes
01ae00f317
Switch to the OpenBSD implementations of the wide scanf functions.
...
This also gets us the C99 wcstoimax and wcstoumax, and a working fgetwc and
ungetwc, all of which are needed in the implementation.
This also brings several other files closer to upstream.
Change-Id: I23b025a8237a6dbb9aa50d2a96765ea729a85579
2014-04-29 16:28:56 -07:00
Elliott Hughes
770491fb4f
Fix build (signed char issue).
...
Change-Id: I05d78f4c1599ed9a0c1285f9eb1e89bc2f55c24d
2014-04-29 16:05:58 -07:00
Elliott Hughes
3d7a0d9b08
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
2014-04-29 14:53:11 -07:00
Calin Juravle
eab395e4a8
Reserve space in mbstate to allow for proper wchar support
...
Bug: 14382788
Change-Id: If023ac9bb65f95135cae7ebe89147e3985a69a96
2014-04-29 20:28:29 +01:00
Elliott Hughes
02cf011db0
am c3221fb5
: am 07bab525
: Merge "Add mbtowc and fix mbrtowc."
...
* commit 'c3221fb531f437440646be3a6974b0e662442560':
Add mbtowc and fix mbrtowc.
2014-04-29 01:04:12 +00:00
Elliott Hughes
0a5e26da1e
Add mbtowc and fix mbrtowc.
...
Change-Id: I48786cd82587e61188d40f6fd6e11ac05e857ae9
2014-04-28 17:51:13 -07:00
Elliott Hughes
331754c7f3
am 777078b1
: am 0fd2e87a
: Merge "Replace our broken wcswcs with the working upstream one."
...
* commit '777078b1a68960ae9764fe6449af5525657d6803':
Replace our broken wcswcs with the working upstream one.
2014-04-29 00:23:53 +00:00
Elliott Hughes
d299bcfdad
Replace our broken wcswcs with the working upstream one.
...
Change-Id: I2952684df5674d10f0564d92c2cd42597725c0e3
2014-04-28 16:46:24 -07:00
Elliott Hughes
95dfea204c
am 50769026
: am 3ac3f3fd
: Merge "Don\'t use so much stack in tzcode."
...
* commit '50769026e8538db260a6f986edeb6d08ec295b8e':
Don't use so much stack in tzcode.
2014-04-27 03:26:11 +00:00
Elliott Hughes
329103d3e2
Don't use so much stack in tzcode.
...
Bug: 14313703
Bug: https://code.google.com/p/android/issues/detail?id=61130
Change-Id: Id9b240fce20d4a6f2660792070e02b2b5f287655
2014-04-25 21:51:26 -07:00
Elliott Hughes
d3dc0c1831
am 4a40dea6
: am 213e46f7
: Merge "Fix brk/sbrk error checking."
...
* commit '4a40dea62949b7ed562bac7173962800ed89b01d':
Fix brk/sbrk error checking.
2014-04-26 02:46:37 +00:00
Elliott Hughes
533dde4dbf
Fix brk/sbrk error checking.
...
Note that the kernel returns the current break on error or if the requested
break is smaller than the minimum break, or the new break. I don't know where
we got the idea that the kernel could return -1.
Also optimizes the query case.
Also hides an accidentally-exported symbol for LP64.
Change-Id: I0fd6b8b14ddf1ae82935c0c3fc610da5cc74932e
2014-04-25 19:38:33 -07:00
Colin Cross
cc97b7d9cd
am e1e3430b
: am eff450ff
: Merge "Reserve space in pthread structures for future extensibility."
...
* commit 'e1e3430b9a4725c9506f10ab1b9b3be719e99c0c':
Reserve space in pthread structures for future extensibility.
2014-04-24 22:49:50 +00:00
Calin Juravle
b1cacd4245
Reserve space in pthread structures for future extensibility.
...
Make our structures equal in size with glibc structures. This should
give us plenty of space to implement any missing feature.
Bug: 13278744
Bug: 12875898
(cherry picked from commit cf83fd77ca
)
Change-Id: I76968d31024eb51bc73887687e5ac492eb02a27f
2014-04-24 22:07:52 +00:00
Elliott Hughes
2c03e8ff06
am cf57e2c6
: am 08bfcff0
: Merge "Allow liblog to pass failure reasons to debuggerd."
...
* commit 'cf57e2c645116eefd64801be035512621df0ba5c':
Allow liblog to pass failure reasons to debuggerd.
2014-04-24 20:47:46 +00:00
Elliott Hughes
08bfcff0d4
Merge "Allow liblog to pass failure reasons to debuggerd."
2014-04-24 20:29:43 +00:00
Greg Hackmann
da4aad855e
am 0f77d775
: am ab290718
: Merge "Revert "Reserve space in pthread structures for future extensibility.""
...
* commit '0f77d7758ac85a000f2ce5606051b8a7d121f6dd':
Revert "Reserve space in pthread structures for future extensibility."
2014-04-24 18:26:02 +00:00
Greg Hackmann
ab290718e3
Merge "Revert "Reserve space in pthread structures for future extensibility.""
2014-04-24 18:12:28 +00:00
Greg Hackmann
6b64000ef0
Revert "Reserve space in pthread structures for future extensibility."
...
This reverts commit cf83fd77ca
.
Change-Id: I4f69e86ffe1c267a9018eb489d909237534c6cf9
2014-04-24 18:11:23 +00:00
Calin Juravle
18955d6909
am 9b720750
: am f2aeca50
: Merge "Remove an unsed include dir"
...
* commit '9b720750c1486627d774973c51fc210a1ad9def5':
Remove an unsed include dir
2014-04-24 17:40:43 +00:00
Calin Juravle
e9df9c52dc
am 123253b8
: am 690401db
: Merge "Removed non-existing include dir"
...
* commit '123253b86893d50f13d82f489e47924a4b69c228':
Removed non-existing include dir
2014-04-24 17:31:17 +00:00
Calin Juravle
f2aeca505c
Merge "Remove an unsed include dir"
2014-04-24 16:40:50 +00:00
Calin Juravle
fbb46a0c9a
Remove an unsed include dir
...
Change-Id: I05aa1e7e0639a5ec5576bf7646f35d2e5b157c09
2014-04-24 17:40:06 +01:00
Calin Juravle
690401db7a
Merge "Removed non-existing include dir"
2014-04-24 16:29:50 +00:00
Calin Juravle
4b7c4f886f
Removed non-existing include dir
...
Change-Id: I3e00a8471e6d94f596a34bdfdb26a0caba23dd82
2014-04-24 17:17:02 +01:00
Calin Juravle
3b5bca823d
am 131d8e38
: am 477d14b0
: Merge "Reserve space in pthread structures for future extensibility."
...
* commit '131d8e38e45902a1d33ed257b62972bfcd26dd92':
Reserve space in pthread structures for future extensibility.
2014-04-24 15:43:51 +00:00
Calin Juravle
60a7622d48
am 334da4c9
: am ae77f74b
: Merge "Clean-up _fpmath and fake_long_doubles"
...
* commit '334da4c9a52f544bea0014da139766f2c0f7cf21':
Clean-up _fpmath and fake_long_doubles
2014-04-24 15:43:39 +00:00
Calin Juravle
477d14b092
Merge "Reserve space in pthread structures for future extensibility."
2014-04-24 11:35:37 +00:00
Calin Juravle
ae77f74bcf
Merge "Clean-up _fpmath and fake_long_doubles"
2014-04-24 10:12:58 +00:00
Elliott Hughes
2e3b7108b5
Allow liblog to pass failure reasons to debuggerd.
...
assert(3) already does this, but LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF
have been missing out.
Change-Id: I1d6214c4f792fa0d4ba3c14eded3fc9c332bd3c5
2014-04-23 14:52:49 -07:00
Elliott Hughes
4cec364af4
am bdce3e63
: am 3b0433f3
: Merge "Remove two dead files."
...
* commit 'bdce3e63fc4cfc2b1b2db05007326e1608f3228a':
Remove two dead files.
2014-04-23 20:07:41 +00:00
Elliott Hughes
a64d76895d
Remove two dead files.
...
I forgot to remove these in the change that stopped building them
(eae5902e73
).
Change-Id: I4665fa9f6b9b80c51778d5e82b49406fe56db9a6
2014-04-23 12:51:37 -07:00
Ruchi Kandoi
eba6501c20
am 88920300
: am aa3d46a4
: Merge "prctl: Adds the PR_SET_TIMERSLACK_PID option"
...
* commit '889203005b62f0c2124a7fcae12f9824cbc78868':
prctl: Adds the PR_SET_TIMERSLACK_PID option
2014-04-23 19:29:32 +00:00
Ruchi Kandoi
b84926b95c
prctl: Adds the PR_SET_TIMERSLACK_PID option
...
Allows software to set timer clack for other thread.
Change-Id: Ifa9d2cc7844ec581356bce15434609242fd898a8
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2014-04-23 19:13:15 +00:00
Calin Juravle
1abc9ff6a5
Clean-up _fpmath and fake_long_doubles
...
- promoted IEEEld2bits to fpmath since most of the where the same for
diffrent archs
- removed _fpmath
- reinstated weak_references
- moved isfinite and isnormal to libc
- clean up fake_long_doubles
- clean up some useless ifdefs
- added missing nexttoward* tests
Bug: 14134235
Change-Id: I95639c4885653fe47fd7dc0570ee5bb3389bbc6b
2014-04-23 19:03:06 +01:00
Calin Juravle
cf83fd77ca
Reserve space in pthread structures for future extensibility.
...
Make our structures equal in size with glibc structures. This should
give us plenty of space to implement any missing feature.
Bug: 13278744
Bug: 12875898
Change-Id: I980017fd5942411ebc5ac32b2673a10a20db68c8
2014-04-23 18:46:50 +01:00
Elliott Hughes
a26d162337
am 81f4521d
: am 532ad903
: Merge "Switch to the upstream OpenBSD getenv/putenv/setenv implementation."
...
* commit '81f4521d1f92532bb719f8bfbd7107df449b0d97':
Switch to the upstream OpenBSD getenv/putenv/setenv implementation.
2014-04-23 02:01:16 +00:00
Elliott Hughes
38a8744366
am c3266530
: am d8f8e9c5
: Merge "Remove strntoimax and strntoumax from the future."
...
* commit 'c32665300fc9b9407cef93881ce05fb48bf29f06':
Remove strntoimax and strntoumax from the future.
2014-04-23 01:57:41 +00:00
Elliott Hughes
532ad903d2
Merge "Switch to the upstream OpenBSD getenv/putenv/setenv implementation."
2014-04-23 01:52:06 +00:00
Elliott Hughes
eae5902e73
Remove strntoimax and strntoumax from the future.
...
Where do these turds come from?
Change-Id: Id9ad2cc85c6128aa63b5d56ff2aa455bde39a5eb
2014-04-22 17:56:42 -07:00
Elliott Hughes
58d9e280d4
Switch to the upstream OpenBSD getenv/putenv/setenv implementation.
...
This fixes all the bugs found by the new tests.
Change-Id: Id5a5f9f39a0620208bafa053f871a044725b4795
2014-04-22 17:41:00 -07:00
Elliott Hughes
91f4eb485f
am 48359851
: am c6cd8846
: Merge "LP64 shouldn\'t include the non-standard <time64.h> cruft."
...
* commit '4835985156538c05d562aeefe8e659d4b6d5c36f':
LP64 shouldn't include the non-standard <time64.h> cruft.
2014-04-22 23:01:01 +00:00
Elliott Hughes
aef16ef2c4
am 3f9b56c7
: am d0ecf597
: Merge "Use -fvisibility=hidden to build libc_gdtoa."
...
* commit '3f9b56c75c3c9b0df085d11702595945aba15b7a':
Use -fvisibility=hidden to build libc_gdtoa.
2014-04-22 21:20:49 +00:00
Elliott Hughes
8d77bce185
LP64 shouldn't include the non-standard <time64.h> cruft.
...
This patch includes just enough to keep external/chromium_org building
until they switch 64-bit Android over to using the regular non-Android code.
Change-Id: Iecaf274efa46ae18a42d5e3439c5aa4f909177c1
2014-04-22 13:55:58 -07:00
Elliott Hughes
cce36c1878
Use -fvisibility=hidden to build libc_gdtoa.
...
Bug: 12177745
Change-Id: Ia4ac71e1a3a237e764c809cc591622f8952ed642
2014-04-22 12:32:49 -07:00
Elliott Hughes
87a4339dc3
am 607475b8
: am c5eea6d3
: Merge "Fix WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN."
...
* commit '607475b8570e1b203a23d2e904a628161bb7281e':
Fix WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN.
2014-04-22 18:31:25 +00:00
Elliott Hughes
c5eea6d386
Merge "Fix WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN."
2014-04-22 17:00:33 +00:00
Torne (Richard Coles)
ca6a210693
am d56dd740
: am b1bfa795
: Merge "Allow sharing the RELRO section via a file."
...
* commit 'd56dd7403603c653e7622850ba30c7469a1ada7c':
Allow sharing the RELRO section via a file.
2014-04-22 13:37:43 +00:00
Torne (Richard Coles)
b33b9aa98c
am 2b981e8f
: am c363e5dd
: Merge "Support loading libraries to a reserved address."
...
* commit '2b981e8f612b4808b221724ce84dd8610d123fa2':
Support loading libraries to a reserved address.
2014-04-22 13:37:42 +00:00
Torne (Richard Coles)
e115abbd3c
am cf68e0db
: am 16f6429c
: Merge "Add android_dlopen_ext() interface to linker."
...
* commit 'cf68e0db1f6a9e6ca7aa7c267b2ce99ed02df3ae':
Add android_dlopen_ext() interface to linker.
2014-04-22 13:37:41 +00:00
Elliott Hughes
5b3aa6c21a
am 71eb83ac
: am f3489807
: Merge "Clean up and document our hacks for building BSD source."
...
* commit '71eb83acc5e273c847c0145573da0907fa51df3e':
Clean up and document our hacks for building BSD source.
2014-04-22 13:37:40 +00:00
Torne (Richard Coles)
b1bfa7956c
Merge "Allow sharing the RELRO section via a file."
2014-04-22 10:39:49 +00:00
Torne (Richard Coles)
c363e5dd0a
Merge "Support loading libraries to a reserved address."
2014-04-22 10:33:34 +00:00
Torne (Richard Coles)
16f6429c38
Merge "Add android_dlopen_ext() interface to linker."
2014-04-22 10:33:07 +00:00
Elliott Hughes
83c07b5e50
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
2014-04-21 18:09:46 -07:00
Elliott Hughes
d39f3f2c2e
Clean up and document our hacks for building BSD source.
...
Change-Id: Ic591e22fa5b363bb68376b9f25814c0e5bd83fbf
2014-04-21 17:13:46 -07:00
Elliott Hughes
26d9ed8388
am 4af8a473
: am 44a98d5c
: Merge "clang is >= 3.4 now; remove a hack."
...
* commit '4af8a473a44fd1a01186bac2f3b458ad08dc3f09':
clang is >= 3.4 now; remove a hack.
2014-04-21 18:36:17 +00:00
Elliott Hughes
4fefac5c1b
am 5aa48ee3
: am d812b219
: Merge "Remove unused #defines from "arith.h"."
...
* commit '5aa48ee3ce9d0b9eca4534c817e126307d8cce8d':
Remove unused #defines from "arith.h".
2014-04-21 18:29:10 +00:00
Elliott Hughes
44a98d5c12
Merge "clang is >= 3.4 now; remove a hack."
2014-04-21 18:26:22 +00:00
Elliott Hughes
d3679c815e
clang is >= 3.4 now; remove a hack.
...
Change-Id: I8d976ee0fd88eca9779c87b5d7e27f46b4b1b489
2014-04-21 10:15:14 -07:00
Elliott Hughes
2e003f4324
Remove unused #defines from "arith.h".
...
These were defined in upstream's per-arch files, so I carried them across,
but they aren't actually used anywhere.
Change-Id: Ica9796201dcd2caa5c34070c0dd226fc2050ba47
2014-04-21 09:59:00 -07:00
Dmitriy Ivanov
abbee0a077
am 0baa0f74
: am 6d09ec3c
: Merge "Fix for libgcc compat generation script."
...
* commit '0baa0f74d13bf8a7da1a1a431d938b4c53f7049d':
Fix for libgcc compat generation script.
2014-04-21 15:59:25 +00:00
Dmitriy Ivanov
6d09ec3c2f
Merge "Fix for libgcc compat generation script."
2014-04-19 01:12:58 +00:00
Dmitriy Ivanov
6a45fe9872
Fix for libgcc compat generation script.
...
Taking into account possibility that external symbol
could have been an OBJECT instead of function.
b/14090368
Change-Id: Iac173d2dd1309ed53024306578137c26b1dbbf15
2014-04-18 17:34:20 -07:00
Elliott Hughes
3728877b9c
am ccad9736
: am 9b22c21c
: Merge "Make uselocale(3) claim its pthread key in an ELF constructor."
...
* commit 'ccad97362ae773cadbbc41900e7440db6e8748dd':
Make uselocale(3) claim its pthread key in an ELF constructor.
2014-04-18 22:35:05 +00:00
Elliott Hughes
9b22c21cee
Merge "Make uselocale(3) claim its pthread key in an ELF constructor."
2014-04-18 22:27:20 +00:00
Elliott Hughes
f112aed500
am 45d15f7d
: am 1acd9716
: Merge "Switch to upstream OpenBSD fread/fvwrite."
...
* commit '45d15f7dbeb8d72e5a671023e945b2884f061fdf':
Switch to upstream OpenBSD fread/fvwrite.
2014-04-18 22:25:22 +00:00
Elliott Hughes
1acd9716c2
Merge "Switch to upstream OpenBSD fread/fvwrite."
2014-04-18 22:15:02 +00:00
Dan Albert
089ec7dd91
am 302f8a92
: am fe0c6ae5
: Merge "Brings LC_* defs into line with POSIX"
...
* commit '302f8a92e4318d4637df8497a73bcc12446f051a':
Brings LC_* defs into line with POSIX
2014-04-18 21:59:48 +00:00
Elliott Hughes
439c774f44
am 30659d4f
: am cd79c8b1
: Merge "Fix a wchar.wcstombs_wcrtombs test failure."
...
* commit '30659d4ff002b3c09cb1a5ae67b0d416afdf0383':
Fix a wchar.wcstombs_wcrtombs test failure.
2014-04-18 21:56:16 +00:00
Dan Albert
fe0c6ae561
Merge "Brings LC_* defs into line with POSIX"
2014-04-18 21:49:24 +00:00
Dan Albert
db68e56997
Brings LC_* defs into line with POSIX
...
POSIX requires that LC_* constants be defined as macros, and libc++ is testing
for this. Source: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html
Change-Id: Id0653e54d74f12179ef88cadf7b5d6ba1bae3cdb
2014-04-18 21:48:57 +00:00
Elliott Hughes
cdbd17292e
am 06b5431e
: am b88da065
: Merge "Upgrade to current vfprintf."
...
* commit '06b5431eaabec853a03013c9c8af1124aee0f4d4':
Upgrade to current vfprintf.
2014-04-18 21:18:36 +00:00
Elliott Hughes
2f68866f37
Make uselocale(3) claim its pthread key in an ELF constructor.
...
pthread_once is nice for decoupling, but it makes resource availability less
predictable, which is a bad thing.
This fixes a test failure if uselocale(3) is called before
pthread.pthread_key_create_lots runs.
Change-Id: Ie2634f986a50e7965582d4bd6e5aaf48cf0d55c8
2014-04-18 13:34:26 -07:00
Elliott Hughes
1b836ee6f8
Fix a wchar.wcstombs_wcrtombs test failure.
...
Looks like I screwed up a last-minute refactor and didn't re-run the tests.
Change-Id: I90a710ae66a313a9812859650aa0b4e8c6bc57f9
2014-04-18 13:32:33 -07:00
Elliott Hughes
9d3c2dd11f
Switch to upstream OpenBSD fread/fvwrite.
...
Change-Id: I3dc11083693bc8d99edc0cbcc6f70dc9e5dc6565
2014-04-18 13:13:04 -07:00
Elliott Hughes
756952d6e9
am a984c3ad
: am 9e94ea5c
: Merge "Upgrade our <ctype.h> implementation to OpenBSD head."
...
* commit 'a984c3ad3b9f8fcc63cd17bbbea2978b93c16533':
Upgrade our <ctype.h> implementation to OpenBSD head.
2014-04-18 19:08:35 +00:00
Elliott Hughes
b88da06580
Merge "Upgrade to current vfprintf."
2014-04-18 18:19:23 +00:00
Elliott Hughes
f3c73901cb
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
2014-04-18 10:29:16 -07:00
Dan Albert
022984ff06
am 6c84b9d6
: am 0e351e40
: Merge "Changes our ctype identifiers to match the BSDs"
...
* commit '6c84b9d651e9eefab8b1a440979b15fb19404ffd':
Changes our ctype identifiers to match the BSDs
2014-04-18 16:26:14 +00:00
Dan Albert
0e351e4011
Merge "Changes our ctype identifiers to match the BSDs"
2014-04-18 15:52:59 +00:00
Dan Albert
779585fb26
Changes our ctype identifiers to match the BSDs
...
This is to make it possible to adopt the BSDs' implementations for a few locale
APIs in libc++ rather than writing our own, nearly identical, code.
Change-Id: I482acd4ece83aa4ec9eb0c7acf48f3686794bcc3
2014-04-18 08:48:34 -07:00
Elliott Hughes
0549371bd7
Upgrade to current vfprintf.
...
This gets us various bug fixes and missing C99 functionality.
Bug: https://code.google.com/p/android/issues/detail?id=64886
Change-Id: Ie9f8ac569e9b5eec1e4a1faacfe2c21662eaf895
2014-04-17 17:30:03 -07:00
Elliott Hughes
e2e41399fc
am 48db3037
: am 857b1796
: Merge "Regenerate the NOTICE files."
...
* commit '48db3037714d460b112e67793ca8b0270a0cd6a4':
Regenerate the NOTICE files.
2014-04-17 23:34:52 +00:00
Elliott Hughes
c87cb4fbb4
am c54c2a84
: am 8da69a25
: Merge "Switch fpclassify over to ieee_ext."
...
* commit 'c54c2a84cc70861e648932bd84e02163f845dcef':
Switch fpclassify over to ieee_ext.
2014-04-17 23:34:51 +00:00
Elliott Hughes
6478ab8003
am 7fb450b8
: am c480f57d
: Merge "Clean up <machine/ieee.h>."
...
* commit '7fb450b8a4ab15729a28c239364de9240564fe90':
Clean up <machine/ieee.h>.
2014-04-17 23:34:50 +00:00
Elliott Hughes
e21d198da6
am 31028f85
: am 9ceae0c9
: Merge "Use FLT_ROUNDS in LP64 strtold."
...
* commit '31028f852d7f65387bda433f230795b1add2b24f':
Use FLT_ROUNDS in LP64 strtold.
2014-04-17 23:34:50 +00:00
Elliott Hughes
fb7b42df1b
am bfd89274
: am 4abaa576
: Merge "Switch to gdtoa."
...
* commit 'bfd8927447b76bca6393c1e7c735a1333aa60786':
Switch to gdtoa.
2014-04-17 23:34:44 +00:00
Torne (Richard Coles)
183ad9df53
Allow sharing the RELRO section via a file.
...
Add flags and a file descriptor to android_dlopen_ext() to allow writing
the RELRO section of the loaded library to a file after relocation
processing, and to allow mapping identical pages from the file over the
top of relocated memory in another process. Explicitly comparing the
pages is required in case a page contains a reference to a symbol
defined in another library loaded at a random base address.
Bug: 13005501
Change-Id: Ibb5b2d384edfaa5acf3e97a5f8b6115c10497a1e
2014-04-17 14:30:46 +01:00
Torne (Richard Coles)
12bbb91645
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
2014-04-17 14:22:17 +01:00
Torne (Richard Coles)
012cb4583a
Add android_dlopen_ext() interface to linker.
...
Add a function "android_dlopen_ext()", defined in <android/dlext.h>.
This is an extended version of dlopen() which takes a struct for passing
additional parameters for Android-specific functionality. This will be
used to support RELRO section sharing between separate processes.
Bug: 13005501
Change-Id: I9c99b2f2a02ee329dedaeba09ef3a1113b17b2d6
2014-04-17 13:50:55 +01:00
Elliott Hughes
acbe322e82
Regenerate the NOTICE files.
...
Change-Id: Iac666f69b930e31bbeac3438812d544c6af55b0f
2014-04-16 17:01:12 -07:00
Elliott Hughes
8da69a25b7
Merge "Switch fpclassify over to ieee_ext."
2014-04-16 23:57:06 +00:00
Elliott Hughes
c480f57dd3
Merge "Clean up <machine/ieee.h>."
2014-04-16 23:56:40 +00:00
Elliott Hughes
f081e139fe
Switch fpclassify over to ieee_ext.
...
Change-Id: I441bb7f715da24e1c04b0386ad9dcde0ea8c797c
2014-04-16 16:45:59 -07:00
Elliott Hughes
cb65cc3fb4
Clean up <machine/ieee.h>.
...
The upstream intention was for this to be architecture-dependent, but it's a
lot clearer if we just have one copy.
Change-Id: I4e8310496145f9f411cd2e847c8cd023b1d758e9
2014-04-16 16:31:17 -07:00
Elliott Hughes
20828db758
Use FLT_ROUNDS in LP64 strtold.
...
Change-Id: I75323be6e1cadb00770fcdd08422836b03737416
2014-04-16 16:09:41 -07:00
Elliott Hughes
4bd97cee28
Switch to gdtoa.
...
This gives us a real strtold for LP64 and fixes various LP64
bugs.
Bug: 13563801
Change-Id: I277858d718ee746e136b6b6308a495ba50dfa488
2014-04-16 15:15:52 -07:00
Elliott Hughes
52f083925d
am 930806a5
: am 073ea101
: Merge "Add iswblank for libcxx."
...
* commit '930806a51342ce98be4832cfb43ed5ccd88e6145':
Add iswblank for libcxx.
2014-04-15 23:36:28 +00:00
Elliott Hughes
40b0579127
Add iswblank for libcxx.
...
We have similar degenerate implementations for all the other isw* functions,
so it's weird to exclude just one.
Change-Id: I659b97930e68598826c4882bb59f4146870fb6a0
2014-04-15 12:04:05 -07:00
Elliott Hughes
e2e9c630dc
am 70ccd2bf
: am a13c7fd3
: Merge "Fix arm64 floating point definitions."
...
* commit '70ccd2bffff92d5277248c0a13962ad4477f5451':
Fix arm64 floating point definitions.
2014-04-14 22:54:20 +00:00
Elliott Hughes
0f95a55322
Fix arm64 floating point definitions.
...
Change-Id: I6836da8fc9f66465435a21c51cb18851e20e9645
2014-04-14 15:33:32 -07:00
Elliott Hughes
9f3011ff59
am cf2c6639
: am 76ba8e86
: Merge "Reimplement isinf/isnan/fpclassify."
...
* commit 'cf2c663937b440ce78a195262a7f2d3d5b9a7157':
Reimplement isinf/isnan/fpclassify.
2014-04-14 22:16:32 +00:00
Elliott Hughes
02c78a3867
Reimplement isinf/isnan/fpclassify.
...
Also move isinf and isnan into libc like everyone else.
Also move fpclassify to libc like the BSDs (but unlike glibc). We need
this to be able to upgrade our float/double/long double parsing to gdtoa.
Also add some missing aliases. We now have all of:
isnan, __isnan, isnanf, __isnanf, isnanl, __isnanl,
isinf, __isinf, isinff, __isinff, isinfl, __isinfl,
__fpclassify, __fpclassifyd, __fpclassifyf, __fpclassifyl.
Bug: 13469877
Change-Id: I407ffbac06c765a6c5fffda8106c37d7db04f27d
2014-04-14 14:35:47 -07:00
Elliott Hughes
268dac808e
am 9bbd17cb
: am 28417eb9
: Merge "Replace the bionic hack for a vfprintf leak with (roughly) the upstream fix."
...
* commit '9bbd17cb75db8a99691a6ca0462ca5476b7641a0':
Replace the bionic hack for a vfprintf leak with (roughly) the upstream fix.
2014-04-14 15:49:13 +00:00
Elliott Hughes
5eb670462a
Replace the bionic hack for a vfprintf leak with (roughly) the upstream fix.
...
Currently in bionic free and freedtoa are equivalent, but that's not true
of gdtoa. This makes it easier to test gdtoa without having to replace
everything. (Yes, I found this bug the hard way.)
Change-Id: I290823a2a0a83329def5f2719b349215ad0dbbde
2014-04-11 18:00:37 -07:00
Elliott Hughes
8808dc6ff1
am d8b6b839
: am c4e71fc9
: Merge "Remove unnecessary #includes."
...
* commit 'd8b6b839578352abd107697d21b2e9a6671af0e9':
Remove unnecessary #includes.
2014-04-11 00:58:27 +00:00
Elliott Hughes
b676aafad0
Remove unnecessary #includes.
...
Change-Id: Ie7e0c9ea03f35517c7dcf09fc808c12e55262bc1
2014-04-10 17:50:06 -07:00
Elliott Hughes
c4db98e302
am 9ac738e3
: am 4e364d97
: Merge "Use the glibc name user_fpregs_struct."
...
* commit '9ac738e3dd924b998815fe6fe4464eef4c9350f4':
Use the glibc name user_fpregs_struct.
2014-04-10 01:07:31 +00:00
Elliott Hughes
93e1907ae1
Use the glibc name user_fpregs_struct.
...
Instead of the kernel name user_i387_struct.
Bug: 13889008
Change-Id: Ideec2e1ce36c1faa4b5b2db1999ad2b23757ca4d
2014-04-09 16:35:36 -07:00
Elliott Hughes
c34a7c93b4
am 599921be
: am e4392199
: Merge "Fix mcontext_t for x86-64."
...
* commit '599921be7b0d21b1f16b6aff6f8a246476845a09':
Fix mcontext_t for x86-64.
2014-04-09 23:01:59 +00:00
Elliott Hughes
c5992a036b
Fix mcontext_t for x86-64.
...
Change-Id: I1ac0e7f44bcdd06a07862993e92c3048a7474a8b
2014-04-09 13:27:48 -07:00
Calin Juravle
08576fff6d
am 49076afc
: am a5d83312
: Merge "Use glibc structure for __cmsg_nxthdr."
...
* commit '49076afc19a9f336cc958837cf56a6893de3c618':
Use glibc structure for __cmsg_nxthdr.
2014-04-09 09:11:11 +00:00
Elliott Hughes
b2da536c1c
am 2fbe6831
: am b52a4ab4
: Merge "Flesh out <locale.h>."
...
* commit '2fbe6831c455ac4883aa062ae51294625b4cfccc':
Flesh out <locale.h>.
2014-04-09 09:11:10 +00:00
Calin Juravle
a5d83312bd
Merge "Use glibc structure for __cmsg_nxthdr."
2014-04-09 06:06:48 +00:00
Elliott Hughes
b52a4ab4e2
Merge "Flesh out <locale.h>."
2014-04-09 04:13:43 +00:00
Elliott Hughes
c4936e20a3
Flesh out <locale.h>.
...
This is a trivial implementation that only supports the C/POSIX locale.
Change-Id: Ib11cea4249e1862aca96a8b94d58ea9a418cbe75
2014-04-08 19:37:38 -07:00
Elliott Hughes
f4870920ac
am 901b2839
: am 7f38a3c9
: Merge "Implement _Exit(3)."
...
* commit '901b2839d8ce51cbfde0c922390c8322107cd27d':
Implement _Exit(3).
2014-04-09 02:22:37 +00:00
Elliott Hughes
cb48308d1a
am a93d2770
: am ac70d2e1
: Merge "Clean up localeconv(3)."
...
* commit 'a93d27703f65e11077eb0b965e52d34a1b82e979':
Clean up localeconv(3).
2014-04-09 01:45:22 +00:00
Elliott Hughes
9f525644df
Implement _Exit(3).
...
Change-Id: Ida6ac844cc87d38c9645b197dd8188bb73e27dbe
2014-04-08 17:16:13 -07:00
Calin Juravle
ff64831b09
Use glibc structure for __cmsg_nxthdr.
...
Bug: 13418328
Change-Id: I7e656b373e53e80d708325321e48dcedacf5086d
2014-04-09 00:55:24 +03:00
Elliott Hughes
ac70d2e1fe
Merge "Clean up localeconv(3)."
2014-04-08 21:52:33 +00:00
Elliott Hughes
5363a45f2b
Clean up localeconv(3).
...
The OpenBSD doesn't support C99, and the extent to which we support
locales is trivial, so just do it ourselves.
Change-Id: If0a06e627ecc593f7b8ea3e9389365782e49b00e
2014-04-08 14:34:12 -07:00
Andrew Hsieh
57ba426913
am 0f147d74
: am e2239ddb
: Merge "Corrected typo in mips64.mk about memcpy.cpp"
...
* commit '0f147d74b88ea49ddeb9af82180b67895100bb7d':
Corrected typo in mips64.mk about memcpy.cpp
2014-04-08 20:24:52 +00:00
Andrew Hsieh
e2239ddb72
Merge "Corrected typo in mips64.mk about memcpy.cpp"
2014-04-08 20:09:44 +00:00
Elliott Hughes
3680504a9c
am 91f4f586
: am 5acd2d40
: Merge "AArch64: Fix flock64 for LP64."
...
* commit '91f4f586f3871075a676cf5fbd73d360b13097a3':
AArch64: Fix flock64 for LP64.
2014-04-08 19:32:56 +00:00
Serban Constantinescu
48501af98f
AArch64: Fix flock64 for LP64.
...
On LP64 systems F_GETLK64, F_SETLK64 and F_SETLKW64 definitions should
map onto the F_GETLK, F_SETLK and F_SETLKW definitions, respectively.
LP64 also doesn't have a struct flock64.
Change-Id: Ibdfed9645d9e946999acd6efa8b96ea6238ed5bf
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
2014-04-08 12:19:23 -07:00
Andrew Hsieh
4e3ce11450
Corrected typo in mips64.mk about memcpy.cpp
...
Change-Id: I1e6fb9373880bcdbad3fa86145e5138ce0d30b31
2014-04-09 02:16:03 +08:00
Elliott Hughes
fc38de6b0d
am fc50845e
: am 0b0387c9
: Merge "Fix kernel header scrubbing for LP64."
...
* commit 'fc50845e7d921763152753b60417ece57158cf2e':
Fix kernel header scrubbing for LP64.
2014-04-08 18:05:33 +00:00
Elliott Hughes
0b0387c965
Merge "Fix kernel header scrubbing for LP64."
2014-04-08 17:47:28 +00:00
Elliott Hughes
9195a258ee
Fix kernel header scrubbing for LP64.
...
Change-Id: I4caf44d41edd1b03a20d4c565e169c2b7a2f3686
2014-04-08 10:15:06 -07:00
Christopher Ferris
39a4d58f36
am 8c22d563
: am 41059d76
: Merge "Add stpcpy/stpncpy."
...
* commit '8c22d5635869b420ebe4178141a2c6e969a2626a':
Add stpcpy/stpncpy.
2014-04-08 01:36:36 +00:00
Christopher Ferris
41059d764f
Merge "Add stpcpy/stpncpy."
2014-04-08 01:21:07 +00:00
Elliott Hughes
bdca710f7d
am 6a8d61e1
: am b9bb48bf
: Merge "Fix the printf issue for 64 bits. The following case:"
...
* commit '6a8d61e173954878037516bacfd725bdb3bece22':
Fix the printf issue for 64 bits. The following case:
2014-04-07 23:58:05 +00:00
Elliott Hughes
b9bb48bf28
Merge "Fix the printf issue for 64 bits. The following case:"
2014-04-07 23:44:50 +00:00
Christopher Ferris
950a58e24d
Add stpcpy/stpncpy.
...
Add tests for the above.
Add the fortify implementations of __stpcpy_chk and __stpncpy_chk.
Modify the strncpy test to cover more cases and use this template for
stpncpy.
Add all of the fortify test cases.
Bug: 13746695
Change-Id: I8c0f0d4991a878b8e8734fff12c8b73b07fdd344
2014-04-07 16:41:53 -07:00
Elliott Hughes
d77b71710f
am 602886de
: am 26c31a75
: Merge "Remove a non-standard turd: strtotimeval."
...
* commit '602886de86c45016e276cc63fa8f67e1596c97f8':
Remove a non-standard turd: strtotimeval.
2014-04-07 23:07:30 +00:00
Elliott Hughes
efbdb53f84
Remove a non-standard turd: strtotimeval.
...
Change-Id: I1b1e40746cb573e3fb73a5276969b40c5da36d15
2014-04-07 15:17:19 -07:00
Elliott Hughes
bfe0bc2447
am 53cffd8c
: am 5f149f1b
: Merge "Implement wctomb(3) for ltrace."
...
* commit '53cffd8ccd0016200d3345b6e87c20298309bb49':
Implement wctomb(3) for ltrace.
2014-04-07 21:51:57 +00:00
Elliott Hughes
f5f5fa266d
am 0842460e
: am 60ba211d
: Merge "Fix build: __unused isn\'t unused!"
...
* commit '0842460e539dd7203af1cea66e6fe2506e8ed856':
Fix build: __unused isn't unused!
2014-04-07 21:51:56 +00:00
Elliott Hughes
5f149f1bde
Merge "Implement wctomb(3) for ltrace."
2014-04-07 21:39:38 +00:00
Elliott Hughes
50249bca00
Fix build: __unused isn't unused!
...
Change-Id: I57f2b755d1b2509f9c5504b12a5ff6c50b78b375
2014-04-07 14:36:59 -07:00
Elliott Hughes
77e944fd46
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
2014-04-07 14:29:28 -07:00
Elliott Hughes
7f1ee87ef9
am 3333a7af
: am 47931f8f
: Merge "Fix aarch64 struct ucontext."
...
* commit '3333a7af505a5d6230de5a455e9da6eb18ae07c6':
Fix aarch64 struct ucontext.
2014-04-07 21:02:58 +00:00
Elliott Hughes
5c7bda5c61
Fix aarch64 struct ucontext.
...
Change-Id: I6f0959723a753e8c788275709e7245c103ff88d1
2014-04-07 12:12:00 -07:00
Elliott Hughes
d4dadbfbcd
am b49e6c8a
: am dc5fcf36
: Merge "Define __WORDSIZE like glibc."
...
* commit 'b49e6c8a542f9c7630ae49215f151b2e3bad817f':
Define __WORDSIZE like glibc.
2014-04-04 03:19:06 +00:00
Paul Jensen
6f706dd88c
am c8167111
: resolved conflicts for merge of 804b95e5
to klp-modular-dev-plus-aosp
...
* commit 'c8167111d57992b8ce3ca554a9499973c55aa174':
bionic: Replace iface with opaque netid in resolver.
2014-04-04 03:19:05 +00:00
Elliott Hughes
caa15bfe2d
Define __WORDSIZE like glibc.
...
Requested by Google Breakpad, but seems to be assumed to be defined
in various places in the AOSP tree already; iputils, wpa_supplicant,
et cetera.
Change-Id: I1f7833c98e0af4c77e49744c08b8239061c9a571
2014-04-03 13:59:14 -07:00
Robert Greenwalt
804b95e535
Merge "bionic: Replace iface with opaque netid in resolver."
2014-04-03 17:05:32 +00:00
Greg Hackmann
ff14a40c80
am 9b0fa57c
: am e2a0f15c
: Merge "Regenerate adf header"
...
* commit '9b0fa57cb1e9722a07d601db9520cebaa04d743c':
Regenerate adf header
2014-04-03 02:11:16 +00:00
Elliott Hughes
139a8acf26
am 40b9734c
: am 26be5f50
: Merge "Upgrade to tzdata2014b."
...
* commit '40b9734cd6f6b157700e1fc9149bc04c0ce5b185':
Upgrade to tzdata2014b.
2014-04-03 01:41:01 +00:00
Greg Hackmann
9b0fa57cb1
am e2a0f15c
: Merge "Regenerate adf header"
...
* commit 'e2a0f15c08827ee854f3bffdf78d2f4db49d4fe5':
Regenerate adf header
2014-04-02 23:36:03 +00:00
Greg Hackmann
e2a0f15c08
Merge "Regenerate adf header"
2014-04-02 23:24:54 +00:00
Greg Hackmann
8061facb7c
Regenerate adf header
...
Fixes 64-bit related alignment issues
Change-Id: Ie90b920a7489e807e953f45a6db72350b80f6f22
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-04-02 16:07:32 -07:00
Elliott Hughes
40b9734cd6
am 26be5f50
: Merge "Upgrade to tzdata2014b."
...
* commit '26be5f50c2a0d2a493559c897ab1a7711269dc88':
Upgrade to tzdata2014b.
2014-04-02 22:03:00 +00:00
Elliott Hughes
fe6adbad19
Upgrade to tzdata2014b.
...
From the release notes:
Changes affecting near-future time stamps
Crimea switches to Moscow time on 2014-03-30 at 02:00 local time.
(Thanks to Alexander Krivenyshev.) Move its zone.tab entry from UA
to RU.
New entry for Troll station, Antarctica. (Thanks to Paul-Inge
Flakstad and Bengt-Inge Larsson.) This is currently an
approximation; a better version will require the zic and localtime
fixes mentioned [in the full release notes], and the plan is to wait
for a while until at least the zic fixes propagate.
Change-Id: Ib00f6cbc7b92e26822792b45e53a5f5381e0f6bf
2014-04-02 14:43:27 -07:00
Elliott Hughes
130a02e116
am 05ed7048
: am 1f136571
: Merge "Fix the POSIX timers fix."
...
* commit '05ed7048ad9be79bdbf27d076a4d8cd4000f7e98':
Fix the POSIX timers fix.
2014-04-02 16:36:28 +00:00
Elliott Hughes
05ed7048ad
am 1f136571
: Merge "Fix the POSIX timers fix."
...
* commit '1f136571312e4269df00dfc6d9a9049d0f2dabc9':
Fix the POSIX timers fix.
2014-04-02 16:30:52 +00:00
Alexander Ivchenko
edd7c2ec25
Fix the printf issue for 64 bits. The following case:
...
printf("%1$s %1$s\n", "test");
would print garbage instead of the second "test". The problem is __find_arguments
and the patch is a backport of two patches from OpenBSD that fix the issue:
Author: tedu <tedu@cvs.openbsd.org>
Date: Sat Apr 29 23:00:24 2006 +0000
check mmap for failure. the helper functions using it return -1, but
callers do not yet check since printf() for example is not documented
to return an error.
some formatting cleanups.
mostly ok deraadt millert
Author: millert <millert@cvs.openbsd.org>
Date: Fri May 16 14:28:54 2008 +0000
C99 says that for each va_copy() there must be a matching va_end().
Replace the non-portable hackery in __find_arguments() with a union.
From FreeBSD.
Change-Id: I6ea392ce6fcf4a319ae6a67ec58cc52fe7cbe534
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
2014-04-02 18:30:55 +04:00
Elliott Hughes
473d06707b
Fix the POSIX timers fix.
...
If we're not going to wait for the timer threads to exit, we need
another way to ensure that we don't free the data they're using
prematurely. The easiest way to ensure that is to let them free the
data themselves.
Change-Id: Icee17c87bbcb9c3aac5868973f595d08569f33aa
2014-04-01 19:07:52 -07:00
Elliott Hughes
341b39bd1d
am bfc540f6
: am 1653ad5e
: Merge "Remove <machine/limits.h>."
...
* commit 'bfc540f6e3b70d4585cf9338d309250bc964404b':
Remove <machine/limits.h>.
2014-04-02 01:09:08 +00:00
Elliott Hughes
bfc540f6e3
am 1653ad5e
: Merge "Remove <machine/limits.h>."
...
* commit '1653ad5e08ba4cabfd4d81237e13a4952fac6194':
Remove <machine/limits.h>.
2014-04-02 01:05:13 +00:00
Elliott Hughes
1b0dc40980
Remove <machine/limits.h>.
...
Change-Id: I7f9e9538517f726d4f08bf1f4b8d57c54d3f1676
2014-04-01 17:16:59 -07:00
Elliott Hughes
4b0ee2e965
am 099c13b9
: am f1bfc878
: Merge "Remove SIZE_MAX definition in limits.h"
...
* commit '099c13b92509b023fdbaa67a84785f3580cf7422':
Remove SIZE_MAX definition in limits.h
2014-04-02 00:08:33 +00:00
Elliott Hughes
099c13b925
am f1bfc878
: Merge "Remove SIZE_MAX definition in limits.h"
...
* commit 'f1bfc8781e17fb851de23dce4332c0cb5ccb8749':
Remove SIZE_MAX definition in limits.h
2014-04-01 23:59:49 +00:00
Elliott Hughes
f1bfc8781e
Merge "Remove SIZE_MAX definition in limits.h"
2014-04-01 23:52:04 +00:00
Elliott Hughes
85e5af0890
am 94d1de56
: am 92d81d89
: Merge "Add Silvermont architecture cache sizes"
...
* commit '94d1de561d31013cbe82a4ea980db9931a685e24':
Add Silvermont architecture cache sizes
2014-04-01 21:55:02 +00:00
Elliott Hughes
94d1de561d
am 92d81d89
: Merge "Add Silvermont architecture cache sizes"
...
* commit '92d81d893f7ca2735afb07f38f7dc799a2de6860':
Add Silvermont architecture cache sizes
2014-04-01 21:48:03 +00:00
Elliott Hughes
92d81d893f
Merge "Add Silvermont architecture cache sizes"
2014-04-01 21:40:04 +00:00
Elliott Hughes
b13d66b578
am abd89b0c
: am e05816cf
: Merge "Fix debug malloc for LP64."
...
* commit 'abd89b0cccb893e62afce87ec05b325ca337a8d8':
Fix debug malloc for LP64.
2014-04-01 21:14:58 +00:00
Elliott Hughes
abd89b0ccc
am e05816cf
: Merge "Fix debug malloc for LP64."
...
* commit 'e05816cfa0270d7def33da70bf2ada12350b08b5':
Fix debug malloc for LP64.
2014-04-01 21:09:54 +00:00
Elliott Hughes
64b2963224
Fix debug malloc for LP64.
...
Change-Id: I5de2097b6589c0d6750b2a3bc3cbb06227de6d5f
2014-04-01 13:48:30 -07:00
Elliott Hughes
59c78feb6d
am f7dd9085
: am f42df8c1
: Merge "Add lsearch(3) for ltrace."
...
* commit 'f7dd908586ea49283a792e345e51d48541834b7c':
Add lsearch(3) for ltrace.
2014-04-01 20:39:45 +00:00
Elliott Hughes
f7dd908586
am f42df8c1
: Merge "Add lsearch(3) for ltrace."
...
* commit 'f42df8c1ac1fd1924a6244f5b9ad472d73786949':
Add lsearch(3) for ltrace.
2014-04-01 20:35:58 +00:00
Szymon Jakubczak
ea9bf67881
bionic: Replace iface with opaque netid in resolver.
...
Replace iface cache key with netid.
Replace _mark with netid.
Mark sockets used to test IPv4/IPv6 support as well as sockets
used to determine source address for rfc6724 sort.
Remove pid/uid mappings (functionality moved to system/netd).
Do not create resolv_cache when it does not exist, but rather only
when DNS configuration is supplied.
Clean up unused functions.
Change-Id: I9ccfda2902cc0943e87c9bc346ad9a2578accdab
2014-04-01 16:25:49 -04:00
Elliott Hughes
7f3a272ae3
Add lsearch(3) for ltrace.
...
Bug: 13746936
Change-Id: I833c6ba70a1752c04dab7de389f5bebb741662b3
2014-04-01 12:40:00 -07:00
Henrik Smiding
3bfa0fd32f
Add Silvermont architecture cache sizes
...
Adds Silvermont specific cache sizes for bionic optimizations.
Change-Id: Ib992f530b8c485121b2874470fd6bed2212adb0f
Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
2014-04-01 14:41:08 +08:00
Christopher Ferris
29786ff84b
am 1cf377bb
: am aad59faf
: Merge "Small accept4 fixes."
...
* commit '1cf377bbceb5c59b8572fcdb456034e18fdc1db1':
Small accept4 fixes.
2014-03-31 19:50:02 +00:00
Christopher Ferris
1cf377bbce
am aad59faf
: Merge "Small accept4 fixes."
...
* commit 'aad59fafeaa1f46e1744864167e6407b5a5ae55e':
Small accept4 fixes.
2014-03-31 19:11:02 +00:00
Christopher Ferris
9cea377505
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
2014-03-31 11:23:39 -07:00
Russell Webb
ac3fc00ca2
Remove SIZE_MAX definition in limits.h
...
the POSIX standard is that SIZE_MAX is defined
in stdint.h, not limits.h.
Change-Id: Iafd8ec71d1840541feaca4f53b2926b398293fac
Signed-off-by: Webb, Russell <russell.webb@intel.com>
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Reviewed-by: Ross, Andrew J <andrew.j.ross@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
Tested-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
2014-03-31 22:38:14 +08:00
Christopher Ferris
461b1542e1
am ce5583f7
: am d8fe15fd
: Merge "add 32-bit bionic implementation for denver arch"
...
* commit 'ce5583f7065d930cc8d79a05601ca85146da5c2e':
add 32-bit bionic implementation for denver arch
2014-03-31 03:42:38 +00:00
Christopher Ferris
ce5583f706
am d8fe15fd
: Merge "add 32-bit bionic implementation for denver arch"
...
* commit 'd8fe15fdb6581b6920a4be75731337edbac64b11':
add 32-bit bionic implementation for denver arch
2014-03-31 03:39:02 +00:00
Christopher Ferris
d8fe15fdb6
Merge "add 32-bit bionic implementation for denver arch"
2014-03-31 03:30:13 +00:00
Calin Juravle
c08e1720c2
am fd134c6f
: am 6617fb73
: Merge "Add lconv declaration and localeconv(3)"
...
* commit 'fd134c6f33ad040dfc2f91d7e23e8186fa3e8610':
Add lconv declaration and localeconv(3)
2014-03-28 11:36:03 +00:00
Calin Juravle
fd134c6f33
am 6617fb73
: Merge "Add lconv declaration and localeconv(3)"
...
* commit '6617fb73b6393f727cfc88a650c7e033ced053ce':
Add lconv declaration and localeconv(3)
2014-03-28 11:29:20 +00:00
Pavel Chupin
50282f72bb
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>
2014-03-28 11:15:03 +00:00
Calin Juravle
4f6cd7cf9b
am 113f7750
: am 206fe5fd
: Merge changes I1935a63d,I3dfd3647
...
* commit '113f77506b2382eeb2d99c74f84579c59832fbbb':
Fix and clean up strtotimeval
Added strtotimeval tests.
2014-03-27 17:06:14 +00:00
Calin Juravle
113f77506b
am 206fe5fd
: Merge changes I1935a63d,I3dfd3647
...
* commit '206fe5fd160504489234d222d824870837e82b59':
Fix and clean up strtotimeval
Added strtotimeval tests.
2014-03-27 16:59:18 +00:00
Calin Juravle
206fe5fd16
Merge changes I1935a63d,I3dfd3647
...
* changes:
Fix and clean up strtotimeval
Added strtotimeval tests.
2014-03-27 16:53:08 +00:00
Weichuan Yan
f1d7536dcf
Fix and clean up strtotimeval
...
- parsing of fractional part was wrong (always parsed as 0)
- return value was also wrong in the presence of fractional parts
- general style clean up
Change-Id: I1935a63db938dbed7cacb4b5646e993a52c27f1a
Signed-off-by: Weichuan Yan <wchyan@marvell.com>
2014-03-27 14:57:36 +00:00
Christopher Ferris
474663a398
am 7b6440d1
: am bc475bc8
: Merge "Add accept4() syscall"
...
* commit '7b6440d1547d9845ba5572179cd9c32b088b1985':
Add accept4() syscall
2014-03-26 19:59:57 +00:00
Christopher Ferris
7b6440d154
am bc475bc8
: Merge "Add accept4() syscall"
...
* commit 'bc475bc8d1d202baa48f6c9829fe1cced9122332':
Add accept4() syscall
2014-03-26 19:53:07 +00:00
Christopher Ferris
bc475bc8d1
Merge "Add accept4() syscall"
2014-03-26 19:40:59 +00:00
Calin Juravle
d91b4a0ffc
am cba91b3d
: am ecbf00bd
: Merge "Clean up CMSG_*HDR in <sys/socket.h>"
...
* commit 'cba91b3dbd2de2299979c0015896fb6942162bd7':
Clean up CMSG_*HDR in <sys/socket.h>
2014-03-26 16:36:26 +00:00
Calin Juravle
cba91b3dbd
am ecbf00bd
: Merge "Clean up CMSG_*HDR in <sys/socket.h>"
...
* commit 'ecbf00bda2fcee65e4e6385772022529ffeeed91':
Clean up CMSG_*HDR in <sys/socket.h>
2014-03-26 14:51:16 +00:00
Calin Juravle
ecbf00bda2
Merge "Clean up CMSG_*HDR in <sys/socket.h>"
2014-03-26 14:24:01 +00:00
Andrei Emeltchenko
8f2a30a92a
Add accept4() syscall
...
Add accept4() using SYSCALLS.TXT and gensyscall
Change-Id: I6f19f29144186d15d46423e10f2cc4b4223719c6
2014-03-26 15:50:01 +02:00
Shu Zhang
5b5d6e7045
add 32-bit bionic implementation for denver arch
...
Add 32-bit bionic implementation for denver. Use denver version of memcpy/
memset. Use Cortex-A15 version of strlen/strcat/strcpy/strcmp.
Change-Id: I4c6b675f20cf41a29cadf70a11d1635d7df5b30a
2014-03-26 13:57:01 +08:00
Christopher Ferris
0f01bb2e68
am b47790fb
: am c8fc4ddc
: Merge "Keep the symbol table in the shared libc."
...
* commit 'b47790fb5620b4a856bba6e2cb1b76989d96956d':
Keep the symbol table in the shared libc.
2014-03-25 21:22:58 +00:00
Christopher Ferris
b47790fb56
am c8fc4ddc
: Merge "Keep the symbol table in the shared libc."
...
* commit 'c8fc4ddc183060aa979185d5a6845f26beb1a733':
Keep the symbol table in the shared libc.
2014-03-25 19:09:32 +00:00
Calin Juravle
f1de90b3a2
Clean up CMSG_*HDR in <sys/socket.h>
...
Removed __CMSG_NXTHDR, __CMSG_FIRSTHDR and cmsg_nxthdr.
Bug: 13418328
Change-Id: I6b1ed58b41b3f37d41e070c4f222b5bfa512bc48
2014-03-25 17:07:37 +00:00
Christopher Ferris
0ae6445e9a
Keep the symbol table in the shared libc.
...
In order to allow the unwinder code to have meaningful names for
libc functions, leave the symbol table. This results in the libc.so
getting to be about ~130K larger on all arm platforms and about ~70K
larger on mips/x86 platforms.
Bug: 12958251
Change-Id: I6b3a97e4824142faf5de46aeabf7c1dfb98a8cc6
2014-03-24 17:56:13 -07:00
Calin Juravle
ade0564616
am 02a17877
: am 9e8a8dc1
: Merge "Remove ALIGNBYTES and ALIGN from <sys/param.h>"
...
* commit '02a178773806e118e60a422f82b8a2607bd54e86':
Remove ALIGNBYTES and ALIGN from <sys/param.h>
2014-03-24 21:25:34 +00:00
Nick Kralevich
91ef8d53ec
am aefe43b1
: am 95c1abec
: Merge "FORTIFY_SOURCE: don\'t define s?printf macros if already defined"
...
* commit 'aefe43b1824907b93c6280ce27cb2c105c564477':
FORTIFY_SOURCE: don't define s?printf macros if already defined
2014-03-24 21:25:17 +00:00
Chad Brubaker
efe4461364
am b9e1688c
: am 1d3d0360
: am 081db840
: Allow overlap in resolv uid => DNS iface mapping
...
* commit 'b9e1688cd9f8727bbe0dacafd194c7a571bedb14':
Allow overlap in resolv uid => DNS iface mapping
2014-03-24 19:35:17 +00:00
Mark Salyzyn
248f1027e0
am 5b3c6fde
: am cce6c380
: Merge "libc: Thread IDs missing from logcat -v thread"
...
* commit '5b3c6fde09f2665f788f2586c3cdbab28b98b229':
libc: Thread IDs missing from logcat -v thread
2014-03-24 18:44:03 +00:00
Christopher Ferris
7eec583445
am e1b25377
: am 998d7b03
: Merge "Fix deadlock in timer_delete."
...
* commit 'e1b25377387376932688bb436393764469af1cf3':
Fix deadlock in timer_delete.
2014-03-24 17:27:10 +00:00
Calin Juravle
02a1787738
am 9e8a8dc1
: Merge "Remove ALIGNBYTES and ALIGN from <sys/param.h>"
...
* commit '9e8a8dc18cb3162858feef2d4baaf3fa357aa3d2':
Remove ALIGNBYTES and ALIGN from <sys/param.h>
2014-03-24 12:33:50 +00:00
Calin Juravle
9e8a8dc18c
Merge "Remove ALIGNBYTES and ALIGN from <sys/param.h>"
2014-03-24 12:11:30 +00:00
Nick Kralevich
aefe43b182
am 95c1abec
: Merge "FORTIFY_SOURCE: don\'t define s?printf macros if already defined"
...
* commit '95c1abecc02b2a2f40b507e669b5bc17d4412bf9':
FORTIFY_SOURCE: don't define s?printf macros if already defined
2014-03-22 18:06:03 +00:00
Nick Kralevich
95c1abecc0
Merge "FORTIFY_SOURCE: don't define s?printf macros if already defined"
2014-03-22 17:55:49 +00:00
Chad Brubaker
b9e1688cd9
am 1d3d0360
: am 081db840
: Allow overlap in resolv uid => DNS iface mapping
...
* commit '1d3d0360eee442c7c73006e2069acdc051575edb':
Allow overlap in resolv uid => DNS iface mapping
2014-03-21 21:09:37 +00:00
Chad Brubaker
1d3d0360ee
am 081db840
: Allow overlap in resolv uid => DNS iface mapping
...
* commit '081db840befec895fb86e709ae95832ade2d065c':
Allow overlap in resolv uid => DNS iface mapping
2014-03-21 21:02:40 +00:00
Mark Salyzyn
cce6c380d7
Merge "libc: Thread IDs missing from logcat -v thread"
2014-03-21 20:09:32 +00:00
Calin Juravle
c20de90287
Remove ALIGNBYTES and ALIGN from <sys/param.h>
...
There are only three users of bionic definition of ALIGN and keeping it
in sys/param.h polutes the namespace.
I inline the definition in the the three places that's used.
Bug: 13400663
Change-Id: I565008e8426c38ffb07422f42cd8e547d53044e9
2014-03-21 09:59:34 +00:00
Christopher Ferris
753ad778bc
Fix deadlock in timer_delete.
...
If the callback function for a timer did a timer_delete, the function
would never return. The problem was that the timer_delete function would try
to wait until the timer thread has finished. Waiting for yourself to finish
doesn't work very well.
Bug: 13397340
Change-Id: Ica123a5bafbc8660c8a4a909e5c2dead55ca429d
2014-03-20 20:47:45 -07:00
Mark Salyzyn
8664be583a
libc: Thread IDs missing from logcat -v thread
...
- stuff caller's thread id into the packet.
Bug: 13568206
Change-Id: If8b318ef75c7dcdddb05da8ac3038860f0fda5ec
2014-03-20 16:35:18 -07:00
Nick Kralevich
7eb28b59c7
FORTIFY_SOURCE: don't define s?printf macros if already defined
...
Clang specific: Don't #define sprintf and snprintf macros if they
are already defined.
Change-Id: I30fc507d898377e1b8a57a65a147926229e0f9e2
2014-03-18 17:03:38 -07:00
Chad Brubaker
081db840be
Allow overlap in resolv uid => DNS iface mapping
...
When multiple rules exist covering a given uid the one added most
recently will be used.
This allows us to handle the simultaneous tuns case where a new tun is
coming online for an already running VPN.
_resolv_clear_iface_for_uid_range now also takes the iface and removes
only that matching (iface, uid range) entry.
Bug: 12134439
Change-Id: I9b9cfcfae2f38c409022a8c76ccadad7e2babd78
2014-03-15 15:29:01 -07:00
Elliott Hughes
092774abfc
am b689105d
: am 143df89f
: Merge "Clean up reentrancy cruft."
...
* commit 'b689105d79449bc40ec2c0947f17e188c0da6eef':
Clean up reentrancy cruft.
2014-03-14 17:52:41 +00:00
Elliott Hughes
48a06ec3f7
am 16b8b0e1
: am d16100c1
: Merge "Clean up <stdio.h> macros."
...
* commit '16b8b0e12cfbe0baa242740b6ede2acdee1054f4':
Clean up <stdio.h> macros.
2014-03-14 13:13:30 +00:00
Elliott Hughes
e130bc103e
am 5321a9e7
: am 6ece7fc3
: Merge "property: fix getting dirty serial value"
...
* commit '5321a9e7401bc4ca0839884c627376367aee34c8':
property: fix getting dirty serial value
2014-03-14 10:46:37 +00:00
Elliott Hughes
205c7887ad
Clean up reentrancy cruft.
...
The DNS copy of reentrant.h was unused, so remove it.
The strtod implementation can use the upstream-netbsd reentrant.h and
get a little closer to what was then upstream. (It's since been replaced
by gdtoa, and we'll have to follow at some point, but for now this doesn't
make anything any worse.)
ANDROID_CHANGES is (now) only used in the DNS code, so push the -D
down.
The <locale.h> change prevents an LP32 hack from leaking into LP64.
Change-Id: Idf30b98a59d7ca8f7c6cd6d07020b512057911ef
2014-03-13 16:17:43 -07:00
Elliott Hughes
f2cea021ab
Clean up <stdio.h> macros.
...
Also neuter __isthreaded.
We should come back to try to hide struct FILE's internals for LP64.
Bug: 3453512
Bug: 3453550
Change-Id: I7e115329fb4579246a72fea367b9fc8cb6055d18
2014-03-13 14:54:53 -07:00
Elliott Hughes
2fcf90f1da
am 8cd36386
: am 01cd7885
: Merge "Upgrade to current upstream scanf implementation."
...
* commit '8cd3638641cbd1540508e72b84189a4bd24d2b22':
Upgrade to current upstream scanf implementation.
2014-03-13 21:20:15 +00:00
jiaguo
879d330499
property: fix getting dirty serial value
...
__system_property_serial just returned serial value without
checking if it is dirty, so check and wait until serial
value is not dirty before return
Change-Id: If485b6251b5555b004912c66c7c2cb455a7fdbdc
Signed-off-by: jiaguo <jiaguo@marvell.com>
2014-03-13 12:42:52 -07:00
Elliott Hughes
603332fc4c
Upgrade to current upstream scanf implementation.
...
Also add a basic test.
Change-Id: Icc0e68a5716b9579244f6eb8bac1ab5a24eda85a
2014-03-12 17:10:41 -07:00
Elliott Hughes
14efe23765
am f3d83fa9
: am 0e79338d
: Merge "Ensure we always have symbols for atof, strtof, strtold."
...
* commit 'f3d83fa955cf4848b48850431c6a094662f53a69':
Ensure we always have symbols for atof, strtof, strtold.
2014-03-12 23:44:29 +00:00
Elliott Hughes
5a8173860d
Ensure we always have symbols for atof, strtof, strtold.
...
We'll need a better implementation of strtold for LP64, but all our
long double functions are currently broken for LP64 anyway so this
isn't a regression.
Change-Id: I2bdebac11245d31521d5fa09a16331c03dc4339c
2014-03-12 16:12:57 -07:00
Mark Salyzyn
ff52f9f054
am 5b675903
: am 56e1eebd
: Merge "logd: default user space logger"
...
* commit '5b6759035b2f99f37cbdbf9de5c2e098f6ba3f76':
logd: default user space logger
2014-03-12 23:04:41 +00:00
Elliott Hughes
801a7a60cc
am b51e4216
: am 2282e16d
: Merge "Use [u]int32_t instead of __[u]int32_t in sys/types.h"
...
* commit 'b51e4216e81c02b67218bbe417db8293836c6121':
Use [u]int32_t instead of __[u]int32_t in sys/types.h
2014-03-12 22:58:05 +00:00
Mark Salyzyn
56e1eebd39
Merge "logd: default user space logger"
2014-03-12 21:02:46 +00:00
Elliott Hughes
2282e16d76
Merge "Use [u]int32_t instead of __[u]int32_t in sys/types.h"
2014-03-12 20:48:39 +00:00
Pavel Chupin
2725ca95b2
Use [u]int32_t instead of __[u]int32_t in sys/types.h
...
Avoid this error in -ffreestanding mode:
sys/types.h:45:1: error: unknown type name '__uint32_t'
Change-Id: I826b36873862d1d70b47401f31f4369a77666b8e
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2014-03-13 00:23:43 +04:00
Mark Salyzyn
c1005aaf8e
logd: default user space logger
...
Change-Id: Id205b01537940051c72d79def28a3c1a8b169a21
2014-03-12 13:17:38 -07:00
Elliott Hughes
3b4fbccfaf
am 2e1f5f09
: am ef43a6fb
: Merge "Clean up our termios implementation."
...
* commit '2e1f5f09d91f145d99c2a26f99bf58c5f3c5e14a':
Clean up our termios implementation.
2014-03-12 20:11:06 +00:00
Elliott Hughes
4ef945379f
am 32378d58
: am 76b4f1a3
: Merge "More stdio cleanup."
...
* commit '32378d584feb3343c6a4d93b82b9e0ac8e514238':
More stdio cleanup.
2014-03-12 19:56:47 +00:00
Elliott Hughes
7517235f9d
am 10675a79
: am 55f9710a
: Merge "Reimplement clock(3) and switch to OpenBSD time(3)."
...
* commit '10675a794d02497f530f9086b6edf61b5cdb447c':
Reimplement clock(3) and switch to OpenBSD time(3).
2014-03-12 19:56:47 +00:00
Elliott Hughes
8d4b5849f2
Clean up our termios implementation.
...
It's safe to fix our constant definitions because we know we never
had symbols before, so can't be passing the bad old constants to the new
functions, or the correct new constants to the old inlines.
Change-Id: I858fc680df39bdd3ba471e867833bdfa71f6224e
2014-03-11 19:13:25 -07:00
Elliott Hughes
ad41e9a4eb
More stdio cleanup.
...
Change-Id: Idc909cd3dc7b072f1edd2ae4980932d6550e8568
2014-03-11 15:05:50 -07:00
Elliott Hughes
cccfe1e17c
Reimplement clock(3) and switch to OpenBSD time(3).
...
The new implementation is a better approximation to the processor time used
by the process because it's actually based on resource usage rather than just
elapsed wall clock time.
Change-Id: I9e13b69c1d3048cadf0eb9dec1e3ebc78225596a
2014-03-11 13:37:11 -07:00
Elliott Hughes
9061c82991
am 04583ce9
: Upgrade to tzdata2014a.
...
* commit '04583ce9b94d6f41f4c1e66939c4ca2ee41ff058':
Upgrade to tzdata2014a.
2014-03-11 17:44:37 +00:00
Calin Juravle
7fb2576c0a
am 8905752f
: am 5810bcf3
: Merge "Sysconfig fixes"
...
* commit '8905752f86279006a5213a5a0831a72e7fea9249':
Sysconfig fixes
2014-03-11 11:01:03 +00:00
Calin Juravle
fd99dcb3cc
am d920ef36
: am 40c31ade
: Merge "Removed pthread_attr_getstackaddr/pthread_attr_setstackaddr"
...
* commit 'd920ef36f6bd372418cb92d9f21ab0b677fcf62e':
Removed pthread_attr_getstackaddr/pthread_attr_setstackaddr
2014-03-11 11:01:02 +00:00
Calin Juravle
a0ca209ac0
Sysconfig fixes
...
Remove _POSIX_THREAD_ATTR_STACKADDR and _POSIX_THREAD_ATTR_STACKSIZE
since they don't exists. Return -1 for their corresponding values but
don't set errno.
Bug: 13281069
Change-Id: Ice29b4dfebe2b474212e40ee726d86782a3064b9
2014-03-11 10:44:50 +00:00
Calin Juravle
a4eafa6dbc
Removed pthread_attr_getstackaddr/pthread_attr_setstackaddr
...
Moved existing definitions to ndk_cruft to preserve NDK compatibility.
Bug: 13281069
Change-Id: I6f260de69afa55a6274f0d13145c19ac6517b9d5
2014-03-11 10:44:36 +00:00
Elliott Hughes
b951a4e1fd
am 02bd494d
: am 2cd3490d
: Merge "Take ownership of various simple syscall wrappers."
...
* commit '02bd494dee4abb6572b8172bf46f6074b04dce17':
Take ownership of various simple syscall wrappers.
2014-03-11 00:53:16 +00:00
Elliott Hughes
247dc91889
Take ownership of various simple syscall wrappers.
...
None of these trivial functions is something we're going to get from BSD.
Change-Id: Iee1d1281b73db67da5ec303da7a49748121464bf
2014-03-10 17:17:01 -07:00
Elliott Hughes
79ac8d725b
am 2f80b7a8
: am a3056591
: Merge "Switch to NetBSD utmp.c."
...
* commit '2f80b7a86af6de438f1e5d84bc53b639dec61f0a':
Switch to NetBSD utmp.c.
2014-03-10 23:48:59 +00:00
Elliott Hughes
c95a204191
am fbb9e852
: am ec674b4d
: Merge "Switch to upstream FreeBSD ldexp.c."
...
* commit 'fbb9e852f0a3e3669a8fb6a38cdaf4b1c1ffd3db':
Switch to upstream FreeBSD ldexp.c.
2014-03-10 23:42:21 +00:00
Elliott Hughes
11a98b081b
am 02e4dada
: am 21d9e58d
: Merge "Rename the stack protector intermediate library."
...
* commit '02e4dada534aaebba0e66aa217f92d2c4698e60f':
Rename the stack protector intermediate library.
2014-03-10 23:42:21 +00:00
Elliott Hughes
213dd5b9ce
am ed13b4cf
: am 7aef2746
: Merge "Switch to OpenBSD wcscoll."
...
* commit 'ed13b4cf8b0d8f773b6abe62daca8c70b3ad3f50':
Switch to OpenBSD wcscoll.
2014-03-10 23:34:48 +00:00
Elliott Hughes
19f58efa22
Switch to NetBSD utmp.c.
...
Change-Id: Ibe94888aa48b5b28fea97fd5719a1ed7a23ddeb3
2014-03-10 16:32:35 -07:00
Elliott Hughes
ec674b4d06
Merge "Switch to upstream FreeBSD ldexp.c."
2014-03-10 23:25:39 +00:00
Elliott Hughes
21d9e58d01
Merge "Rename the stack protector intermediate library."
2014-03-10 23:25:05 +00:00
Elliott Hughes
67563e6080
am acc63574
: am 321ecc4e
: Merge "Remove non-standard memswap."
...
* commit 'acc635740cf64262e54fc9f62ea9ab24ac6ae3f3':
Remove non-standard memswap.
2014-03-10 23:23:25 +00:00
Elliott Hughes
57a883640f
Switch to upstream FreeBSD ldexp.c.
...
(Yes, this should be in libm, but it isn't. For once, this mistake predates
bionic!)
Change-Id: I1340407acbcdc0151dee969a38ba490bdd5e6767
2014-03-10 16:23:09 -07:00
Elliott Hughes
7aef27468e
Merge "Switch to OpenBSD wcscoll."
2014-03-10 23:21:08 +00:00
Elliott Hughes
6380b51a8d
Rename the stack protector intermediate library.
...
libbionic_ssp already confused at least one person, and characters
in filenames are cheap, so let's just call this library what it is.
Change-Id: I69ab950bf52fa4d267a6891efb49b5e177efc0c4
2014-03-10 16:15:11 -07:00
Elliott Hughes
c8937eadf4
Switch to OpenBSD wcscoll.
...
Change-Id: I1050ef728e18124656e76f32b42ac9a4688f252d
2014-03-10 16:11:59 -07:00
Elliott Hughes
152b9de19a
Remove non-standard memswap.
...
Change-Id: I06548dda339987b755ef7139c590ca3e1f9fe0a9
2014-03-10 15:54:40 -07:00
Elliott Hughes
e324d90d70
am 4d212bdb
: am 638e7892
: Merge "Upgrade to tzdata2014a."
...
* commit '4d212bdb4f1999225e3be862b1060bd2af2eb0cd':
Upgrade to tzdata2014a.
2014-03-10 22:35:31 +00:00
Elliott Hughes
04583ce9b9
Upgrade to tzdata2014a.
...
From the release notes:
Changes affecting near-future time stamps
Turkey begins DST on 2014-03-31, not 03-30. (Thanks to Faruk Pasin
for the heads-up, and to Tim Parenti for simplifying the update.)
Changes affecting past time stamps
Fiji ended DST on 2014-01-19 at 02:00, not the previously-scheduled
03:00. (Thanks to Steffen Thorsen.)
Ukraine switched from Moscow to Eastern European time on 1990-07-01
(not 1992-01-01), and observed DST during the entire next winter.
(Thanks to Vladimir in Moscow via Alois Treindl.)
In 1988 Israel observed DST from 04-10 to 09-04, not 04-09 to
09-03. (Thanks to Avigdor Finkelstein.)
(cherry picked from commit 159b28eb46
)
Bug: 13193205
Change-Id: I3d302039f7e057a97c9d307ce8d32efa056481ed
2014-03-10 15:23:02 -07:00
Elliott Hughes
159b28eb46
Upgrade to tzdata2014a.
...
From the release notes:
Changes affecting near-future time stamps
Turkey begins DST on 2014-03-31, not 03-30. (Thanks to Faruk Pasin
for the heads-up, and to Tim Parenti for simplifying the update.)
Changes affecting past time stamps
Fiji ended DST on 2014-01-19 at 02:00, not the previously-scheduled
03:00. (Thanks to Steffen Thorsen.)
Ukraine switched from Moscow to Eastern European time on 1990-07-01
(not 1992-01-01), and observed DST during the entire next winter.
(Thanks to Vladimir in Moscow via Alois Treindl.)
In 1988 Israel observed DST from 04-10 to 09-04, not 04-09 to
09-03. (Thanks to Avigdor Finkelstein.)
Bug: 13193205
Change-Id: Ie2e4fd48491315f3e97befff0c8ea797a766c676
2014-03-10 15:19:05 -07:00
Calin Juravle
f45709b67b
am eacfa695
: am 55b6ec3f
: Merge "Update the NOTICE files"
...
* commit 'eacfa69553c2ca98af51e4dc636ade89c347e6e9':
Update the NOTICE files
2014-03-10 11:39:58 +00:00
Calin Juravle
66016dad14
am f535485c
: am 0bca08d6
: Merge "Update res_debug.c to take into account changes to the nameser.h"
...
* commit 'f535485cc0fef33faaaa2bc2e2a0bd9d7254e97e':
Update res_debug.c to take into account changes to the nameser.h
2014-03-10 11:32:02 +00:00
Calin Juravle
c4fbf92ce1
Update the NOTICE files
...
Change-Id: I751c4eeda813b811faa4ee26c64445896db3d5bd
2014-03-10 11:23:52 +00:00
Calin Juravle
0bca08d69f
Merge "Update res_debug.c to take into account changes to the nameser.h"
2014-03-10 11:20:12 +00:00
Elliott Hughes
69ee396704
am 00b522ad
: am fd9e20d1
: Merge "Fix pthread_detach for already-exited threads."
...
* commit '00b522ad9e87cb9ae5ad776ded92ac01e79ef31b':
Fix pthread_detach for already-exited threads.
2014-03-08 11:02:22 +00:00
Elliott Hughes
fb2fbbc269
am 206e2c05
: am 333e2ae8
: Merge "Add si_timerid to <signal.h>."
...
* commit '206e2c05f1b08a60b5706c93fbb6e53f456ae67d':
Add si_timerid to <signal.h>.
2014-03-08 07:28:14 +00:00
Elliott Hughes
d1256ccbb3
am 68126def
: am 4d46c940
: Merge "Rewrite the POSIX timer functions."
...
* commit '68126def6e37eae1ddc0b372fcecc3ac8287b97e':
Rewrite the POSIX timer functions.
2014-03-08 07:28:11 +00:00
Elliott Hughes
04620a3cd7
Fix pthread_detach for already-exited threads.
...
Change-Id: I2bf7f41234d93b226132a4c51705f4186f4961c3
Reported-by: Paresh Nakhe <pnakhe@codeaurora.org>
2014-03-07 17:59:05 -08:00
Elliott Hughes
333e2ae87d
Merge "Add si_timerid to <signal.h>."
2014-03-08 00:52:02 +00:00
Elliott Hughes
4d46c94031
Merge "Rewrite the POSIX timer functions."
2014-03-08 00:50:56 +00:00
Elliott Hughes
4b558f50a4
Rewrite the POSIX timer functions.
...
This is a much simpler implementation that lets the kernel
do as much as possible.
Co-authored-by: Jörgen Strand <jorgen.strand@sonymobile.com>
Co-authored-by: Snild Dolkow <snild.dolkow@sonymobile.com>
Change-Id: Iad19f155de977667aea09410266d54e63e8a26bf
2014-03-07 16:49:46 -08:00
Elliott Hughes
a0cd9bc339
Add si_timerid to <signal.h>.
...
The kernel uses the very misleading name "si_tid", but glibc uses the more
intention-revealing "si_timerid". We should let people use that.
(Added because I wanted to improve SI_TIMER siginfo_t dumping in strace.)
Change-Id: Ib626cdd3b57a6afb276a15753a237b4e81ec45e3
2014-03-07 15:41:25 -08:00
Calin Juravle
0ad555a908
Update res_debug.c to take into account changes
...
to the nameser.h
Bug: 13219633
Change-Id: Id75de2e8933f716ad86ca296a97f5c619fb946a7
2014-03-07 20:03:57 +00:00
Calin Juravle
c3957eea26
am d57eb903
: am b145b5ef
: Merge "Fix broken pointer overflow check ns_name_unpack()"
...
* commit 'd57eb903c1ca2f798ab6a9ab0f9c84678b0f3025':
Fix broken pointer overflow check ns_name_unpack()
2014-03-07 19:29:51 +00:00
Calin Juravle
a7c42b1268
am 542e6c87
: am d9ba757e
: Merge "Sync up nameser with upstream(2014.03.05)"
...
* commit '542e6c87e52f7886e5ede72e3222c2d6ed83aefb':
Sync up nameser with upstream(2014.03.05)
2014-03-07 19:29:50 +00:00
Calin Juravle
b145b5ef7c
Merge "Fix broken pointer overflow check ns_name_unpack()"
2014-03-07 11:46:48 +00:00
Calin Juravle
d9ba757ef4
Merge "Sync up nameser with upstream(2014.03.05)"
2014-03-07 11:45:58 +00:00
Elliott Hughes
e4014d8882
am 37486940
: am d40eb159
: Merge "Fix some pthread symbols build as C++ symbol under x64 lunch."
...
* commit '3748694064366694b2136ac8943332d5ceec7bf4':
Fix some pthread symbols build as C++ symbol under x64 lunch.
2014-03-07 11:00:32 +00:00
Elliott Hughes
39febf4a95
am e992f79a
: am 087dbc6b
: Merge "Bring the generate-NOTICE script up to date."
...
* commit 'e992f79a5627e9d839a001f8563b637d2e97bb93':
Bring the generate-NOTICE script up to date.
2014-03-07 03:09:45 +00:00
Elliott Hughes
18a32d4ac0
am 372196e9
: am dec5bacf
: Merge "Update the NOTICE files."
...
* commit '372196e955047551d6241de7b83ae43bdb5a8b5c':
Update the NOTICE files.
2014-03-07 03:09:44 +00:00
Elliott Hughes
7157b81966
am 91a5272e
: am e7ea9363
: Merge "Add ARMv8 optimized string handling functions based on cortex-strings"
...
* commit '91a5272e6f7712e5313b85c6a615f6891e7ea0a7':
Add ARMv8 optimized string handling functions based on cortex-strings
2014-03-07 03:09:44 +00:00
Elliott Hughes
d40eb1594d
Merge "Fix some pthread symbols build as C++ symbol under x64 lunch."
2014-03-07 01:03:25 +00:00
Elliott Hughes
22a0d6fcdc
Bring the generate-NOTICE script up to date.
...
Change-Id: I63981a2f3cb0a4d7ee7e1a2b4ce00f77898ac25b
2014-03-06 15:10:22 -08:00
Elliott Hughes
4e54b114f9
Update the NOTICE files.
...
Change-Id: Ie72a01cddd5b813393656f603689e497b0f88ddd
2014-03-06 15:06:11 -08:00
Elliott Hughes
e7ea9363cb
Merge "Add ARMv8 optimized string handling functions based on cortex-strings"
2014-03-06 23:02:11 +00:00
Bernhard Rosenkraenzer
7e4fa56099
Add ARMv8 optimized string handling functions based on cortex-strings
...
This adds ARMv8 optimized string handling functions to Bionic.
The implementations live in a generic/ directory because there will
likely be more CPU specific versions (e.g. Cortex-A53 vs. Cortex-A57)
later.
These implementations are 50%+ faster on current v8 models.
Change-Id: If3adc54a284d9519459b0d4d4390f0cd6ded8786
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2014-03-06 14:59:51 -08:00
Calin Juravle
85c5202a64
Fix broken pointer overflow check ns_name_unpack()
...
Many compilers may optimize away the overflow check `msg + l < msg',
where `msg' is a pointer and `l' is an integer, because pointer
overflow is undefined behavior in C.
Use a safe precondition test `l >= eom - msg' instead.
Bug: 13219633
Change-Id: I3fca2125834073cc36d7e9c4e586e97842265a59
2014-03-06 18:39:29 +00:00
Calin Juravle
fcb502e3ec
Sync up nameser with upstream(2014.03.05)
...
Bug: 13219633
Change-Id: I8ee4ddf270710e9eea415fa3db984af7719a8dd4
2014-03-06 18:36:43 +00:00
Mark Salyzyn
bbcd3c686e
am a6bd876e
: am 68a651e7
: Merge "libc: libc_logging 64bit compile issue"
...
* commit 'a6bd876e3dffedb2227dde034328987ebb79223b':
libc: libc_logging 64bit compile issue
2014-03-06 02:50:44 +00:00
Mark Salyzyn
9fc76027f3
libc: libc_logging 64bit compile issue
...
- user space logger wire format for time
Change-Id: I4840653e3a6ae151a02584311d1227d2fe536d0f
2014-03-05 16:59:39 -08:00
Robert Greenwalt
abf91850f9
Merge "Fix dns searchdomain use in gethostbyname." into klp-dev
2014-03-05 18:26:27 +00:00
Narayan Kamath
ffce5ede0b
am 4e53c59d
: am 48d145c1
: Merge "Stop defining HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC."
...
* commit '4e53c59db205bcb991000bf540241eb5d3b99bef':
Stop defining HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC.
2014-03-05 13:31:12 +00:00
Narayan Kamath
252ee1e112
Stop defining HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC.
...
No code is using this definition.
Change-Id: I188db63f38d62baf1cb57d0a36fcda540ad98492
2014-03-05 13:19:10 +00:00
Halton Huo
f0870c3bfe
Fix some pthread symbols build as C++ symbol under x64 lunch.
...
Functions protected with !defined(__LP64__) will be get build as C++
symbols for X64 build. This is not the desired work. So protect the
implementation with !defined(__LP64__) as well.
Change-Id: I4ef50ec36e46289ab308063e24f6c5ac61a6ca8d
2014-03-05 16:34:20 +08:00
Elliott Hughes
636bcf0f69
am 614f7626
: am bef50164
: Merge "Remove dead NULL checks from pthread code."
...
* commit '614f7626fc5dcf5c0cff2c49799f2659524d3ad3':
Remove dead NULL checks from pthread code.
2014-03-04 19:16:08 +00:00
Elliott Hughes
39b644a0e2
Remove dead NULL checks from pthread code.
...
GCC is removing these checks anyway because it knows the arguments
must be non-null, so leaving this code around is just confusing.
We know from experience that people were shipping code with locking
bugs because they weren't checking for error returns. Failing hard
like glibc does seems the better choice. (And it's what the checked
in code was already doing; this patch doesn't change that. It just
makes it more obvious that that's what's going on.)
Change-Id: I167c6d7c0a296822baf0cb9b43b97821eba7ab35
2014-03-04 10:55:39 -08:00
Elliott Hughes
43b9169ffb
am 17ef5653
: am a0bf9bde
: Merge "Implement POSIX pthread_mutex_timedlock."
...
* commit '17ef5653dd8aa92176e90964c95a02ccf4809695':
Implement POSIX pthread_mutex_timedlock.
2014-03-04 18:50:35 +00:00
Elliott Hughes
0e714a5b41
Implement POSIX pthread_mutex_timedlock.
...
This replaces the non-standard pthread_mutex_lock_timeout_np, which we have
to keep around on LP32 for binary compatibility.
Change-Id: I098dc7cd38369f0c1bec1fac35687fbd27392e00
2014-03-04 10:27:58 -08:00
Calin Juravle
631d309268
am 0c8d3b35
: am 8e541b12
: Merge "Moved nameser.h and namser_compat.h to public include dir"
...
* commit '0c8d3b35c6eb07384b0176ab3d1d462bad996e06':
Moved nameser.h and namser_compat.h to public include dir
2014-03-04 18:04:44 +00:00
Calin Juravle
3f6229cf32
am cc0948d8
: am 4a46a689
: Merge "Moved private dns header to their own dir."
...
* commit 'cc0948d86a50a1b2441552cd0f357ca040855928':
Moved private dns header to their own dir.
2014-03-04 17:55:59 +00:00
Calin Juravle
ff4dfd26a8
am 8121d264
: am 9f2d1bcd
: Merge "Renamed the misleading libc/netbsd directory to libc/dns."
...
* commit '8121d264bc58c6d97edae23981d2646b05fcdf83':
Renamed the misleading libc/netbsd directory to libc/dns.
2014-03-04 17:55:58 +00:00
Narayan Kamath
b863c9574e
am 3f985d31
: am caaae7f2
: Merge "Implement pthread_condattr_{get,set}clock."
...
* commit '3f985d31b6fc3fd61f76b71aa05c3c69d853452a':
Implement pthread_condattr_{get,set}clock.
2014-03-04 16:05:46 +00:00
Calin Juravle
569fb9887d
Moved nameser.h and namser_compat.h to public include dir
...
This is part of the upstream sync (Net/Open/Free BSDs expose the
nameser.h in their public headers).
Change-Id: Ib063d4e50586748cc70201a8296cd90d2e48bbcf
2014-03-04 15:07:07 +00:00
Calin Juravle
4a46a68942
Merge "Moved private dns header to their own dir."
2014-03-04 14:25:51 +00:00
Calin Juravle
9f2d1bcd17
Merge "Renamed the misleading libc/netbsd directory to libc/dns."
2014-03-04 14:25:30 +00:00
Narayan Kamath
51e6cb33e3
Implement pthread_condattr_{get,set}clock.
...
We only support CLOCK_REALTIME and CLOCK_MONOTONIC for now,
so we us a single bit from pthread_cond_t->value to denote
the clock type. Note that this reduces the width of the counter
to 30 bits, but this should be large enough for all practical
purposes.
bug: 13232338
Change-Id: I857e7da64b3ecbb23eeac7c9f3fbd460f60231bd
2014-03-04 11:17:13 +00:00
Elliott Hughes
010d090241
am fea778b3
: am 2c7c79e6
: Merge "Switch to upstream alarm(3)."
...
* commit 'fea778b308be2dd0d75bd757129c3ef62ace3a61':
Switch to upstream alarm(3).
2014-03-04 01:11:01 +00:00
Elliott Hughes
2c7c79e6e5
Merge "Switch to upstream alarm(3)."
2014-03-04 00:58:53 +00:00
Elliott Hughes
aedb00d04e
Switch to upstream alarm(3).
...
The only way the setitimer call can fail is if the unsigned number of seconds is
too large to fit in the kernel's signed number of seconds. If you schedule a
68-year alarm, glibc will fail by returning 0 and BSD will fail by returning -1.
Change-Id: Ic3721b01428f5402d99f31fd7f2ba2cc58805607
2014-03-04 00:58:31 +00:00
Mark Salyzyn
4fc7758e6f
am 337815ff
: am f33df6a6
: Merge "libc: Make calls to new user-space logger (revisit)"
...
* commit '337815ffa2d4c899bf3c2b9798cb90665b497cea':
libc: Make calls to new user-space logger (revisit)
2014-03-03 21:18:08 +00:00
Mark Salyzyn
f33df6a662
Merge "libc: Make calls to new user-space logger (revisit)"
2014-03-03 21:05:19 +00:00
Elliott Hughes
1eb606df0a
am 46215a8b
: am dfeb42ed
: Merge "If the kernel doesn\'t have MADV_MERGEABLE, stop asking for it."
...
* commit '46215a8b53e149de3fc28600c2b2eebe66d36716':
If the kernel doesn't have MADV_MERGEABLE, stop asking for it.
2014-03-03 20:55:35 +00:00
Elliott Hughes
29264f4eda
am f6ce4490
: am 15e71cd7
: Merge "Remove deprecated and unused constants from <sys/klog.h>."
...
* commit 'f6ce44900e5b94c18a026ac4ce4d5fd2c51663d4':
Remove deprecated and unused constants from <sys/klog.h>.
2014-03-03 20:55:35 +00:00
Calin Juravle
cecc036970
Moved private dns header to their own dir.
...
Bug: 13219633
Change-Id: I3435ef7564b9ad3c7b54188a0809440993b36c9e
2014-03-03 20:40:41 +00:00
Mark Salyzyn
f38292862b
libc: Make calls to new user-space logger (revisit)
...
* TARGET_USES_LOGD is true or false, yes is not valid
* was supposed to be in the libc_bionic definition
Change-Id: I7f15d0fe61205641f7310ba9762df885e6c959d0
2014-03-03 12:30:24 -08:00
Elliott Hughes
9bd9b7dd20
If the kernel doesn't have MADV_MERGEABLE, stop asking for it.
...
Note that a dynamically-linked binary will still probably see two attempts ---
one by the dynamic linker (which will set its copy of the flag so it won't try
again) and then one by the executable itself (which gets a new uninitialized
copy of the flag).
Change-Id: Id6b7e47780f0f24d2ca0384a75373f4824fa8f12
2014-03-03 11:54:21 -08:00
Elliott Hughes
e4ab19c67d
Remove deprecated and unused constants from <sys/klog.h>.
...
Change-Id: I23d54b5eaf918859480f927534a3f9e3af602311
2014-03-03 10:57:28 -08:00
Elliott Hughes
019cff957e
am 3c42b739
: am ddad384d
: Merge "Fix build."
...
* commit '3c42b73985817da87c32c2d97a58e5e4f21d48a6':
Fix build.
2014-03-01 02:12:59 +00:00
Elliott Hughes
a8b1eb3fcf
Fix build.
...
Change-Id: I71cde79263d5f5a8382865b8151f65c5c05ea17b
2014-02-28 17:59:29 -08:00
Elliott Hughes
79370b2aee
am 5b9d3ddf
: am 2ec592c3
: Merge "Add recvmmsg and sendmmsg syscalls."
...
* commit '5b9d3ddf372ca47e3065845487a770794021c760':
Add recvmmsg and sendmmsg syscalls.
2014-03-01 01:24:39 +00:00
Elliott Hughes
e63d519946
am 796b7c7c
: am ddc8cc7a
: Merge "Add getprogname/setprogname for BSD compatibility."
...
* commit '796b7c7cf9404b59b2120177d2f2b40ecc58c3c8':
Add getprogname/setprogname for BSD compatibility.
2014-03-01 01:24:38 +00:00