OSDN Git Service

android-x86/bionic.git
10 years agoam 72d7e667: Fix our x86 PIC_PROLOGUE.
Elliott Hughes [Sun, 10 Aug 2014 08:55:52 +0000 (08:55 +0000)]
am 72d7e667: Fix our x86 PIC_PROLOGUE.

* commit '72d7e667c7e926cb120c4edb53cbf74c652ab915':
  Fix our x86 PIC_PROLOGUE.

10 years agoam 4d0f742a: Merge "Fix our x86 PIC_PROLOGUE."
Elliott Hughes [Sun, 10 Aug 2014 08:36:55 +0000 (08:36 +0000)]
am 4d0f742a: Merge "Fix our x86 PIC_PROLOGUE."

* commit '4d0f742afe4867a0064d46a5b55df33e07c02c9d':
  Fix our x86 PIC_PROLOGUE.

10 years agoFix our x86 PIC_PROLOGUE.
Elliott Hughes [Sun, 10 Aug 2014 01:45:55 +0000 (18:45 -0700)]
Fix our x86 PIC_PROLOGUE.

The old definition only worked for functions that didn't use numbered
local labels. Upstream uses '666' not only as some kind of BSD in-joke,
but also because there's little likelihood of any function having
labels that high.

There's a wider question about whether we actually want to go via the
PLT at all in this code, but that's a question for another day.

Bug: 16906712
Change-Id: I3cd8ecc448b33f942bb6e783931808ef39091489

10 years agoam f4d21fba: Merge "Make __set_errno hidden in asm." into lmp-dev
Dan Albert [Sat, 9 Aug 2014 06:55:08 +0000 (06:55 +0000)]
am f4d21fba: Merge "Make __set_errno hidden in asm." into lmp-dev

* commit 'f4d21fba064c398110ec0428afc0a025afb2254e':
  Make __set_errno hidden in asm.

10 years agoMerge "Fix our x86 PIC_PROLOGUE."
Elliott Hughes [Sun, 10 Aug 2014 05:19:22 +0000 (05:19 +0000)]
Merge "Fix our x86 PIC_PROLOGUE."

10 years agoFix our x86 PIC_PROLOGUE.
Elliott Hughes [Sun, 10 Aug 2014 01:45:55 +0000 (18:45 -0700)]
Fix our x86 PIC_PROLOGUE.

The old definition only worked for functions that didn't use numbered
local labels. Upstream uses '666' not only as some kind of BSD in-joke,
but also because there's little likelihood of any function having
labels that high.

There's a wider question about whether we actually want to go via the
PLT at all in this code, but that's a question for another day.

(cherry-pick of 72d7e667c7e926cb120c4edb53cbf74c652ab915.)

Bug: 16906712
Change-Id: I3cd8ecc448b33f942bb6e783931808ef39091489

10 years agoMerge "Make __set_errno hidden in asm." into lmp-dev
Dan Albert [Sat, 9 Aug 2014 06:45:48 +0000 (06:45 +0000)]
Merge "Make __set_errno hidden in asm." into lmp-dev

10 years agoam a0db4641: Merge "Make __set_errno hidden in asm."
Dan Albert [Fri, 8 Aug 2014 22:46:15 +0000 (22:46 +0000)]
am a0db4641: Merge "Make __set_errno hidden in asm."

* commit 'a0db46418757dd1b399acb97ff42083cc274e8ae':
  Make __set_errno hidden in asm.

10 years agoam 3788a1ee: Merge "Revert "Fix incorrect relocations for x86.""
Dan Albert [Fri, 8 Aug 2014 22:42:29 +0000 (22:42 +0000)]
am 3788a1ee: Merge "Revert "Fix incorrect relocations for x86.""

* commit '3788a1ee8eae4180117010bb9302334acfe1d218':
  Revert "Fix incorrect relocations for x86."

10 years agoMake __set_errno hidden in asm.
Dan Albert [Fri, 8 Aug 2014 22:19:20 +0000 (15:19 -0700)]
Make __set_errno hidden in asm.

This fixes the build after the -Bsymbolic change.

Bug: 16853291
Change-Id: I989c9fec3c32e0289ea257a3bd2b7fd2709b6ce2
(cherry picked from commit bc9f9f25bf1247a6a638a2a2df8441bdd9fabad7)

10 years agoMerge "Make __set_errno hidden in asm."
Dan Albert [Fri, 8 Aug 2014 22:36:57 +0000 (22:36 +0000)]
Merge "Make __set_errno hidden in asm."

10 years agoMake __set_errno hidden in asm.
Dan Albert [Fri, 8 Aug 2014 22:19:20 +0000 (15:19 -0700)]
Make __set_errno hidden in asm.

This fixes the build after the -Bsymbolic change.

Bug: 16853291
Change-Id: I989c9fec3c32e0289ea257a3bd2b7fd2709b6ce2

10 years agoam 1c5e415f: Merge "Add a way to disable backtracing in malloc debug."
Christopher Ferris [Fri, 8 Aug 2014 16:53:11 +0000 (16:53 +0000)]
am 1c5e415f: Merge "Add a way to disable backtracing in malloc debug."

* commit '1c5e415f8c4cd2cb10ad1d1cf660d17161132772':
  Add a way to disable backtracing in malloc debug.

10 years agoam 49de01a5: Add a way to disable backtracing in malloc debug.
Christopher Ferris [Fri, 8 Aug 2014 16:35:57 +0000 (16:35 +0000)]
am 49de01a5: Add a way to disable backtracing in malloc debug.

* commit '49de01a5be7bfb07baaea7415647d838383e1b59':
  Add a way to disable backtracing in malloc debug.

10 years agoam f2d8c357: Merge "Remove misleading arm/arm64 PIC_SYM."
Elliott Hughes [Fri, 8 Aug 2014 16:21:23 +0000 (16:21 +0000)]
am f2d8c357: Merge "Remove misleading arm/arm64 PIC_SYM."

