OSDN Git Service

android-x86/bionic.git
6 years agoRevert "linker: disable ld.config.txt in ASAN mode"
Jiyong Park [Fri, 4 Aug 2017 01:25:46 +0000 (10:25 +0900)]
Revert "linker: disable ld.config.txt in ASAN mode"

This reverts commit 81b175747d2c7831c010e7e94a6f2572d6dfe437.

Reason: 02586a2a34e6acfccf359b94db840f422b6c0231 fixed the bug that
prevented us from using LD_PRELOAD with multiple namespaces.

Bug: 38114603
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/5.0/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful

6 years agoMerge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc am: bf16d953d4 am...
Dan Albert [Thu, 3 Aug 2017 21:52:11 +0000 (21:52 +0000)]
Merge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc am: bf16d953d4 am: 543d49148e am: b3797f74f8
am: 2764ff92d2

Change-Id: Ibbd1a27612c996718f106ee2effe1df9c44fcd71

6 years agoMerge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc am: bf16d953d4 am...
Dan Albert [Thu, 3 Aug 2017 21:39:02 +0000 (21:39 +0000)]
Merge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc am: bf16d953d4 am: 543d49148e
am: b3797f74f8

Change-Id: I5ffbcbcc2279b0b7f99d055a8f066016e354d0b4

6 years agoMerge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc am: bf16d953d4
Dan Albert [Thu, 3 Aug 2017 21:26:21 +0000 (21:26 +0000)]
Merge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc am: bf16d953d4
am: 543d49148e

Change-Id: I93c86acbb0ebaf3950dec7ecf1c615d64fd7af6e

6 years agoMerge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc
Dan Albert [Thu, 3 Aug 2017 21:19:23 +0000 (21:19 +0000)]
Merge "Fix dprintf/vdprintf fallbacks for GCC." am: 488c961ecc
am: bf16d953d4

Change-Id: If2c0e7c15e64df64b503f51c001593711caaa6d7

6 years agoMerge "Fix dprintf/vdprintf fallbacks for GCC."
Dan Albert [Thu, 3 Aug 2017 21:14:52 +0000 (21:14 +0000)]
Merge "Fix dprintf/vdprintf fallbacks for GCC."
am: 488c961ecc

Change-Id: Iabfabf44d2ec8b2fbde2c64d07f24b8d170d291c

6 years agoMerge "Fix dprintf/vdprintf fallbacks for GCC."
Treehugger Robot [Thu, 3 Aug 2017 21:02:57 +0000 (21:02 +0000)]
Merge "Fix dprintf/vdprintf fallbacks for GCC."

6 years agoMerge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b...
Christopher Ferris [Thu, 3 Aug 2017 19:35:44 +0000 (19:35 +0000)]
Merge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b am: 74828960bd am: f422c366cb am: c164e98802
am: a0fdff3f59

Change-Id: Id6c35843107b80e1aa75d43c97cb12548ddcd0c5

6 years agoMerge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b...
Christopher Ferris [Thu, 3 Aug 2017 19:22:45 +0000 (19:22 +0000)]
Merge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b am: 74828960bd am: f422c366cb
am: c164e98802

Change-Id: I91fcd72bfd0219f9cdf7e274da9a98fb54258714

6 years agoMerge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b...
Christopher Ferris [Thu, 3 Aug 2017 19:15:12 +0000 (19:15 +0000)]
Merge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b am: 74828960bd
am: f422c366cb

Change-Id: Ib45378fc51ec55b6b235fe1179ebe521c8f82972

6 years agoMerge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b
Christopher Ferris [Thu, 3 Aug 2017 19:10:11 +0000 (19:10 +0000)]
Merge "Revert "Revert "Move back to the previous version of ion.h.""" am: 5dde3e4d6b
am: 74828960bd

Change-Id: I766599188ce6daf93e07619ad266fad621bbd737

6 years agoMerge "Revert "Revert "Move back to the previous version of ion.h."""
Christopher Ferris [Thu, 3 Aug 2017 19:04:42 +0000 (19:04 +0000)]
Merge "Revert "Revert "Move back to the previous version of ion.h."""
am: 5dde3e4d6b

Change-Id: I203b74be269e45bb58f28aa8ab64e73d7f692644

6 years agoMerge "Revert "Revert "Move back to the previous version of ion.h."""
Christopher Ferris [Thu, 3 Aug 2017 18:56:29 +0000 (18:56 +0000)]
Merge "Revert "Revert "Move back to the previous version of ion.h."""

6 years agoRevert "Revert "Move back to the previous version of ion.h.""
Christopher Ferris [Thu, 3 Aug 2017 18:55:45 +0000 (18:55 +0000)]
Revert "Revert "Move back to the previous version of ion.h.""

