Commit Graph

4164 Commits

Author SHA1 Message Date
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