* commit 'f2d8c357eec1bbc4e7441942dfc338ad1d9a207a':
  Remove misleading arm/arm64 PIC_SYM.

10 years agoam 92f0c91b: Merge "Create a distinct temp directory for each run."
Christopher Ferris [Fri, 8 Aug 2014 07:17:17 +0000 (07:17 +0000)]
am 92f0c91b: Merge "Create a distinct temp directory for each run."

* commit '92f0c91b82c60788b14062ca032ccc732f0fba4c':
  Create a distinct temp directory for each run.

10 years agoAdd a way to disable backtracing in malloc debug.
Christopher Ferris [Thu, 7 Aug 2014 23:21:21 +0000 (16:21 -0700)]
Add a way to disable backtracing in malloc debug.

The property libc.debug.malloc.nobacktrace set to non-zero disables
getting backtracing when using mode 1 or mode 10.

Bug: 16874447

Change-Id: I7650ba9f4385b5110b743cab01e877fc69545b3c

10 years agoam 43227c0b: Android is all-PIC/PIE.
Elliott Hughes [Fri, 8 Aug 2014 00:53:31 +0000 (00:53 +0000)]
am 43227c0b: Android is all-PIC/PIE.

* commit '43227c0b400a33dc9722269beda26313c391fb1e':
  Android is all-PIC/PIE.

10 years agoam cdd2f072: Merge "Fix incorrect relocations for x86."
Dan Albert [Fri, 8 Aug 2014 00:23:54 +0000 (00:23 +0000)]
am cdd2f072: Merge "Fix incorrect relocations for x86."

* commit 'cdd2f072af5c22750e06d1613b72336ecda7e71f':
  Fix incorrect relocations for x86.

10 years agoMerge "Revert "Fix incorrect relocations for x86.""
Dan Albert [Fri, 8 Aug 2014 22:35:00 +0000 (22:35 +0000)]
Merge "Revert "Fix incorrect relocations for x86.""

10 years agoRevert "Fix incorrect relocations for x86."
Dan Albert [Fri, 8 Aug 2014 22:15:29 +0000 (15:15 -0700)]
Revert "Fix incorrect relocations for x86."

Bug: 16853291
This reverts commit 512bc5232689bec9c763c8247b59de970096ff87.

10 years agoam d994622e: Merge "Android is all-PIC/PIE."
Elliott Hughes [Thu, 7 Aug 2014 18:33:33 +0000 (18:33 +0000)]
am d994622e: Merge "Android is all-PIC/PIE."

* commit 'd994622ebf2c4b7e918d9e1f1840f9df88ee7222':
  Android is all-PIC/PIE.

10 years agoAndroid is all-PIC/PIE.
Elliott Hughes [Thu, 7 Aug 2014 17:51:32 +0000 (10:51 -0700)]
Android is all-PIC/PIE.

Clean up the x86/x86_64 assembler. The motivator (other than reducing
confusion) was that asm.h incorrectly checked PIC rather than __PIC__.

Bug: 16823325

(cherry picked from commit 6b6364a7fc7c3ba37ee907776a29bdc8c9793db9)

Change-Id: I89ca57fa0eb34a36de6cb11ea85f71054fce709d

10 years agoMerge "Add a way to disable backtracing in malloc debug."
Christopher Ferris [Fri, 8 Aug 2014 16:46:18 +0000 (16:46 +0000)]
Merge "Add a way to disable backtracing in malloc debug."

10 years agoAdd a way to disable backtracing in malloc debug.
Christopher Ferris [Thu, 7 Aug 2014 23:21:21 +0000 (16:21 -0700)]
Add a way to disable backtracing in malloc debug.

The property libc.debug.malloc.nobacktrace set to non-zero disables
getting backtracing when using mode 1 or mode 10.

Bug: 16874447

(cherry picked from 49de01a5be7bfb07baaea7415647d838383e1b59)

Change-Id: I6bbefe5420b14991fe84c2f849222dcd7cb592bf

10 years agoMerge "Create a distinct temp directory for each run."
Christopher Ferris [Fri, 8 Aug 2014 07:07:48 +0000 (07:07 +0000)]
Merge "Create a distinct temp directory for each run."

10 years agoCreate a distinct temp directory for each run.
Christopher Ferris [Tue, 5 Aug 2014 19:19:27 +0000 (12:19 -0700)]
Create a distinct temp directory for each run.

Modify make__NR_name so that only __ARM_NR_ is exempted from the
__NR_ being prepended. This avoids a case where using a name starting
with __ but is not a valid syscall name in SYSCALLS.TXT does not generate
code that will compile but references the function itself and causes
link errors.

Fix all of the directory references from dir_part1 + dir_part2 to
use os.path.join() instead.

Change-Id: Ib9527eba6f25f26a30c5cb0ad431f3f88a7683cf

10 years agoMerge "Fix incorrect relocations for x86."
Dan Albert [Thu, 7 Aug 2014 23:23:22 +0000 (23:23 +0000)]
Merge "Fix incorrect relocations for x86."

10 years agoFix incorrect relocations for x86.
Dan Albert [Thu, 7 Aug 2014 17:46:42 +0000 (10:46 -0700)]
Fix incorrect relocations for x86.

These calls were not going through the PLT like they should have been.

Bug: 16853291
Change-Id: Id70488b077256a70137c4417f21be2c2d1d4341c

10 years agoMerge "Android is all-PIC/PIE."
Elliott Hughes [Thu, 7 Aug 2014 18:25:35 +0000 (18:25 +0000)]
Merge "Android is all-PIC/PIE."

10 years agoAndroid is all-PIC/PIE.
Elliott Hughes [Thu, 7 Aug 2014 17:51:32 +0000 (10:51 -0700)]
Android is all-PIC/PIE.

Clean up the x86/x86_64 assembler. The motivator (other than reducing
confusion) was that asm.h incorrectly checked PIC rather than __PIC__.