This reverts commit 89d6c321f8380a461741b820996d92120fa99d9c.

Reason for revert: Still a bunch of branches/builds depending on this incorrectly.

Change-Id: I8de678848b0e5445837c02c0942f7388d27dbfd7

6 years agoFix dprintf/vdprintf fallbacks for GCC.
Dan Albert [Thu, 3 Aug 2017 18:11:23 +0000 (11:11 -0700)]
Fix dprintf/vdprintf fallbacks for GCC.

The ordering of __attribute__ and __asm__ matters for GCC.

Test: `#include <stdio.h>` with gcc
Bug: https://github.com/android-ndk/ndk/issues/72
Change-Id: I20bcd7cac2f96d220746e389f0ca467dc95c37c2

6 years agoMerge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1 am: 59e89...
Christopher Ferris [Thu, 3 Aug 2017 17:53:10 +0000 (17:53 +0000)]
Merge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1 am: 59e8910b17 am: 5b8e7a8ace am: 14e5be66ee
am: 2bd5590cfb

Change-Id: I13c6ae052f23811cb791145a31847539fd671670

6 years agoMerge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1 am: 59e89...
Christopher Ferris [Thu, 3 Aug 2017 17:46:36 +0000 (17:46 +0000)]
Merge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1 am: 59e8910b17 am: 5b8e7a8ace
am: 14e5be66ee

Change-Id: I78a8c42a5e68696ff04d20b08bdf3e46d611e0db

6 years agoMerge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1 am: 59e89...
Christopher Ferris [Thu, 3 Aug 2017 17:40:37 +0000 (17:40 +0000)]
Merge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1 am: 59e8910b17
am: 5b8e7a8ace

Change-Id: Ifb8d557e11931d601d39bf2ed347081a1d3424ff

6 years agoMerge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1
Christopher Ferris [Thu, 3 Aug 2017 17:36:19 +0000 (17:36 +0000)]
Merge "Revert "Move back to the previous version of ion.h."" am: bb36e9fae1
am: 59e8910b17

Change-Id: I730e220c1ec60cdfab6da71e2cccaf81f42917b3

6 years agoMerge "Revert "Move back to the previous version of ion.h.""
Christopher Ferris [Thu, 3 Aug 2017 17:29:35 +0000 (17:29 +0000)]
Merge "Revert "Move back to the previous version of ion.h.""
am: bb36e9fae1

Change-Id: Ic5db38d124df8047aede00c9053a5031812fc6c5

6 years agoMerge "Revert "Move back to the previous version of ion.h.""
Christopher Ferris [Thu, 3 Aug 2017 17:19:25 +0000 (17:19 +0000)]
Merge "Revert "Move back to the previous version of ion.h.""

6 years agoMerge "libc fortify: make string.h use diagnose_if" am: b1b125ead1 am: 5869bbe1d0...
George Burgess IV [Thu, 3 Aug 2017 03:49:13 +0000 (03:49 +0000)]
Merge "libc fortify: make string.h use diagnose_if" am: b1b125ead1 am: 5869bbe1d0 am: eaf1c56481 am: 0a1d5ac5d4
am: 6193718340

Change-Id: Ie3c58283481176099cfc63ced54e0bb4d2e1ef5b

6 years agoMerge "libc fortify: make string.h use diagnose_if" am: b1b125ead1 am: 5869bbe1d0...
George Burgess IV [Thu, 3 Aug 2017 03:44:13 +0000 (03:44 +0000)]
Merge "libc fortify: make string.h use diagnose_if" am: b1b125ead1 am: 5869bbe1d0 am: eaf1c56481
am: 0a1d5ac5d4

Change-Id: Ia5b0c46f94a943899f23de3fa98fae999da21b1f

6 years agoMerge "libc fortify: make string.h use diagnose_if" am: b1b125ead1 am: 5869bbe1d0
George Burgess IV [Thu, 3 Aug 2017 03:39:12 +0000 (03:39 +0000)]
Merge "libc fortify: make string.h use diagnose_if" am: b1b125ead1 am: 5869bbe1d0
am: eaf1c56481

Change-Id: I8f3649b53a28994cd0eb8534114121431bddd64f

6 years agoMerge "libc fortify: make string.h use diagnose_if" am: b1b125ead1
George Burgess IV [Thu, 3 Aug 2017 03:33:42 +0000 (03:33 +0000)]
Merge "libc fortify: make string.h use diagnose_if" am: b1b125ead1
am: 5869bbe1d0

Change-Id: I20f3e27bdfb4e4ef7d6ff2eccae5493100009454

