OSDN Git Service
Dan Albert [Fri, 18 Apr 2014 19:36:06 +0000 (12:36 -0700)]
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
Elliott Hughes [Fri, 18 Apr 2014 18:19:23 +0000 (18:19 +0000)]
Merge "Upgrade to current vfprintf."
Elliott Hughes [Fri, 18 Apr 2014 17:56:38 +0000 (17:56 +0000)]
Merge "Upgrade our <ctype.h> implementation to OpenBSD head."
Elliott Hughes [Fri, 18 Apr 2014 17:29:16 +0000 (10:29 -0700)]
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
Dan Albert [Fri, 18 Apr 2014 15:52:59 +0000 (15:52 +0000)]
Merge "Changes our ctype identifiers to match the BSDs"
Dan Albert [Tue, 15 Apr 2014 22:44:02 +0000 (15:44 -0700)]
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
Elliott Hughes [Fri, 18 Apr 2014 00:30:03 +0000 (17:30 -0700)]
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
Elliott Hughes [Thu, 17 Apr 2014 00:16:51 +0000 (00:16 +0000)]
Merge "Regenerate the NOTICE files."
Elliott Hughes [Thu, 17 Apr 2014 00:01:12 +0000 (17:01 -0700)]
Regenerate the NOTICE files.
Change-Id: Iac666f69b930e31bbeac3438812d544c6af55b0f
Elliott Hughes [Wed, 16 Apr 2014 23:57:06 +0000 (23:57 +0000)]
Merge "Switch fpclassify over to ieee_ext."
Elliott Hughes [Wed, 16 Apr 2014 23:56:40 +0000 (23:56 +0000)]
Merge "Clean up <machine/ieee.h>."
Elliott Hughes [Wed, 16 Apr 2014 23:45:59 +0000 (16:45 -0700)]
Switch fpclassify over to ieee_ext.
Change-Id: I441bb7f715da24e1c04b0386ad9dcde0ea8c797c
Elliott Hughes [Wed, 16 Apr 2014 23:31:17 +0000 (16:31 -0700)]
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
Elliott Hughes [Wed, 16 Apr 2014 23:26:31 +0000 (23:26 +0000)]
Merge "Use FLT_ROUNDS in LP64 strtold."
Elliott Hughes [Wed, 16 Apr 2014 23:09:41 +0000 (16:09 -0700)]
Use FLT_ROUNDS in LP64 strtold.
Change-Id: I75323be6e1cadb00770fcdd08422836b03737416
Elliott Hughes [Wed, 16 Apr 2014 23:02:08 +0000 (23:02 +0000)]
Merge "Switch to gdtoa."
Elliott Hughes [Fri, 11 Apr 2014 00:48:14 +0000 (17:48 -0700)]
Switch to gdtoa.
This gives us a real strtold for LP64 and fixes various LP64
bugs.
Bug:
13563801
Change-Id: I277858d718ee746e136b6b6308a495ba50dfa488
Ben Cheng [Tue, 15 Apr 2014 22:37:28 +0000 (22:37 +0000)]
Merge "Fix signed vs unsigned comparison."
Ben Cheng [Tue, 15 Apr 2014 22:29:32 +0000 (15:29 -0700)]
Fix signed vs unsigned comparison.
Otherwise GCC 4.9 complains.
Change-Id: I7cd3c5e8c78fda709130ca88a85fa1512e6fc024
Elliott Hughes [Tue, 15 Apr 2014 19:19:48 +0000 (19:19 +0000)]
Merge "Add iswblank for libcxx."
Elliott Hughes [Tue, 15 Apr 2014 19:04:05 +0000 (12:04 -0700)]
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
Elliott Hughes [Mon, 14 Apr 2014 22:45:56 +0000 (22:45 +0000)]
Merge "Fix arm64 floating point definitions."
Elliott Hughes [Mon, 14 Apr 2014 22:33:32 +0000 (15:33 -0700)]
Fix arm64 floating point definitions.
Change-Id: I6836da8fc9f66465435a21c51cb18851e20e9645
Elliott Hughes [Mon, 14 Apr 2014 21:36:26 +0000 (21:36 +0000)]
Merge "Reimplement isinf/isnan/fpclassify."
Elliott Hughes [Sat, 12 Apr 2014 00:02:20 +0000 (17:02 -0700)]
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
Elliott Hughes [Mon, 14 Apr 2014 21:07:24 +0000 (21:07 +0000)]
Merge "Extra tests for printf of NaN and Inf."
Elliott Hughes [Mon, 14 Apr 2014 19:11:28 +0000 (12:11 -0700)]
Extra tests for printf of NaN and Inf.
Change-Id: I61fc655d9777a03aabf38f6ebd047fe275386f05
Elliott Hughes [Sat, 12 Apr 2014 17:35:27 +0000 (17:35 +0000)]
Merge "Replace the bionic hack for a vfprintf leak with (roughly) the upstream fix."
Elliott Hughes [Sat, 12 Apr 2014 01:00:37 +0000 (18:00 -0700)]
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
Elliott Hughes [Fri, 11 Apr 2014 16:23:28 +0000 (16:23 +0000)]
Merge "Improve the <sstream> test."
Elliott Hughes [Thu, 10 Apr 2014 23:22:23 +0000 (16:22 -0700)]
Improve the <sstream> test.
It looks like libcxx's testing is crap too, and this turned up
another bug in stlport.
Change-Id: I98c93dceaa8225c3cc280166d4bb74adaf94a324
Elliott Hughes [Fri, 11 Apr 2014 00:50:49 +0000 (00:50 +0000)]
Merge "Remove unnecessary #includes."
Elliott Hughes [Fri, 11 Apr 2014 00:50:06 +0000 (17:50 -0700)]
Remove unnecessary #includes.
Change-Id: Ie7e0c9ea03f35517c7dcf09fc808c12e55262bc1
Elliott Hughes [Thu, 10 Apr 2014 19:03:55 +0000 (19:03 +0000)]
Merge "Add a test for external/stlport
a6df82320fcb8f26af0d067c7768fedbaeb9ad88."
Elliott Hughes [Thu, 10 Apr 2014 18:34:14 +0000 (11:34 -0700)]
Add a test for external/stlport
a6df82320fcb8f26af0d067c7768fedbaeb9ad88.
Change-Id: If4df9f5df41ae5453a3dff6bb032b419819f8703
Elliott Hughes [Wed, 9 Apr 2014 23:59:42 +0000 (23:59 +0000)]
Merge "Use the glibc name user_fpregs_struct."
Elliott Hughes [Wed, 9 Apr 2014 23:35:36 +0000 (16:35 -0700)]
Use the glibc name user_fpregs_struct.
Instead of the kernel name user_i387_struct.
Bug:
13889008
Change-Id: Ideec2e1ce36c1faa4b5b2db1999ad2b23757ca4d
Elliott Hughes [Wed, 9 Apr 2014 22:52:07 +0000 (22:52 +0000)]
Merge "Fix mcontext_t for x86-64."
Elliott Hughes [Wed, 9 Apr 2014 20:27:48 +0000 (13:27 -0700)]
Fix mcontext_t for x86-64.
Change-Id: I1ac0e7f44bcdd06a07862993e92c3048a7474a8b
Calin Juravle [Wed, 9 Apr 2014 06:06:46 +0000 (06:06 +0000)]
Merge "Use glibc structure for __cmsg_nxthdr."
Elliott Hughes [Wed, 9 Apr 2014 04:13:43 +0000 (04:13 +0000)]
Merge "Flesh out <locale.h>."
Elliott Hughes [Wed, 9 Apr 2014 02:45:47 +0000 (02:45 +0000)]
Merge "Fix build: include what you use."
Elliott Hughes [Wed, 9 Apr 2014 02:44:36 +0000 (19:44 -0700)]
Fix build: include what you use.
Change-Id: I12b2d5e434ad3ed38d4451bd470673781e6ca8fe
Elliott Hughes [Wed, 9 Apr 2014 00:05:05 +0000 (17:05 -0700)]
Flesh out <locale.h>.
This is a trivial implementation that only supports the C/POSIX locale.
Change-Id: Ib11cea4249e1862aca96a8b94d58ea9a418cbe75
Elliott Hughes [Wed, 9 Apr 2014 02:07:00 +0000 (02:07 +0000)]
Merge "Implement _Exit(3)."
Elliott Hughes [Wed, 9 Apr 2014 00:14:01 +0000 (17:14 -0700)]
Implement _Exit(3).
Change-Id: Ida6ac844cc87d38c9645b197dd8188bb73e27dbe
Calin Juravle [Mon, 7 Apr 2014 17:39:20 +0000 (20:39 +0300)]
Use glibc structure for __cmsg_nxthdr.
Bug:
13418328
Change-Id: I7e656b373e53e80d708325321e48dcedacf5086d
Elliott Hughes [Tue, 8 Apr 2014 21:52:33 +0000 (21:52 +0000)]
Merge "Clean up localeconv(3)."
Elliott Hughes [Tue, 8 Apr 2014 21:34:12 +0000 (14:34 -0700)]
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
Andrew Hsieh [Tue, 8 Apr 2014 20:09:44 +0000 (20:09 +0000)]
Merge "Corrected typo in mips64.mk about memcpy.cpp"
Elliott Hughes [Tue, 8 Apr 2014 19:20:51 +0000 (19:20 +0000)]
Merge "AArch64: Fix flock64 for LP64."
Serban Constantinescu [Fri, 14 Mar 2014 13:16:25 +0000 (13:16 +0000)]
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>
Andrew Hsieh [Tue, 8 Apr 2014 18:16:03 +0000 (02:16 +0800)]
Corrected typo in mips64.mk about memcpy.cpp
Change-Id: I1e6fb9373880bcdbad3fa86145e5138ce0d30b31
Elliott Hughes [Tue, 8 Apr 2014 17:47:27 +0000 (17:47 +0000)]
Merge "Fix kernel header scrubbing for LP64."
Elliott Hughes [Tue, 8 Apr 2014 17:15:06 +0000 (10:15 -0700)]
Fix kernel header scrubbing for LP64.
Change-Id: I4caf44d41edd1b03a20d4c565e169c2b7a2f3686
Christopher Ferris [Tue, 8 Apr 2014 01:21:06 +0000 (01:21 +0000)]
Merge "Add stpcpy/stpncpy."
Elliott Hughes [Mon, 7 Apr 2014 23:44:50 +0000 (23:44 +0000)]
Merge "Fix the printf issue for 64 bits. The following case:"
Christopher Ferris [Fri, 4 Apr 2014 21:38:18 +0000 (14:38 -0700)]
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
Elliott Hughes [Mon, 7 Apr 2014 22:53:28 +0000 (22:53 +0000)]
Merge "Remove a non-standard turd: strtotimeval."
Elliott Hughes [Mon, 7 Apr 2014 22:17:19 +0000 (15:17 -0700)]
Remove a non-standard turd: strtotimeval.
Change-Id: I1b1e40746cb573e3fb73a5276969b40c5da36d15
Elliott Hughes [Mon, 7 Apr 2014 21:39:37 +0000 (21:39 +0000)]
Merge "Implement wctomb(3) for ltrace."
Elliott Hughes [Mon, 7 Apr 2014 21:37:47 +0000 (21:37 +0000)]
Merge "Fix build: __unused isn't unused!"
Elliott Hughes [Mon, 7 Apr 2014 21:36:59 +0000 (14:36 -0700)]
Fix build: __unused isn't unused!
Change-Id: I57f2b755d1b2509f9c5504b12a5ff6c50b78b375
Elliott Hughes [Sat, 5 Apr 2014 00:34:51 +0000 (17:34 -0700)]
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
Elliott Hughes [Mon, 7 Apr 2014 20:44:31 +0000 (20:44 +0000)]
Merge "Fix aarch64 struct ucontext."
Elliott Hughes [Mon, 7 Apr 2014 19:12:00 +0000 (12:12 -0700)]
Fix aarch64 struct ucontext.
Change-Id: I6f0959723a753e8c788275709e7245c103ff88d1
Elliott Hughes [Thu, 3 Apr 2014 22:06:25 +0000 (22:06 +0000)]
Merge "Define __WORDSIZE like glibc."
Elliott Hughes [Thu, 3 Apr 2014 20:59:14 +0000 (13:59 -0700)]
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
Robert Greenwalt [Thu, 3 Apr 2014 17:05:32 +0000 (17:05 +0000)]
Merge "bionic: Replace iface with opaque netid in resolver."
Calin Juravle [Thu, 3 Apr 2014 09:01:04 +0000 (09:01 +0000)]
Merge "Emit warnings when linking against imprecise math functions"
Calin Juravle [Thu, 3 Apr 2014 09:00:34 +0000 (09:00 +0000)]
Merge "Fix modf* tests"
Greg Hackmann [Wed, 2 Apr 2014 23:24:54 +0000 (23:24 +0000)]
Merge "Regenerate adf header"
Greg Hackmann [Wed, 2 Apr 2014 23:07:30 +0000 (16:07 -0700)]
Regenerate adf header
Fixes 64-bit related alignment issues
Change-Id: Ie90b920a7489e807e953f45a6db72350b80f6f22
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Elliott Hughes [Wed, 2 Apr 2014 21:54:55 +0000 (21:54 +0000)]
Merge "Upgrade to tzdata2014b."
Elliott Hughes [Wed, 2 Apr 2014 21:40:22 +0000 (14:40 -0700)]
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
Calin Juravle [Tue, 1 Apr 2014 15:45:53 +0000 (16:45 +0100)]
Fix modf* tests
Use a value that can be exactly represented.
Change-Id: Idf3b1db5e6042fb49c1f591f25f9eee656659ece
Calin Juravle [Tue, 1 Apr 2014 16:38:59 +0000 (17:38 +0100)]
Emit warnings when linking against imprecise math functions
Change-Id: I3da7b8396a64d7899fcb89452c879806a8a511ff
Elliott Hughes [Wed, 2 Apr 2014 16:20:47 +0000 (16:20 +0000)]
Merge "Fix the POSIX timers fix."
Alexander Ivchenko [Tue, 1 Apr 2014 13:01:39 +0000 (17:01 +0400)]
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>
Calin Juravle [Wed, 2 Apr 2014 10:17:10 +0000 (10:17 +0000)]
Merge "Changed long double literal suffix from 'l' to 'L'."
Elliott Hughes [Wed, 2 Apr 2014 02:07:52 +0000 (19:07 -0700)]
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
Elliott Hughes [Wed, 2 Apr 2014 00:59:09 +0000 (00:59 +0000)]
Merge "Remove <machine/limits.h>."
Christopher Ferris [Wed, 2 Apr 2014 00:49:04 +0000 (00:49 +0000)]
Merge "Include sys/types.h and sys/wait.h for waitpid"
Brian Carlstrom [Wed, 2 Apr 2014 00:33:41 +0000 (17:33 -0700)]
Include sys/types.h and sys/wait.h for waitpid
(cherry picked from commit
8b2c6d44cac206b61dffd965863336e6f803fc66)
Change-Id: Ice1f6d956c11aaefd3d846c12121f08613a94446
Elliott Hughes [Wed, 2 Apr 2014 00:16:59 +0000 (17:16 -0700)]
Remove <machine/limits.h>.
Change-Id: I7f9e9538517f726d4f08bf1f4b8d57c54d3f1676
Elliott Hughes [Tue, 1 Apr 2014 23:52:04 +0000 (23:52 +0000)]
Merge "Remove SIZE_MAX definition in limits.h"
Christopher Ferris [Tue, 1 Apr 2014 21:52:05 +0000 (21:52 +0000)]
Merge "Fix transient failure in select_smoke test."
Christopher Ferris [Tue, 1 Apr 2014 05:51:27 +0000 (22:51 -0700)]
Fix transient failure in select_smoke test.
Make sure there is a delay before the file descriptor is written so that
the select/pselect calls do not return immediately.
Change-Id: If9e481b0e2cfae7ef7abd9cba8fff84078e203d3
Elliott Hughes [Tue, 1 Apr 2014 21:40:04 +0000 (21:40 +0000)]
Merge "Add Silvermont architecture cache sizes"
Elliott Hughes [Tue, 1 Apr 2014 21:00:07 +0000 (21:00 +0000)]
Merge "Fix debug malloc for LP64."
Elliott Hughes [Tue, 1 Apr 2014 20:48:30 +0000 (13:48 -0700)]
Fix debug malloc for LP64.
Change-Id: I5de2097b6589c0d6750b2a3bc3cbb06227de6d5f
Szymon Jakubczak [Fri, 14 Feb 2014 22:07:23 +0000 (17:07 -0500)]
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
Elliott Hughes [Tue, 1 Apr 2014 20:25:32 +0000 (20:25 +0000)]
Merge "Add lsearch(3) for ltrace."
Elliott Hughes [Tue, 1 Apr 2014 19:40:00 +0000 (12:40 -0700)]
Add lsearch(3) for ltrace.
Bug:
13746936
Change-Id: I833c6ba70a1752c04dab7de389f5bebb741662b3
Elliott Hughes [Tue, 1 Apr 2014 19:22:19 +0000 (19:22 +0000)]
Merge "Remove duplicate line in linker/Android.mk."
Elliott Hughes [Tue, 1 Apr 2014 18:41:36 +0000 (11:41 -0700)]
Remove duplicate line in linker/Android.mk.
Change-Id: I7b4d5fcdfacc840bbda4ffd965e5315c4651cfe5
Calin Juravle [Tue, 1 Apr 2014 15:41:12 +0000 (16:41 +0100)]
Changed long double literal suffix from 'l' to 'L'.
Change-Id: Id569f2d335b0930704d12ad7f388cb98b65f3ab7
Henrik Smiding [Wed, 8 Jan 2014 15:57:55 +0000 (16:57 +0100)]
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>
Christopher Ferris [Tue, 1 Apr 2014 05:50:17 +0000 (05:50 +0000)]
Merge "Move accept4 tests into sys_socket_test.cpp."
Christopher Ferris [Mon, 31 Mar 2014 20:30:22 +0000 (13:30 -0700)]
Move accept4 tests into sys_socket_test.cpp.
In addition, create basic recvmmsg, sendmmsg tests.
Change-Id: Ie9f4954446d98b5eb5e553d3c616c1ee67c3cb66