Colin Cross
49fbec6d9a
HACK: remove %m support from printf.
...
The change that added this support causes a cpu hard lock on one
device. This code clearly isn't at fault, but disabling it to
unblock until we can find a real fix.
Bug: 16484311
Change-Id: I33834dc49d959ae403b10d2c7cad12ae2950f772
2014-07-23 14:56:20 -07:00
Elliott Hughes
4126c12961
Fix belated review comments on syslog change.
...
Bug: 14292866
(cherry picked from commit afe6360627 )
Change-Id: I8e3cc6b37b2539e51a27261ffb5d6e58266ce11d
2014-07-23 13:11:15 -07:00
Elliott Hughes
2aa142ffb2
Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
...
(cherry picked from commit 5d2f86f363 )
Change-Id: Iddf22c8d9ff7a4d1205d37bb58c6235af681d795
2014-07-23 11:36:21 -07:00
Elliott Hughes
4ac83fad3c
Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files.
...
(cherry picked from commit 3758a244cf )
Change-Id: I6ffb83b4a7b7746b095205c664cf025a72ead179
2014-07-23 09:39:40 -07:00
Elliott Hughes
3ff6d95a9b
Remove the unused swab.S.
...
(cherry picked from commit ca70453e84 )
Change-Id: I4dc13de0bdeb7abb3bd47b0397546ad7d1f11d49
2014-07-22 20:43:55 -07:00
Duane Sand
5d7775c6df
[MIPS] Allow united mipsel and mips64el gcc toolchain
...
Explicitly tell 32-bit links that they are doing 32-bit links.
This is needed when using united 32-bit and 64-bit toolchains.
This is harmless when using older separate 32-only toolchains.
(cherry picked from commit f541650828 )
Change-Id: I8df0ee7d36c6409458e18bea4e0e8b132edf77dc
2014-07-22 19:41:49 -07:00
Sreeram Ramachandran
2582f02a01
Cleanup: Delete dead code.
...
Bug: 15413389
Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
2014-07-22 11:24:17 -07:00
Elliott Hughes
6209c81d40
Use upstream OpenBSD's arc4random.
...
The getentropy_linux.c is lightly modified to build on Android, but we're now
completely in sync with upstream OpenBSD's arc4random implementation.
(cherry picked from commit 2b67d7dee0 )
Change-Id: Icc939b5fa2fcac3e15ff93735d2d34f67e9bb149
2014-07-21 19:17:15 -07:00
Elliott Hughes
b76613627d
Rewrite syslog(3) to use Android logging.
...
Since we don't have syslogd on Android and you can't run one on a non-rooted
device, it's more useful if syslog output just goes to the regular Android
logging system.
Bug: 14292866
(cherry picked from commit 3ad8ecb64e )
Change-Id: I3038855ca4f22532bf6d2c45d3f8028b866975f9
2014-07-21 18:55:04 -07:00
Hans Boehm
ed68221a82
Define atomic_charN_t only if charN_t is supported.
...
Some platform code is apparently compiled with switches that do
not support char16_t and char32_t. This caused stdatomic.h to fail
to compile. This CL makes stdatomic.h usable in those environments.
(cherry picked from commit 8b002362d9 )
Change-Id: Ie5a17f20b8b545c97128d00605b4eabd2a6bfe3e
2014-07-18 17:53:01 -07:00
Christopher Ferris
b0815aeacb
Make sure not to construct illegal property names.
...
(cherry picked from commit 53531ccebb )
Change-Id: I7e988c335ef32b61b2ac34f34509274623dbed69
2014-07-18 17:00:20 -07:00
Elliott Hughes
fbd0081923
Merge "Clean up some misinformation around prctl." into lmp-dev
2014-07-18 22:16:50 +00:00
Elliott Hughes
de24f1ac00
Clean up some misinformation around prctl.
...
prctl shouldn't be in <unistd.h>.
(cherry picked from commit 9c07aee83b )
Change-Id: I70cda886fbf4d58d82dc70adaa981506ebff9949
2014-07-18 16:54:28 -07:00
Elliott Hughes
291da8d353
Remove SIOCKILLADDR from <sys/socket.h>.
...
(cherry picked from commit 8a3d1ca183 )
Change-Id: Idb5cc4cff3ece7fa8740db12a19438d1a1c9a6a8
2014-07-18 16:53:23 -07:00
Elliott Hughes
b5bef263b3
Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>.
...
(cherry picked from commit 9f165d24f0 )
Change-Id: I009d3742cefbf36115f09824f267a0265ae215bf
2014-07-18 16:52:24 -07:00
Christopher Ferris
e8bc581333
Use the mmap/munmap for allocation routines.
...
To avoid any issues calling malloc related routines, use mmap/munmap.
Specifically, this avoids any problems when this is compiled into a
malloc debug shared library.
(cherry picked from commit 6425327c32 )
Change-Id: If43d12b2c588c9abcbfbbd2c53702cdac7695a73
2014-07-18 15:23:32 -07:00
Elliott Hughes
b46696858b
Fix private/bionic_name_mem.h build breakage.
...
(cherry picked from commit 2f9c6e38b8 )
Change-Id: Ia8e96da98802d312011df866ac1baaa48f97811c
2014-07-17 15:15:44 -07:00
Elliott Hughes
d648f557f1
Remove non-standard prctl constants from <sys/prctl.h>.
...
Also remove __bionic_name_mem which has exactly one caller, and is only
ever expected to be used in this one place.
(cherry picked from commit d7453860a6 )
Change-Id: I26b7638609e9d4eaf4f21ae29721ea27d4176702
2014-07-17 15:15:37 -07:00
Christopher Ferris
a694517909
Merge "Add gen syscalls step to instructions." into lmp-dev
2014-07-17 21:15:46 +00:00
Christopher Ferris
013c9b8035
Add gen syscalls step to instructions.
...
Also, fix incorrect path to some tools.
(cherry picked from commit ea271fdf26 )
Change-Id: Ie93cbc84b9a46d622b0b462a33bed0ee129992cb
2014-07-18 16:56:33 -07:00
Elliott Hughes
9a7fdb2dae
ptrace(3) should be varargs.
...
Bug: 16352070
(cherry picked from commit 98b088dce7 )
Change-Id: I6193ef44df9a5668020916eaca90b47fc4c8ab77
2014-07-16 16:59:31 -07:00
Elliott Hughes
3002131da3
Use VDSO for clock_gettime(2) and gettimeofday(2).
...
Bug: 15387103
(cherry picked from commit 625993dfbb )
Change-Id: I0e156d7049ba1495902259071a96936592e74025
2014-07-16 15:15:53 -07:00
Dan Albert
a446505874
Merge "Remove isascii_l(3)." into lmp-dev
2014-07-16 13:12:22 +00:00
Elliott Hughes
97ba2a5cc4
Regenerate the syscalls list after the uapi update.
...
(cherry picked from commit 3fa60e10bc )
Change-Id: Id545a5b0b0953967effd819177f0dadb134f2011
2014-07-15 19:09:12 -07:00
Dan Albert
da8accfefe
Remove isascii_l(3).
...
Had intended to remove this one before submitting the locale changes,
but forgot. It isn't a standard ctype function, so we don't need it.
Change-Id: Ie9c09fa6c61b1101b5992fa06da30e373a0c6bf7
2014-07-15 16:49:30 -07:00
Christopher Ferris
73c963e4c5
Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit.
...
There were two bugs here:
- For 64 bit values, this did not properly round up.
- The macro rounded to the power of 2 less than value, not to the power
of 2 greater than value.
(cherry picked from commit 27047faf28 )
Change-Id: Idf1ec67854e1eb423704e599ae1c6b674d36618d
2014-07-15 13:23:06 -07:00
Elliott Hughes
ca276c40df
Fix visibility for a bunch more symbols.
...
Bug: 11156955
Bug: 15291317
(cherry picked from commit a167eef548 )
Change-Id: Ib038ad34ef59631f7b4ed6dff2b7956001b8b159
2014-07-14 18:59:51 -07:00
Elliott Hughes
99ae0983c0
Implement rand/srand in terms of random/srandom.
...
Code developed for glibc or older versions of bionic might expect more
randomness than the BSD implementation provides.
Bug: 15829381
(cherry picked from commit 76c241b091 )
Change-Id: If721b3f16efdb21cb67df5ec5034c0ba905bd029
2014-07-14 14:06:11 -07:00
Elliott Hughes
caaf71ebb3
Sync upstream-openbsd.
...
(cherry picked from commit 4f0b67a8db )
Change-Id: I8753959853312ab978bc4eb1bbbcdc7d1b007b95
2014-07-14 13:59:03 -07:00
Dmitriy Ivanov
38778e3b6c
Upstream atexit
...
Change-Id: Ia454a2181b5058ed9783dc02b6b1805d0e4d2715
(cherry picked from commit 53c3c271dc )
2014-07-14 13:29:34 -07:00
Elliott Hughes
3b318a5b3d
am e2b177a5: am 83ce99d8: Merge "Define SIOCKILLADDR which isn\'t in the common kernel uapi headers."
...
* commit 'e2b177a5d1384ebbb82d576637364e5b24450beb':
Define SIOCKILLADDR which isn't in the common kernel uapi headers.
2014-07-12 13:08:44 +00:00
Elliott Hughes
e2b177a5d1
am 83ce99d8: Merge "Define SIOCKILLADDR which isn\'t in the common kernel uapi headers."
...
* commit '83ce99d8b7e2b15b2169e6e6e18e871ad35abb6c':
Define SIOCKILLADDR which isn't in the common kernel uapi headers.
2014-07-12 12:59:27 +00:00
Elliott Hughes
f6968e3c08
Define SIOCKILLADDR which isn't in the common kernel uapi headers.
...
(cherry picked from commit 2ba2888cac )
Change-Id: I3845871bb44dae94d9a0428af0f562ddfb8bd660
2014-07-11 22:37:13 -07:00
Elliott Hughes
bae7c20672
am b962ab81: am 57a5b338: Merge "Define three prctl constants that went missing from uapi."
...
* commit 'b962ab81fc37fc8b4b8cfd45d3538b641dd6fd13':
Define three prctl constants that went missing from uapi.
2014-07-12 03:15:29 +00:00
Elliott Hughes
b962ab81fc
am 57a5b338: Merge "Define three prctl constants that went missing from uapi."
...
* commit '57a5b3380a8834ecb4a32d01433a3127454443d7':
Define three prctl constants that went missing from uapi.
2014-07-12 03:10:36 +00:00
Elliott Hughes
f65d552b3d
am 0594b9dd: am b8e82b5e: Merge "EM_ARM and EM_AARCH64 are now in the uapi header."
...
* commit '0594b9ddded7d832b786c209dd7cd4e26ee32eb8':
EM_ARM and EM_AARCH64 are now in the uapi header.
2014-07-12 02:06:38 +00:00
Christopher Ferris
8832cfb2fe
am efdf7862: am 385bb1ed: Merge "Add optimized memchr implementation from newlib"
...
* commit 'efdf7862be41b2dfd8d013e2495af9a2db5286f5':
Add optimized memchr implementation from newlib
2014-07-12 02:06:37 +00:00
Christopher Ferris
d92a6d0669
am 55230dd0: am 96502e27: Merge "Make jemalloc the default choice."
...
* commit '55230dd048d8c93af67611c30fd6563e24ef23c5':
Make jemalloc the default choice.
2014-07-12 02:06:37 +00:00
Christopher Ferris
d389809de7
am 18a25078: am c6bc0017: Merge "Update kernel headers to v3.14."
...
* commit '18a25078f0cc0aa9842f6397e3c24a5ae8686de5':
Update kernel headers to v3.14.
2014-07-12 02:06:36 +00:00
Elliott Hughes
9c98443e2b
am ce1422b9: am 040e1187: Merge "Enable building libc with clang."
...
* commit 'ce1422b985383c4cbb485b3ec121eb8d01af12b8':
Enable building libc with clang.
2014-07-12 02:06:36 +00:00
Dan Albert
405fd491bc
am c0afc23e: am 37f09d6d: Merge "Revert "Revert "Add locale aware APIs."""
...
* commit 'c0afc23e26ca0a591dd8fb5fcddf1cb616bd5e43':
Revert "Revert "Add locale aware APIs.""
2014-07-12 02:06:35 +00:00
Elliott Hughes
210a842354
am d19f2d85: am 76df69d1: Merge "The err family allow null format strings."
...
* commit 'd19f2d859f744ded5a70cf0d8a23427eac7ec817':
The err family allow null format strings.
2014-07-12 02:06:35 +00:00
Elliott Hughes
d54994a45f
am 696c48df: am eba7c15b: Merge "Revert "Switch libm to building with clang.""
...
* commit '696c48df69a0841e8e179e313302c01155df5e85':
Revert "Switch libm to building with clang."
2014-07-12 02:06:34 +00:00
Elliott Hughes
2545bf7b41
am 37ab54fd: am 5df23dc8: Merge "Switch libm to building with clang."
...
* commit '37ab54fd88f2bc579f7d5b931d6e3c40ad4e1f05':
Switch libm to building with clang.
2014-07-12 02:06:33 +00:00
Elliott Hughes
3ea96e7b86
am 35805377: am 9b491470: Merge "Slim down static binaries by avoiding stdio."
...
* commit '35805377f91f0057704ee38687e0d9bf22d9d528':
Slim down static binaries by avoiding stdio.
2014-07-12 02:06:33 +00:00
Elliott Hughes
a9e847fdea
am 7d9f1cc5: am f0f8cd1f: Merge "Remove the global lock around thread stack creation."
...
* commit '7d9f1cc55c1f3641431e4ec8cf88d374025c5f39':
Remove the global lock around thread stack creation.
2014-07-12 02:06:32 +00:00
Elliott Hughes
b2ddd728c3
am 12ce9115: am cd23370c: Merge "Remove the obsolete _thread_created_hook."
...
* commit '12ce91157a40785182a3424af2890fcad032f9c6':
Remove the obsolete _thread_created_hook.
2014-07-12 02:06:31 +00:00
Calin Juravle
9899217adb
am 9712d913: am 02459d34: Merge "Move __cmsg_nxthdr to its proper file."
...
* commit '9712d913eba352d108116595d9be8bd0c96f24f6':
2014-07-12 02:06:31 +00:00
Calin Juravle
b89ef57d09
am cd061f6e: am 8a71a745: Merge "Removed obsolete symbol cmsg_nxthdr."
...
* commit 'cd061f6e434a28e979346b14cfe29a953ab9181f':
2014-07-12 02:06:30 +00:00
Christopher Ferris
a35ae1bcaa
am 4306b0f8: am 25fba981: Merge "Do not include libc_common in malloc debug code."
...
* commit '4306b0f82b236acb10e1f42e7d850e4edd37fb78':
2014-07-12 02:06:29 +00:00