6 years agoMerge "libc fortify: make string.h use diagnose_if"
George Burgess IV [Thu, 3 Aug 2017 03:29:34 +0000 (03:29 +0000)]
Merge "libc fortify: make string.h use diagnose_if"
am: b1b125ead1

Change-Id: I9e4508c73a83987bbd21550538ff77d6cb65cace

6 years agoMerge "libc fortify: make string.h use diagnose_if"
Treehugger Robot [Thu, 3 Aug 2017 03:18:44 +0000 (03:18 +0000)]
Merge "libc fortify: make string.h use diagnose_if"

6 years agoMerge "linker: the global group is added to all built-in namespaces" am: c9fb66209d...
Jiyong Park [Thu, 3 Aug 2017 02:52:11 +0000 (02:52 +0000)]
Merge "linker: the global group is added to all built-in namespaces" am: c9fb66209d am: ec8c79aaa1 am: 0a51b36ad6 am: e247953f1b
am: d741e5ef43

Change-Id: I5fe2832e011a24b6c10e3147736e4a5df93320c4

6 years agoMerge "linker: the global group is added to all built-in namespaces" am: c9fb66209d...
Jiyong Park [Thu, 3 Aug 2017 02:47:38 +0000 (02:47 +0000)]
Merge "linker: the global group is added to all built-in namespaces" am: c9fb66209d am: ec8c79aaa1 am: 0a51b36ad6
am: e247953f1b

Change-Id: I26521ec9cc11b9ee9ce55a61ac2bfe3152a0dd7f

6 years agoMerge "linker: the global group is added to all built-in namespaces" am: c9fb66209d...
Jiyong Park [Thu, 3 Aug 2017 02:42:41 +0000 (02:42 +0000)]
Merge "linker: the global group is added to all built-in namespaces" am: c9fb66209d am: ec8c79aaa1
am: 0a51b36ad6

Change-Id: I81b2baa132d12b2a36aa5d80c651c518de487823

6 years agoMerge "linker: the global group is added to all built-in namespaces" am: c9fb66209d
Jiyong Park [Thu, 3 Aug 2017 02:37:38 +0000 (02:37 +0000)]
Merge "linker: the global group is added to all built-in namespaces" am: c9fb66209d
am: ec8c79aaa1

Change-Id: Ie74a986381fe1dc7a7a5b148511a999f828dd829

6 years agoMerge "linker: the global group is added to all built-in namespaces"
Jiyong Park [Thu, 3 Aug 2017 02:32:37 +0000 (02:32 +0000)]
Merge "linker: the global group is added to all built-in namespaces"
am: c9fb66209d

Change-Id: I9c45ba3b6878a9a098634eae4b9cb97360161495

6 years agoMerge "linker: the global group is added to all built-in namespaces"
Treehugger Robot [Thu, 3 Aug 2017 02:23:53 +0000 (02:23 +0000)]
Merge "linker: the global group is added to all built-in namespaces"

6 years agoMerge "Add some <sched.h> tests." am: 26c59f7082 am: bc6d5e9288 am: 3ba8c376e8 am...
Elliott Hughes [Wed, 2 Aug 2017 20:05:31 +0000 (20:05 +0000)]
Merge "Add some <sched.h> tests." am: 26c59f7082 am: bc6d5e9288 am: 3ba8c376e8 am: 638f94522e
am: e21ab62ead

Change-Id: I85f97123ccf6c819ada3531b206fadc23f48d3e3

6 years agoMerge "Add some <sched.h> tests." am: 26c59f7082 am: bc6d5e9288 am: 3ba8c376e8
Elliott Hughes [Wed, 2 Aug 2017 19:56:11 +0000 (19:56 +0000)]
Merge "Add some <sched.h> tests." am: 26c59f7082 am: bc6d5e9288 am: 3ba8c376e8
am: 638f94522e

Change-Id: Ibff3c123814c29cec14ebedb740eef28a2cfa4f2

6 years agoMerge "Add some <sched.h> tests." am: 26c59f7082 am: bc6d5e9288
Elliott Hughes [Wed, 2 Aug 2017 19:51:40 +0000 (19:51 +0000)]
Merge "Add some <sched.h> tests." am: 26c59f7082 am: bc6d5e9288
am: 3ba8c376e8

Change-Id: Ia9f3fdf938511b97e7e583221b687c4de9d8da27

6 years agoMerge "Add some <sched.h> tests." am: 26c59f7082
Elliott Hughes [Wed, 2 Aug 2017 19:47:13 +0000 (19:47 +0000)]
Merge "Add some <sched.h> tests." am: 26c59f7082
am: bc6d5e9288

Change-Id: I5f012e6a7bd5969fd9e1120e54a711d809c7271d

