Commit Graph

10285 Commits

Author SHA1 Message Date
Elliott Hughes
fe6e646cb7 Update NOTICE files.
Change-Id: I459caf48ba861372a4d0bc75f98a9cb4acc20fd5
2014-06-16 10:24:37 -07:00
Dan Albert
462abab12b Removes getdtablesize(3) from LP64.
getdtablesize(3) was removed fro POSIX 2004. Keep the symbol around in LP32 for
binary compatibility, but remove the declaration from unistd.h.

Bug: 13935372
Change-Id: I1f96cd290bf9176f922dad58bd5a7ab2cae7ef0f
2014-06-16 10:12:37 -07:00
Christopher Ferris
d10d3acd45 Merge "Move jemalloc due to whole_static_library bug." 2014-06-16 15:49:03 +00:00
Christopher Ferris
3a37576d4b Move jemalloc due to whole_static_library bug.
Rename jemalloc.cpp to jemalloc_wrapper.cpp to avoid problems with
the libc library having two jemalloc.o files that clobber each other.

Change-Id: I9a2d966dbf414b1367ee0ef1f0d73fca6f25b518
2014-06-16 17:13:09 -07:00
Dan Albert
a217a0cdb3 Merge "libc: Fix 'index' symbol export." 2014-06-16 15:34:52 +00:00
David 'Digit' Turner
891dedb935 libc: Fix 'index' symbol export.
The C library didn't export the 'index' symbol, but its C++ name-mangling
instead, which broke the ABI and prevented some applications from loading
properly.

The main reason was that the implementation under bionic/index.cpp relied
on the declaration to specify that the function has C linkage.

However, the declaration for index() was removed from both <string.h>
and <strings.h> in a recent patch, which made the compiler think it was
ok to compile the function with C++ linkage instead!

This patch does the following:

- Move index() definition to bionic/ndk_cruft.cpp and ensure it uses
  C linkage.

  Note that this removes index() from the 64-bit library entirely, this
  is intentional and will break source compatibility. Simply replacing
  an index() call with the equivalent strchr() should be enough to fix
  this in third-party code.

- Remove bionic/index.cpp from the tree and build files.

- Remove x86 assembly implementation from arch-x86/ to avoid conflict
  with the one in ndk_cruft.cpp

BUG=15606653

Change-Id: I816b589f69c8f8a6511f6be6195d20cf1c4e8123
2014-06-16 13:10:20 -07:00
Dan Albert
ca24f7dcfa am 38ebfc09: am 72dc1c22: Merge "Revert "Backing this one out since the counterpart needs to be sent upstream.""
* commit '38ebfc09ea610687d028db5f0a7b8f6789932288':
  Revert "Backing this one out since the counterpart needs to be sent upstream."
2014-06-14 01:22:09 +00:00
Dan Albert
758f56d368 am 54c61d57: am b84783ec: Merge "Backing this one out since the counterpart needs to be sent upstream."
* commit '54c61d5715715ac7f1c6a4f7a53f981e09dc7134':
  Backing this one out since the counterpart needs to be sent upstream.
2014-06-14 01:17:44 +00:00
Dan Albert
38ebfc09ea am 72dc1c22: Merge "Revert "Backing this one out since the counterpart needs to be sent upstream.""
* commit '72dc1c22dc6a92dea925398c9e3880364ab29c1c':
  Revert "Backing this one out since the counterpart needs to be sent upstream."
2014-06-14 01:16:56 +00:00
Dan Albert
dd45ea3c08 am 263fe685: am 65b1c90a: Merge "Hides valloc(3)/pvalloc(3) on LP64."
* commit '263fe68548f430d532517056963cb5de6863b9cc':
  Hides valloc(3)/pvalloc(3) on LP64.
2014-06-14 00:58:02 +00:00
Dan Albert
4ef9bbb01d am 080c820d: am b725e762: Merge "Removes wait3(2) from LP64."
* commit '080c820d3f4506f5ef2c2ccc90c0197342b33472':
  Removes wait3(2) from LP64.
