Commit graph

16758 commits

Author SHA1 Message Date
Neil Fuller
418bdafb82 Merge "Update timezone data to 2016c" 2016-04-29 09:17:23 +00:00
Neil Fuller
f1b38527ea Merge "Update timezone data to 2016b" 2016-04-29 09:16:43 +00:00
Treehugger Robot
bd8773d19d Merge "Implement mblen(3)." 2016-04-29 00:43:26 +00:00
Elliott Hughes
6f6f9058fa Implement mblen(3).
Change-Id: I65948ea5b9ecd63f966ba767ad6db4a2effc4700
2016-04-28 16:41:29 -07:00
Treehugger Robot
1519a90834 Merge "Remove -fvisibility=hidden from dns code" 2016-04-28 19:50:48 +00:00
Dimitry Ivanov
e5ed43beff Remove -fvisibility=hidden from dns code
We no longer need it because version script controls
list of symbols we export.

This also fixes mips/mips64 builds.

Bug: http://b/24767418
Change-Id: I61c504665fc0349275384596d375155991743e05
2016-04-28 11:38:33 -07:00
Treehugger Robot
488f5fc6a4 Merge "[mips64] Call __memset_chk_fail correctly for mips64." 2016-04-28 17:18:01 +00:00
Predrag Blagojevic
b640e031a8 [mips64] Call __memset_chk_fail correctly for mips64.
This change resolves Fortify1_{gcc|clang}_DeathTest.* test failures.

Change-Id: Ia936c159323bdf8e9577160ee92b99e66e6793ea
2016-04-28 17:13:07 +02:00
Treehugger Robot
671e6b20ea Merge "Add unwind information for r7 in arm syscalls." 2016-04-28 04:37:25 +00:00
Christopher Ferris
f5a9123d9f Add unwind information for r7 in arm syscalls.
It turns out that clang can emit code where the sp is saved in the r7
register on arm. Unfortunately, a lot of our syscalls overwrite that
value while the syscall is executing, so unwinding through that syscall
fails.

Update the syscall generation code to add unwinding information for
these uses.

Bug: 28411713
(cherry picked from commit 6e45d37dec)

Change-Id: Ib775effc44c4113735fe9032b0602b9d63e3e390
2016-04-27 20:34:47 -07:00
Treehugger Robot
b3c1ff69d2 Merge "Make malloc debug symbols platform-private" 2016-04-28 02:15:05 +00:00
Josh Gao
0640b911f3 Merge changes from topic 'bionic_unavailable'
* changes:
  Tag unavailable functions with macro.
  Delete declarations which don't exist.
2016-04-28 01:46:36 +00:00
Dimitry Ivanov
54548d8cf9 Make malloc debug symbols platform-private
Bug: http://b/28432442
Change-Id: I96b9cb8b57726b4e8d53069e72666cf107cdeba2
2016-04-27 18:16:16 -07:00
Stephen Hines
234ea78721 Merge "Enable clang builds of mips/mips64 in bionic again." 2016-04-28 01:13:03 +00:00
Josh Gao
29226f39ae Tag unavailable functions with macro.
Add an __UNAVAILABLE macro, and use it for several functions which lack
implementations, but need to have visible declarations to be reexported
in the C++ standard library.

Bug: http://b/28178111
Change-Id: Ia4ae0207bbfcb7baa61821f0ef946257b019c0db
2016-04-27 16:50:54 -07:00
Josh Gao
c194fd30c6 Delete declarations which don't exist.
Bug: http://b/28178111
Change-Id: I72d5d015d7927a8df24b3973bf8a052053a067fb
2016-04-27 16:50:54 -07:00
Stephen Hines
b5f58793cf Enable clang builds of mips/mips64 in bionic again.
Bug: http://b/25291096

The latest clang-2812033 prebuilts have all the necessary cherry-picks
to fix the mips booting issues from the past.