Bug: 16823325
Change-Id: Iaa9d45009e93a4b31b719021c93ac221e336479b

10 years agoam 85ebcfce: Merge "Do a second key cleanup in pthread_exit."
Christopher Ferris [Thu, 7 Aug 2014 01:14:05 +0000 (01:14 +0000)]
am 85ebcfce: Merge "Do a second key cleanup in pthread_exit."

* commit '85ebcfceb62f011e0db359affefcf5570f518bd5':
  Do a second key cleanup in pthread_exit.

10 years agoam 3e7b8e2a: Merge "Do a second key cleanup in pthread_exit." into lmp-dev
Christopher Ferris [Thu, 7 Aug 2014 01:05:51 +0000 (01:05 +0000)]
am 3e7b8e2a: Merge "Do a second key cleanup in pthread_exit." into lmp-dev

* commit '3e7b8e2a8bd16a37cecdae1135a5e7fc6e64c762':
  Do a second key cleanup in pthread_exit.

10 years agoam 501eb513: Merge "Upgrade bionic to tzdata2014f." into lmp-dev
Elliott Hughes [Thu, 7 Aug 2014 00:53:33 +0000 (00:53 +0000)]
am 501eb513: Merge "Upgrade bionic to tzdata2014f." into lmp-dev

* commit '501eb513ae4f037dc5ef5db530886c05b7f5d964':
  Upgrade bionic to tzdata2014f.

10 years agoam 6edf8985: Merge "Fix the tzdata update tools." into lmp-dev
Elliott Hughes [Thu, 7 Aug 2014 00:44:37 +0000 (00:44 +0000)]
am 6edf8985: Merge "Fix the tzdata update tools." into lmp-dev

* commit '6edf8985c1fe205d13543212fba0e079ed7dc4a9':
  Fix the tzdata update tools.

10 years agoam f3868fa7: Merge "Upgrade bionic to tzdata2014f."
Elliott Hughes [Thu, 7 Aug 2014 00:42:12 +0000 (00:42 +0000)]
am f3868fa7: Merge "Upgrade bionic to tzdata2014f."

* commit 'f3868fa735ad67ec853f3db36936ca184bd5f79a':
  Upgrade bionic to tzdata2014f.

10 years agoam b4b7e054: Merge "Fix the tzdata update tools."
Elliott Hughes [Thu, 7 Aug 2014 00:42:11 +0000 (00:42 +0000)]
am b4b7e054: Merge "Fix the tzdata update tools."

* commit 'b4b7e0547da259b38b3e31dbd08cf26026cff1ee':
  Fix the tzdata update tools.

10 years agoMerge "Upgrade bionic to tzdata2014f."
Elliott Hughes [Thu, 7 Aug 2014 00:38:29 +0000 (00:38 +0000)]
Merge "Upgrade bionic to tzdata2014f."

10 years agoUpgrade bionic to tzdata2014f.
Elliott Hughes [Wed, 6 Aug 2014 22:26:13 +0000 (15:26 -0700)]
Upgrade bionic to tzdata2014f.

From the release notes:

  Changes affecting future time stamps

    Russia will subtract an hour from most of its time zones on
    2014-10-26 at 02:00 local time.  (Thanks to Alexander Krivenyshev.)
    There are a few exceptions: Magadan Oblast (Asia/Magadan) and
    Zabaykalsky Krai are subtracting two hours; conversely, Chukotka
    Autonomous Okrug (Asia/Anadyr), Kamchatka Krai (Asia/Kamchatka),
    Kemerovo Oblast (Asia/Novokuznetsk), and the Samara Oblast and the
    Udmurt Republic (Europe/Samara) are not changing their clocks.  The
    changed zones are Europe/Kaliningrad, Europe/Moscow,
    Europe/Simferopol, Europe/Volgograd, Asia/Yekaterinburg, Asia/Omsk,
    Asia/Novosibirsk, Asia/Krasnoyarsk, Asia/Irkutsk, Asia/Yakutsk,
    Asia/Vladivostok, Asia/Khandyga, Asia/Sakhalin, and Asia/Ust-Nera;
    Asia/Magadan will have two hours subtracted; and Asia/Novokuznetsk's
    time zone abbreviation is affected, but not its UTC offset.  Two
    zones are added: Asia/Chita (split from Asia/Yakutsk, and also with
    two hours subtracted) and Asia/Srednekolymsk (split from
    Asia/Magadan, but with only one hour subtracted).  (Thanks to Tim
    Parenti for much of the above.)

  Changes affecting past time stamps

    China's five zones have been simplified to two, since the post-1970
    differences in the other three seem to have been imaginary.  The
    zones Asia/Harbin, Asia/Chongqing, and Asia/Kashgar have been
    removed; backwards-compatibility links still work, albeit with
    different behaviors for time stamps before May 1980.  Asia/Urumqi's
    1980 transition to UTC+8 has been removed, so that it is now at
    UTC+6 and not UTC+8.  (Thanks to Luther Ma and to Alois Treindl;
    Treindl sent helpful translations of two papers by Guo Qingsheng.)

    Some zones have been turned into links, when they differed from
    existing zones only for older UTC offsets where the data were likely
    invented.  These changes affect UTC offsets in pre-1970 time stamps
    only.  This is similar to the change in release 2013e, except this
    time for western Africa.  The affected zones are: Africa/Bamako,
    Africa/Banjul, Africa/Conakry, Africa/Dakar, Africa/Freetown,
    Africa/Lome, Africa/Nouakchott, Africa/Ouagadougou, Africa/Sao_Tome,
    and Atlantic/St_Helena.  This also affects the
    backwards-compatibility link Africa/Timbuktu.  (Thanks to Alan
    Barrett, Stephen Colebourne, Tim Parenti, and David Patte for
    reporting problems in earlier versions of this change.)

    Asia/Shanghai's pre-standard-time UT offset has been changed from
    8:05:57 to 8:05:43, the location of Xujiahui Observatory.  Its
    transition to standard time has been changed from 1928 to 1901.

    Asia/Taipei switched to JWST on 1896-01-01, then to JST on
    1937-10-01, then to CST on 1945-09-21 at 01:00, and did not observe
    DST in 1945.  In 1946 it observed DST from 05-15 through 09-30; in
    1947 from 04-15 through 10-31; and in 1979 from 07-01 through 09-30.
    (Thanks to Yu-Cheng Chuang.)

    Asia/Riyadh's transition to standard time is now 1947-03-14, not
    1950.

    Europe/Helsinki's 1942 fall-back transition was 10-04 at 01:00, not
    10-03 at 00:00.  (Thanks to Konstantin Hyppönen.)

    Pacific/Pago_Pago has been changed from UTC-11:30 to UTC-11 for the
    period from 1911 to 1950.

    Pacific/Chatham has been changed to New Zealand standard time plus
    45 minutes for the period before 1957, reflecting a 1956 remark in
    the New Zealand parliament.

    Europe/Budapest has several pre-1946 corrections: in 1918 the
    transition out of DST was on 09-16, not 09-29; in 1919 it was on
    11-24, not 09-15; in 1945 it was on 11-01, not 11-03; in 1941 the
    transition to DST was 04-08 not 04-06 at 02:00; and there was no DST
    in 1920.

    Africa/Accra is now assumed to have observed DST from 1920 through
    1935.

    Time in Russia before 1927 or so has been corrected by a few seconds
    in the following zones: Europe/Moscow, Asia/Irkutsk, Asia/Tbilisi,
    Asia/Tashkent, Asia/Vladivostok, Asia/Yekaterinburg,
    Europe/Helsinki, and Europe/Riga.  Also, Moscow's location has been
    changed to its Kilometer 0 point.  (Thanks to Vladimir Karpinsky for
    the Moscow changes.)