2014-06-14 00:58:02 +00:00
Dan Albert
54c61d5715 am b84783ec: Merge "Backing this one out since the counterpart needs to be sent upstream."
* commit 'b84783ecaa71f9450152f8d9b5f97e1b07f05ef6':
  Backing this one out since the counterpart needs to be sent upstream.
2014-06-14 00:57:50 +00:00
Dan Albert
263fe68548 am 65b1c90a: Merge "Hides valloc(3)/pvalloc(3) on LP64."
* commit '65b1c90a32036cbb06ff610fbae545b65ae8b72d':
  Hides valloc(3)/pvalloc(3) on LP64.
2014-06-14 00:28:38 +00:00
Dan Albert
080c820d3f am b725e762: Merge "Removes wait3(2) from LP64."
* commit 'b725e7627f0e35d0c7acb1c09fe3cb89b0a4d481':
  Removes wait3(2) from LP64.
2014-06-14 00:28:37 +00:00
Dan Albert
0af830d29c am 0021dcef: am f87ac523: Merge "Remove ioprio_get(2) and ioprio_set(2) from LP64."
* commit '0021dcef7214823824555d9d694a59e2f4aba45d':
  Remove ioprio_get(2) and ioprio_set(2) from LP64.
2014-06-13 22:26:51 +00:00
Elliott Hughes
1f29fd72c8 am 7e6f6965: am 1e7ae47d: Merge "Bring our "libresolv" stuff in line with glibc."
* commit '7e6f6965982183ebae357e61e7bad55b91e97cc9':
  Bring our "libresolv" stuff in line with glibc.
2014-06-13 21:50:45 +00:00
Elliott Hughes
edf7d7a723 am f005d976: am 15330331: Merge "Upgrade to tzdata2014e."
* commit 'f005d9769096d92a31d3b4377d29fcc251a07c87':
  Upgrade to tzdata2014e.
2014-06-13 21:50:16 +00:00
Dan Albert
0021dcef72 am f87ac523: Merge "Remove ioprio_get(2) and ioprio_set(2) from LP64."
* commit 'f87ac523a1aa02490d67330e74180c8ac2d78420':
  Remove ioprio_get(2) and ioprio_set(2) from LP64.
2014-06-13 20:59:55 +00:00
Elliott Hughes
7e6f696598 am 1e7ae47d: Merge "Bring our "libresolv" stuff in line with glibc."
* commit '1e7ae47d40aad100fa16731418ac8af7b9919da7':
  Bring our "libresolv" stuff in line with glibc.
2014-06-13 19:03:57 +00:00
Elliott Hughes
f005d97690 am 15330331: Merge "Upgrade to tzdata2014e."
* commit '15330331b60a4d5e352eda284b4cf3a4c1963ba2':
  Upgrade to tzdata2014e.
2014-06-13 18:06:02 +00:00
Elliott Hughes
773b85eff8 am a335c869: am 0f690d9e: Merge "Fix x86-64 libvpx build."
* commit 'a335c869748b133c661cc1efff3028984ee9f7aa':
  Fix x86-64 libvpx build.
2014-06-13 10:24:38 +00:00
Qiming Shi
0069f31066 Add <linux/tty.h> to libc/include/sys/ioctl.h
This is the change to export the tty ldisc definitions (like N_TTY)
from Linux uapi kernel header. So bionic is compatbile with glibc
which has its own tty ldisc definition exported through ioctl.h

Change-Id: I44e4c7cc2eba31549e9c9c75f74961a949d4a696
Signed-off-by: Qiming Shi <qiming.shi@intel.com>
Signed-off-by: Yin, Fengwei <fengwei.yin@intel.com>
2014-06-13 16:39:39 +08:00
Elliott Hughes
a335c86974 am 0f690d9e: Merge "Fix x86-64 libvpx build."
* commit '0f690d9eda1893e66223138d2b930eb3e0164820':
  Fix x86-64 libvpx build.
2014-06-13 03:17:05 +00:00
Elliott Hughes
619d0fe581 am e9e92749: am ae3c6af3: Merge "[MIPS64] linker64 requires startup code"
* commit 'e9e9274941b41e9cc7ef1bc332faa1e29b9da11a':
  [MIPS64] linker64 requires startup code
