1. 01 Dec, 2014 1 commit
    • Lorenzo Colitti's avatar
      Fail queries fast if no DNS servers are configured. · e5477f83
      Lorenzo Colitti authored
      When no DNS servers are configured (and thus there is no chance
      that the DNS query will suceed), res_nsend returns early, but
      it does not tell the cache that the query has failed.
      Therefore, if the caller retries the query, it will block for
      PENDING_REQUEST_TIMEOUT (= 20 seconds) waiting for the "existing
      query" (which isn't actually doing anything) to complete.
      
      Bug: 18240188
      Bug: 18327075
      Change-Id: I0df13ff4a17ee65e640be96695a3af31b020963a
      e5477f83
  2. 19 Nov, 2014 1 commit
    • Elliott Hughes's avatar
      Fix flockfile(3) and friends for stdin/stdout/stderr too. · 432f6458
      Elliott Hughes authored
      stdin/stdout/stderr are special; their mutexes are initialized by
      __sinit. There's no unit test for this, because __sinit has already
      been called by the time the first unit test runs, but you could
      reproduce this failure with a trivial main() that calls flockfile
      or ftrylockfile on one of the standard streams before otherwise
      using stdio.
      
      Bug: 18208568
      
      (cherry picked from commit c48c3e4b)
      
      Change-Id: Ia0c43ed4ac69daea8152aee9516415a6e3f8a042
      432f6458
  3. 14 Nov, 2014 1 commit
    • Elliott Hughes's avatar
      sysconf(3) returns long. · 047d943e
      Elliott Hughes authored
      On LP32, this makes no difference. Not an ABI change.
      
      On LP64, results are going to be in %rax or x0 whether they're 32- or 64-bit,
      and the only difference is going to be whether the top bits are clobbered.
      
      (cherry picked from commit 60d84af1)
      
      Bug: 18390956
      Change-Id: I722461498bc5494e2972fb07d5189dffe76e8993
      047d943e
  4. 13 Nov, 2014 1 commit
  5. 12 Nov, 2014 1 commit
  6. 11 Nov, 2014 2 commits
    • Elliott Hughes's avatar
      Upgrade bionic to tzdata2014j. · 1ca3350f
      Elliott Hughes authored
      From the release notes:
      
         Changes affecting current and future time stamps
      
           Turks & Caicos' switch from US eastern time to UTC-4 year-round
           did not occur on 2014-11-02 at 02:00.  It's currently scheduled
           for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)
      
         Changes affecting past time stamps
      
           Many pre-1989 time stamps have been corrected for Asia/Seoul and
           Asia/Pyongyang, based on sources for the Korean-language Wikipedia
           entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
           longer guess that Pyongyang mimicked Seoul time after World War II,
           as this is politically implausible.
      
           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/Addis_Ababa, Africa/Asmara,
           Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
           Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
           Indian/Mayotte.
      
      Bug: 18330681
      
      (cherry picked from commit b11d8e05)
      
      Change-Id: Ifd48e7446e400dccae3afd5cbef96ca843775477
      1ca3350f
    • Elliott Hughes's avatar
      Fix tzdata update tools for 'backzone'. · 371dcc18
      Elliott Hughes authored
      To maintain the status quo, we need to pull in backzone file. This file
      can't be built on its own, so the easiest fix is to give zic(1) all the
      files at once.
      
      We also now have a situation where we have links to links, so we need to
      dereference them until we find actual data.
      
      Bug: 18330681
      
      (cherry picked from commit 2c2463bd)
      
      Change-Id: I654b80518a7144038d8b3ea7223f49e2b1d2ad13
      371dcc18
  7. 04 Nov, 2014 7 commits
  8. 03 Nov, 2014 1 commit
  9. 31 Oct, 2014 20 commits
  10. 30 Oct, 2014 1 commit
    • Dan Albert's avatar
      Only use <atomic> for C++11 and newer. · 653263a9
      Dan Albert authored
      Any pre-C++11 clients of stdatomic.h that use libc++ are being forced
      over to <atomic>, which they don't have the language support to use.
      
      Bug:17736764
      
      Change-Id: I62445c1f2541410a1569498c09433c7196635537
      (cherry picked from commit 3ce0769a)
      653263a9
  11. 29 Oct, 2014 4 commits
    • Elliott Hughes's avatar
      Merge changes I0feda6b2,I22d13fde,I49d7d09d,Ice490bfe into lmp-mr1-dev · b0693ec5
      Elliott Hughes authored
      * changes:
        Fix the type of u_ar0 in <sys/user.h>.
        Add greg_t for arm64.
        POSIX says <signal.h> gets you ucontext_t.
        Add in_port_t and move it and in_addr_t to the correct header file.
      b0693ec5
    • Elliott Hughes's avatar
      Fix the type of u_ar0 in <sys/user.h>. · 0c4e98ad
      Elliott Hughes authored
      (cherry picked from commit e03950fa)
      
      Bug: 18172268
      Change-Id: I0feda6b253882f68f47bcf30fad998286cc7f620
      0c4e98ad
    • Elliott Hughes's avatar
      Add greg_t for arm64. · d0fb6a29
      Elliott Hughes authored
      This was already present for the other architectures. I think we skipped
      this because glibc seems to have an incorrect definition (int rather than
      long), but the kernel has the sane definition (just not in a uapi header).
      
      (cherry picked from commit 8e4d3710)
      
      Bug: 18172268
      Change-Id: I22d13fdeb6431ea122dd028a229782dcaf2286b2
      d0fb6a29
    • Elliott Hughes's avatar
      POSIX says <signal.h> gets you ucontext_t. · ab4d5cf2
      Elliott Hughes authored
      POSIX also says that ucontext_t's uc_sigmask has type sigset_t.
      
      MIPS64 strace needs this.
      
      The #define is to keep chromium off our lawn; otherwise it tries to redefine
      all this stuff itself. We should probably clean that up and remove the #define.
      
      (cherry picked from commit 26a8eb50)
      
      Bug: 18172268
      Change-Id: I49d7d09dabfc6c6926a8e1f4b235d041e2f2fc4d
      ab4d5cf2