(cherry-pick of 0dc2c1db6fc84b4526f2a5f8d73e1187500f2300.)

Bug: 16168653
Change-Id: I23827254bcf50dd07a2192ed34b02224d73e07a0

10 years agoMerge "Fix the tzdata update tools."
Elliott Hughes [Thu, 7 Aug 2014 00:34:37 +0000 (00:34 +0000)]
Merge "Fix the tzdata update tools."

10 years agoFix the tzdata update tools.
Elliott Hughes [Wed, 6 Aug 2014 22:23:11 +0000 (15:23 -0700)]
Fix the tzdata update tools.

The recent libcore ZoneInfo changes mean that we can no longer
compile libcore's ZoneInfo against the RI. Luckily, the field in
our data file that we needed ZoneInfo for isn't actually used.
This change removes our dependence on libcore.

I've left the field in to avoid a file format change. We can remove
the field if/when we next have a real need to bump the file format.

(cherry-pick of 90cb5ffb85a9bc2e725824b3ca8db932d02c45db.)

Bug: 16168653
Change-Id: Iedad2252c2b49f4d8bb2c7d9078b39b622444ca7

10 years agoMerge "Do a second key cleanup in pthread_exit." into lmp-dev
Christopher Ferris [Thu, 7 Aug 2014 00:52:19 +0000 (00:52 +0000)]
Merge "Do a second key cleanup in pthread_exit." into lmp-dev

10 years agoDo a second key cleanup in pthread_exit.
Christopher Ferris [Wed, 6 Aug 2014 21:15:01 +0000 (14:15 -0700)]
Do a second key cleanup in pthread_exit.

During pthread_exit, the keys are cleaned. Unfortunately, a call to
free occurs after the cleanup and the memory for some of the keys
is recreated when using jemalloc. The solution is to do the key
cleanup twice.

Also, modify the pthread_detach__leak test to be less flaky
when run on a jemalloc system.

Bug: 16513133
Change-Id: Ic17e8344bdc1ba053c4f5b6d827a4c19c57860c1

10 years agoMerge "Upgrade bionic to tzdata2014f." into lmp-dev
Elliott Hughes [Thu, 7 Aug 2014 00:36:48 +0000 (00:36 +0000)]
Merge "Upgrade bionic to tzdata2014f." into lmp-dev

10 years agoMerge "Remove misleading arm/arm64 PIC_SYM."
Elliott Hughes [Fri, 8 Aug 2014 16:16:48 +0000 (16:16 +0000)]
Merge "Remove misleading arm/arm64 PIC_SYM."

10 years agoRemove misleading arm/arm64 PIC_SYM.
Elliott Hughes [Thu, 7 Aug 2014 18:52:38 +0000 (11:52 -0700)]
Remove misleading arm/arm64 PIC_SYM.

Bug: 16823325
Change-Id: Ic8ff3a628bb4cd71361e3a1c2cfde4b3d39c50b1

10 years agoMerge "Do a second key cleanup in pthread_exit."
Christopher Ferris [Thu, 7 Aug 2014 01:04:21 +0000 (01:04 +0000)]
Merge "Do a second key cleanup in pthread_exit."

10 years agoDo a second key cleanup in pthread_exit.
Christopher Ferris [Wed, 6 Aug 2014 21:15:01 +0000 (14:15 -0700)]
Do a second key cleanup in pthread_exit.

During pthread_exit, the keys are cleaned. Unfortunately, a call to
free occurs after the cleanup and the memory for some of the keys
is recreated when using jemalloc. The solution is to do the key
cleanup twice.

Also, modify the pthread_detach__leak test to be less flaky
when run on a jemalloc system.

Bug: 16513133

(cherry picked from commit 18d93f2793fad393b6aa6eae6afe1054958339d5)

Change-Id: Idb32e7f9b09e2c088d256ed9eb881df80c81ff8e

10 years agoMerge "Fix the tzdata update tools." into lmp-dev
Elliott Hughes [Thu, 7 Aug 2014 00:29:43 +0000 (00:29 +0000)]
Merge "Fix the tzdata update tools." into lmp-dev