6 years agoMerge "Add some <sched.h> tests."
Elliott Hughes [Wed, 2 Aug 2017 19:43:58 +0000 (19:43 +0000)]
Merge "Add some <sched.h> tests."
am: 26c59f7082

Change-Id: I5423c0d614e7fee238f0f2980956878111604efe

6 years agoMerge "Add some <sched.h> tests."
Elliott Hughes [Wed, 2 Aug 2017 19:28:38 +0000 (19:28 +0000)]
Merge "Add some <sched.h> tests."

6 years agoMerge "Fix asan path translation loading a library twice." into oc-mr1-dev am: cc28f6ea09
Evgenii Stepanov [Wed, 2 Aug 2017 18:40:54 +0000 (18:40 +0000)]
Merge "Fix asan path translation loading a library twice." into oc-mr1-dev am: cc28f6ea09
am: 91cf283bd4

Change-Id: I87fe5c03e40f5ba280a6d3644298c1c4e1f2dd3e

6 years agoMerge "Fix asan path translation loading a library twice." into oc-mr1-dev
Evgenii Stepanov [Wed, 2 Aug 2017 18:24:19 +0000 (18:24 +0000)]
Merge "Fix asan path translation loading a library twice." into oc-mr1-dev
am: cc28f6ea09

Change-Id: Ib6083f142d7cd07d19234de7e062585c3e2ebcd9

6 years agoMerge "Fix asan path translation loading a library twice." into oc-mr1-dev
Evgenii Stepanov [Wed, 2 Aug 2017 18:11:47 +0000 (18:11 +0000)]
Merge "Fix asan path translation loading a library twice." into oc-mr1-dev

6 years agolinker: the global group is added to all built-in namespaces
Jiyong Park [Fri, 19 May 2017 16:01:24 +0000 (01:01 +0900)]
linker: the global group is added to all built-in namespaces

With ld.config.txt, we now have multiple built-in namespaces other than
the default namespace. Libs (and their dependents) listed in LD_PRELOAD
must be visible to those additional namespaces as well.

This also adds a debugging only feature: path to the linker config file
can be customized via LD_CONFIG_FILE environment variable. This works
only for debuggable builds.

Bug: 38114603
Bug: 62815515
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/5.0/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful

Change-Id: I9a03591053f4a9caea82f0dcb23e7a3d324bb9bd

6 years agoAdd some <sched.h> tests.
Elliott Hughes [Wed, 2 Aug 2017 06:02:48 +0000 (23:02 -0700)]
Add some <sched.h> tests.

I was intending to change our behavior to match POSIX, but reality convinced
me otherwise.

Also add missing argument names to the header file on the assumption they'll
be shown in Studio one day.

Bug: http://b/26203902
Test: ran tests
Change-Id: I2aaea48a88d408a32925033fc8f17448fb63252e

6 years agoMerge "Finish <stdio_ext.h>." am: 316a44f33c am: 8f2608aba9 am: 46214ae7c1 am: e009c48b95
Elliott Hughes [Wed, 2 Aug 2017 15:25:54 +0000 (15:25 +0000)]
Merge "Finish <stdio_ext.h>." am: 316a44f33c am: 8f2608aba9 am: 46214ae7c1 am: e009c48b95
am: 762735d91c

Change-Id: I41d36323013699ebcfefe11e62ec97a607fdfbd5

6 years agoMerge "Finish <stdio_ext.h>." am: 316a44f33c am: 8f2608aba9 am: 46214ae7c1
Elliott Hughes [Wed, 2 Aug 2017 15:21:22 +0000 (15:21 +0000)]
Merge "Finish <stdio_ext.h>." am: 316a44f33c am: 8f2608aba9 am: 46214ae7c1
am: e009c48b95

Change-Id: Icf5a30fc5f477ab95e53cfaddf1dd960d381784f

6 years agoMerge "Finish <stdio_ext.h>." am: 316a44f33c am: 8f2608aba9
Elliott Hughes [Wed, 2 Aug 2017 15:17:22 +0000 (15:17 +0000)]
Merge "Finish <stdio_ext.h>." am: 316a44f33c am: 8f2608aba9
am: 46214ae7c1

Change-Id: I0b1feeed02104194bc9e4eba058d9afae0005040

6 years agoMerge "Finish <stdio_ext.h>." am: 316a44f33c
Elliott Hughes [Wed, 2 Aug 2017 15:13:20 +0000 (15:13 +0000)]
Merge "Finish <stdio_ext.h>." am: 316a44f33c
am: 8f2608aba9

Change-Id: Ic45c4e49f90d7148e9beff562375e133b3365d0b

