OSDN Git Service

android-x86/bionic.git
7 years agoMerge "Fix our _POSIX_* macros to declare barriers and spin locks."
Elliott Hughes [Wed, 19 Oct 2016 21:25:17 +0000 (21:25 +0000)]
Merge "Fix our _POSIX_* macros to declare barriers and spin locks."
am: 0759e7f5c1

Change-Id: I602b845f97ce26dbc22edff2124d075951eb941c

7 years agoMerge "Fix our _POSIX_* macros to declare barriers and spin locks."
Elliott Hughes [Wed, 19 Oct 2016 21:16:21 +0000 (21:16 +0000)]
Merge "Fix our _POSIX_* macros to declare barriers and spin locks."

7 years agoFix our _POSIX_* macros to declare barriers and spin locks.
Elliott Hughes [Wed, 19 Oct 2016 16:27:02 +0000 (09:27 -0700)]
Fix our _POSIX_* macros to declare barriers and spin locks.

We have these now.

Test: ran tests
Change-Id: Ie7b479061ecec19c8b35ea81e04debfd8323d94a

7 years agoMerge "Fix ifaddrs error handling."
Elliott Hughes [Fri, 14 Oct 2016 23:40:53 +0000 (23:40 +0000)]
Merge "Fix ifaddrs error handling."
am: d824421475

Change-Id: I1eb9d61522501a9e5c925a8d3b4976674169af97

7 years agoMerge "Fix ifaddrs error handling."
Treehugger Robot [Fri, 14 Oct 2016 23:35:52 +0000 (23:35 +0000)]
Merge "Fix ifaddrs error handling."

7 years agoFix ifaddrs error handling.
Elliott Hughes [Fri, 14 Oct 2016 19:15:32 +0000 (12:15 -0700)]
Fix ifaddrs error handling.

An NLMSG_ERROR packet includes an errno value that we should use. Also report
failures to create a socket immediately, rather than falling through to the
send and reporting EBADF.

Bug: http://b/32145516
Bug: http://b/31038971
Test: bionic ifaddr tests on ryu (with broken kernel) and flounder
Change-Id: I84c480c5b75077eb90d40426a9d66d7bffbd3d51

7 years agoMerge "Remove unused build targets" am: 49ef8c822f am: df4e844940
Dimitry Ivanov [Thu, 13 Oct 2016 00:06:04 +0000 (00:06 +0000)]
Merge "Remove unused build targets" am: 49ef8c822f am: df4e844940
am: 7e22b1317b

Change-Id: Ia012e4ee440c14150f8a70f631bf13d5820b6553

7 years agoMerge "Remove unused build targets" am: 49ef8c822f
Dimitry Ivanov [Wed, 12 Oct 2016 23:59:05 +0000 (23:59 +0000)]
Merge "Remove unused build targets" am: 49ef8c822f
am: df4e844940

Change-Id: I4129a4ff758552c0eb29b7ce4471a25f05e0286c

7 years agoMerge "Remove unused build targets"
Dimitry Ivanov [Wed, 12 Oct 2016 23:52:33 +0000 (23:52 +0000)]
Merge "Remove unused build targets"
am: 49ef8c822f

Change-Id: I68e8fd8ab0fd6f1fefd80e9e6a664be32ce3c593

7 years agoMerge "Remove unused build targets"
Treehugger Robot [Wed, 12 Oct 2016 23:46:40 +0000 (23:46 +0000)]
Merge "Remove unused build targets"

7 years agoRemove unused build targets
Dimitry Ivanov [Wed, 12 Oct 2016 21:06:18 +0000 (14:06 -0700)]
Remove unused build targets

Test: mm
Change-Id: I4eadc40411a31a0e5fa910b0054c19f0dea6c1e2

7 years agoMerge "Allocate all arc4random data on the same page." am: 2eaba9343f am: a1a07174a1
Elliott Hughes [Tue, 11 Oct 2016 22:22:40 +0000 (22:22 +0000)]
Merge "Allocate all arc4random data on the same page." am: 2eaba9343f am: a1a07174a1
am: 9cc503d76e

Change-Id: If0a00f7076e6a29af1cdd316d30a4bff4e08c365

7 years agoMerge "Allocate all arc4random data on the same page." am: 2eaba9343f
Elliott Hughes [Tue, 11 Oct 2016 22:16:39 +0000 (22:16 +0000)]
Merge "Allocate all arc4random data on the same page." am: 2eaba9343f
am: a1a07174a1

Change-Id: Ic7ba1567e9807ef56edee95428f0ef9e1161b457

7 years agoMerge "Allocate all arc4random data on the same page."
Elliott Hughes [Tue, 11 Oct 2016 22:10:39 +0000 (22:10 +0000)]
Merge "Allocate all arc4random data on the same page."
am: 2eaba9343f

Change-Id: I7ff5a437db6ec403d269a530bf755c915ef0e601

