OSDN Git Service

android-x86/bionic.git
8 years agoMerge "Enable clang builds of mips/mips64 in bionic again."
Stephen Hines [Thu, 28 Apr 2016 01:18:19 +0000 (01:18 +0000)]
Merge "Enable clang builds of mips/mips64 in bionic again."
am: 234ea78

* commit '234ea787210051a114d849ff28dfca16b9408197':
  Enable clang builds of mips/mips64 in bionic again.

Change-Id: If86a39aeb6b1c483a1d5f26a9a6514df7c302f8d

8 years agoMerge "Enable clang builds of mips/mips64 in bionic again."
Stephen Hines [Thu, 28 Apr 2016 01:13:03 +0000 (01:13 +0000)]
Merge "Enable clang builds of mips/mips64 in bionic again."

8 years agoEnable clang builds of mips/mips64 in bionic again.
Stephen Hines [Wed, 27 Apr 2016 00:54:56 +0000 (17:54 -0700)]
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

8 years agoMerge "Fix DNS search path info."
Pierre Imai [Wed, 27 Apr 2016 04:37:51 +0000 (04:37 +0000)]
Merge "Fix DNS search path info."
am: e1be20f

* commit 'e1be20f648abffd115bb699d3b14bd07c7c1430b':
  Fix DNS search path info.

Change-Id: Ia0a16d7601559188ccbd54354674a47ffcdd2a1d

8 years agoMerge "Fix DNS search path info."
Pierre Imai [Wed, 27 Apr 2016 04:29:24 +0000 (04:29 +0000)]
Merge "Fix DNS search path info."

8 years agoFix DNS search path info.
Pierre Imai [Tue, 26 Apr 2016 13:08:40 +0000 (22:08 +0900)]
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

8 years agoMerge "Make <sys/user.h> compile on AArch64."
Josh Gao [Tue, 26 Apr 2016 23:18:51 +0000 (23:18 +0000)]
Merge "Make <sys/user.h> compile on AArch64."
am: 92b23a0

* commit '92b23a0fe369528d4e807fafc755d9b506d66f0a':
  Make <sys/user.h> compile on AArch64.

Change-Id: I1d97f1c72d4ebea1314eb7bfb7340900b9c6704e

8 years agoMerge "Make <sys/user.h> compile on AArch64."
Josh Gao [Tue, 26 Apr 2016 23:13:48 +0000 (23:13 +0000)]
Merge "Make <sys/user.h> compile on AArch64."

8 years agoMake <sys/user.h> compile on AArch64.
Josh Gao [Tue, 26 Apr 2016 00:04:56 +0000 (17:04 -0700)]
Make <sys/user.h> compile on AArch64.

Previously, AArch64 used uint64_t without including <stdint.h>.

Bug: http://b/28178111
Change-Id: I8a497765d835f32b456f7eb925a6760e523163c4

8 years agoMerge "bionic: Implement getpwent and getgrent"
Mark Salyzyn [Fri, 22 Apr 2016 19:57:02 +0000 (19:57 +0000)]
Merge "bionic: Implement getpwent and getgrent"
am: 23e29e3

* commit '23e29e3be03d5226544774e2a64c924bae82e07b':
  bionic: Implement getpwent and getgrent

Change-Id: I34f9728e741d40cc91a78a6713e775ccce9953ba

8 years agoMerge "bionic: Implement getpwent and getgrent"
Treehugger Robot [Fri, 22 Apr 2016 19:48:05 +0000 (19:48 +0000)]
Merge "bionic: Implement getpwent and getgrent"

8 years agoMerge "Fix google-explicit-constructor warning."
Chih-Hung Hsieh [Fri, 22 Apr 2016 18:53:22 +0000 (18:53 +0000)]
Merge "Fix google-explicit-constructor warning."
am: 30595a2

* commit '30595a2d83d53e27d8787a078e5c35dfb531a7d1':
  Fix google-explicit-constructor warning.

Change-Id: I183a8f0b6ca472d55b3f6826f26e2631a2448485

8 years agoMerge "Fix google-explicit-constructor warning."
Chih-hung Hsieh [Fri, 22 Apr 2016 18:37:53 +0000 (18:37 +0000)]
Merge "Fix google-explicit-constructor warning."

8 years agobionic: Implement getpwent and getgrent
Mark Salyzyn [Wed, 6 Apr 2016 17:35:48 +0000 (10:35 -0700)]
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

8 years agoFix google-explicit-constructor warning.
Chih-Hung Hsieh [Fri, 22 Apr 2016 17:25:10 +0000 (10:25 -0700)]
Fix google-explicit-constructor warning.

Bug: 28341362
Change-Id: I85d2f83a3ca35699cfab54e725a64aaf3013c8f1

