1. 10 Oct, 2014 1 commit
  2. 09 Oct, 2014 1 commit
    • Christopher Ferris's avatar
      Re-add dlmalloc for 32 bit. · c9734d24
      Christopher Ferris authored
      It turns out that appportable has a version that calls dlmalloc directly.
      Re-add the dlmalloc symbol for 32 bit only as a compatibility shim that
      calls malloc.
      
      Bug: 17881362
      Change-Id: I8f20963b0b8d323489dc083e4063779e0d1d7447
      c9734d24
  3. 07 Oct, 2014 2 commits
  4. 06 Oct, 2014 1 commit
    • Christopher Ferris's avatar
      Force export symbols on all x86 variants in libc. · d11eac34
      Christopher Ferris authored
      For silvermont, the __popcountsi2 symbol does not get exported by libc.
      But for atom, this symbol is exported. Since we already exported this symbol
      for previous releases, it's better to just follow through and force
      the export, but only for 32 bit. x86 64 bit will not export this symbol.
      
      Bug: 17681440
      Change-Id: I6c62245f0960910f64baaaf6d9d090bf3ea5f435
      d11eac34
  5. 04 Oct, 2014 1 commit
    • Alex Van Brunt's avatar
      Reimplement clock(3) using clock_gettime(3) · a5087148
      Alex Van Brunt authored
      Unlike times(), clock_gettime() is implemented as a vDSO on many architectures.
      So, using clock_gettime() will return a more accurate time and do so with less
      overhead because it does have the overhead of calling into the kernel.
      
      It is also significantly more accurate because it measures the actual time in
      nanoseconds rather than the number of ticks (typically 1 millisecond or more).
      
      Bug: 17814435
      
      (cherry picked from commit 8d0b2dbf)
      
      Change-Id: Id4945d9f387330518f78669809639952e9227ed9
      a5087148
  6. 03 Oct, 2014 1 commit
  7. 25 Sep, 2014 2 commits
  8. 24 Sep, 2014 2 commits
    • Christopher Ferris's avatar
      Fix sys_stat.mkfifo when not run as root. · 6c69afdb
      Christopher Ferris authored
      It's not allowed for a shell user to create a fifo in /data/local/tmp.
      Make the test do nothing if not run as root.
      
      Bug: 17646702
      Change-Id: I932262fa233eae8b5dd607a2398a47c50a208701
      6c69afdb
    • Dan Albert's avatar
      Fix incorrect parameter types for locale funcs. · 086bb382
      Dan Albert authored
      strtoll(3), strtoull(3), wcstoll(3), and wcstoull(3) all take an _int_
      as a base, not a size_t. This is an ABI compatibility issue.
      
      Bug: 17628622
      Change-Id: I17f8eead34ce2112005899fc30162067573023ec
      (cherry picked from commit 3c5037f1)
      086bb382
  9. 14 Sep, 2014 1 commit
  10. 11 Sep, 2014 5 commits
  11. 10 Sep, 2014 1 commit
  12. 08 Sep, 2014 3 commits
    • Elliott Hughes's avatar
      Ensure __set_errno is still visible on LP32. · 7efad83d
      Elliott Hughes authored
      The use of the .hidden directive to avoid going via the PLT for
      __set_errno had the side-effect of actually making __set_errno
      hidden (which is odd because assembler directives don't usually
      affect symbols defined in a different file --- you can't even
      create a weak reference to a symbol that's defined in a different
      file).
      
      This change switches the system call stubs over to a new always-hidden
      __set_errno_internal and has a visible __set_errno on LP32 just for
      binary compatibility with old NDK apps.
      
      Bug: 17423135
      Change-Id: I6b6d7a05dda85f923d22e5ffd169a91e23499b7b
      7efad83d
    • Elliott Hughes's avatar
    • Elliott Hughes's avatar
      Add arc4random_addrandom binary compatibility. · 51c8355d
      Elliott Hughes authored
      This was in <stdlib.h> in older releases. It's no longer used, but we can
      preserve backwards compatibility by making it a no-op.
      
      Bug: 16205834
      Change-Id: Idde7b46df4f253e39675600bcf82352879a716e7
      51c8355d
  13. 06 Sep, 2014 2 commits
  14. 05 Sep, 2014 2 commits
  15. 03 Sep, 2014 1 commit
  16. 02 Sep, 2014 5 commits
    • Elliott Hughes's avatar
      cb093d1f
    • Hans Boehm's avatar
      Make stdatomic.h work with gcc4.6 host compiler · 9ac60bf8
      Hans Boehm authored
      This is needed to make L work correctly, and bionic tests pass
      again, after applying the equivalent of
      commit 00aaea36 there.
      
      It makes the preexisting code that uses __sync implementations
      much more useful, although we should no longer be exercising that
      code in AOSP.
      
      Specifically fixes:
      
      We were invoking __has_extension and __has_builtin for GCC compilations.
      They're clang specific. Restructured the tests.
      
      The __sync implementation was not defining the LOCK_FREE macros.
      
      ATOMIC_VAR_INIT was using named field initializations.  These are a
      C, not C++, feature, that is not supported by g++ 4.6.
      
      The stdatomic bionic test still failed with 4.6 and glibc with our
      questionable LOCK_FREE macro implementation.  Don't run that piece
      with 4.6.
      
      In L, this is a prerequisite for fixing:
      
          Bug:16880454
          Bug:16513433
      
      Change-Id: I9b61e42307f96a114dce7552b6ead4ad1c544eab
      (cherry picked from commit 32429606)
      9ac60bf8
    • Elliott Hughes's avatar
      Upgrade bionic to tzdata2014g. · b519ea49
      Elliott Hughes authored
      From the release notes:
      
        Changes affecting future time stamps
      
          Turks & Caicos is switching from US eastern time to UTC-4 year-round,
          modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
      
        Changes affecting past time stamps
      
          Time in Russia or the USSR before 1926 or so has been corrected by
          a few seconds in the following zones: Asia/Irkutsk,
          Asia/Krasnoyarsk, Asia/Omsk, Asia/Samarkand, Asia/Tbilisi,
          Asia/Vladivostok, Asia/Yakutsk, Europe/Riga, Europe/Samara.  For
          Asia/Yekaterinburg the correction is a few minutes.  (Thanks to
          Vladimir Karpinsky.)
      
          The Portuguese decree of 1911-05-26 took effect on 1912-01-01.
          This affects 1911 time stamps in Africa/Bissau, Africa/Luanda,
          Atlantic/Azores, and Atlantic/Madeira.  Also, Lisbon's pre-1912
          GMT offset was -0:36:45 (rounded from -0:36:44.68), not -0:36:32.
          (Thanks to Stephen Colebourne for pointing to the decree.)
      
          Asia/Dhaka ended DST on 2009-12-31 at 24:00, not 23:59.
      
          A new file 'backzone' contains data which may appeal to
          connoisseurs of old time stamps, although it is out of scope for
          the tz database, is often poorly sourced, and contains some data
          that is known to be incorrect.  The new file is not recommended
          for ordinary use and its entries are not installed by default.
          (Thanks to Lester Caine for the high-quality Jersey, Guernsey, and
          Isle of Man entries.)
      
          Some more zones have been turned into links, when they differed
          from existing zones only for older time stamps.  As usual,
          these changes affect UTC offsets in pre-1970 time stamps only.
          Their old contents have been moved to the 'backzone' file.
          The affected zones are: Africa/Bangui, Africa/Brazzaville,
          Africa/Douala, Africa/Kinshasa, Africa/Libreville, Africa/Luanda,
          Africa/Malabo, Africa/Niamey, and Africa/Porto-Novo.
      
      Bug: 17277574
      
      (cherry picked from commit 9685c30a)
      
      Change-Id: I6120be3a0ec76af2d07ca6f9ea6f83d81d215803
      b519ea49
    • Hans Boehm's avatar
      Undefine _Atomic before redefining · 2b10e2f1
      Hans Boehm authored
      Stdatomic.h was potentially redefining _Atomic, in spite of a
      prior definition by <atomic>.  This could cause g++ builds that
      included <stdatomic.h> with an available <atomic> header to break.
      
      A functional stdatomic.h is a prerequisite for fixing the
      following bugs.  This is the middle of 3 AOSP updates to
      bionics stdatomic.h that are needded to get there.
      
      Bug:16880454
      Bug:16513433
      
      Change-Id: I562c7115118c0587d594d4d5b62d25101e47bfd8
      (cherry picked from commit 3e4a0099)
      2b10e2f1
    • Hans Boehm's avatar
      Fix, generalize stdatomic.h; improve test. · c8cf3513
      Hans Boehm authored
      We seem to use this stdatomic.h sometimes, and slightly different prebuilts
      at other times, making them all difficult to test, and making it unclear
      which one we're testing.  This generalizes the bionic header so that it
      can be used directly as the prebuilt header as well.  So long as they
      don't diverge again, that should somewhat improve test coverage.
      
      Use the correct builtin for atomic_is_lock_free.
      
      Fix atomic_flag_init.
      
      Turn on atomic tests even with __GLIBC__, since they now appear to pass.
      
      Include uchar.h in stdatomic.h where needed.
      
      Add a basic memory ordering test.
      
      Fix bit-rotted comments in bionic tests makefile.
      
      Prerequisite for fixing b/16880454 and
      
      Bug:16513433
      
      Change-Id: If6a14c1075b379395ba5d93357d56025c0ffab68
      (cherry picked from commit 00aaea36)
      c8cf3513
  17. 01 Sep, 2014 1 commit
  18. 29 Aug, 2014 2 commits
  19. 27 Aug, 2014 6 commits