10 years agoFix the tzdata update tools.
Elliott Hughes [Wed, 6 Aug 2014 22:23:11 +0000 (15:23 -0700)]
Fix the tzdata update tools.

The recent libcore ZoneInfo changes mean that we can no longer
compile libcore's ZoneInfo against the RI. Luckily, the field in
our data file that we needed ZoneInfo for isn't actually used.
This change removes our dependence on libcore.

I've left the field in to avoid a file format change. We can remove
the field if/when we next have a real need to bump the file format.

Bug: 16168653
Change-Id: Iedad2252c2b49f4d8bb2c7d9078b39b622444ca7

10 years agoUpgrade bionic to tzdata2014f.
Elliott Hughes [Wed, 6 Aug 2014 22:26:13 +0000 (15:26 -0700)]
Upgrade bionic to tzdata2014f.

From the release notes:

  Changes affecting future time stamps

    Russia will subtract an hour from most of its time zones on
    2014-10-26 at 02:00 local time.  (Thanks to Alexander Krivenyshev.)
    There are a few exceptions: Magadan Oblast (Asia/Magadan) and
    Zabaykalsky Krai are subtracting two hours; conversely, Chukotka
    Autonomous Okrug (Asia/Anadyr), Kamchatka Krai (Asia/Kamchatka),
    Kemerovo Oblast (Asia/Novokuznetsk), and the Samara Oblast and the
    Udmurt Republic (Europe/Samara) are not changing their clocks.  The
    changed zones are Europe/Kaliningrad, Europe/Moscow,
    Europe/Simferopol, Europe/Volgograd, Asia/Yekaterinburg, Asia/Omsk,
    Asia/Novosibirsk, Asia/Krasnoyarsk, Asia/Irkutsk, Asia/Yakutsk,
    Asia/Vladivostok, Asia/Khandyga, Asia/Sakhalin, and Asia/Ust-Nera;
    Asia/Magadan will have two hours subtracted; and Asia/Novokuznetsk's
    time zone abbreviation is affected, but not its UTC offset.  Two
    zones are added: Asia/Chita (split from Asia/Yakutsk, and also with
    two hours subtracted) and Asia/Srednekolymsk (split from
    Asia/Magadan, but with only one hour subtracted).  (Thanks to Tim
    Parenti for much of the above.)

  Changes affecting past time stamps

    China's five zones have been simplified to two, since the post-1970
    differences in the other three seem to have been imaginary.  The
    zones Asia/Harbin, Asia/Chongqing, and Asia/Kashgar have been
    removed; backwards-compatibility links still work, albeit with
    different behaviors for time stamps before May 1980.  Asia/Urumqi's
    1980 transition to UTC+8 has been removed, so that it is now at
    UTC+6 and not UTC+8.  (Thanks to Luther Ma and to Alois Treindl;
    Treindl sent helpful translations of two papers by Guo Qingsheng.)

    Some zones have been turned into links, when they differed from
    existing zones only for older UTC offsets where the data were likely
    invented.  These changes affect UTC offsets in pre-1970 time stamps
    only.  This is similar to the change in release 2013e, except this
    time for western Africa.  The affected zones are: Africa/Bamako,
    Africa/Banjul, Africa/Conakry, Africa/Dakar, Africa/Freetown,
    Africa/Lome, Africa/Nouakchott, Africa/Ouagadougou, Africa/Sao_Tome,
    and Atlantic/St_Helena.  This also affects the
    backwards-compatibility link Africa/Timbuktu.  (Thanks to Alan
    Barrett, Stephen Colebourne, Tim Parenti, and David Patte for
    reporting problems in earlier versions of this change.)

    Asia/Shanghai's pre-standard-time UT offset has been changed from
    8:05:57 to 8:05:43, the location of Xujiahui Observatory.  Its
    transition to standard time has been changed from 1928 to 1901.

    Asia/Taipei switched to JWST on 1896-01-01, then to JST on
    1937-10-01, then to CST on 1945-09-21 at 01:00, and did not observe
    DST in 1945.  In 1946 it observed DST from 05-15 through 09-30; in
    1947 from 04-15 through 10-31; and in 1979 from 07-01 through 09-30.
    (Thanks to Yu-Cheng Chuang.)

    Asia/Riyadh's transition to standard time is now 1947-03-14, not
    1950.

    Europe/Helsinki's 1942 fall-back transition was 10-04 at 01:00, not
    10-03 at 00:00.  (Thanks to Konstantin Hyppönen.)

    Pacific/Pago_Pago has been changed from UTC-11:30 to UTC-11 for the
    period from 1911 to 1950.

    Pacific/Chatham has been changed to New Zealand standard time plus
    45 minutes for the period before 1957, reflecting a 1956 remark in
    the New Zealand parliament.

    Europe/Budapest has several pre-1946 corrections: in 1918 the
    transition out of DST was on 09-16, not 09-29; in 1919 it was on
    11-24, not 09-15; in 1945 it was on 11-01, not 11-03; in 1941 the
    transition to DST was 04-08 not 04-06 at 02:00; and there was no DST
    in 1920.

    Africa/Accra is now assumed to have observed DST from 1920 through
    1935.

    Time in Russia before 1927 or so has been corrected by a few seconds
    in the following zones: Europe/Moscow, Asia/Irkutsk, Asia/Tbilisi,
    Asia/Tashkent, Asia/Vladivostok, Asia/Yekaterinburg,
    Europe/Helsinki, and Europe/Riga.  Also, Moscow's location has been
    changed to its Kilometer 0 point.  (Thanks to Vladimir Karpinsky for
    the Moscow changes.)

Bug: 16168653
Change-Id: I23827254bcf50dd07a2192ed34b02224d73e07a0

10 years agoam bc0d65c1: Merge "Proper MB_CUR_MAX." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:26:13 +0000 (21:26 +0000)]
am bc0d65c1: Merge "Proper MB_CUR_MAX." into lmp-dev