6 years agoMerge "Finish <stdio_ext.h>."
Elliott Hughes [Wed, 2 Aug 2017 15:09:50 +0000 (15:09 +0000)]
Merge "Finish <stdio_ext.h>."
am: 316a44f33c

Change-Id: I5ec959f2a1f4090ca3852c2ec453759e5676d93c

6 years agoMerge "Finish <stdio_ext.h>."
Elliott Hughes [Wed, 2 Aug 2017 15:00:38 +0000 (15:00 +0000)]
Merge "Finish <stdio_ext.h>."

6 years agoMerge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083 am: 96eb6cbf9a...
George Burgess IV [Wed, 2 Aug 2017 08:31:29 +0000 (08:31 +0000)]
Merge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083 am: 96eb6cbf9a am: f7c19622a3 am: 81f733ff7c
am: f5f06d2840

Change-Id: Ide0bf53dece1aa31ffc61b314d2a39a0e6481293

6 years agoMerge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083 am: 96eb6cbf9a...
George Burgess IV [Wed, 2 Aug 2017 08:26:29 +0000 (08:26 +0000)]
Merge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083 am: 96eb6cbf9a am: f7c19622a3
am: 81f733ff7c

Change-Id: I7f08342023fbb91e4ec8876e51092adadff6cd39

6 years agoMerge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083 am: 96eb6cbf9a
George Burgess IV [Wed, 2 Aug 2017 08:21:58 +0000 (08:21 +0000)]
Merge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083 am: 96eb6cbf9a
am: f7c19622a3

Change-Id: Ia69ecce286e6e8a16fd60c8f3b1f2a8a5ce5dce5

6 years agoMerge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083
George Burgess IV [Wed, 2 Aug 2017 08:17:28 +0000 (08:17 +0000)]
Merge "libc fortify: make fcntl.h use diagnose_if" am: 5ac5a7c083
am: 96eb6cbf9a

Change-Id: I383158d43d7cc65ef6d48c3aa8d5c9a7a264d639

6 years agoMerge "libc fortify: make fcntl.h use diagnose_if"
George Burgess IV [Wed, 2 Aug 2017 08:12:28 +0000 (08:12 +0000)]
Merge "libc fortify: make fcntl.h use diagnose_if"
am: 5ac5a7c083

Change-Id: I2db3f6d42cbb07c703f142665fd2a0c5059f78bc

6 years agoMerge "libc fortify: make fcntl.h use diagnose_if"
Treehugger Robot [Wed, 2 Aug 2017 08:06:20 +0000 (08:06 +0000)]
Merge "libc fortify: make fcntl.h use diagnose_if"

6 years agoMerge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22 am...
George Burgess IV [Wed, 2 Aug 2017 08:02:58 +0000 (08:02 +0000)]
Merge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22 am: 1ede4abc4a am: e1ba44a473 am: b494e0b92c
am: 3ac2fc3f68

Change-Id: I267f37c6e6ed6b6f48072af28fdcfaf2b4f90d0c

6 years agoMerge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22 am...
George Burgess IV [Wed, 2 Aug 2017 07:57:57 +0000 (07:57 +0000)]
Merge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22 am: 1ede4abc4a am: e1ba44a473
am: b494e0b92c

Change-Id: I160fa1c1d352249b79ce88edfbdf7d562e6ae21f

6 years agoMerge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22 am...
George Burgess IV [Wed, 2 Aug 2017 07:53:27 +0000 (07:53 +0000)]
Merge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22 am: 1ede4abc4a
am: e1ba44a473

Change-Id: I372a90466404a1b091484137274f197e55b84ddb

6 years agoMerge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49 am: ced73cda27...
George Burgess IV [Wed, 2 Aug 2017 07:53:27 +0000 (07:53 +0000)]
Merge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49 am: ced73cda27 am: 79e01ac0e6 am: 3d4a560cfd
am: 332b8a3df2

Change-Id: I960d7349e93321fa05e20a987f6ed77a6ad736fc

6 years agoMerge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49 am: ced73cda27...
George Burgess IV [Wed, 2 Aug 2017 07:48:57 +0000 (07:48 +0000)]
Merge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49 am: ced73cda27 am: 79e01ac0e6
am: 3d4a560cfd

Change-Id: Ie01ab86594beadc3e8bd81fbb38ad4efbd7b2d00

6 years agoMerge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22
George Burgess IV [Wed, 2 Aug 2017 07:48:56 +0000 (07:48 +0000)]
Merge "libc fortify: make socket.h and stdlib.h use diagnose_if" am: a821283d22
am: 1ede4abc4a

Change-Id: Iea3842667bb674cf1a9dfbec0ef3d755801d1209