8 years agoMerge "Improve error message for empty list of public libs"
Dimitry Ivanov [Fri, 22 Apr 2016 15:07:56 +0000 (15:07 +0000)]
Merge "Improve error message for empty list of public libs"
am: 130bec7103

* commit '130bec7103561fc3657e8a431ca55026430b843e':
  Improve error message for empty list of public libs

Change-Id: I50182831c3199bf32578e9a89f9607de4adf2e94

8 years agoMerge "Improve error message for empty list of public libs"
Dimitry Ivanov [Fri, 22 Apr 2016 14:30:24 +0000 (14:30 +0000)]
Merge "Improve error message for empty list of public libs"

8 years agoMerge "Add a test exercising ptrace watchpoint functionality"
Pavel Labath [Fri, 22 Apr 2016 09:57:32 +0000 (09:57 +0000)]
Merge "Add a test exercising ptrace watchpoint functionality"
am: 42df585166

* commit '42df5851667312ebf0a947e3fd03953fce108828':
  Add a test exercising ptrace watchpoint functionality

Change-Id: I900f489bfd76a6bec361059e98e94256833249fb

8 years agoMerge "Add a test exercising ptrace watchpoint functionality"
Treehugger Robot [Fri, 22 Apr 2016 09:30:51 +0000 (09:30 +0000)]
Merge "Add a test exercising ptrace watchpoint functionality"

8 years agoAdd a test exercising ptrace watchpoint functionality
Pavel Labath [Thu, 21 Apr 2016 14:13:22 +0000 (15:13 +0100)]
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

8 years agoImprove error message for empty list of public libs
Dimitry Ivanov [Thu, 21 Apr 2016 21:57:38 +0000 (14:57 -0700)]
Improve error message for empty list of public libs

Change-Id: I5a3cbc99d34e05559426b521a964d1407b67a6c4

8 years agoMerge changes I6059b68e,I11a7257a
Pierre Imai [Thu, 21 Apr 2016 04:08:03 +0000 (04:08 +0000)]
Merge changes I6059b68e,I11a7257a
am: 4d9a97bb91

* commit '4d9a97bb916aaa7d7bf819ef999d4b1a58d4750d':
  Add new info functions to resolver for use by Netd.
  Store DNS server count in resolv_cache.

Change-Id: Ibfd58e5934b2dd958106ef58254127b9605d4804

8 years agoMerge changes I6059b68e,I11a7257a
Pierre Imai [Thu, 21 Apr 2016 03:58:36 +0000 (03:58 +0000)]
Merge changes I6059b68e,I11a7257a

* changes:
  Add new info functions to resolver for use by Netd.
  Store DNS server count in resolv_cache.

8 years agoMerge "Change pointer to allocation in unit tests."
Christopher Ferris [Thu, 21 Apr 2016 01:08:11 +0000 (01:08 +0000)]
Merge "Change pointer to allocation in unit tests."
am: 80bb8d5553

* commit '80bb8d5553e3613b058ce70428dfe783d9d42816':
  Change pointer to allocation in unit tests.

Change-Id: I9d9276ac032e2ccd6f144392b213f7e4884f5b96

8 years agoAdd new info functions to resolver for use by Netd.
Pierre Imai [Mon, 18 Apr 2016 03:00:12 +0000 (12:00 +0900)]
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

8 years agoStore DNS server count in resolv_cache.
Pierre Imai [Mon, 18 Apr 2016 02:42:14 +0000 (11:42 +0900)]
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

8 years agoMerge "Change pointer to allocation in unit tests."
Treehugger Robot [Thu, 21 Apr 2016 00:47:09 +0000 (00:47 +0000)]
Merge "Change pointer to allocation in unit tests."

8 years agoChange pointer to allocation in unit tests.
Christopher Ferris [Wed, 20 Apr 2016 23:44:39 +0000 (16:44 -0700)]
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

8 years agoMerge "Rename DT_MIPS_RLD_MAP2 flag to DT_MIPS_RLD_MAP_REL"
Lazar Trsic [Wed, 20 Apr 2016 14:29:22 +0000 (14:29 +0000)]
Merge "Rename DT_MIPS_RLD_MAP2 flag to DT_MIPS_RLD_MAP_REL"
am: 1c3a5d8

* commit '1c3a5d87f2844b637f48f43ca22a6ac5e4cbf9c9':
  Rename DT_MIPS_RLD_MAP2 flag to DT_MIPS_RLD_MAP_REL

Change-Id: Ieeebdb711731c0175c9990d51720753309250771