2014-06-13 02:43:02 +00:00
Elliott Hughes
e9e9274941 am ae3c6af3: Merge "[MIPS64] linker64 requires startup code"
* commit 'ae3c6af3e536cd8bdf6f2cf1495b5d7463feb1a5':
  [MIPS64] linker64 requires startup code
2014-06-13 02:40:10 +00:00
Elliott Hughes
62e50ea8de am 294cae0f: am 1aaed87f: Merge "Somewhere, the declaration of _resolv_delete_cache_for_net went missing."
* commit '294cae0f18ceae96e1a5f8b42ae9fd8064b98746':
  Somewhere, the declaration of _resolv_delete_cache_for_net went missing.
2014-06-13 01:51:30 +00:00
Elliott Hughes
294cae0f18 am 1aaed87f: Merge "Somewhere, the declaration of _resolv_delete_cache_for_net went missing."
* commit '1aaed87f7f75aafe3cd99857c33e1cf4fa73c95d':
  Somewhere, the declaration of _resolv_delete_cache_for_net went missing.
2014-06-13 01:48:11 +00:00
Christopher Ferris
ec93f16302 am 9552809d: am 2ba734d8: Merge "Fix %u format that should have been %zu."
* commit '9552809d30a6f1ac54af8c8e9bcb616bd4da6c93':
  Fix %u format that should have been %zu.
2014-06-13 01:31:43 +00:00
Christopher Ferris
9552809d30 am 2ba734d8: Merge "Fix %u format that should have been %zu."
* commit '2ba734d8cd370d9cdb544f4d3afecc9a13e35116':
  Fix %u format that should have been %zu.
2014-06-13 01:29:55 +00:00
Elliott Hughes
48691a0bb4 am eb917428: am ff17671b: Merge "Add a hack to <stdlib.h> until we can fix libvpx."
* commit 'eb91742861607539fa88ae6d962597dde00ff860':
  Add a hack to <stdlib.h> until we can fix libvpx.
2014-06-13 01:12:14 +00:00
Elliott Hughes
eb91742861 am ff17671b: Merge "Add a hack to <stdlib.h> until we can fix libvpx."
* commit 'ff17671bc630d294903aa2827b76156590b09629':
  Add a hack to <stdlib.h> until we can fix libvpx.
2014-06-13 01:09:49 +00:00
Elliott Hughes
bbc485c892 am cc24144e: am 5d25d548: Merge "Remove __memcmp16 from bionic."
* commit 'cc24144e5b431d5eb7d688a7f8f32c743c6469e0':
  Remove __memcmp16 from bionic.
2014-06-13 00:54:44 +00:00
Elliott Hughes
cc24144e5b am 5d25d548: Merge "Remove __memcmp16 from bionic."
* commit '5d25d5480ab1e02d8f1e39f5936a3180e84a842c':
  Remove __memcmp16 from bionic.
2014-06-13 00:52:12 +00:00
Elliott Hughes
b38018f786 am c189362d: am 564222e3: Merge "Use default hidden visibility to build libc_dns."
* commit 'c189362d879520243cc9e1ba65b9828165efa159':
  Use default hidden visibility to build libc_dns.
2014-06-13 00:48:44 +00:00
Christopher Ferris
658150d431 am d92ba899: am 29ddd78c: Merge "Put all allocation functions into dispatch table."
* commit 'd92ba899450953e5ec9259f826c1790fc09004f7':
  Put all allocation functions into dispatch table.
2014-06-13 00:48:43 +00:00
Elliott Hughes
c189362d87 am 564222e3: Merge "Use default hidden visibility to build libc_dns."
* commit '564222e3384eb1c649bc75650deb847c40ec7da3':
  Use default hidden visibility to build libc_dns.
2014-06-13 00:44:36 +00:00
Christopher Ferris
d92ba89945 am 29ddd78c: Merge "Put all allocation functions into dispatch table."
* commit '29ddd78c21b15117bc7d4fc196f3a503f3aab3e2':
  Put all allocation functions into dispatch table.
2014-06-13 00:44:35 +00:00
Elliott Hughes
78ad3cd2eb am d13ff0f0: am 346fa721: Merge "Get the full set of PRNG functions in <stdlib.h>"
* commit 'd13ff0f0b3c228753b11ac55015618978b49ada3':
  Get the full set of PRNG functions in <stdlib.h>