6 years agoMerge "libc fortify: make socket.h and stdlib.h use diagnose_if"
George Burgess IV [Wed, 2 Aug 2017 07:43:56 +0000 (07:43 +0000)]
Merge "libc fortify: make socket.h and stdlib.h use diagnose_if"
am: a821283d22

Change-Id: I818da183356943d72e96d1e2264747de6fe6a066

6 years agoMerge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49 am: ced73cda27
George Burgess IV [Wed, 2 Aug 2017 07:43:56 +0000 (07:43 +0000)]
Merge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49 am: ced73cda27
am: 79e01ac0e6

Change-Id: I8390d382fb49e382bd87aa20f8e351b506f5a304

6 years agoMerge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49
George Burgess IV [Wed, 2 Aug 2017 07:38:56 +0000 (07:38 +0000)]
Merge "libc fortify: make stdio.h use diagnose_if" am: 6e0de9da49
am: ced73cda27

Change-Id: I144dd0b3ad3a27394592e3ee391fbc792450a9f6

6 years agoMerge "libc fortify: make socket.h and stdlib.h use diagnose_if"
Treehugger Robot [Wed, 2 Aug 2017 07:37:46 +0000 (07:37 +0000)]
Merge "libc fortify: make socket.h and stdlib.h use diagnose_if"

6 years agoMerge "libc fortify: make stdio.h use diagnose_if"
George Burgess IV [Wed, 2 Aug 2017 07:33:55 +0000 (07:33 +0000)]
Merge "libc fortify: make stdio.h use diagnose_if"
am: 6e0de9da49

Change-Id: Ic847d12c7822f7f8e25ec5a40e6cf7143417dad9

6 years agoMerge "libc fortify: make stdio.h use diagnose_if"
Treehugger Robot [Wed, 2 Aug 2017 07:27:23 +0000 (07:27 +0000)]
Merge "libc fortify: make stdio.h use diagnose_if"

6 years agoMerge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e am: f5b6f...
George Burgess IV [Wed, 2 Aug 2017 07:10:25 +0000 (07:10 +0000)]
Merge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e am: f5b6f13394 am: 910c9ec619 am: 6aee92afad
am: f4618c7d49

Change-Id: I15c13629bb2c26abb4471f9c562af91c51be932e

6 years agoMerge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e am: f5b6f...
George Burgess IV [Wed, 2 Aug 2017 07:05:23 +0000 (07:05 +0000)]
Merge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e am: f5b6f13394 am: 910c9ec619
am: 6aee92afad

Change-Id: I8027dc2517821accf7965dfbfe5ef03602619728

6 years agoMerge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e am: f5b6f...
George Burgess IV [Wed, 2 Aug 2017 07:00:53 +0000 (07:00 +0000)]
Merge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e am: f5b6f13394
am: 910c9ec619

Change-Id: Ibaf72575363bd36da5c41ba831e2df287c099f07

6 years agoMerge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e
George Burgess IV [Wed, 2 Aug 2017 06:55:53 +0000 (06:55 +0000)]
Merge "libc fortify: make poll.h and stat.h use diagnose_if" am: cff14d9e3e
am: f5b6f13394

Change-Id: I55e54e5aee89e9deb7c01f0f43fdfefe33217c45

6 years agoMerge "libc fortify: make poll.h and stat.h use diagnose_if"
George Burgess IV [Wed, 2 Aug 2017 06:50:53 +0000 (06:50 +0000)]
Merge "libc fortify: make poll.h and stat.h use diagnose_if"
am: cff14d9e3e

Change-Id: I4cd2863d8f9d859e8441da7cc54f2fc15294b42e

6 years agoMerge "libc fortify: make poll.h and stat.h use diagnose_if"
Treehugger Robot [Wed, 2 Aug 2017 06:44:41 +0000 (06:44 +0000)]
Merge "libc fortify: make poll.h and stat.h use diagnose_if"

6 years agolibc fortify: make string.h use diagnose_if
George Burgess IV [Tue, 1 Aug 2017 04:29:42 +0000 (21:29 -0700)]
libc fortify: make string.h use diagnose_if

This also has a handful of style fixups, to make this file more
consistent. And removes __bionic_zero_size_is_okay_t, since there's a
better workaround available.

Bug: 12231437
Test: m checkbuild on bionic internal master; CtsBionicTestCases show
no new failures.

Change-Id: I75a020630dbab0ce828563502900cba14ae992d1

6 years agolibc fortify: make socket.h and stdlib.h use diagnose_if
George Burgess IV [Tue, 1 Aug 2017 04:21:10 +0000 (21:21 -0700)]
libc fortify: make socket.h and stdlib.h use diagnose_if