8 years agoMerge "Rename DT_MIPS_RLD_MAP2 flag to DT_MIPS_RLD_MAP_REL"
Than McIntosh [Wed, 20 Apr 2016 14:23:10 +0000 (14:23 +0000)]
Merge "Rename DT_MIPS_RLD_MAP2 flag to DT_MIPS_RLD_MAP_REL"

8 years agoMerge "Update sanitize property format"
Colin Cross [Tue, 19 Apr 2016 23:01:18 +0000 (23:01 +0000)]
Merge "Update sanitize property format"
am: bd26f23

* commit 'bd26f23c84c6c3a1179a9bf9cca4b5e2941bf042':
  Update sanitize property format

Change-Id: Ied909a83bbd4f221b8bcfc7b112d4585d845a0bb

8 years agoMerge "Update sanitize property format"
Colin Cross [Tue, 19 Apr 2016 22:42:04 +0000 (22:42 +0000)]
Merge "Update sanitize property format"

8 years agoMerge "Add malloc debug documentation."
Christopher Ferris [Tue, 19 Apr 2016 18:10:59 +0000 (18:10 +0000)]
Merge "Add malloc debug documentation."
am: 96d961c

* commit '96d961cf0b573984f59ecaa916033c1022be9498':
  Add malloc debug documentation.

Change-Id: I29df0ad12f429b75d9cfb82ad87fecf797b2cf45

8 years agoMerge "Add malloc debug documentation."
Christopher Ferris [Tue, 19 Apr 2016 17:51:41 +0000 (17:51 +0000)]
Merge "Add malloc debug documentation."

8 years agoMerge "Fix ftw/nftw to only report unreadable directories once."
Elliott Hughes [Tue, 19 Apr 2016 16:21:28 +0000 (16:21 +0000)]
Merge "Fix ftw/nftw to only report unreadable directories once."
am: 2c32c20

* commit '2c32c20fa9c730d4357b036f898c84e288ecb290':
  Fix ftw/nftw to only report unreadable directories once.

Change-Id: I50638c90a56833fa5afc44cee2d316107b21d2ba

8 years agoMerge "Fix ftw/nftw to only report unreadable directories once."
Elliott Hughes [Tue, 19 Apr 2016 16:14:23 +0000 (16:14 +0000)]
Merge "Fix ftw/nftw to only report unreadable directories once."

8 years agoMerge "Small fixes to malloc debug."
Christopher Ferris [Mon, 18 Apr 2016 21:32:35 +0000 (21:32 +0000)]
Merge "Small fixes to malloc debug."
am: f917ed3

* commit 'f917ed39338b92b05005639e7771a52c380d9ac6':
  Small fixes to malloc debug.

Change-Id: I2235c7514ac97180e30dfb797c6ced739f0feca7

8 years agoMerge "Small fixes to malloc debug."
Christopher Ferris [Mon, 18 Apr 2016 21:24:26 +0000 (21:24 +0000)]
Merge "Small fixes to malloc debug."

8 years agoFix ftw/nftw to only report unreadable directories once.
Elliott Hughes [Sat, 16 Apr 2016 00:40:33 +0000 (17:40 -0700)]
Fix ftw/nftw to only report unreadable directories once.

Also remove all the copy & paste.

Bug: http://b/28197840
Change-Id: Ia43e9ffd838dabb511a6e54403d6f62066383e4d

8 years agoMerge "Revert "Temporary move __udivdi3 back to LIBC for x86""
Dimitry Ivanov [Sat, 16 Apr 2016 01:35:48 +0000 (01:35 +0000)]
Merge "Revert "Temporary move __udivdi3 back to LIBC for x86""
am: ab6c7de

* commit 'ab6c7defc1643a0ce8c3ccdb44b51c83fdfdd450':
  Revert "Temporary move __udivdi3 back to LIBC for x86"

Change-Id: I7980dafc70d6fcf7660e898b81972431f431905c

8 years agoMerge "Revert "Temporary move __udivdi3 back to LIBC for x86""
Dimitry Ivanov [Sat, 16 Apr 2016 01:30:44 +0000 (01:30 +0000)]
Merge "Revert "Temporary move __udivdi3 back to LIBC for x86""

8 years agoRevert "Temporary move __udivdi3 back to LIBC for x86"
Dimitry Ivanov [Sat, 16 Apr 2016 00:58:12 +0000 (00:58 +0000)]
Revert "Temporary move __udivdi3 back to LIBC for x86"

This reverts commit bc02fb964a59983521c5f6cf80b1189434952780.

Bug: http://b/26406724
Bug: http://b/26423217
Change-Id: I8e3186fc76502d6818753e5d76a7c145207ed9a3

8 years agoUpdate sanitize property format
Colin Cross [Thu, 7 Apr 2016 20:27:24 +0000 (13:27 -0700)]
Update sanitize property format