* commit 'bc0d65c114f3ead6d89f8e92622bc941d731b01c':
  Proper MB_CUR_MAX.

10 years agoam 5b39a445: Merge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:26:13 +0000 (21:26 +0000)]
am 5b39a445: Merge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev

* commit '5b39a44575e01ecf65397ffb7518efc3c65a6d8b':
  Fix mbsrtowcs(3) src param for finished string.

10 years agoam 40079b00: Fixes build.
Dan Albert [Wed, 6 Aug 2014 21:26:12 +0000 (21:26 +0000)]
am 40079b00: Fixes build.

* commit '40079b003168b39dab91e106c7a877b677e64ef1':
  Fixes build.

10 years agoam 5386a741: Revert "Replaces vfork() implementation with fork()"
Dan Albert [Wed, 6 Aug 2014 21:26:09 +0000 (21:26 +0000)]
am 5386a741: Revert "Replaces vfork() implementation with fork()"

* commit '5386a741e77bfff4e72ca6861fdd3fe2208452ce':
  Revert "Replaces vfork() implementation with fork()"

10 years agoam 3a238ae7: Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""
Elliott Hughes [Wed, 6 Aug 2014 20:38:40 +0000 (20:38 +0000)]
am 3a238ae7: Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""

* commit '3a238ae7620298608e1d463901051c397e4f8a2f':
  Revert "Add a hack to <stdlib.h> until we can fix libvpx."

10 years agoam 00a8344a: Merge "Workaround b/16818336 which fails build under aggressive inlining...
Elliott Hughes [Wed, 6 Aug 2014 19:50:02 +0000 (19:50 +0000)]
am 00a8344a: Merge "Workaround b/16818336 which fails build under aggressive inlining." into lmp-dev

* commit '00a8344ae82a691209b665adae828a5abe570cfb':
  Workaround b/16818336 which fails build under aggressive inlining.

10 years agoam 7a5f0952: Merge "Revert most of "Cleanup: Delete dead code."" into lmp-dev
Paul Jensen [Wed, 6 Aug 2014 19:50:01 +0000 (19:50 +0000)]
am 7a5f0952: Merge "Revert most of "Cleanup: Delete dead code."" into lmp-dev

* commit '7a5f0952a293fd6e511db0e0a72e18f20bb4c500':
  Revert most of "Cleanup: Delete dead code."

10 years agoFixes build.
Dan Albert [Tue, 5 Aug 2014 21:46:03 +0000 (14:46 -0700)]
Fixes build.

This change somehow went missing from the vfork change.

Change-Id: I807a2072080eac20601c694e85ba5723220289d8
(cherry picked from commit 9eae8405e8f70e489f2fe350a0212ab8114cbd17)

10 years agoRevert "Replaces vfork() implementation with fork()"
Dan Albert [Tue, 5 Aug 2014 20:53:31 +0000 (20:53 +0000)]
Revert "Replaces vfork() implementation with fork()"

We're getting cold feet on this one... let's put it back.

This reverts commit 210331d9762037afb9b5ed8413079c6f65872df9.

Change-Id: I6b0d3c2b1dbf7f1dc9566979a91b7504c2189269
(cherry picked from commit 6a918870bab1a55a5f57dd7954abd9a8a27c1bc2)

10 years agoam bb91a1b8: Merge "Workaround b/16818336 which fails build under aggressive inlining."
Elliott Hughes [Wed, 6 Aug 2014 18:53:23 +0000 (18:53 +0000)]
am bb91a1b8: Merge "Workaround b/16818336 which fails build under aggressive inlining."

* commit 'bb91a1b845f7c8b3b09d07fe467aa32d2aeddc4f':
  Workaround b/16818336 which fails build under aggressive inlining.

10 years agoam 59b0933e: Explain how wcswcs ended up in ndk_cruft.cpp.
Elliott Hughes [Wed, 6 Aug 2014 18:09:18 +0000 (18:09 +0000)]
am 59b0933e: Explain how wcswcs ended up in ndk_cruft.cpp.

* commit '59b0933e6d4cd9671ad3b6baeae424bc72c8ece0':
  Explain how wcswcs ended up in ndk_cruft.cpp.

10 years agoam 8b91980e: Merge "Explain how wcswcs ended up in ndk_cruft.cpp."
Elliott Hughes [Wed, 6 Aug 2014 18:02:59 +0000 (18:02 +0000)]
am 8b91980e: Merge "Explain how wcswcs ended up in ndk_cruft.cpp."

* commit '8b91980e4c139558f9cca4e9a0980dad07c06e68':
  Explain how wcswcs ended up in ndk_cruft.cpp.

10 years agoExplain how wcswcs ended up in ndk_cruft.cpp.
Elliott Hughes [Wed, 6 Aug 2014 17:47:33 +0000 (10:47 -0700)]
Explain how wcswcs ended up in ndk_cruft.cpp.

(cherry picked from commit 1628eb1d43008c52b00ec98d10c4fd9e8b6fc7c5)

Change-Id: I335b35038781d0426b3647727e6c4f22c83e187b

10 years agoMerge "Explain how wcswcs ended up in ndk_cruft.cpp."
Elliott Hughes [Wed, 6 Aug 2014 17:55:27 +0000 (17:55 +0000)]
Merge "Explain how wcswcs ended up in ndk_cruft.cpp."

10 years agoExplain how wcswcs ended up in ndk_cruft.cpp.
Elliott Hughes [Wed, 6 Aug 2014 17:47:33 +0000 (10:47 -0700)]
Explain how wcswcs ended up in ndk_cruft.cpp.

Change-Id: Ie45148095b2d5c3896c0df623d5d06a700c33c70

10 years agoMerge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:09:35 +0000 (21:09 +0000)]
Merge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev

10 years agoFix mbsrtowcs(3) src param for finished string.
Dan Albert [Thu, 31 Jul 2014 18:31:03 +0000 (11:31 -0700)]
Fix mbsrtowcs(3) src param for finished string.