Since realpath no longer needs to be overloaded, we can restore the
upstream source to purity. We'll be able to do this with most of the
other functions when we pull a newer clang in.

Bug: 12231437
Test: m checkbuild on bionic internal master; CtsBionicTestCases show
no new failures.

Change-Id: I484221bba0b291273fece23d2be2f5f9fd713d2c

6 years agolibc fortify: make stdio.h use diagnose_if
George Burgess IV [Tue, 1 Aug 2017 04:23:34 +0000 (21:23 -0700)]
libc fortify: make stdio.h use diagnose_if

This also throws in some reformatting to match the GCC FORTIFY style in
this file (e.g. 4 space standard indent).

Per b/36984245, some function protos are unwrapped beyond 100 chars, as
well.

Bug: 12231437
Test: m checkbuild on bionic internal master; CtsBionicTestCases show
no new failures.

Change-Id: I6dce60ec14d5cd703d9e724699634a197ca11023

6 years agolibc fortify: make poll.h and stat.h use diagnose_if
George Burgess IV [Tue, 1 Aug 2017 04:16:05 +0000 (21:16 -0700)]
libc fortify: make poll.h and stat.h use diagnose_if

Bug: 12231437
Test: m checkbuild on bionic internal master; CtsBionicTestCases show
no new failures.

Change-Id: I7dbdeca12c46d1ee3804f13546b11c3f3b3a7596

6 years agolibc fortify: make fcntl.h use diagnose_if
George Burgess IV [Tue, 1 Aug 2017 04:39:33 +0000 (21:39 -0700)]
libc fortify: make fcntl.h use diagnose_if

Bug: 12231437
Test: m checkbuild on bionic internal master; CtsBionicTestCases show
no new failures.

Change-Id: I4a31d9e65ed5820a581261a7e8f63a83e44936c3

6 years agoMerge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0 am: f781e14912 am...
Dan Albert [Tue, 1 Aug 2017 23:38:34 +0000 (23:38 +0000)]
Merge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0 am: f781e14912 am: 8d65c300c2 am: 0d3a65376a
am: aaa341491b

Change-Id: I7376dc7fd13165ec4e1b0f69fa7937442d725a5a

6 years agoMerge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b am: a28402b431...
George Burgess IV [Tue, 1 Aug 2017 23:38:10 +0000 (23:38 +0000)]
Merge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b am: a28402b431 am: d8fdc7b2b8 am: dbbc70d52d
am: 2c533726fd

Change-Id: Ib20eed8a31d178ca06440e49b78a90a480d9b89b

6 years agoMerge "Remove nullability specifications." am: fe3d58f49f am: 0fa654aef5 am: cda4b5c1...
Elliott Hughes [Tue, 1 Aug 2017 23:37:57 +0000 (23:37 +0000)]
Merge "Remove nullability specifications." am: fe3d58f49f am: 0fa654aef5 am: cda4b5c140 am: 605a26a298
am: a993eeff8c

Change-Id: I34d6686f9104f010b56045665512ba7d7b7803aa

6 years agoMerge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0 am: f781e14912 am...
Dan Albert [Tue, 1 Aug 2017 23:30:20 +0000 (23:30 +0000)]
Merge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0 am: f781e14912 am: 8d65c300c2
am: 0d3a65376a

Change-Id: I6052c382986deb1e106c210a28378df15d753031

6 years agoMerge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b am: a28402b431...
George Burgess IV [Tue, 1 Aug 2017 23:29:58 +0000 (23:29 +0000)]
Merge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b am: a28402b431 am: d8fdc7b2b8
am: dbbc70d52d

Change-Id: I7db4b5459789b99e24d83cb6c27875d6a5cb0e5d

6 years agoMerge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0 am: f781e14912
Dan Albert [Tue, 1 Aug 2017 23:26:18 +0000 (23:26 +0000)]
Merge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0 am: f781e14912
am: 8d65c300c2

Change-Id: I97d4acfb62c33ea6e5939bfe09b3caeb3e46bbf6

6 years agoMerge "Remove nullability specifications." am: fe3d58f49f am: 0fa654aef5 am: cda4b5c140
Elliott Hughes [Tue, 1 Aug 2017 23:25:59 +0000 (23:25 +0000)]
Merge "Remove nullability specifications." am: fe3d58f49f am: 0fa654aef5 am: cda4b5c140
am: 605a26a298

Change-Id: Idd3e18e23521414e67e48d57b8d3be73ce008ba6

6 years agoMerge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b am: a28402b431
George Burgess IV [Tue, 1 Aug 2017 23:25:59 +0000 (23:25 +0000)]
Merge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b am: a28402b431
am: d8fdc7b2b8