Change-Id: I2fd35d6d85c7da7e96ffcefcd81350c836f0db9c

8 years agoAdd malloc debug documentation.
Christopher Ferris [Fri, 18 Mar 2016 21:29:51 +0000 (14:29 -0700)]
Add malloc debug documentation.

Bug: 27902359
Bug: 28218530
Change-Id: I4b0e83cba7a9a0da745599ad546559a2b30e70c5

8 years agoSmall fixes to malloc debug.
Christopher Ferris [Fri, 15 Apr 2016 21:13:52 +0000 (14:13 -0700)]
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

8 years agoMerge changes Id8a3b7dc,I00ded8f9,I02f78ad7
Josh Gao [Fri, 15 Apr 2016 21:11:03 +0000 (21:11 +0000)]
Merge changes Id8a3b7dc,I00ded8f9,I02f78ad7
am: 668fddb

* commit '668fddb3ba36b52a16381513b1a0a42d9dd910e1':
  Make the legacy inline headers compile standalone.
  Don't redefine __ANDROID_API__.
  Move <sys/_sigdefs.h> and <sys/_errdefs.h> to private.

Change-Id: I3dd4e65be3342f387172debfe3982903d46b94ea

8 years agoMerge changes Id8a3b7dc,I00ded8f9,I02f78ad7
Treehugger Robot [Fri, 15 Apr 2016 20:59:36 +0000 (20:59 +0000)]
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.

8 years agoMake the legacy inline headers compile standalone.
Josh Gao [Thu, 14 Apr 2016 00:18:20 +0000 (17:18 -0700)]
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

8 years agoMerge "Remove dangling links in secondary namespaces"
Dimitry Ivanov [Thu, 14 Apr 2016 20:04:44 +0000 (20:04 +0000)]
Merge "Remove dangling links in secondary namespaces"
am: 82a176b

* commit '82a176b55497c0d56351ad4c66cf4cf4b349408d':
  Remove dangling links in secondary namespaces

Change-Id: I100dd32c9f8d5d98e072aa0b7388c74a5bbcc3a8

8 years agoMerge "Remove dangling links in secondary namespaces"
Dimitry Ivanov [Thu, 14 Apr 2016 19:47:57 +0000 (19:47 +0000)]
Merge "Remove dangling links in secondary namespaces"

8 years agoRemove dangling links in secondary namespaces
Dimitry Ivanov [Mon, 11 Apr 2016 19:42:58 +0000 (12:42 -0700)]
Remove dangling links in secondary namespaces

linker didn't remove link to the soinfo from shared
namespaces on soinfo_unload, because it didn't keep
record of all namespaces the library is added to.

This change adds test for this and also fixes the
problem by introducing list of secondary namespaces
to soinfo, which is used to remove soinfo in
soinfo::remove_all_links().

Bug: http://b/28115950
Change-Id: Ifbf6e54f92fa6e88f86b6a8dd6dc22d4553afd22

8 years agoMerge "linker: remove unnecessary reset of constructors_called flag"
Dimitry Ivanov [Thu, 14 Apr 2016 04:37:15 +0000 (04:37 +0000)]
Merge "linker: remove unnecessary reset of constructors_called flag"
am: 30bc91a

* commit '30bc91a083e45acfded89604474189628e5c1259':
  linker: remove unnecessary reset of constructors_called flag

Change-Id: I4cd52d026060221fe421636e434c84138f46341b

8 years agoMerge "linker: remove unnecessary reset of constructors_called flag"
Treehugger Robot [Thu, 14 Apr 2016 04:30:54 +0000 (04:30 +0000)]
Merge "linker: remove unnecessary reset of constructors_called flag"

8 years agoDon't redefine __ANDROID_API__.
Josh Gao [Thu, 14 Apr 2016 00:16:47 +0000 (17:16 -0700)]
Don't redefine __ANDROID_API__.

Bug: http://b/28178111
Change-Id: I00ded8f90694d9ed28f3b4c97778635f5a564592

8 years agoMove <sys/_sigdefs.h> and <sys/_errdefs.h> to private.
Josh Gao [Thu, 14 Apr 2016 00:08:43 +0000 (17:08 -0700)]
Move <sys/_sigdefs.h> and <sys/_errdefs.h> to private.

Bug: http://b/28067717
Change-Id: I02f78ad7293a15ff45e35e9c20f60d3d023931eb

8 years agoMerge "Move linker-namespace functions to LIBC_PLATFORM"
Dimitry Ivanov [Thu, 14 Apr 2016 00:43:15 +0000 (00:43 +0000)]
Merge "Move linker-namespace functions to LIBC_PLATFORM"
am: 0e3b719