A mistake I made while cleaning this up the first time through.
mbstrtowcs(3) sets the src param to null if it finishes the string.

Change-Id: I6263646e25d9537043b7025fd1dd6ae195f365e2
(cherry picked from commit b6cc8e00cd562bd0f81fe44a6bc646540a862f32)

10 years agoMerge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""
Elliott Hughes [Wed, 6 Aug 2014 20:23:26 +0000 (20:23 +0000)]
Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""

10 years agoRevert "Add a hack to <stdlib.h> until we can fix libvpx."
Elliott Hughes [Mon, 28 Jul 2014 23:16:38 +0000 (16:16 -0700)]
Revert "Add a hack to <stdlib.h> until we can fix libvpx."

This reverts commit 3fb5097a7eec40404760c304b36c8b657b374cab.
libvpx is now fixed.

(cherry-pick of 2be1be47aa9b63568fe6ce1e0a4029b37d90764d.)

Bug: 15598056
Change-Id: Icca974e667f92206505f484bd291726eb0150f68

10 years agoMerge "Proper MB_CUR_MAX." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:09:52 +0000 (21:09 +0000)]
Merge "Proper MB_CUR_MAX." into lmp-dev

10 years agoProper MB_CUR_MAX.
Dan Albert [Wed, 30 Jul 2014 17:53:48 +0000 (10:53 -0700)]
Proper MB_CUR_MAX.

Previously this was hard coded to 4. This is only the case for UTF-8
locales.

As a side effect, this properly reports C.UTF-8 as the default locale
instead of C.

Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc
(cherry picked from commit 1aec7c1a35b2d03038b194967d5ebdc8e2c24b80)

10 years agoMerge "Workaround b/16818336 which fails build under aggressive inlining." into lmp-dev
Elliott Hughes [Wed, 6 Aug 2014 18:43:19 +0000 (18:43 +0000)]
Merge "Workaround b/16818336 which fails build under aggressive inlining." into lmp-dev

10 years agoam afc86723: Merge "Add an obvious comment to <stdio.h> for fixincludes."
Elliott Hughes [Wed, 6 Aug 2014 16:13:37 +0000 (16:13 +0000)]
am afc86723: Merge "Add an obvious comment to <stdio.h> for fixincludes."

* commit 'afc8672387438f9c8926a12831f43a6dd1f59323':
  Add an obvious comment to <stdio.h> for fixincludes.

10 years agoam db7a17d4: Revert "Revert "Fix dlsym(3) to do breadth first search.""
Dmitriy Ivanov [Wed, 6 Aug 2014 01:23:25 +0000 (01:23 +0000)]
am db7a17d4: Revert "Revert "Fix dlsym(3) to do breadth first search.""

* commit 'db7a17d4ff56a05af01ee2fee1f3c55245bfc630':
  Revert "Revert "Fix dlsym(3) to do breadth first search.""

10 years agoWorkaround b/16818336 which fails build under aggressive inlining.
Dehao Chen [Tue, 5 Aug 2014 22:23:00 +0000 (15:23 -0700)]
Workaround b/16818336 which fails build under aggressive inlining.

Change-Id: Ifcd596714c427a2ec39502b9c0af9082ded91884

10 years agoam de69069f: Merge "Fixes build."
Dan Albert [Tue, 5 Aug 2014 21:55:18 +0000 (21:55 +0000)]
am de69069f: Merge "Fixes build."

* commit 'de69069fcfee8d89dfc70da374760ef0c29fe0a4':
  Fixes build.

10 years agoam a7ef8188: Merge "Revert "Replaces vfork() implementation with fork()""
Dan Albert [Tue, 5 Aug 2014 21:43:20 +0000 (21:43 +0000)]
am a7ef8188: Merge "Revert "Replaces vfork() implementation with fork()""

* commit 'a7ef8188e24446d41c5abbe9addf55cc6a128968':
  Revert "Replaces vfork() implementation with fork()"

10 years agoMerge "Add an obvious comment to <stdio.h> for fixincludes."
Elliott Hughes [Wed, 6 Aug 2014 16:04:48 +0000 (16:04 +0000)]
Merge "Add an obvious comment to <stdio.h> for fixincludes."

10 years agoAdd an obvious comment to <stdio.h> for fixincludes.
Elliott Hughes [Wed, 6 Aug 2014 00:07:46 +0000 (17:07 -0700)]
Add an obvious comment to <stdio.h> for fixincludes.

We don't want GCC's fixincludes to touch our <stdio.h> because we
want to support multiple platform versions with one toolchain. Give
them a nice easy unambiguous string to look for.

Bug: http://code.google.com/p/android/issues/detail?id=73728
Change-Id: I15cb9a2c9eb0a44b0965dc2139f224f2b6e68ea1

10 years agoMerge "Fixes build."
Dan Albert [Tue, 5 Aug 2014 21:47:45 +0000 (21:47 +0000)]
Merge "Fixes build."

10 years agoFixes build.
Dan Albert [Tue, 5 Aug 2014 21:46:03 +0000 (14:46 -0700)]
Fixes build.

This change somehow went missing from the vfork change.

Change-Id: I807a2072080eac20601c694e85ba5723220289d8

10 years agoMerge "Revert "Replaces vfork() implementation with fork()""
Dan Albert [Tue, 5 Aug 2014 21:29:41 +0000 (21:29 +0000)]
Merge "Revert "Replaces vfork() implementation with fork()""

10 years agoRevert "Replaces vfork() implementation with fork()"
Dan Albert [Tue, 5 Aug 2014 20:53:31 +0000 (20:53 +0000)]
Revert "Replaces vfork() implementation with fork()"

We're getting cold feet on this one... let's put it back.

This reverts commit 210331d9762037afb9b5ed8413079c6f65872df9.

Change-Id: I6b0d3c2b1dbf7f1dc9566979a91b7504c2189269