Change-Id: Ib3b364daaa50ef55401e016b92419b64f02f03dc
2016-04-26 21:42:02 -07:00
Pierre Imai
e1be20f648 Merge "Fix DNS search path info." 2016-04-27 04:29:24 +00:00
Pierre Imai
1b069a990a Fix DNS search path info.
Fix the resolver information returned by
android_net_res_stats_get_info_for_net,
erroneously included MAXDNSRCH empty results if no search path was set.

BUG: 25731675
Change-Id: I97ef5d2d47dc62ca403a3323c7f14902e47b29b6
2016-04-27 12:24:32 +09:00
Josh Gao
92b23a0fe3 Merge "Make <sys/user.h> compile on AArch64." 2016-04-26 23:13:48 +00:00
Josh Gao
d8ca92cbff Make <sys/user.h> compile on AArch64.
Previously, AArch64 used uint64_t without including <stdint.h>.

Bug: http://b/28178111
Change-Id: I8a497765d835f32b456f7eb925a6760e523163c4
2016-04-25 18:45:39 -07:00
Treehugger Robot
23e29e3be0 Merge "bionic: Implement getpwent and getgrent" 2016-04-22 19:48:05 +00:00
Chih-hung Hsieh
30595a2d83 Merge "Fix google-explicit-constructor warning." 2016-04-22 18:37:53 +00:00
Mark Salyzyn
722ab05b25 bionic: Implement getpwent and getgrent
Not efficient to iterate through given the large number of Android
ids (AID). Compile warning will result if you use these functions,
telling you as much. Not for general consumption, however for
example, some filesystem tests would like to see these to perform
all corners.

About 1/4 second for getpwent, and 1/8 second for getgrent to iterate
through all reserved Android aids.

Bug: 27999086
Change-Id: I7784273b7875c38e4954ae21d314f35e4bf8c2fc
2016-04-22 10:44:19 -07:00
Chih-Hung Hsieh
956df72eb0 Fix google-explicit-constructor warning.
Bug: 28341362
Change-Id: I85d2f83a3ca35699cfab54e725a64aaf3013c8f1
2016-04-22 10:25:10 -07:00
Dimitry Ivanov
130bec7103 Merge "Improve error message for empty list of public libs" 2016-04-22 14:30:25 +00:00
Neil Fuller
2b55d7bb41 Update timezone data to 2016c
Changes affecting future time stamps

    Azerbaijan no longer observes DST.  (Thanks to Steffen Thorsen.)

    Chile reverts from permanent to seasonal DST.  (Thanks to Juan
    Correa for the heads-up, and to Tim Parenti for corrections.)
    Guess that future transitions are August's and May's second
    Saturdays at 24:00 mainland time.  Also, call the period from
    2014-09-07 through 2016-05-14 daylight saving time instead of
    standard time, as that seems more appropriate now.

  Changes affecting past time stamps

    Europe/Kaliningrad and Europe/Vilnius changed from +03/+04 to
    +02/+03 on 1989-03-26, not 1991-03-31.  Europe/Volgograd changed
    from +04/+05 to +03/+04 on 1988-03-27, not 1989-03-26.
    (Thanks to Stepan Golosunov.)

Bug: 27826144
(cherry picked from commit 28a63edc68)