* commit '0e3b719bfa84cfe35188513cf6fcbf5b44ea1c43':
  Move linker-namespace functions to LIBC_PLATFORM

Change-Id: Ia508e1788339a79df128a9badd5788a19046090a

8 years agoMerge "Move linker-namespace functions to LIBC_PLATFORM"
Treehugger Robot [Thu, 14 Apr 2016 00:36:44 +0000 (00:36 +0000)]
Merge "Move linker-namespace functions to LIBC_PLATFORM"

8 years agoMove linker-namespace functions to LIBC_PLATFORM
Dimitry Ivanov [Wed, 13 Apr 2016 22:01:37 +0000 (15:01 -0700)]
Move linker-namespace functions to LIBC_PLATFORM

Bug: http://b/28174921
Change-Id: I089dbeeea813fc2128b9c2f6268a578d23a1954a
(cherry picked from commit 7095da8d3c0f45e41aff5ca3d61aa7c442e21bdf)

8 years agolinker: remove unnecessary reset of constructors_called flag
Dimitry Ivanov [Wed, 13 Apr 2016 21:47:36 +0000 (14:47 -0700)]
linker: remove unnecessary reset of constructors_called flag

linker doesn't call d-tors for RTLD_NODELETE libraries. There is
no need in reseting this flag in call_destructors (which is called
from soinfo_unload).

Change-Id: I3ed03fa7207b7acf598067276fbb8874e29b5e53

8 years agoMerge "linker: unload RTLD_NODELETE libraries when loading fails"
Dimitry Ivanov [Wed, 13 Apr 2016 21:07:22 +0000 (21:07 +0000)]
Merge "linker: unload RTLD_NODELETE libraries when loading fails"
am: 3ae69aa

* commit '3ae69aab0eabc635f0801fa157cce3a04b6ed08d':
  linker: unload RTLD_NODELETE libraries when loading fails

Change-Id: Iaeade4d35daa123fa196254d41f50aa12b0b48c1

8 years agoMerge "linker: unload RTLD_NODELETE libraries when loading fails"
Treehugger Robot [Wed, 13 Apr 2016 20:55:20 +0000 (20:55 +0000)]
Merge "linker: unload RTLD_NODELETE libraries when loading fails"

8 years agolinker: unload RTLD_NODELETE libraries when loading fails
Dimitry Ivanov [Wed, 13 Apr 2016 18:46:59 +0000 (11:46 -0700)]
linker: unload RTLD_NODELETE libraries when loading fails

Linker was not unloading libraries marked with RTLD_NODELETE
even when there was a error on load. For example when one of
dt_needed libraries was not found.

Bug: http://b/27911891
Change-Id: Ibc0bf110aa41fbfdc9f327ad8c364f2e3600af71
(cherry picked from commit 79abce42146b27d523f309e0a1bc9f50175191cb)

8 years agoMerge "Small refactor."
Christopher Ferris [Tue, 12 Apr 2016 22:49:15 +0000 (22:49 +0000)]
Merge "Small refactor."
am: 868b6fa

* commit '868b6fa4261a1d09e016cab6f43dada0273694b8':
  Small refactor.

Change-Id: I17fb656811f972f9cacc0ad36b4dc0eaf4f65375

8 years agoMerge "Small refactor."
Christopher Ferris [Tue, 12 Apr 2016 22:39:48 +0000 (22:39 +0000)]
Merge "Small refactor."

8 years agoSmall refactor.
Christopher Ferris [Fri, 8 Apr 2016 00:14:53 +0000 (17:14 -0700)]
Small refactor.

- Move all ScopedDisableDebugCalls into the debug_XXX calls. This avoids
any issues that might arise where every part of the code needs to properly
guard anything that might allocate. Instead everything is already guarded.
- Add a pointer to debug_data in all of the XXData classes. This avoids
calling individual functions passing in the debug_data pointer.
- Flip the NO_HEADER_OPTIONS to an explicit HEADER_OPTIONS list since fewer
options actually require a header.
- Move the extern of g_debug to the DebugData.h header.

Change-Id: Ia213a391b4a44d9ce122a709d09fe4f1b5426f36

8 years agoMerge "Add a test for pthread_setname_np on another thread in a PR_SET_DUMPABLE 0...
Elliott Hughes [Tue, 12 Apr 2016 22:11:49 +0000 (22:11 +0000)]
Merge "Add a test for pthread_setname_np on another thread in a PR_SET_DUMPABLE 0 process."
am: 03a16d3

* commit '03a16d3db7c5fff733d28250212821ec2ff5eccd':
  Add a test for pthread_setname_np on another thread in a PR_SET_DUMPABLE 0 process.

Change-Id: Ifb5ee6bd879e046d8dc4876fcd571f4a89589286