Change-Id: I4b90476843b762b2abec0364a35f7c4fc1162b32

6 years agoMerge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0
Dan Albert [Tue, 1 Aug 2017 23:22:09 +0000 (23:22 +0000)]
Merge "Mark new/delete as weak in the NDK stubs." am: aa8f766bf0
am: f781e14912

Change-Id: Ic5a36db8cc08af92d7bcc766e5d41dbaf2a22a42

6 years agoMerge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b
George Burgess IV [Tue, 1 Aug 2017 23:21:55 +0000 (23:21 +0000)]
Merge "libc fortify: make unistd.h use diagnose_if" am: 0ec52ce15b
am: a28402b431

Change-Id: I2732c95e39ebb3236d30cc777b2de16a0bbb46b0

6 years agoMerge "Remove nullability specifications." am: fe3d58f49f am: 0fa654aef5
Elliott Hughes [Tue, 1 Aug 2017 23:19:40 +0000 (23:19 +0000)]
Merge "Remove nullability specifications." am: fe3d58f49f am: 0fa654aef5
am: cda4b5c140

Change-Id: Ic41b3ad92fbc68a8ad56dc915fc50f3c29522cae

6 years agoMerge "Mark new/delete as weak in the NDK stubs."
Dan Albert [Tue, 1 Aug 2017 23:19:17 +0000 (23:19 +0000)]
Merge "Mark new/delete as weak in the NDK stubs."
am: aa8f766bf0

Change-Id: I1033bc0a963dd03476a77c0a54915b9c4353a5aa

6 years agoMerge "libc fortify: make unistd.h use diagnose_if"
George Burgess IV [Tue, 1 Aug 2017 23:18:59 +0000 (23:18 +0000)]
Merge "libc fortify: make unistd.h use diagnose_if"
am: 0ec52ce15b

Change-Id: I1361011fc3f466f681d651f85e8e828228c77b41

6 years agoMerge "Remove nullability specifications." am: fe3d58f49f
Elliott Hughes [Tue, 1 Aug 2017 23:14:25 +0000 (23:14 +0000)]
Merge "Remove nullability specifications." am: fe3d58f49f
am: 0fa654aef5

Change-Id: I8a05d8dcb9f5c48eab215fa634f2076be370d9a5

6 years agoMerge "Mark new/delete as weak in the NDK stubs."
Treehugger Robot [Tue, 1 Aug 2017 23:11:12 +0000 (23:11 +0000)]
Merge "Mark new/delete as weak in the NDK stubs."

6 years agoMerge "libc fortify: make unistd.h use diagnose_if"
Treehugger Robot [Tue, 1 Aug 2017 23:06:09 +0000 (23:06 +0000)]
Merge "libc fortify: make unistd.h use diagnose_if"

6 years agoMerge "Remove nullability specifications."
Elliott Hughes [Tue, 1 Aug 2017 22:57:26 +0000 (22:57 +0000)]
Merge "Remove nullability specifications."
am: fe3d58f49f

Change-Id: Id4fff7a1ba3f1ed76ae77ec42fdd0ca664dceeff

6 years agoMerge "Remove nullability specifications."
Elliott Hughes [Tue, 1 Aug 2017 22:46:40 +0000 (22:46 +0000)]
Merge "Remove nullability specifications."

6 years agoFinish <stdio_ext.h>.
Elliott Hughes [Tue, 1 Aug 2017 22:16:36 +0000 (15:16 -0700)]
Finish <stdio_ext.h>.

Implement __freading and __fwriting, and clarify the documentation that was
the cause of these not being implemented for years.

Bug: http://b/17157253
Test: ran tests
Change-Id: I89542c8131b13889e2585417a024050ecf2abcb7

6 years agoMerge "Clean up linker fatals slightly." am: 1bac61f09f am: f54872e5bf am: 227782dc1e...
Elliott Hughes [Tue, 1 Aug 2017 21:46:35 +0000 (21:46 +0000)]
Merge "Clean up linker fatals slightly." am: 1bac61f09f am: f54872e5bf am: 227782dc1e am: 5827d21a99
am: f56cc5de47

Change-Id: I3413b86342dcafb23f16a245efc0693b3a4b18b2

6 years agoMerge "Clean up linker fatals slightly." am: 1bac61f09f am: f54872e5bf am: 227782dc1e
Elliott Hughes [Tue, 1 Aug 2017 21:27:37 +0000 (21:27 +0000)]
Merge "Clean up linker fatals slightly." am: 1bac61f09f am: f54872e5bf am: 227782dc1e
am: 5827d21a99

Change-Id: Icf136ad35abdd2444968e75d12e20f02dd1328ae