Change-Id: I81d3c858eaae1329d16663df14c18ca3623f7cf8
2016-04-22 13:58:32 +01:00
Neil Fuller
4d3a79274a Update timezone data to 2016b
Changes affecting future time stamps

    New zones Europe/Astrakhan and Europe/Ulyanovsk for Astrakhan and
    Ulyanovsk Oblasts, Russia, both of which will switch from +03 to +04 on
    2016-03-27 at 02:00 local time.  They need distinct zones since their
    post-1970 histories disagree.  New zone Asia/Barnaul for Altai Krai and
    Altai Republic, Russia, which will switch from +06 to +07 on the same date
    and local time.  Also, Asia/Sakhalin moves from +10 to +11 on 2016-03-27
    at 02:00.  (Thanks to Alexander Krivenyshev for the heads-up, and to
    Matt Johnson and Stepan Golosunov for followup.)

    As a trial of a new system that needs less information to be made up,
    the new zones use numeric time zone abbreviations like "+04"
    instead of invented abbreviations like "ASTT".

    Haiti will not observe DST in 2016.  (Thanks to Jean Antoine via
    Steffen Thorsen.)

    Palestine's spring-forward transition on 2016-03-26 is at 01:00, not 00:00.
    (Thanks to Hannah Kreitem.) Guess future transitions will be March's last
    Saturday at 01:00, not March's last Friday at 24:00.

  Changes affecting past time stamps

    Europe/Chisinau observed DST during 1990, and switched from +04 to
    +03 at 1990-05-06 02:00, instead of switching from +03 to +02.
    (Thanks to Stepan Golosunov.)

    1991 abbreviations in Europe/Samara should be SAMT/SAMST, not
    KUYT/KUYST.  (Thanks to Stepan Golosunov.)

The update produced (apparently benign) warnings from zic as suggested here:
http://mm.icann.org/pipermail/tz-announce/2016-March/000036.html

Bug: 27656428
(cherry picked from commit 4fc72e0230)

Change-Id: I3492fcacf2771d6cc194e4ff155a04c3817ae336
2016-04-22 13:58:32 +01:00
Treehugger Robot
42df585166 Merge "Add a test exercising ptrace watchpoint functionality" 2016-04-22 09:30:51 +00:00
Pavel Labath
1faca6c95b Add a test exercising ptrace watchpoint functionality
This adds a test which verifies that watchpoints work on devices
which support them. It is motivated by issues experienced by Nexus
5 devices, where watchpoints work only sporadically.

These tests spawn a process, trace it, and verify it hits a
watchpoint of various sizes while executing on all available CPUs
(to help catch a recent bug, where some debugging functionality
was not available on non-boot CPUs). All x86(_64) targets are
expected to support this functionality. In case of arm(64),
watchpoints are expected to work on devices where the relevant
syscall indicates watchpoint presence. In case of mips, this test
is skipped as I could not verify that the test would work
correctly due to lack of hardware, and this test is intrinsically
hardware-dependend.

Change-Id: I035ac1822816cd1a3f3b56b985c2fb5fd664185d
2016-04-21 20:45:23 -07:00
Dimitry Ivanov
54807617dd Improve error message for empty list of public libs
Change-Id: I5a3cbc99d34e05559426b521a964d1407b67a6c4
2016-04-21 15:37:01 -07:00
Pierre Imai
4d9a97bb91 Merge changes I6059b68e,I11a7257a
* changes:
  Add new info functions to resolver for use by Netd.
  Store DNS server count in resolv_cache.
2016-04-21 03:58:36 +00:00
Pierre Imai
97c9d73a87 Add new info functions to resolver for use by Netd.
android_net_res_stats_get_info_for_net returns the current name servers, search
domains, parameters and stats for the given network ID.

android_net_res_stats_aggregate provides statistics such as errors counts from
the raw stats data reported by android_net_res_stats_get_info_for_net.

android_net_res_stats_get_usable_servers uses the data returned by
android_net_res_stats_aggregate to determine which of the servers are
considered valid or broken by the resolver.

BUG: 25731675

Change-Id: I6059b68e5e8b809027a4d3135f6081588bee8a7d
2016-04-21 10:07:26 +09:00
Pierre Imai
fff356786f Store DNS server count in resolv_cache.
Instead of keeping a sentinel after nameservers[], nsaddrinfo[] and
nstats[], store the server count in the structure, freeing up memory and
eliminating the need to enumerate the server count every time
_resolv_is_nameservers_equal_locked() is invoked.

Also increase MAXNS from 3 to 4.