8 years agoMerge "Add a test for pthread_setname_np on another thread in a PR_SET_DUMPABLE 0...
Elliott Hughes [Tue, 12 Apr 2016 21:59:12 +0000 (21:59 +0000)]
Merge "Add a test for pthread_setname_np on another thread in a PR_SET_DUMPABLE 0 process."

8 years agoMerge "Rename deps property to objs in cc_objects"
Colin Cross [Tue, 12 Apr 2016 21:27:27 +0000 (21:27 +0000)]
Merge "Rename deps property to objs in cc_objects"
am: 966e1ac

* commit '966e1ac7615598a5fb3b01c1385f223f217d04e5':
  Rename deps property to objs in cc_objects

Change-Id: Ie3ef8f69e52a8b6cb6f6468cd2d58bf242fd4c0c

8 years agoMerge "Rename deps property to objs in cc_objects"
Colin Cross [Tue, 12 Apr 2016 21:16:04 +0000 (21:16 +0000)]
Merge "Rename deps property to objs in cc_objects"

8 years agoMerge "Update Android.bp to match Android.mk"
Colin Cross [Tue, 12 Apr 2016 19:17:09 +0000 (19:17 +0000)]
Merge "Update Android.bp to match Android.mk"
am: 0856a97

* commit '0856a97499d940e1672d7c652fe4074e5faf277f':
  Update Android.bp to match Android.mk

Change-Id: I609c51e56b730cf2a3da3ce27fcd6610f347d5fe

8 years agoMerge "Update Android.bp to match Android.mk"
Treehugger Robot [Tue, 12 Apr 2016 19:10:34 +0000 (19:10 +0000)]
Merge "Update Android.bp to match Android.mk"

8 years agoRename deps property to objs in cc_objects
Colin Cross [Mon, 11 Apr 2016 21:34:18 +0000 (14:34 -0700)]
Rename deps property to objs in cc_objects

The deps property is handled by blueprint, which doesn't give the
flexibilty of handling it within soong.  Switch to using objs instead.

Change-Id: Iddc25b0ba03fe79ba0533ef6fde33a5e71bcc8f0

8 years agoUpdate Android.bp to match Android.mk
Colin Cross [Mon, 11 Apr 2016 21:51:38 +0000 (14:51 -0700)]
Update Android.bp to match Android.mk

Change-Id: I002242ab36b6d0d8ad833543c07945f64175a613

8 years agoMerge "Update Android.bp to match Android.mk"
Colin Cross [Mon, 11 Apr 2016 21:39:58 +0000 (21:39 +0000)]
Merge "Update Android.bp to match Android.mk"
am: eccca04

* commit 'eccca0476902e94767462d520bbb3362c20744f5':
  Update Android.bp to match Android.mk

Change-Id: I267755d57f8b46d6b2e41cf87ed204a47859a50e

8 years agoMerge "Update Android.bp to match Android.mk"
Colin Cross [Mon, 11 Apr 2016 21:23:56 +0000 (21:23 +0000)]
Merge "Update Android.bp to match Android.mk"

8 years agoAdd a test for pthread_setname_np on another thread in a PR_SET_DUMPABLE 0 process.
Elliott Hughes [Mon, 11 Apr 2016 19:43:05 +0000 (12:43 -0700)]
Add a test for pthread_setname_np on another thread in a PR_SET_DUMPABLE 0 process.

Bug: http://b/28051133
Change-Id: I9a578333815afa6bdfc1e3c3eea430a15957304f

8 years agoMerge "Remove fabs, fabsf, fabsl inlines from <math.h>."
Josh Gao [Mon, 11 Apr 2016 18:34:18 +0000 (18:34 +0000)]
Merge "Remove fabs, fabsf, fabsl inlines from <math.h>."
am: c247cd1

* commit 'c247cd1fdcadfa8b025902ec45175a73e8cb82a8':
  Remove fabs, fabsf, fabsl inlines from <math.h>.

Change-Id: I066654bacbb4f0bbccb7ac34c800faa0d1f732be

8 years agoMerge "Remove fabs, fabsf, fabsl inlines from <math.h>."
Josh Gao [Mon, 11 Apr 2016 18:20:26 +0000 (18:20 +0000)]
Merge "Remove fabs, fabsf, fabsl inlines from <math.h>."

8 years agoMerge "Add test for IRELATIVE resolution with RTLD_LAZY"
Dimitry Ivanov [Sat, 9 Apr 2016 01:47:20 +0000 (01:47 +0000)]
Merge "Add test for IRELATIVE resolution with RTLD_LAZY"
am: 7c64941

* commit '7c649411b651d036139f3fa5141d5662b6cc168a':
  Add test for IRELATIVE resolution with RTLD_LAZY