7 years agoMerge "Allocate all arc4random data on the same page."
Treehugger Robot [Tue, 11 Oct 2016 22:05:41 +0000 (22:05 +0000)]
Merge "Allocate all arc4random data on the same page."

7 years agoAllocate all arc4random data on the same page.
Elliott Hughes [Tue, 11 Oct 2016 19:58:40 +0000 (12:58 -0700)]
Allocate all arc4random data on the same page.

Saves one dirty page per process.

Test: bionic unit tests, reboot, manual check of /proc/*/maps
Change-Id: Ibbcafa955d60e43f4cb735fa484c6868aa357cd5

7 years agoMerge "Remove obsolete -std request." am: 0e6aa81999 am: 5e76352cc3
Elliott Hughes [Tue, 11 Oct 2016 18:35:54 +0000 (18:35 +0000)]
Merge "Remove obsolete -std request." am: 0e6aa81999 am: 5e76352cc3
am: aab356acef

Change-Id: I95d7de76179069323077067f175306c01a93355a

7 years agoMerge "Remove obsolete -std request." am: 0e6aa81999
Elliott Hughes [Tue, 11 Oct 2016 18:30:24 +0000 (18:30 +0000)]
Merge "Remove obsolete -std request." am: 0e6aa81999
am: 5e76352cc3

Change-Id: Iddf239acbf665466505a625314be7c312323476a

7 years agoMerge "Remove obsolete -std request."
Elliott Hughes [Tue, 11 Oct 2016 18:24:54 +0000 (18:24 +0000)]
Merge "Remove obsolete -std request."
am: 0e6aa81999

Change-Id: I84df5bdc9d37ca2df7e2c9a2675c23b8275bca11

7 years agoMerge "Remove obsolete -std request."
Elliott Hughes [Tue, 11 Oct 2016 18:13:07 +0000 (18:13 +0000)]
Merge "Remove obsolete -std request."

7 years agoMerge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf am: 090e27556a
Dan Albert [Tue, 11 Oct 2016 06:20:10 +0000 (06:20 +0000)]
Merge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf am: 090e27556a
am: 4adc5710e9

Change-Id: Ic6b645666d762b8c017c566bfbd79adfd50c2011

7 years agoMerge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf
Dan Albert [Tue, 11 Oct 2016 06:14:39 +0000 (06:14 +0000)]
Merge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf
am: 090e27556a

Change-Id: I72fe1bac44e440f2a526538caeb6ab79ba49f86f

7 years agoMerge "Migrate libstdc++ to ndk_library."
Dan Albert [Tue, 11 Oct 2016 06:08:39 +0000 (06:08 +0000)]
Merge "Migrate libstdc++ to ndk_library."
am: 2c8a26d8bf

Change-Id: Icd01cea8c7390daf081f26d8d7aadcb9fb329cf9

7 years agoMerge "Migrate libstdc++ to ndk_library."
Treehugger Robot [Tue, 11 Oct 2016 06:01:17 +0000 (06:01 +0000)]
Merge "Migrate libstdc++ to ndk_library."

7 years agoMerge "Fix Mac build." am: e89385743e am: cbe7d68916
Elliott Hughes [Tue, 11 Oct 2016 04:12:01 +0000 (04:12 +0000)]
Merge "Fix Mac build." am: e89385743e am: cbe7d68916
am: 76d8f51256

Change-Id: I0f93ba5cd644eff7661392353263398e96b483c8

7 years agoMerge "Fix Mac build." am: e89385743e
Elliott Hughes [Tue, 11 Oct 2016 04:06:03 +0000 (04:06 +0000)]
Merge "Fix Mac build." am: e89385743e
am: cbe7d68916

Change-Id: I689671c08773b0d9e7f5a3bb1990d72d17e28ecc

7 years agoMerge "Fix Mac build."
Elliott Hughes [Tue, 11 Oct 2016 04:00:31 +0000 (04:00 +0000)]
Merge "Fix Mac build."
am: e89385743e

Change-Id: Ie5feeb3e2834b8dd2bba868fbf66dbb98b6d23de

7 years agoMerge "Fix Mac build."
Elliott Hughes [Tue, 11 Oct 2016 03:50:26 +0000 (03:50 +0000)]
Merge "Fix Mac build."

7 years agoFix Mac build.
Elliott Hughes [Tue, 11 Oct 2016 01:34:27 +0000 (18:34 -0700)]
Fix Mac build.

Test: builds on Linux (I don't have a Mac)
Change-Id: I049e1d6420b0d169e727680da9c3d97e0b8aa3d2

7 years agoMerge changes I5667e991,I9d2a873e am: c3e09e1ff0 am: 676196c1e2
Dimitry Ivanov [Tue, 11 Oct 2016 00:53:56 +0000 (00:53 +0000)]
Merge changes I5667e991,I9d2a873e am: c3e09e1ff0 am: 676196c1e2
am: 209dd35443

Change-Id: I0072c18ed9e7940739422474d5c12aa07ab0f8ec

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3 am: 474da5a6d4
Dimitry Ivanov [Tue, 11 Oct 2016 00:53:53 +0000 (00:53 +0000)]
bionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3 am: 474da5a6d4
am: dde2ec372b

Change-Id: I394bdb0e53af24c075f95946efcfa75d534c03b6

7 years agobionic-unit-tests: Create symlinks in runtime am: 708589f5e8 am: dbad17c928
Dimitry Ivanov [Tue, 11 Oct 2016 00:53:49 +0000 (00:53 +0000)]
bionic-unit-tests: Create symlinks in runtime am: 708589f5e8 am: dbad17c928
am: 56f4114322

Change-Id: I491aaf15a2bf292ea52a4137cb18b08a29c4e2c0

7 years agoMerge changes I5667e991,I9d2a873e am: c3e09e1ff0
Dimitry Ivanov [Tue, 11 Oct 2016 00:48:27 +0000 (00:48 +0000)]
Merge changes I5667e991,I9d2a873e am: c3e09e1ff0
am: 676196c1e2

Change-Id: I0eba8e67c507ffd9614594e51855f1d707abdf3e

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3
Dimitry Ivanov [Tue, 11 Oct 2016 00:48:23 +0000 (00:48 +0000)]
bionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3
am: 474da5a6d4

Change-Id: I5c8816296a341971317775d9682ac6d5bf92f446

7 years agobionic-unit-tests: Create symlinks in runtime am: 708589f5e8
Dimitry Ivanov [Tue, 11 Oct 2016 00:48:19 +0000 (00:48 +0000)]
bionic-unit-tests: Create symlinks in runtime am: 708589f5e8
am: dbad17c928

Change-Id: I37fbe821391d5461fd14eaea51b0b063e5859a63

7 years agoMerge changes I5667e991,I9d2a873e
Dimitry Ivanov [Tue, 11 Oct 2016 00:42:55 +0000 (00:42 +0000)]
Merge changes I5667e991,I9d2a873e
am: c3e09e1ff0

Change-Id: I1fa7770646c90e42dda53bcf08a19ab6c6ab97c2

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA
Dimitry Ivanov [Tue, 11 Oct 2016 00:42:54 +0000 (00:42 +0000)]
bionic-unit-tests: remove dependency on ANDROID_DATA
am: 927877c7d3

Change-Id: Icbebb8309d5f6a6fa3173b5d844c1d75915bc7e3

7 years agobionic-unit-tests: Create symlinks in runtime
Dimitry Ivanov [Tue, 11 Oct 2016 00:42:49 +0000 (00:42 +0000)]
bionic-unit-tests: Create symlinks in runtime
am: 708589f5e8

Change-Id: I0074677cb1561ce5924f4b9bf32501d57a31b0bd

7 years agoMerge changes I5667e991,I9d2a873e
Treehugger Robot [Tue, 11 Oct 2016 00:30:53 +0000 (00:30 +0000)]
Merge changes I5667e991,I9d2a873e

* changes:
  bionic-unit-tests: remove dependency on ANDROID_DATA
  bionic-unit-tests: Create symlinks in runtime

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb am: 8efd55b774
Josh Gao [Mon, 10 Oct 2016 21:49:06 +0000 (21:49 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb am: 8efd55b774
am: 12e1498fa6

Change-Id: I5427033c4e00f14321873a23f9b6305105fe6e12

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb
Josh Gao [Mon, 10 Oct 2016 21:43:37 +0000 (21:43 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb
am: 8efd55b774

Change-Id: I5898e427a4f875af5e4dbe0b5c9401ce479ea3fb

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr."
Josh Gao [Mon, 10 Oct 2016 21:38:05 +0000 (21:38 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr."
am: e0505ab0fb

Change-Id: I3918867ec5806ae57f77e5d03a1b80fbc8fc143b

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr."
Treehugger Robot [Mon, 10 Oct 2016 21:19:05 +0000 (21:19 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr."

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA
Dimitry Ivanov [Wed, 21 Sep 2016 18:17:13 +0000 (11:17 -0700)]
bionic-unit-tests: remove dependency on ANDROID_DATA

Replace references to ANDROID_DATA enviroment variable with references
to g_testlib_root.

Bug: http://b/22182538
Test: build and run bionic-unit-tests --gtest_filter=dl*:Dl*
Test: make cts && cts-tradefed run singleCommand cts --skip-preconditions -m CtsBionicTestCases
Change-Id: I5667e991551cec55b9b664f2f0063039671ff34b

7 years agobionic-unit-tests: Create symlinks in runtime
Dimitry Ivanov [Mon, 19 Sep 2016 17:50:28 +0000 (10:50 -0700)]
bionic-unit-tests: Create symlinks in runtime

Instead of creating symlinks in build time and then relying
on usage of adb sync (adb push follows symlinks) - create
them in test run time.

Test: mm && run bionic-unit-tests --gtest_filter=dl*:Dl*
Bug: http://b/22182538
Change-Id: I9d2a873e3ba303533c14ba5e3b779e4a67925462

7 years agoMerge "Document a post-N dynamic linker change." am: 1c45e6fa47 am: a38fd57a0b
Elliott Hughes [Sat, 8 Oct 2016 20:58:03 +0000 (20:58 +0000)]
Merge "Document a post-N dynamic linker change." am: 1c45e6fa47 am: a38fd57a0b
am: 61cd6b977f

Change-Id: I0f35bb50e8f4ee2194de0cd084e009fec440429c

7 years agoMerge "Document a post-N dynamic linker change." am: 1c45e6fa47
Elliott Hughes [Sat, 8 Oct 2016 20:53:33 +0000 (20:53 +0000)]
Merge "Document a post-N dynamic linker change." am: 1c45e6fa47
am: a38fd57a0b

Change-Id: I92e3efb634d7912fcc37b3c54a46cac43bf2826a

7 years agoMerge "Document a post-N dynamic linker change."
Elliott Hughes [Sat, 8 Oct 2016 20:48:31 +0000 (20:48 +0000)]
Merge "Document a post-N dynamic linker change."
am: 1c45e6fa47

Change-Id: I9107e734f1796a5570d171cd6dcbe9225a5411c2

7 years agoMerge "Document a post-N dynamic linker change."
Treehugger Robot [Sat, 8 Oct 2016 20:41:27 +0000 (20:41 +0000)]
Merge "Document a post-N dynamic linker change."

7 years agoMerge "Turn the recent blog post into markdown docs." am: a3745834f2 am: f9e330bbc8
Elliott Hughes [Fri, 7 Oct 2016 23:12:32 +0000 (23:12 +0000)]
Merge "Turn the recent blog post into markdown docs." am: a3745834f2 am: f9e330bbc8
am: 83b211bc16

Change-Id: I27347d859f437b82324b23cf176a602a792aa9fd

7 years agoTurn the recent blog post into markdown docs. am: c45380d20c am: 277864c3d1
Elliott Hughes [Fri, 7 Oct 2016 23:12:22 +0000 (23:12 +0000)]
Turn the recent blog post into markdown docs. am: c45380d20c am: 277864c3d1
am: c962852a5d

Change-Id: I2f2832c6c7f9aa542da8ad7d0251d5ea9668ffd0

7 years agoMerge "Turn the recent blog post into markdown docs." am: a3745834f2
Elliott Hughes [Fri, 7 Oct 2016 23:08:33 +0000 (23:08 +0000)]
Merge "Turn the recent blog post into markdown docs." am: a3745834f2
am: f9e330bbc8

Change-Id: I4225830fe3a51c09369eab8e7c2b79b999d59523

7 years agoTurn the recent blog post into markdown docs. am: c45380d20c
Elliott Hughes [Fri, 7 Oct 2016 23:08:23 +0000 (23:08 +0000)]
Turn the recent blog post into markdown docs. am: c45380d20c
am: 277864c3d1

Change-Id: I414c4cdf9f31c05c264e5cbf8fb4905ad7013d89

7 years agoMerge "Turn the recent blog post into markdown docs."
Elliott Hughes [Fri, 7 Oct 2016 23:03:27 +0000 (23:03 +0000)]
Merge "Turn the recent blog post into markdown docs."
am: a3745834f2

Change-Id: I221adde4dde21cec911fe0537f72f39f7f2b13e7

7 years agoTurn the recent blog post into markdown docs.
Elliott Hughes [Fri, 7 Oct 2016 23:03:26 +0000 (23:03 +0000)]
Turn the recent blog post into markdown docs.
am: c45380d20c

Change-Id: I3559e1ae5e2c4fd9d7a4687fab39d9678d557234

7 years agoDocument a post-N dynamic linker change.
Elliott Hughes [Fri, 7 Oct 2016 22:59:58 +0000 (15:59 -0700)]
Document a post-N dynamic linker change.

Test: N/A
Change-Id: I37f3ccccd81c29a4ffe400fc2177bbe082195ade

7 years agoMerge "Turn the recent blog post into markdown docs."
Elliott Hughes [Fri, 7 Oct 2016 22:56:32 +0000 (22:56 +0000)]
Merge "Turn the recent blog post into markdown docs."

7 years agoUse STDERR_FILENO instead of opening /dev/stderr.
Josh Gao [Fri, 7 Oct 2016 20:21:03 +0000 (13:21 -0700)]
Use STDERR_FILENO instead of opening /dev/stderr.

/dev/stderr is a symlink to /proc/self/fd/2, so this only has different
behavior when we're out of file descriptors, or when STDERR_FILENO is in
a different state (it's not at the end, it's not writable, etc.).

Test: mma
Change-Id: Ie99688d810218eca8482ff060373e88c4e001824

7 years agoRemove obsolete -std request.
Elliott Hughes [Fri, 7 Oct 2016 17:43:30 +0000 (10:43 -0700)]
Remove obsolete -std request.

Bug: http://b/32019064
Test: builds
Change-Id: Id662a63f08054634721750d26e0dcd3c366ed2e6

7 years agoTurn the recent blog post into markdown docs.
Elliott Hughes [Wed, 5 Oct 2016 21:35:00 +0000 (14:35 -0700)]
Turn the recent blog post into markdown docs.

Originally http://android-developers.blogspot.com/2016/06/android-changes-for-ndk-developers.html

Test: N/A
Change-Id: I7ab75bcf9d518310fdf4e752929ba71c286fa242

7 years agoFix a linking error in bionic/tests am: 3656958a16 -s ours
Tianjie Xu [Fri, 7 Oct 2016 04:42:46 +0000 (04:42 +0000)]
Fix a linking error in bionic/tests am: 3656958a16  -s ours
am: a9813616da

Change-Id: If53938714dd238ffe0d14af216cf383d9f8de323

7 years agoFix a linking error in bionic/tests am: 3656958a16 am: 0893380bed am: b2b0460c5b
Tianjie Xu [Fri, 7 Oct 2016 04:38:47 +0000 (04:38 +0000)]
Fix a linking error in bionic/tests am: 3656958a16 am: 0893380bed am: b2b0460c5b
am: 8c94feaa09  -s ours

Change-Id: I2af80b2c17dcc82aac169958744f93f15f8f3ccb

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 04:38:46 +0000 (04:38 +0000)]
Fix a linking error in bionic/tests
am: 3656958a16  -s ours

Change-Id: I5eb11248a4f76abd0e5ba937edb79b56bfec40fa

7 years agoFix a linking error in bionic/tests am: 3656958a16 am: 0893380bed
Tianjie Xu [Fri, 7 Oct 2016 04:30:14 +0000 (04:30 +0000)]
Fix a linking error in bionic/tests am: 3656958a16 am: 0893380bed
am: b2b0460c5b

Change-Id: I049b57acdb89e2e841e46120ce06616b0bc65922

7 years agoFix a linking error in bionic/tests am: 3656958a16
Tianjie Xu [Fri, 7 Oct 2016 04:26:44 +0000 (04:26 +0000)]
Fix a linking error in bionic/tests am: 3656958a16
am: 0893380bed

Change-Id: I462b022e42676ec6ceba39ece3933dc4cc6237d0

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 04:22:45 +0000 (04:22 +0000)]
Fix a linking error in bionic/tests
am: 3656958a16

Change-Id: I5636ecc4e0a5ff4e1ee0a6cd0f1d182d444e63f9

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 02:23:05 +0000 (19:23 -0700)]
Fix a linking error in bionic/tests

Fix the following linking error by adding liblog in the makefile:
"system/core/libziparchive/zip_archive.cc:277: error: undefined reference to
'__android_log_error_write'"

The error happens because libziparchive has dependency on liblog. This
error affects the downstream branches of nyc-dev.

Bug: 31251826
Test: mma -j32
Change-Id: Ia42909bbbd150ae0ca9f6aa6b14372f2e0aedccf

7 years agoMigrate libstdc++ to ndk_library.
Dan Albert [Thu, 6 Oct 2016 22:50:41 +0000 (15:50 -0700)]
Migrate libstdc++ to ndk_library.

Test: make checkbuild
Bug: http://b/30465923
Change-Id: I3b75b4e7fa652c83846c5978f9908e8b32d43aa7

7 years agoFix for default library path "/vendor/lib" am: 8995c3876b
neo.chae [Wed, 5 Oct 2016 16:32:31 +0000 (16:32 +0000)]
Fix for default library path "/vendor/lib" am: 8995c3876b
am: faaf582f60

Change-Id: Id2757c6d6f7dab7831e6ddf5d1dc362896cbf598

7 years agoMerge changes Ie6777e2b,Iaed834be am: e35872605b am: 4be70a368b
Dimitry Ivanov [Wed, 5 Oct 2016 16:30:14 +0000 (16:30 +0000)]
Merge changes Ie6777e2b,Iaed834be am: e35872605b am: 4be70a368b
am: cd4bb629fa

Change-Id: I6af03b9b51e14ca16fe7e806e7e9068aebe9db35

7 years agoFix for default library path "/vendor/lib" am: 2589f9de64 am: 6769c98fdb
neo.chae [Wed, 5 Oct 2016 16:30:09 +0000 (16:30 +0000)]
Fix for default library path "/vendor/lib" am: 2589f9de64 am: 6769c98fdb
am: f047b1dbbb

Change-Id: Ieeed7fd4d3244e992c03be0919686660723fd574

7 years agoFix bionic-unit-tests am: d11d1e4a97 am: 1a4e213bce
Dimitry Ivanov [Wed, 5 Oct 2016 16:30:02 +0000 (16:30 +0000)]
Fix bionic-unit-tests am: d11d1e4a97 am: 1a4e213bce
am: ec7a2273c6

Change-Id: Iecf8f9499e4c5a495800a159cdfdea0ba4120824

7 years agoFix for default library path "/vendor/lib"
neo.chae [Wed, 5 Oct 2016 16:30:00 +0000 (16:30 +0000)]
Fix for default library path "/vendor/lib"
am: 8995c3876b

Change-Id: I06cfc0106ce5a9de3ec97a7aae2495bde6ddc87d

7 years agoMerge changes Ie6777e2b,Iaed834be am: e35872605b
Dimitry Ivanov [Wed, 5 Oct 2016 16:27:10 +0000 (16:27 +0000)]
Merge changes Ie6777e2b,Iaed834be am: e35872605b
am: 4be70a368b

Change-Id: I6ca5ebf4b09757606810fb37da13b7b94e32f361

7 years agoFix for default library path "/vendor/lib" am: 2589f9de64
neo.chae [Wed, 5 Oct 2016 16:27:06 +0000 (16:27 +0000)]
Fix for default library path "/vendor/lib" am: 2589f9de64
am: 6769c98fdb

Change-Id: I4236b7446893e43d85ff11fe0a07d32980cd14cd

7 years agoFix bionic-unit-tests am: d11d1e4a97
Dimitry Ivanov [Wed, 5 Oct 2016 16:27:01 +0000 (16:27 +0000)]
Fix bionic-unit-tests am: d11d1e4a97
am: 1a4e213bce

Change-Id: Ib45d577d3cb7a3e3333d9fd2d51eaf4477aaaa06

7 years agoMerge changes Ie6777e2b,Iaed834be
Dimitry Ivanov [Wed, 5 Oct 2016 16:24:35 +0000 (16:24 +0000)]
Merge changes Ie6777e2b,Iaed834be
am: e35872605b

Change-Id: I29f7da2e449d0182aef7cbd123355c3868619c39

7 years agoFix for default library path "/vendor/lib"
neo.chae [Wed, 5 Oct 2016 16:24:33 +0000 (16:24 +0000)]
Fix for default library path "/vendor/lib"
am: 2589f9de64

Change-Id: Iedd66e5461cb7148f0864a3f759c7cad4f3fc898

7 years agoFix bionic-unit-tests
Dimitry Ivanov [Wed, 5 Oct 2016 16:24:30 +0000 (16:24 +0000)]
Fix bionic-unit-tests
am: d11d1e4a97

Change-Id: I920d980a75d27ca0df86b90f30ad261845f4bd52

7 years agoMerge changes Ie6777e2b,Iaed834be
Dimitry Ivanov [Wed, 5 Oct 2016 16:20:44 +0000 (16:20 +0000)]
Merge changes Ie6777e2b,Iaed834be

* changes:
  Fix for default library path "/vendor/lib"
  Fix bionic-unit-tests

7 years agoFix for default library path "/vendor/lib"
neo.chae [Tue, 4 Oct 2016 02:00:27 +0000 (11:00 +0900)]
Fix for default library path "/vendor/lib"

Android N restrict which libraries C/C++ code
can link against at runtime.

If device has a vendor partition
then /system/vendor symlink to /vendor.
Otherwise /vendor symlink to /system/vendor.

But is_system_library() is only checking /vendor/lib.
It will return false for /system/vendor/lib path.
It is need to add a real path to default library path.

Similarily, default ld library path is already checking.
parse_LD_LIBRARY_PATH()->parse_path()->resolve_paths()

Test: build bionic and run bionic-unit-tests
Bug: http://b/31919547
Change-Id: Ie6777e2b02729948ce77a94de32343d40358bf2c
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
(cherry picked from commit 2589f9de6473a2030594e2c5e95541f00eb2dc7a)

7 years agoFix for default library path "/vendor/lib"
neo.chae [Tue, 4 Oct 2016 02:00:27 +0000 (11:00 +0900)]
Fix for default library path "/vendor/lib"

Android N restrict which libraries C/C++ code
can link against at runtime.

If device has a vendor partition
then /system/vendor symlink to /vendor.
Otherwise /vendor symlink to /system/vendor.

But is_system_library() is only checking /vendor/lib.
It will return false for /system/vendor/lib path.
It is need to add a real path to default library path.

Similarily, default ld library path is already checking.
parse_LD_LIBRARY_PATH()->parse_path()->resolve_paths()

Test: build bionic and run bionic-unit-tests
Bug: http://b/31919547
Change-Id: Ie6777e2b02729948ce77a94de32343d40358bf2c
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
7 years agoFix bionic-unit-tests
Dimitry Ivanov [Wed, 5 Oct 2016 09:51:17 +0000 (02:51 -0700)]
Fix bionic-unit-tests

Fix rpath value for libraries after build system update

Bug: http://b/31221587
Test: run bionic-unit-tests --gtest_filter=dl*:Dl*:*atexit*
Change-Id: Iaed834bef830fd0b252b5de82e27634bafc92d8b

7 years agoUpdate timezone data to 2016g. am: ba9734ffd5
Joachim Sauer [Tue, 4 Oct 2016 14:15:05 +0000 (14:15 +0000)]
Update timezone data to 2016g. am: ba9734ffd5
am: 93410a015e

Change-Id: Iad88318d3a69d37f9be5c463f97ba547692eadb6

7 years agoUpdate timezone data to 2016g.
Joachim Sauer [Tue, 4 Oct 2016 14:03:16 +0000 (14:03 +0000)]
Update timezone data to 2016g.
am: ba9734ffd5

Change-Id: Iefe8047d6121febc517b812e22d80f87aa452dd8

7 years agoUpdate timezone data to 2016g.
Joachim Sauer [Mon, 3 Oct 2016 12:38:43 +0000 (13:38 +0100)]
Update timezone data to 2016g.

The 2016g release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

  Changes to future time stamps

    Turkey switched from EET/EEST (+02/+03) to permanent +03,
    effective 2016-09-07.  (Thanks to Burak AYDIN.)  Use "+03" rather
    than an invented abbreviation for the new time.

    New leap second 2016-12-31 23:59:60 UTC as per IERS Bulletin C 52.
    (Thanks to Tim Parenti.)

  Changes to past time stamps

    For America/Los_Angeles, spring-forward transition times have been
    corrected from 02:00 to 02:01 in 1948, and from 02:00 to 01:00 in
    1950-1966.

    For zones using Soviet time on 1919-07-01, transitions to UT-based
    time were at 00:00 UT, not at 02:00 local time.  The affected
    zones are Europe/Kirov, Europe/Moscow, Europe/Samara, and
    Europe/Ulyanovsk.  (Thanks to Alexander Belopolsky.)

  Changes to past and future time zone abbreviations

    The Factory zone now uses the time zone abbreviation -00 instead
    of a long English-language string, as -00 is now the normal way to
    represent an undefined time zone.

    Several zones in Antarctica and the former Soviet Union, along
    with zones intended for ships at sea that cannot use POSIX TZ
    strings, now use numeric time zone abbreviations instead of
    invented or obsolete alphanumeric abbreviations.  The affected
    zones are Antarctica/Casey, Antarctica/Davis,
    Antarctica/DumontDUrville, Antarctica/Mawson, Antarctica/Rothera,
    Antarctica/Syowa, Antarctica/Troll, Antarctica/Vostok,
    Asia/Anadyr, Asia/Ashgabat, Asia/Baku, Asia/Bishkek, Asia/Chita,
    Asia/Dushanbe, Asia/Irkutsk, Asia/Kamchatka, Asia/Khandyga,
    Asia/Krasnoyarsk, Asia/Magadan, Asia/Omsk, Asia/Sakhalin,
    Asia/Samarkand, Asia/Srednekolymsk, Asia/Tashkent, Asia/Tbilisi,
    Asia/Ust-Nera, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg,
    Asia/Yerevan, Etc/GMT-14, Etc/GMT-13, Etc/GMT-12, Etc/GMT-11,
    Etc/GMT-10, Etc/GMT-9, Etc/GMT-8, Etc/GMT-7, Etc/GMT-6, Etc/GMT-5,
    Etc/GMT-4, Etc/GMT-3, Etc/GMT-2, Etc/GMT-1, Etc/GMT+1, Etc/GMT+2,
    Etc/GMT+3, Etc/GMT+4, Etc/GMT+5, Etc/GMT+6, Etc/GMT+7, Etc/GMT+8,
    Etc/GMT+9, Etc/GMT+10, Etc/GMT+11, Etc/GMT+12, Europe/Kaliningrad,
    Europe/Minsk, Europe/Samara, Europe/Volgograd, and
    Indian/Kerguelen.  For Europe/Moscow the invented abbreviation MSM
    was replaced by +05, whereas MSK and MSD were kept as they are not
    our invention and are widely used.

  Changes to zone names

    Rename Asia/Rangoon to Asia/Yangon, with a backward compatibility link.
    (Thanks to David Massoud.)

Test: Ran CTS modules CtsLibcoreTestCases and CtsBionicTestCases.
Bug: 31848040
Change-Id: I4e9857616570ca9a540e27c109951ab265fea792

7 years agoresolve merge conflicts of 1fe8749 to nyc-mr1-dev-plus-aosp
Elliott Hughes [Tue, 4 Oct 2016 02:45:22 +0000 (19:45 -0700)]
resolve merge conflicts of 1fe8749 to nyc-mr1-dev-plus-aosp

Change-Id: I9ff1a93ff1185cb9cc5377ec2848687a45f8f8de

7 years agoFix tzdata loading.
Elliott Hughes [Tue, 4 Oct 2016 02:38:35 +0000 (02:38 +0000)]
Fix tzdata loading.
am: fa8f1d0ab2

Change-Id: I9bb66df357a20b74f3ea25043287be2567c6a260

7 years agoMerge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c." am: 1ba0e27462...
Elliott Hughes [Tue, 4 Oct 2016 02:35:55 +0000 (02:35 +0000)]
Merge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c." am: 1ba0e27462 am: df847f4900
am: 359422f500

Change-Id: I24a1e55673818fc0dd3a1d75216c0a28efa9178e

7 years agoMerge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c." am: 1ba0e27462
Elliott Hughes [Tue, 4 Oct 2016 02:31:52 +0000 (02:31 +0000)]
Merge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c." am: 1ba0e27462
am: df847f4900

Change-Id: I5f8d9fa899d1f6cf0905dc8d6327c9be560d729f

7 years agoMerge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c."
Elliott Hughes [Tue, 4 Oct 2016 02:29:22 +0000 (02:29 +0000)]
Merge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c."
am: 1ba0e27462

Change-Id: I1804304cd3f1c9e584448f2fe6b1e7f6e03eb46b

7 years agoMerge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c."
Elliott Hughes [Tue, 4 Oct 2016 02:25:03 +0000 (02:25 +0000)]
Merge "Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c."

7 years agoAdd missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c.
Elliott Hughes [Mon, 3 Oct 2016 23:46:33 +0000 (16:46 -0700)]
Add missing O_CLOEXEC and TEMP_FAILURE_RETRY to localtime.c.

Follow-on change from http://b/31848040.

Test: *time* tests.
Change-Id: I3f1c9ce19b90f6f8c1ac6e0753e3fed0ff63c0b4

7 years agoMerge "Fix tzdata loading." am: 0bee605aab am: 00a37e58e2
Elliott Hughes [Mon, 3 Oct 2016 23:43:14 +0000 (23:43 +0000)]
Merge "Fix tzdata loading." am: 0bee605aab am: 00a37e58e2
am: fb88cbf674

Change-Id: I6196a37b9ee359ad04a61a0252d104e2b37bf0d9

7 years agoMerge "Fix tzdata loading." am: 0bee605aab
Elliott Hughes [Mon, 3 Oct 2016 23:39:40 +0000 (23:39 +0000)]
Merge "Fix tzdata loading." am: 0bee605aab
am: 00a37e58e2

Change-Id: I11c5253bb95f2485788ec9f522dba9763089c686

7 years agoFix tzdata loading.
Elliott Hughes [Mon, 3 Oct 2016 19:29:30 +0000 (12:29 -0700)]
Fix tzdata loading.

Android uses one large file of tzdata, so the "read up to the maximum
possible length of a valid tzfile" code in upstream localtime.c is
broken: there is always data after the current tzfile (even the
last tzfile is followed by the zone.tab data). This patch passes the
exact length through to the read(2) call so we don't over-read, rather
than have to rewrite upstream code that measures back from the "end" of
the tzfile.

The old code failed the existing time.strftime_null_tm_zone test after
updating to tzdata2016g.

(cherry picked from commit 81c46fc10fa60fd341f11024d8d3f26ff2c69082)

Bug: http://b/31848040
Test: time.strftime_null_tm_zone
Change-Id: Iee059b5a8c051bd4952cfd80f02b00d83e489d5e

7 years agoMerge "Fix tzdata loading."
Elliott Hughes [Mon, 3 Oct 2016 23:37:10 +0000 (23:37 +0000)]
Merge "Fix tzdata loading."
am: 0bee605aab

Change-Id: Idbce9d8d5bb1c3898da67415da913f8d2620d761

7 years agoMerge "Fix tzdata loading."
Elliott Hughes [Mon, 3 Oct 2016 23:35:34 +0000 (23:35 +0000)]
Merge "Fix tzdata loading."

7 years agoFix tzdata loading.
Elliott Hughes [Mon, 3 Oct 2016 19:29:30 +0000 (12:29 -0700)]
Fix tzdata loading.

Android uses one large file of tzdata, so the "read up to the maximum
possible length of a valid tzfile" code in upstream localtime.c is
broken: there is always data after the current tzfile (even the
last tzfile is followed by the zone.tab data). This patch passes the
exact length through to the read(2) call so we don't over-read, rather
than have to rewrite upstream code that measures back from the "end" of
the tzfile.

The old code failed the existing time.strftime_null_tm_zone test after
updating to tzdata2016g.

Bug: http://b/31848040
Test: time.strftime_null_tm_zone
Change-Id: Iee059b5a8c051bd4952cfd80f02b00d83e489d5e

7 years agoMerge "Update timezone data to 2016g." am: d609630799 am: 7a608a8876
Joachim Sauer [Mon, 3 Oct 2016 10:48:03 +0000 (10:48 +0000)]
Merge "Update timezone data to 2016g." am: d609630799 am: 7a608a8876
am: d3181bc527

Change-Id: I1f03881521b9e651ba62ce8169d3fc13a81494f3