BUG: 28153323
Change-Id: I11a7257af695157c9e32019cd00c67b535b63c75
2016-04-21 10:07:24 +09:00
Treehugger Robot
80bb8d5553 Merge "Change pointer to allocation in unit tests." 2016-04-21 00:47:09 +00:00
Christopher Ferris
97fd7d95f5 Change pointer to allocation in unit tests.
I changed the output from "pointer" to "allocation" for allocation
mismatches. I forgot to update the tests.

Bug: 28218530
Change-Id: I3278cb1dd17fb50ff7448c00e069c1af68ce5a57
2016-04-20 16:44:39 -07:00
Than McIntosh
1c3a5d87f2 Merge "Rename DT_MIPS_RLD_MAP2 flag to DT_MIPS_RLD_MAP_REL" 2016-04-20 14:23:10 +00:00
Colin Cross
bd26f23c84 Merge "Update sanitize property format" 2016-04-19 22:42:04 +00:00
Christopher Ferris
96d961cf0b Merge "Add malloc debug documentation." 2016-04-19 17:51:42 +00:00
Elliott Hughes
2c32c20fa9 Merge "Fix ftw/nftw to only report unreadable directories once." 2016-04-19 16:14:23 +00:00
Christopher Ferris
f917ed3933 Merge "Small fixes to malloc debug." 2016-04-18 21:24:27 +00:00
Elliott Hughes
13d79abebe Fix ftw/nftw to only report unreadable directories once.
Also remove all the copy & paste.

Bug: http://b/28197840
Change-Id: Ia43e9ffd838dabb511a6e54403d6f62066383e4d
2016-04-18 12:05:18 -07:00
Dimitry Ivanov
ab6c7defc1 Merge "Revert "Temporary move __udivdi3 back to LIBC for x86"" 2016-04-16 01:30:44 +00:00
Dimitry Ivanov
9f39326a74 Revert "Temporary move __udivdi3 back to LIBC for x86"
This reverts commit bc02fb964a.

Bug: http://b/26406724
Bug: http://b/26423217
Change-Id: I8e3186fc76502d6818753e5d76a7c145207ed9a3
2016-04-16 00:58:12 +00:00
Colin Cross
27c43c505e Update sanitize property format
Change-Id: I2fd35d6d85c7da7e96ffcefcd81350c836f0db9c
2016-04-15 16:36:13 -07:00
Christopher Ferris
713a8e36f8 Add malloc debug documentation.
Bug: 27902359
Bug: 28218530
Change-Id: I4b0e83cba7a9a0da745599ad546559a2b30e70c5
2016-04-15 14:17:44 -07:00
Christopher Ferris
ea26b33248 Small fixes to malloc debug.
- Change the printed name from pointer to allocation to be explicit about
  what is wrong.
- Change the signal to be SIGRTMAX - 19 instead of SIGRTMIN. This should
  prevent problems if we have to reserve other real time signals.

Bug: 28218530
Change-Id: Ic7d9c471929264d8e47bafaffc16e099840c9e71
2016-04-15 14:13:52 -07:00
Treehugger Robot
668fddb3ba Merge changes Id8a3b7dc,I00ded8f9,I02f78ad7
* changes:
  Make the legacy inline headers compile standalone.
  Don't redefine __ANDROID_API__.
  Move <sys/_sigdefs.h> and <sys/_errdefs.h> to private.
2016-04-15 20:59:36 +00:00
Josh Gao
b8e1b705d1 Make the legacy inline headers compile standalone.
It's useful to have the legacy inlines compile by themselves, both to
make header unification easier, and to ensure that the inline versions
match the regular declarations. Notably, this wasn't true for
sigismember, which took a const sigset_t* in the regular header, and
sigset_t* in the inline version.

Bug: http://b/28178111
Change-Id: Id8a3b7dcb1bfa61eed93c9fb50d3192744f8bef5
2016-04-15 13:06:08 -07:00
Dimitry Ivanov
82a176b554 Merge "Remove dangling links in secondary namespaces" 2016-04-14 19:47:58 +00:00