Change-Id: I6bacce501867c6bc8b8066e5fa07418a4969e658

8 years agoMerge "Add test for IRELATIVE resolution with RTLD_LAZY"
Dimitry Ivanov [Sat, 9 Apr 2016 01:40:32 +0000 (01:40 +0000)]
Merge "Add test for IRELATIVE resolution with RTLD_LAZY"

8 years agoRemove fabs, fabsf, fabsl inlines from <math.h>.
Josh Gao [Fri, 8 Apr 2016 18:43:33 +0000 (11:43 -0700)]
Remove fabs, fabsf, fabsl inlines from <math.h>.

These inline definitions appear to be a workaround for a compiler bug
that either never existed, or has been resolved since then.

Bug: http://b/28067717
Change-Id: Ic1cd0f26403f234a6ab1fa273a9dd23e7f9fee8f

8 years agoAdd test for IRELATIVE resolution with RTLD_LAZY
Dimitry Ivanov [Fri, 8 Apr 2016 18:47:53 +0000 (11:47 -0700)]
Add test for IRELATIVE resolution with RTLD_LAZY

Even though bionic linker does not support RTLD_LAZY - it
is good to know that its behavior matches glibc.

Bug: http://b/27930475
Change-Id: I1a47263aaa3dc44f9ac61fe77deb55a21e7f881a

8 years agoMerge changes Ife4692e4,I7304cc1d,If19653d0,I769ca792,I93625d19, ...
Josh Gao [Fri, 8 Apr 2016 18:16:11 +0000 (18:16 +0000)]
Merge changes Ife4692e4,I7304cc1d,If19653d0,I769ca792,I93625d19, ...
am: 08794d4

* commit '08794d43adedb30aef58f0c77646ed5eaf9395e3':
  Move <sys/sysconf.h> to <bits/sysconf.h>.
  Remove mbstowcs from <wchar.h>.
  Extract getopt and friends to <bits/getopt.h>
  Remove declaration of unlinkat from <fcntl.h>.
  Extract ioctl to <bits/ioctl.h>.
  Extract fcntl to <bits/fcntl.h>.
  Extract strcasecmp and friends to <bits/strcasecmp.h>.
  Make <bits/lockf.h> compile standalone.
  Make <android/dlext.h> compile standalone.
  Make the network headers compile standalone.
  Remove duplicate declaration of mlock, munlock.

Change-Id: I25b789a5193c2b9490fee9e3e9158c0b44bf45d9

8 years agoMerge changes Ife4692e4,I7304cc1d,If19653d0,I769ca792,I93625d19, ...
Josh Gao [Fri, 8 Apr 2016 17:59:23 +0000 (17:59 +0000)]
Merge changes Ife4692e4,I7304cc1d,If19653d0,I769ca792,I93625d19, ...

* changes:
  Move <sys/sysconf.h> to <bits/sysconf.h>.
  Remove mbstowcs from <wchar.h>.
  Extract getopt and friends to <bits/getopt.h>
  Remove declaration of unlinkat from <fcntl.h>.
  Extract ioctl to <bits/ioctl.h>.
  Extract fcntl to <bits/fcntl.h>.
  Extract strcasecmp and friends to <bits/strcasecmp.h>.
  Make <bits/lockf.h> compile standalone.
  Make <android/dlext.h> compile standalone.
  Make the network headers compile standalone.
  Remove duplicate declaration of mlock, munlock.

8 years agoMove <sys/sysconf.h> to <bits/sysconf.h>.
Josh Gao [Thu, 7 Apr 2016 23:33:30 +0000 (16:33 -0700)]
Move <sys/sysconf.h> to <bits/sysconf.h>.

Also remove unneeded declaration of sysconf in <unistd.h>.

Bug: http://b/28067717
Change-Id: Ife4692e48ca97480e422db0686c61133e1d619aa

8 years agoRemove mbstowcs from <wchar.h>.
Josh Gao [Thu, 7 Apr 2016 23:38:22 +0000 (16:38 -0700)]
Remove mbstowcs from <wchar.h>.

Glibc doesn't export the function here, and adding a <bits/...> header
for this function seems unnecessary.

Bug: http://b/28067717
Change-Id: I7304cc1daca14585c85d5c783365c4a43779ff2c

8 years agoExtract getopt and friends to <bits/getopt.h>
Josh Gao [Thu, 7 Apr 2016 23:37:49 +0000 (16:37 -0700)]
Extract getopt and friends to <bits/getopt.h>

Bug: http://b/28067717
Change-Id: If19653d0da8b964c43768aa1051f9c926b3c6acb