10 years agoMerge "Workaround b/16818336 which fails build under aggressive inlining."
Elliott Hughes [Wed, 6 Aug 2014 18:46:24 +0000 (18:46 +0000)]
Merge "Workaround b/16818336 which fails build under aggressive inlining."

10 years agoWorkaround b/16818336 which fails build under aggressive inlining.
Dehao Chen [Tue, 5 Aug 2014 22:23:00 +0000 (15:23 -0700)]
Workaround b/16818336 which fails build under aggressive inlining.

(cherry-pick of 7aa27e1c1a53afe28f6180fd1fc50d096cabea7b.)

Change-Id: Ifcd596714c427a2ec39502b9c0af9082ded91884

10 years agoMerge "Revert most of "Cleanup: Delete dead code."" into lmp-dev
Paul Jensen [Wed, 6 Aug 2014 18:32:02 +0000 (18:32 +0000)]
Merge "Revert most of "Cleanup: Delete dead code."" into lmp-dev

10 years agoRevert most of "Cleanup: Delete dead code."
Paul Jensen [Wed, 6 Aug 2014 17:34:22 +0000 (17:34 +0000)]
Revert most of "Cleanup: Delete dead code."

This reverts most of commit 2582f02a01cd56c56a4e6c9de4444a6ec937cc37.
The DNS cache flushing code needs to be called when routes change.

Change-Id: I5b04121bc428cc6a2e136b6c3269c395bfb4981f
bug:16549455

10 years agoRevert "Revert "Fix dlsym(3) to do breadth first search.""
Dmitriy Ivanov [Mon, 4 Aug 2014 23:39:22 +0000 (23:39 +0000)]
Revert "Revert "Fix dlsym(3) to do breadth first search.""

This reverts commit 1b1966d9448e979d1503a3d8843708bfa8880dc6.

Change-Id: I05d6d3481aaf8f3e260d2e5e950248519a1d347f

10 years agoam 1b1966d9: Revert "Fix dlsym(3) to do breadth first search."
Dmitriy Ivanov [Mon, 4 Aug 2014 16:46:55 +0000 (16:46 +0000)]
am 1b1966d9: Revert "Fix dlsym(3) to do breadth first search."

* commit '1b1966d9448e979d1503a3d8843708bfa8880dc6':
  Revert "Fix dlsym(3) to do breadth first search."

10 years agoRevert "Fix dlsym(3) to do breadth first search."
Dmitriy Ivanov [Mon, 4 Aug 2014 15:21:16 +0000 (15:21 +0000)]
Revert "Fix dlsym(3) to do breadth first search."

This reverts commit 422106a24d620af4be58e8d92a2e9b7b6167b72d.

Change-Id: I9e26a6933d10eb30438b521450f2010997ca5aee

10 years agoam 447fe1c2: Merge "Fix mbsrtowcs(3) src param for finished string."
Dan Albert [Thu, 31 Jul 2014 22:28:59 +0000 (22:28 +0000)]
am 447fe1c2: Merge "Fix mbsrtowcs(3) src param for finished string."

* commit '447fe1c23bc5adaded9a51d3b58f3adaf2cce7b3':
  Fix mbsrtowcs(3) src param for finished string.

10 years agoam 36bacd23: Merge "Proper MB_CUR_MAX."
Dan Albert [Thu, 31 Jul 2014 00:22:22 +0000 (00:22 +0000)]
am 36bacd23: Merge "Proper MB_CUR_MAX."

* commit '36bacd237de931c48714d1a8aa4aa9522283e407':
  Proper MB_CUR_MAX.

10 years agoMerge "Proper MB_CUR_MAX."
Dan Albert [Thu, 31 Jul 2014 00:14:42 +0000 (00:14 +0000)]
Merge "Proper MB_CUR_MAX."

10 years agoProper MB_CUR_MAX.
Dan Albert [Wed, 30 Jul 2014 17:53:48 +0000 (10:53 -0700)]
Proper MB_CUR_MAX.

Previously this was hard coded to 4. This is only the case for UTF-8
locales.

As a side effect, this properly reports C.UTF-8 as the default locale
instead of C.

Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc

10 years agoam 61833de6: Fix memchr with a zero length.
Christopher Ferris [Wed, 30 Jul 2014 23:46:26 +0000 (23:46 +0000)]
am 61833de6: Fix memchr with a zero length.

* commit '61833de613990f2fdaf357bb3d854d72a4980890':
  Fix memchr with a zero length.

10 years agoam 0f7ed163: Merge "Fix memchr with a zero length."
Christopher Ferris [Wed, 30 Jul 2014 23:33:45 +0000 (23:33 +0000)]
am 0f7ed163: Merge "Fix memchr with a zero length."

* commit '0f7ed163cf6c1fe6d71a1d7e5fb6d0989213be85':
  Fix memchr with a zero length.

10 years agoFix memchr with a zero length.
Christopher Ferris [Wed, 30 Jul 2014 23:06:56 +0000 (16:06 -0700)]
Fix memchr with a zero length.

The memchr implementation for 64 bit fails if these conditions occur:

- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.

The function should return NULL, but it's not.

Bug: 16676625

(cherry picked from commit e03e1eac0b7682884b6628df1305d34299680cb4)

Change-Id: Ie4cca2c445127a0936ee2b96651a8e7204fbaffd

10 years agoam 4f76469e: Implement <sys/fsuid.h>.
Elliott Hughes [Wed, 30 Jul 2014 23:27:43 +0000 (23:27 +0000)]
am 4f76469e: Implement <sys/fsuid.h>.

* commit '4f76469e88e255bab1f8264e9ff8b95bff84365f':
  Implement <sys/fsuid.h>.

10 years agoam 83b9826e: Merge "Implement <sys/fsuid.h>."
Elliott Hughes [Wed, 30 Jul 2014 23:25:22 +0000 (23:25 +0000)]
am 83b9826e: Merge "Implement <sys/fsuid.h>."

* commit '83b9826e683db30e9b359737253b87ef8b3ba3df':
  Implement <sys/fsuid.h>.