2014-06-12 22:05:50 +00:00
Elliott Hughes
d13ff0f0b3 am 346fa721: Merge "Get the full set of PRNG functions in <stdlib.h>"
* commit '346fa721ca20e481a624930425d823d452e11dfe':
  Get the full set of PRNG functions in <stdlib.h>
2014-06-12 22:03:45 +00:00
Christopher Ferris
99ec7df7ac am 4a448223: am 3d5e0b20: Merge "Add/Remove mmap tests."
* commit '4a448223d7183c39bc59b6252d85c2a0c08d2c99':
  Add/Remove mmap tests.
2014-06-12 21:16:52 +00:00
Christopher Ferris
4a448223d7 am 3d5e0b20: Merge "Add/Remove mmap tests."
* commit '3d5e0b2045f899e27a071dc228dafc9378e90798':
  Add/Remove mmap tests.
2014-06-12 21:10:21 +00:00
Elliott Hughes
15330331b6 Merge "Upgrade to tzdata2014e." 2014-06-12 21:07:49 +00:00
Elliott Hughes
addd6a2f1d Upgrade to tzdata2014e.
From the release notes:

  Changes affecting near-future time stamps

    Egypt's 2014 Ramadan-based transitions are June 26 and July 31 at 24:00.
    (Thanks to Imed Chihi.)  Guess that from 2015 on Egypt will temporarily
    switch to standard time at 24:00 the last Thursday before Ramadan, and
    back to DST at 00:00 the first Friday after Ramadan.

    Similarly, Morocco's are June 28 at 03:00 and August 2 at 02:00. (Thanks
    to Milamber Space Network.)  Guess that from 2015 on Morocco will
    temporarily switch to standard time at 03:00 the last Saturday before
    Ramadan, and back to DST at 02:00 the first Saturday after Ramadan.

  Changes affecting past time stamps

    The abbreviation "MSM" (Moscow Midsummer Time) is now used instead of
    "MSD" for Moscow's double daylight time in summer 1921.  Also, a typo
    "VLASST" has been repaired to be "VLAST" for Vladivostok summer time
    in 1991.  (Thanks to Hank W. for reporting the problems.)

Change-Id: Iaca5e8c2d572559b464b10d24f4315405e413ada
2014-06-13 10:55:19 -07:00
Elliott Hughes
0f690d9eda Merge "Fix x86-64 libvpx build." 2014-06-12 21:07:49 +00:00
Elliott Hughes
e61919ad11 Fix x86-64 libvpx build.
This is now fixed upstream, but we need to wait for it to come back down
via chromium...

Bug: 15598056
Change-Id: I08f1be4296c391cfc1616a5ff0815be14071594a
2014-06-12 20:07:47 -07:00
Christopher Ferris
2ba734d8cd Merge "Fix %u format that should have been %zu." 2014-06-12 21:07:49 +00:00
Christopher Ferris
580b6e09fe Fix %u format that should have been %zu.
Change-Id: Icedacf6783d6b0cf4783c838b3c4622d2e67f073
2014-06-12 18:20:44 -07:00
Christopher Ferris
a403780538 Put all allocation functions into dispatch table.
Implement these new functions for all of the debug malloc types.

Fix a number of bugs in the debug malloc functions related to overflow
conditions.
Fix a bug in dlpvalloc due to an overflow condition.

Fix various other bugs in the debug malloc functions.

Add new tests for malloc functions.

Bug: 11225066

Change-Id: Idf50f389603e2157645565bc15cd9365eec2e9dd
2014-06-12 15:08:18 -07:00
Christopher Ferris
29ddd78c21 Merge "Put all allocation functions into dispatch table." 2014-06-12 21:07:49 +00:00
Dan Albert
8e20420064 am fde37008: am 37b845f9: Merge "Remove declaration for putw(3)/getw(3)."
* commit 'fde37008e514d408ba8075144a1903c1509707e8':
  Remove declaration for putw(3)/getw(3).
2014-06-12 20:33:33 +00:00