8 years agoRemove declaration of unlinkat from <fcntl.h>.
Josh Gao [Thu, 7 Apr 2016 22:28:40 +0000 (15:28 -0700)]
Remove declaration of unlinkat from <fcntl.h>.

Glibc doesn't expose unlinkat in fcntl.h, this probably came about
because the man page for unlinkat mentions `#include <fcntl.h>` for the
AT_* constants that actually are defined there.

Bug: http://b/28067717
Change-Id: I769ca792a189bfea212b1d75096274acb0b7cfdb

8 years agoExtract ioctl to <bits/ioctl.h>.
Josh Gao [Thu, 7 Apr 2016 21:19:03 +0000 (14:19 -0700)]
Extract ioctl to <bits/ioctl.h>.

Bug: http://b/28067717
Change-Id: I93625d19fa5a033ab22c650d536e98674f0a8d9d

8 years agoExtract fcntl to <bits/fcntl.h>.
Josh Gao [Thu, 7 Apr 2016 21:16:30 +0000 (14:16 -0700)]
Extract fcntl to <bits/fcntl.h>.

Bug: http://b/28067717
Change-Id: Id8c19056244660a6e0276a5614282af8d41fbe1e

8 years agoExtract strcasecmp and friends to <bits/strcasecmp.h>.
Josh Gao [Thu, 7 Apr 2016 20:39:49 +0000 (13:39 -0700)]
Extract strcasecmp and friends to <bits/strcasecmp.h>.

Bug: http://b/28067717
Change-Id: I76bab098d4c35d07a7a108055c43c820087f9253

8 years agoMake <bits/lockf.h> compile standalone.
Josh Gao [Thu, 7 Apr 2016 20:38:48 +0000 (13:38 -0700)]
Make <bits/lockf.h> compile standalone.

Bug: http://b/28067717
Change-Id: Ida9f251ff23f9e32dcd0c38eb23b6a3bffea322c

8 years agoMake <android/dlext.h> compile standalone.
Josh Gao [Thu, 7 Apr 2016 18:21:47 +0000 (11:21 -0700)]
Make <android/dlext.h> compile standalone.

Bug: http://b/28067717
Change-Id: If087e0c931c69bda34263ea8e0b2dc46d932b2af

8 years agoUpdate Android.bp to match Android.mk
Colin Cross [Thu, 7 Apr 2016 20:24:50 +0000 (13:24 -0700)]
Update Android.bp to match Android.mk

Change-Id: I0d9bb2b98838184856da81499a64334e0b554617

8 years agoMake the network headers compile standalone.
Josh Gao [Thu, 7 Apr 2016 18:16:35 +0000 (11:16 -0700)]
Make the network headers compile standalone.

Bug: http://b/28067717
Change-Id: I0f69c6cba0eb0df2fe68f458ba5aa81fe8e6434c

8 years agoRemove duplicate declaration of mlock, munlock.
Josh Gao [Thu, 7 Apr 2016 17:59:45 +0000 (10:59 -0700)]
Remove duplicate declaration of mlock, munlock.

Bug: http://b/28067717
Change-Id: I4fe5a4368e5112a5d6aed5de9549155d3352962a

8 years agoMerge "Add trivial no-op <nl_types.h>."
Elliott Hughes [Thu, 7 Apr 2016 15:56:06 +0000 (15:56 +0000)]
Merge "Add trivial no-op <nl_types.h>."
am: 322d6cf

* commit '322d6cfb33c817f46ea853de51f0a006cb874bef':
  Add trivial no-op <nl_types.h>.

Change-Id: Ifdf20010ca2eccf520c2dc5201b1aa9bc2fde01e

8 years agoMerge "Add trivial no-op <nl_types.h>."
Elliott Hughes [Thu, 7 Apr 2016 15:49:02 +0000 (15:49 +0000)]
Merge "Add trivial no-op <nl_types.h>."

8 years agoAdd trivial no-op <nl_types.h>.
Elliott Hughes [Thu, 7 Apr 2016 00:14:45 +0000 (17:14 -0700)]
Add trivial no-op <nl_types.h>.

Needed to build OpenMP.

Bug: http://b/27617302
Change-Id: Iac15c84ead6f5d5274cfdb2d6d4a4ec0072244bb

8 years agoMerge "Teach our script to ignore more dead POSIX stuff."
Elliott Hughes [Wed, 6 Apr 2016 21:24:50 +0000 (21:24 +0000)]
Merge "Teach our script to ignore more dead POSIX stuff."
am: 5e843fb

* commit '5e843fb7c4da3e45c099abd1cb72462dbd775078':
  Teach our script to ignore more dead POSIX stuff.

Change-Id: I165c7b2bfdca7a4b8255502617a5d673b48e6197