OSDN Git Service

android-x86/bionic.git
9 years agoam 6880ec44: am d687905f: Merge "Display errors instead of running infinitely."
Christopher Ferris [Sat, 7 Feb 2015 02:30:28 +0000 (02:30 +0000)]
am 6880ec44: am d687905f: Merge "Display errors instead of running infinitely."

* commit '6880ec44c339a720ebc9128fb6a11362ca7d5634':
  Display errors instead of running infinitely.

9 years agoam d687905f: Merge "Display errors instead of running infinitely."
Christopher Ferris [Sat, 7 Feb 2015 02:24:36 +0000 (02:24 +0000)]
am d687905f: Merge "Display errors instead of running infinitely."

* commit 'd687905f11102a7f6bad461b6f501dc870c59999':
  Display errors instead of running infinitely.

9 years agoMerge "Display errors instead of running infinitely."
Christopher Ferris [Sat, 7 Feb 2015 02:18:39 +0000 (02:18 +0000)]
Merge "Display errors instead of running infinitely."

9 years agoDisplay errors instead of running infinitely.
Christopher Ferris [Tue, 3 Feb 2015 23:16:03 +0000 (15:16 -0800)]
Display errors instead of running infinitely.

When there is an error detected, the code runs forever and then times
out without any indication of what happened. Change it so that error
messages are printed and the test fails.

Change-Id: Id3160fc2f394984de0157356594fd8b40de66b4a

9 years agoam 35947160: am bc64d1d1: Merge "Switch kernel header parsing to python libclang"
Tao Bao [Fri, 6 Feb 2015 23:39:23 +0000 (23:39 +0000)]
am 35947160: am bc64d1d1: Merge "Switch kernel header parsing to python libclang"

* commit '35947160f96931a6464a9425b04f79232b389ed0':
  Switch kernel header parsing to python libclang

9 years agoam bc64d1d1: Merge "Switch kernel header parsing to python libclang"
Tao Bao [Fri, 6 Feb 2015 23:32:43 +0000 (23:32 +0000)]
am bc64d1d1: Merge "Switch kernel header parsing to python libclang"

* commit 'bc64d1d1fd12a0b43bcfe3f88698f29185ab63e0':
  Switch kernel header parsing to python libclang

9 years agoam 0ef78e38: am 44e88db1: Merge "Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for...
Colin Cross [Fri, 6 Feb 2015 23:31:35 +0000 (23:31 +0000)]
am 0ef78e38: am 44e88db1: Merge "Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs"

* commit '0ef78e3840b3bfcc07a13d7ffa69dfdd8313e80c':
  Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs

9 years agoMerge "Switch kernel header parsing to python libclang"
Tao Bao [Fri, 6 Feb 2015 23:25:29 +0000 (23:25 +0000)]
Merge "Switch kernel header parsing to python libclang"

9 years agoam 44e88db1: Merge "Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs"
Colin Cross [Fri, 6 Feb 2015 22:53:18 +0000 (22:53 +0000)]
am 44e88db1: Merge "Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs"

* commit '44e88db185cc65b49373dd76d8ed27264b7299ed':
  Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs

9 years agoSwitch kernel header parsing to python libclang
Tao Bao [Wed, 28 Jan 2015 18:07:51 +0000 (10:07 -0800)]
Switch kernel header parsing to python libclang

Replace the tokenizer in cpp.py with libclang.

Bug: 18937958
Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d

9 years agoMerge "Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs"
Colin Cross [Fri, 6 Feb 2015 22:45:59 +0000 (22:45 +0000)]
Merge "Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs"

9 years agoUse LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs
Colin Cross [Fri, 6 Feb 2015 22:16:17 +0000 (14:16 -0800)]
Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs

Change-Id: If61d6faae5d91c3bbe198e733e5922cd877ba353

9 years agoam da73dac7: am bda85a12: Merge "Add path separator in bionic-unit-tests program...
Yabin Cui [Thu, 5 Feb 2015 22:08:49 +0000 (22:08 +0000)]
am da73dac7: am bda85a12: Merge "Add path separator in bionic-unit-tests program path."

* commit 'da73dac7acce09b76bd6d811c8be694e69acbd17':
  Add path separator in bionic-unit-tests program path.

9 years agoam bda85a12: Merge "Add path separator in bionic-unit-tests program path."
Yabin Cui [Thu, 5 Feb 2015 22:01:41 +0000 (22:01 +0000)]
am bda85a12: Merge "Add path separator in bionic-unit-tests program path."

* commit 'bda85a12392b10555dc03ac377c8450b8f0790d6':
  Add path separator in bionic-unit-tests program path.

9 years agoMerge "Add path separator in bionic-unit-tests program path."
Yabin Cui [Thu, 5 Feb 2015 21:55:18 +0000 (21:55 +0000)]
Merge "Add path separator in bionic-unit-tests program path."

9 years agoam 87c44930: am 9dfb00c1: Merge "Use the libcxxabi __cxa_demangle."
Elliott Hughes [Thu, 5 Feb 2015 20:31:07 +0000 (20:31 +0000)]
am 87c44930: am 9dfb00c1: Merge "Use the libcxxabi __cxa_demangle."

* commit '87c44930486af960de27996d94b742f19399b82b':
  Use the libcxxabi __cxa_demangle.

9 years agoam 1ec1bbda: am 9a9b6357: Merge "Apparently, logd does need the NULs."
Elliott Hughes [Thu, 5 Feb 2015 20:31:06 +0000 (20:31 +0000)]
am 1ec1bbda: am 9a9b6357: Merge "Apparently, logd does need the NULs."

* commit '1ec1bbda7f254266653a0db470f6e5d699a0cad1':
  Apparently, logd does need the NULs.

9 years agoam 9dfb00c1: Merge "Use the libcxxabi __cxa_demangle."
Elliott Hughes [Thu, 5 Feb 2015 20:26:21 +0000 (20:26 +0000)]
am 9dfb00c1: Merge "Use the libcxxabi __cxa_demangle."

* commit '9dfb00c1d48545a2627c2aded62d3a79749351fb':
  Use the libcxxabi __cxa_demangle.

9 years agoam 9a9b6357: Merge "Apparently, logd does need the NULs."
Elliott Hughes [Thu, 5 Feb 2015 20:22:39 +0000 (20:22 +0000)]
am 9a9b6357: Merge "Apparently, logd does need the NULs."

* commit '9a9b635745dc776dcfeec51d68b85ca7e8cdbe7d':
  Apparently, logd does need the NULs.

9 years agoMerge "Use the libcxxabi __cxa_demangle."
Elliott Hughes [Thu, 5 Feb 2015 20:21:35 +0000 (20:21 +0000)]
Merge "Use the libcxxabi __cxa_demangle."

9 years agoMerge "Apparently, logd does need the NULs."
Elliott Hughes [Thu, 5 Feb 2015 20:05:45 +0000 (20:05 +0000)]
Merge "Apparently, logd does need the NULs."

9 years agoUse the libcxxabi __cxa_demangle.
Elliott Hughes [Thu, 5 Feb 2015 20:05:34 +0000 (12:05 -0800)]
Use the libcxxabi __cxa_demangle.

Bug: 18930951
Change-Id: If2ea3633ac6dfd4ec975c0f16bdf3dd58e05c614

9 years agoApparently, logd does need the NULs.
Elliott Hughes [Thu, 5 Feb 2015 20:02:04 +0000 (12:02 -0800)]
Apparently, logd does need the NULs.

Change-Id: I04b834e65c26c5821b952f78a0de7f92527cbdba

9 years agoam ffcabed4: am 63826658: Merge "Add signal handling in bionic gtest main."
Yabin Cui [Thu, 5 Feb 2015 18:47:26 +0000 (18:47 +0000)]
am ffcabed4: am 63826658: Merge "Add signal handling in bionic gtest main."

* commit 'ffcabed4bf8555e721c215a5140e2c8120add8af':
  Add signal handling in bionic gtest main.

9 years agoam a1d3aa1f: am 8e5f9bc8: Merge "linker: Use load_bias to adjust search address in...
Dimitry Ivanov [Thu, 5 Feb 2015 18:47:07 +0000 (18:47 +0000)]
am a1d3aa1f: am 8e5f9bc8: Merge "linker: Use load_bias to adjust search address in elf_addr_lookup"

* commit 'a1d3aa1f9579eaf579f579b43f836635fc9a5674':
  linker: Use load_bias to adjust search address in elf_addr_lookup

9 years agoam 427d438d: am da2c0a70: Merge changes Ib87855e8,I4b46ae20,I66364a5c,Id3fcf680
Colin Cross [Thu, 5 Feb 2015 18:47:07 +0000 (18:47 +0000)]
am 427d438d: am da2c0a70: Merge changes Ib87855e8,I4b46ae20,I66364a5c,Id3fcf680

* commit '427d438dd44bb79dad87d51ad60593872391e7a7':
  Use LOCAL_LDFLAGS_64 instead of enumerating 64-bit architectures
  Fix typo in cpu variant makefile depenendency for arm64
  Remove libc_static_common_src_files
  Share LP32 makefile settings between arches

9 years agoam e760a1eb: am 17976019: Merge "Fix poll/ppoll fortify test to avoid hanging in...
Yabin Cui [Thu, 5 Feb 2015 18:47:06 +0000 (18:47 +0000)]
am e760a1eb: am 17976019: Merge "Fix poll/ppoll fortify test to avoid hanging in failed fortify clang test."

* commit 'e760a1eb30804df478640b2176fc798ab6e7db9b':
  Fix poll/ppoll fortify test to avoid hanging in failed fortify clang test.

9 years agoAdd path separator in bionic-unit-tests program path.
Yabin Cui [Thu, 5 Feb 2015 04:53:56 +0000 (20:53 -0800)]
Add path separator in bionic-unit-tests program path.

Bug: 19220800
Change-Id: I4245b1270363544cd5f083fe7ea7d9b11b46cdc0

9 years agoam 63826658: Merge "Add signal handling in bionic gtest main."
Yabin Cui [Thu, 5 Feb 2015 04:24:43 +0000 (04:24 +0000)]
am 63826658: Merge "Add signal handling in bionic gtest main."

* commit '63826658f4bcfff4f3a87fe651f22cc9b35fe8b9':
  Add signal handling in bionic gtest main.

9 years agoMerge "Add signal handling in bionic gtest main."
Yabin Cui [Thu, 5 Feb 2015 04:21:03 +0000 (04:21 +0000)]
Merge "Add signal handling in bionic gtest main."

9 years agoAdd signal handling in bionic gtest main.
Yabin Cui [Tue, 3 Feb 2015 03:14:05 +0000 (19:14 -0800)]
Add signal handling in bionic gtest main.

The two bugs are very closely related and code amount is very small,
So I think they may be fixed in one change.

Bug: 19128558
Bug: 19129994
Change-Id: I44a35398e64dfca7e9676428cb8f4026e8f6e488

9 years agoam 8e5f9bc8: Merge "linker: Use load_bias to adjust search address in elf_addr_lookup"
Dimitry Ivanov [Thu, 5 Feb 2015 02:30:48 +0000 (02:30 +0000)]
am 8e5f9bc8: Merge "linker: Use load_bias to adjust search address in elf_addr_lookup"

* commit '8e5f9bc8a46872e3f0ac4799558fdfd5999f9c20':
  linker: Use load_bias to adjust search address in elf_addr_lookup

9 years agoam da2c0a70: Merge changes Ib87855e8,I4b46ae20,I66364a5c,Id3fcf680
Colin Cross [Thu, 5 Feb 2015 02:30:47 +0000 (02:30 +0000)]
am da2c0a70: Merge changes Ib87855e8,I4b46ae20,I66364a5c,Id3fcf680

* commit 'da2c0a708ed6c0091f3f89fd8838292579dad800':
  Use LOCAL_LDFLAGS_64 instead of enumerating 64-bit architectures
  Fix typo in cpu variant makefile depenendency for arm64
  Remove libc_static_common_src_files
  Share LP32 makefile settings between arches

9 years agoam 17976019: Merge "Fix poll/ppoll fortify test to avoid hanging in failed fortify...
Yabin Cui [Thu, 5 Feb 2015 02:30:46 +0000 (02:30 +0000)]
am 17976019: Merge "Fix poll/ppoll fortify test to avoid hanging in failed fortify clang test."

* commit '17976019a13a94ae428849bfe297f8e531f95013':
  Fix poll/ppoll fortify test to avoid hanging in failed fortify clang test.

9 years agoMerge "linker: Use load_bias to adjust search address in elf_addr_lookup"
Dimitry Ivanov [Thu, 5 Feb 2015 02:23:34 +0000 (02:23 +0000)]
Merge "linker: Use load_bias to adjust search address in elf_addr_lookup"

9 years agoMerge changes Ib87855e8,I4b46ae20,I66364a5c,Id3fcf680
Colin Cross [Thu, 5 Feb 2015 01:57:27 +0000 (01:57 +0000)]
Merge changes Ib87855e8,I4b46ae20,I66364a5c,Id3fcf680

* changes:
  Use LOCAL_LDFLAGS_64 instead of enumerating 64-bit architectures
  Fix typo in cpu variant makefile depenendency for arm64
  Remove libc_static_common_src_files
  Share LP32 makefile settings between arches

9 years agoUse LOCAL_LDFLAGS_64 instead of enumerating 64-bit architectures
Colin Cross [Thu, 5 Feb 2015 01:40:29 +0000 (17:40 -0800)]
Use LOCAL_LDFLAGS_64 instead of enumerating 64-bit architectures

LOCAL_LDFLAGS_<arch> was being set for arm64, mips64, and x86_64.
Use LOCAL_LDFLAGS_64 instead.

Change-Id: Ib87855e8a7783f82461b707fffa7f1663e6be9c8

9 years agoFix typo in cpu variant makefile depenendency for arm64
Colin Cross [Thu, 5 Feb 2015 01:38:27 +0000 (17:38 -0800)]
Fix typo in cpu variant makefile depenendency for arm64

cpu_variank_mk -> cpu_variant_mk

Change-Id: I4b46ae20de72ed2dc8820d62ac35ddc6b915a195

9 years agoRemove libc_static_common_src_files
Colin Cross [Thu, 5 Feb 2015 01:37:23 +0000 (17:37 -0800)]
Remove libc_static_common_src_files

libc_static_common_src_files is never set after
c3f114037dbf028896310609fd28cf2b3da99c4d, remove the remaining
references to it.

Change-Id: I66364a5c1b031ad69d608f6f44244049192944f6

9 years agoShare LP32 makefile settings between arches
Colin Cross [Thu, 5 Feb 2015 01:35:49 +0000 (17:35 -0800)]
Share LP32 makefile settings between arches

Add <var>_32 to patch-up-arch-specific-flags, and move the LP32
cruft varaibles from the 32-bit arch specific makefiles into the
top level Android.mk.

Change-Id: Id3fcf6805d4af048c2524c94b1295416ebe7d057

9 years agolinker: Use load_bias to adjust search address in elf_addr_lookup
Chris Dearman [Thu, 14 Nov 2013 01:22:33 +0000 (17:22 -0800)]
linker: Use load_bias to adjust search address in elf_addr_lookup

load_bias is the delta between a symbols address in memory and the value
contained in the symbol table.

Change-Id: I35c87b69025b64f7e4a1418ca766618f4533fb3e

9 years agoMerge "Fix poll/ppoll fortify test to avoid hanging in failed fortify clang test."
Yabin Cui [Thu, 5 Feb 2015 01:14:32 +0000 (01:14 +0000)]
Merge "Fix poll/ppoll fortify test to avoid hanging in failed fortify clang test."

9 years agoFix poll/ppoll fortify test to avoid hanging in failed fortify clang test.
Yabin Cui [Wed, 4 Feb 2015 01:52:32 +0000 (17:52 -0800)]
Fix poll/ppoll fortify test to avoid hanging in failed fortify clang test.

Bug: 19220800
Change-Id: Ie75c640183c4a41a499556fefb4f824a134a5fb1

9 years agoam 6d632af3: am 2151f09f: Merge "Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C...
Neil Fuller [Wed, 4 Feb 2015 16:45:04 +0000 (16:45 +0000)]
am 6d632af3: am 2151f09f: Merge "Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data."

* commit '6d632af3b04e505a88aa0b73f95a873dcbd472f7':
  Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data.

9 years agoam 2151f09f: Merge "Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data."
Neil Fuller [Wed, 4 Feb 2015 16:39:06 +0000 (16:39 +0000)]
am 2151f09f: Merge "Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data."

* commit '2151f09fbfc2f6084366587df10132e93f4d818c':
  Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data.

9 years agoMerge "Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data."
Neil Fuller [Wed, 4 Feb 2015 16:33:01 +0000 (16:33 +0000)]
Merge "Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data."

9 years agoSet INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data.
Fredrik Roubert [Wed, 4 Feb 2015 16:17:34 +0000 (17:17 +0100)]
Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data.

This is now necessary to build .dat files that are useable for ICU4J as
well, and will need to be used for any future updates of the .dat file:

https://android.googlesource.com/platform/external/icu/+/6b52738

Change-Id: Ifa3a7469a66ab932db20876697e45814f0c5ddc3

9 years agoam dcf371f5: am 7e1b3d3e: Merge "Switch sem_t from bionic atomics to stdatomic.h."
Yabin Cui [Wed, 4 Feb 2015 02:49:41 +0000 (02:49 +0000)]
am dcf371f5: am 7e1b3d3e: Merge "Switch sem_t from bionic atomics to stdatomic.h."

* commit 'dcf371f5e7142e548b8f422bf45db14d15d86b62':
  Switch sem_t from bionic atomics to stdatomic.h.

9 years agoam 7e1b3d3e: Merge "Switch sem_t from bionic atomics to stdatomic.h."
Yabin Cui [Wed, 4 Feb 2015 02:45:44 +0000 (02:45 +0000)]
am 7e1b3d3e: Merge "Switch sem_t from bionic atomics to stdatomic.h."

* commit '7e1b3d3e68f7430322a88be06f6b53c358fd14bf':
  Switch sem_t from bionic atomics to stdatomic.h.

9 years agoMerge "Switch sem_t from bionic atomics to stdatomic.h."
Yabin Cui [Wed, 4 Feb 2015 02:42:15 +0000 (02:42 +0000)]
Merge "Switch sem_t from bionic atomics to stdatomic.h."

9 years agoSwitch sem_t from bionic atomics to stdatomic.h.
Yabin Cui [Fri, 30 Jan 2015 20:30:08 +0000 (12:30 -0800)]
Switch sem_t from bionic atomics to stdatomic.h.

Bug: 17572887
Change-Id: If66851ba9b831cdd698b9f1303289bb14448bd03

9 years agoam 2d988187: am 11829be3: Merge "Add test about pthread_mutex_t owner tid limit."
Yabin Cui [Tue, 3 Feb 2015 22:40:46 +0000 (22:40 +0000)]
am 2d988187: am 11829be3: Merge "Add test about pthread_mutex_t owner tid limit."

* commit '2d988187712f52773b89421d139b266c8b58f769':
  Add test about pthread_mutex_t owner tid limit.

9 years agoam 11829be3: Merge "Add test about pthread_mutex_t owner tid limit."
Yabin Cui [Tue, 3 Feb 2015 22:34:58 +0000 (22:34 +0000)]
am 11829be3: Merge "Add test about pthread_mutex_t owner tid limit."

* commit '11829be3e1a9e9e2271ba64a78c327bde6e044eb':
  Add test about pthread_mutex_t owner tid limit.

9 years agoMerge "Add test about pthread_mutex_t owner tid limit."
Yabin Cui [Tue, 3 Feb 2015 22:28:55 +0000 (22:28 +0000)]
Merge "Add test about pthread_mutex_t owner tid limit."

9 years agoam 72c3071d: am f00f484c: Merge "Ensure raw fchmod/fchmodat syscalls are hidden."
Nick Kralevich [Tue, 3 Feb 2015 20:32:59 +0000 (20:32 +0000)]
am 72c3071d: am f00f484c: Merge "Ensure raw fchmod/fchmodat syscalls are hidden."

* commit '72c3071d548ee3bf3711abf13dce25042ccc3cea':
  Ensure raw fchmod/fchmodat syscalls are hidden.

9 years agoam f00f484c: Merge "Ensure raw fchmod/fchmodat syscalls are hidden."
Nick Kralevich [Tue, 3 Feb 2015 20:24:53 +0000 (20:24 +0000)]
am f00f484c: Merge "Ensure raw fchmod/fchmodat syscalls are hidden."

* commit 'f00f484cb59c1d599242daecbf833397aa3ba5d8':
  Ensure raw fchmod/fchmodat syscalls are hidden.

9 years agoAdd test about pthread_mutex_t owner tid limit.
Yabin Cui [Tue, 3 Feb 2015 18:32:00 +0000 (10:32 -0800)]
Add test about pthread_mutex_t owner tid limit.

Bug: 19216648
Change-Id: I7b12955bdcad31c13bf8ec2740ff88ba15223ec0

9 years agoMerge "Ensure raw fchmod/fchmodat syscalls are hidden."
Nick Kralevich [Tue, 3 Feb 2015 20:17:32 +0000 (20:17 +0000)]
Merge "Ensure raw fchmod/fchmodat syscalls are hidden."

9 years agoEnsure raw fchmod/fchmodat syscalls are hidden.
Nick Kralevich [Tue, 3 Feb 2015 19:27:25 +0000 (11:27 -0800)]
Ensure raw fchmod/fchmodat syscalls are hidden.

In https://android-review.googlesource.com/#/c/127908/5/libc/SYSCALLS.TXT@116
Elliott said:

  for LP64 these will be hidden. for LP32 we were cowards and left
  them all public for compatibility (though i don't think we ever
  dremeled to see whether it was needed). we don't have an easy
  way to recognize additions, though, so we can't prevent adding
  new turds.

Add a mechanism to prevent the adding of new turds, and use that
mechanism on the fchmod/fchmodat system calls.

Bug: 19233951
Change-Id: I98f98345970b631a379f348df57858f9fc3d57c0

9 years agoam 4177bd8d: Fixes to the update-tzdata.py tool
Neil Fuller [Tue, 3 Feb 2015 15:00:20 +0000 (15:00 +0000)]
am 4177bd8d: Fixes to the update-tzdata.py tool

* commit '4177bd8d16e0dc2d0d541fc54f81518c57651e55':
  Fixes to the update-tzdata.py tool

9 years agoam 700eb048: Update tzdata to tzdata2015a
Neil Fuller [Tue, 3 Feb 2015 15:00:18 +0000 (15:00 +0000)]
am 700eb048: Update tzdata to tzdata2015a

* commit '700eb048fb6df8805245097d73a87384108fdf67':
  Update tzdata to tzdata2015a

9 years agoam 0cddad0f: am d57bf449: Merge "Switch pthread_mutex_t from bionic atomics to <stdat...
Hans Boehm [Tue, 3 Feb 2015 02:53:31 +0000 (02:53 +0000)]
am 0cddad0f: am d57bf449: Merge "Switch pthread_mutex_t from bionic atomics to <stdatomic.h>."

* commit '0cddad0fd17274575abe2e25484c909def51d7e3':
  Switch pthread_mutex_t from bionic atomics to <stdatomic.h>.

9 years agoam d57bf449: Merge "Switch pthread_mutex_t from bionic atomics to <stdatomic.h>."
Hans Boehm [Tue, 3 Feb 2015 02:48:20 +0000 (02:48 +0000)]
am d57bf449: Merge "Switch pthread_mutex_t from bionic atomics to <stdatomic.h>."

* commit 'd57bf449fe6c2dcf35d90d6e4098038ac8a24ecb':
  Switch pthread_mutex_t from bionic atomics to <stdatomic.h>.

9 years agoMerge "Switch pthread_mutex_t from bionic atomics to <stdatomic.h>."
Hans Boehm [Tue, 3 Feb 2015 02:42:53 +0000 (02:42 +0000)]
Merge "Switch pthread_mutex_t from bionic atomics to <stdatomic.h>."

9 years agoam aa916c8d: am c5999c1e: Merge "Clean up SEEK_SET definitions."
Elliott Hughes [Tue, 3 Feb 2015 01:31:08 +0000 (01:31 +0000)]
am aa916c8d: am c5999c1e: Merge "Clean up SEEK_SET definitions."

* commit 'aa916c8db85b01389b929f060f232b3e06448e79':
  Clean up SEEK_SET definitions.

9 years agoam c5999c1e: Merge "Clean up SEEK_SET definitions."
Elliott Hughes [Tue, 3 Feb 2015 01:25:23 +0000 (01:25 +0000)]
am c5999c1e: Merge "Clean up SEEK_SET definitions."

* commit 'c5999c1e0382c40286cc631c6a53e7781bc03154':
  Clean up SEEK_SET definitions.

9 years agoMerge "Clean up SEEK_SET definitions."
Elliott Hughes [Tue, 3 Feb 2015 01:21:16 +0000 (01:21 +0000)]
Merge "Clean up SEEK_SET definitions."

9 years agoSwitch pthread_mutex_t from bionic atomics to <stdatomic.h>.
Yabin Cui [Fri, 30 Jan 2015 05:50:48 +0000 (21:50 -0800)]
Switch pthread_mutex_t from bionic atomics to <stdatomic.h>.

Bug: 17574456
Change-Id: I5ce3d3dc07e804e9ce55c42920f47531b56e04de

9 years agoam 0cb8abc6: am d80ec661: Merge "Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH...
Nick Kralevich [Mon, 2 Feb 2015 22:10:53 +0000 (22:10 +0000)]
am 0cb8abc6: am d80ec661: Merge "Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support"

* commit '0cb8abc6207d7484ecbc9698064c1f24b9b668d5':
  Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support

9 years agoam d80ec661: Merge "Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support"
Nick Kralevich [Mon, 2 Feb 2015 22:07:35 +0000 (22:07 +0000)]
am d80ec661: Merge "Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support"

* commit 'd80ec66121b5af96c6b3d07ba34353b3d517f5b3':
  Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support

9 years agoMerge "Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support"
Nick Kralevich [Mon, 2 Feb 2015 22:03:41 +0000 (22:03 +0000)]
Merge "Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support"

9 years agoClean up SEEK_SET definitions.
Elliott Hughes [Mon, 2 Feb 2015 22:02:09 +0000 (14:02 -0800)]
Clean up SEEK_SET definitions.

If we lose the #ifndef, the compiler will tell us if the definitions
of SEEK_SET and friends ever get out of sync.

Change-Id: I357cabec7c9cd451c604342344f210bba20fb6bc

9 years agoAdd fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support
Nick Kralevich [Sun, 1 Feb 2015 03:57:46 +0000 (19:57 -0800)]
Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support

Many libc functions have an option to not follow symbolic
links. This is useful to avoid security sensitive code
from inadvertantly following attacker supplied symlinks
and taking inappropriate action on files it shouldn't.
For example, open() has O_NOFOLLOW, chown() has
lchown(), stat() has lstat(), etc.

There is no such equivalent function for chmod(), such as lchmod().
To address this, POSIX introduced fchmodat(AT_SYMLINK_NOFOLLOW),
which is intended to provide a way to perform a chmod operation
which doesn't follow symlinks.

Currently, the Linux kernel doesn't implement AT_SYMLINK_NOFOLLOW.
In GLIBC, attempting to use the AT_SYMLINK_NOFOLLOW flag causes
fchmodat to return ENOTSUP. Details are in "man fchmodat".

Bionic currently differs from GLIBC in that AT_SYMLINK_NOFOLLOW
is silently ignored and treated as if the flag wasn't present.

This patch provides a userspace implementation of
AT_SYMLINK_NOFOLLOW for bionic. Using open(O_PATH | O_NOFOLLOW),
we can provide a way to atomically change the permissions on
files without worrying about race conditions.

As part of this change, we add support for fchmod on O_PATH
file descriptors, because it's relatively straight forward
and could be useful in the future.

The basic idea behind this implementation comes from
https://sourceware.org/bugzilla/show_bug.cgi?id=14578 , specifically
comment #10.

Change-Id: I1eba0cdb2c509d9193ceecf28f13118188a3cfa7

9 years agoam 815fc9bc: am c57b5c50: Merge "Small logging cleanup."
Elliott Hughes [Mon, 2 Feb 2015 20:54:27 +0000 (20:54 +0000)]
am 815fc9bc: am c57b5c50: Merge "Small logging cleanup."

* commit '815fc9bc9ecf96dd478c0800fdb9c4e9200320be':
  Small logging cleanup.

9 years agoam c57b5c50: Merge "Small logging cleanup."
Elliott Hughes [Mon, 2 Feb 2015 20:46:39 +0000 (20:46 +0000)]
am c57b5c50: Merge "Small logging cleanup."

* commit 'c57b5c5094f915ff975a256e086d58e2e7cfedf1':
  Small logging cleanup.

9 years agoMerge "Small logging cleanup."
Elliott Hughes [Mon, 2 Feb 2015 20:36:29 +0000 (20:36 +0000)]
Merge "Small logging cleanup."

9 years agoSmall logging cleanup.
Elliott Hughes [Mon, 2 Feb 2015 20:24:46 +0000 (12:24 -0800)]
Small logging cleanup.

Don't send the trailing NUL bytes to the logger, call strlen if we already
know the length, or cast more specifically than we need to.

Change-Id: I68c9388a22bddea49120a1022dda8db8991360c1

9 years agoam 6c1252de: am 530aaecc: Merge "Explicitly check that the reason fortify tests abort...
Elliott Hughes [Mon, 2 Feb 2015 19:40:41 +0000 (19:40 +0000)]
am 6c1252de: am 530aaecc: Merge "Explicitly check that the reason fortify tests abort is fortify."

* commit '6c1252decba273087411cd9e480d0422eabec6ef':
  Explicitly check that the reason fortify tests abort is fortify.

9 years agoam 530aaecc: Merge "Explicitly check that the reason fortify tests abort is fortify."
Elliott Hughes [Mon, 2 Feb 2015 19:32:44 +0000 (19:32 +0000)]
am 530aaecc: Merge "Explicitly check that the reason fortify tests abort is fortify."

* commit '530aaeccd875f708918f59cd5ff8b076c156adab':
  Explicitly check that the reason fortify tests abort is fortify.

9 years agoMerge "Explicitly check that the reason fortify tests abort is fortify."
Elliott Hughes [Mon, 2 Feb 2015 19:25:57 +0000 (19:25 +0000)]
Merge "Explicitly check that the reason fortify tests abort is fortify."

9 years agoExplicitly check that the reason fortify tests abort is fortify.
Elliott Hughes [Mon, 2 Feb 2015 19:18:58 +0000 (11:18 -0800)]
Explicitly check that the reason fortify tests abort is fortify.

Change-Id: I95291e2febf7b497c1d9f37fd7fa9acdd21e86a4

9 years agoam 5f7819d6: am 7f0f30c6: Merge "Fix clang build."
Elliott Hughes [Mon, 2 Feb 2015 18:50:43 +0000 (18:50 +0000)]
am 5f7819d6: am 7f0f30c6: Merge "Fix clang build."

* commit '5f7819d6f1b2cb706d818e3083d45337e35d386b':
  Fix clang build.

9 years agoam 7f0f30c6: Merge "Fix clang build."
Elliott Hughes [Mon, 2 Feb 2015 18:36:22 +0000 (18:36 +0000)]
am 7f0f30c6: Merge "Fix clang build."

* commit '7f0f30c6e20c1bf04bec05077eef2d779e7a32df':
  Fix clang build.

9 years agoMerge "Fix clang build."
Elliott Hughes [Mon, 2 Feb 2015 18:23:28 +0000 (18:23 +0000)]
Merge "Fix clang build."

9 years agoFix clang build.
Elliott Hughes [Mon, 2 Feb 2015 18:21:39 +0000 (10:21 -0800)]
Fix clang build.

Change-Id: I863137b5d35602267b4ef3a74399cf394c9994d6

9 years agoam 0a302e01: am d514d9bb: Merge "Fixes to the update-tzdata.py tool"
Neil Fuller [Mon, 2 Feb 2015 18:03:11 +0000 (18:03 +0000)]
am 0a302e01: am d514d9bb: Merge "Fixes to the update-tzdata.py tool"

* commit '0a302e0174da4432da4a6ad5ce126dc27e4a86de':
  Fixes to the update-tzdata.py tool

9 years agoam 20f2e4f7: am 5940f98a: Merge "Fortify poll and ppoll."
Elliott Hughes [Mon, 2 Feb 2015 18:03:10 +0000 (18:03 +0000)]
am 20f2e4f7: am 5940f98a: Merge "Fortify poll and ppoll."

* commit '20f2e4f7ad9d9f816be13f6509e602d4344a018d':
  Fortify poll and ppoll.

9 years agoam d514d9bb: Merge "Fixes to the update-tzdata.py tool"
Neil Fuller [Mon, 2 Feb 2015 17:57:22 +0000 (17:57 +0000)]
am d514d9bb: Merge "Fixes to the update-tzdata.py tool"

* commit 'd514d9bbae354da72fcb43349f0157378e52004d':
  Fixes to the update-tzdata.py tool

9 years agoam 5940f98a: Merge "Fortify poll and ppoll."
Elliott Hughes [Mon, 2 Feb 2015 17:57:21 +0000 (17:57 +0000)]
am 5940f98a: Merge "Fortify poll and ppoll."

* commit '5940f98a35d64f9ca249536bb8cdcdbfe43e9bc3':
  Fortify poll and ppoll.

9 years agoFixes to the update-tzdata.py tool
Neil Fuller [Mon, 2 Feb 2015 16:50:05 +0000 (16:50 +0000)]
Fixes to the update-tzdata.py tool

We build one too many times. Creating a missing directory
is sufficient.

The tz2icu needs some files in the CWD. Added symlinks.

Bug: 19230091
(cherry-pick of commit 0662c3e5b33840e19f4c14b85bf619c33b3a0d0f)
Change-Id: Ie21d848f1b776ec745473b9122e003fdf0acf105

9 years agoMerge "Fixes to the update-tzdata.py tool"
Neil Fuller [Mon, 2 Feb 2015 17:52:47 +0000 (17:52 +0000)]
Merge "Fixes to the update-tzdata.py tool"

9 years agoMerge "Fortify poll and ppoll."
Elliott Hughes [Mon, 2 Feb 2015 17:51:50 +0000 (17:51 +0000)]
Merge "Fortify poll and ppoll."

9 years agoFixes to the update-tzdata.py tool
Neil Fuller [Mon, 2 Feb 2015 16:50:05 +0000 (16:50 +0000)]
Fixes to the update-tzdata.py tool

We build one too many times. Creating a missing directory
is sufficient.

The tz2icu needs some files in the CWD. Added symlinks.

Bug: 19230091
Change-Id: I58f9817af68b229f48139e56503f50a2b6dbb4fe

9 years agoFortify poll and ppoll.
Elliott Hughes [Mon, 2 Feb 2015 17:15:19 +0000 (09:15 -0800)]
Fortify poll and ppoll.

And remove the test for FD_ZERO fortification, which never made much
sense anyway.

Change-Id: Id1009c5298d461fa4722189e8ecaf22f0c529536

9 years agoUpdate tzdata to tzdata2015a
Neil Fuller [Mon, 2 Feb 2015 11:24:22 +0000 (11:24 +0000)]
Update tzdata to tzdata2015a

Time Zone Data v. 2015a (Released 2015-01-29)
http://www.iana.org/time-zones/repository/releases/tzdata2015a.tar.gz

Information from NEWS:

Release 2015a - 2015-01-29 22:35:20 -0800

  Changes affecting future time stamps

    The Mexican state of Quintana Roo, represented by America/Cancun,
    will shift from Central Time with DST to Eastern Time without DST
    on 2015-02-01 at 02:00.  (Thanks to Steffen Thorsen and Gwillim Law.)

    Chile will not change clocks in April or thereafter; its new standard time
    will be its old daylight saving time.  This affects America/Santiago,
    Pacific/Easter, and Antarctica/Palmer.  (Thanks to Juan Correa.)

    New leap second 2015-06-30 23:59:60 UTC as per IERS Bulletin C 49.
    (Thanks to Tim Parenti.)

  Changes affecting past time stamps

    Iceland observed DST in 1919 and 1921, and its 1939 fallback
    transition was Oct. 29, not Nov. 29.  Remove incorrect data from
    Shanks about time in Iceland between 1837 and 1908.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Asia/Aden, Asia/Bahrain, Asia/Kuwait,
    and Asia/Muscat.

  Changes affecting code

    tzalloc now scrubs time zone abbreviations compatibly with the way
    that tzset always has, by replacing invalid bytes with '_' and by
    shortening too-long abbreviations.

    tzselect ports to POSIX awk implementations, no longer mishandles
    POSIX TZ settings when GNU awk is used, and reports POSIX TZ
    settings to the user.  (Thanks to Stefan Kuhn.)

  Changes affecting build procedure

    'make check' now checks for links to links in the data.
    One such link (for Africa/Asmera) has been fixed.
    (Thanks to Stephen Colebourne for pointing out the problem.)

  Changes affecting commentary

    The leapseconds file commentary now mentions the expiration date.
    (Problem reported by Martin Burnicki.)

    Update Mexican Library of Congress URL.

Bug: 19212588
Change-Id: Idc07ac862901500d4a1dbd0f4aadcfd0aa9d10b8

9 years agoam 9843afd6: am ffbda83b: Merge "Add the fortify tests back into the glibc tests."
Elliott Hughes [Mon, 2 Feb 2015 06:07:15 +0000 (06:07 +0000)]
am 9843afd6: am ffbda83b: Merge "Add the fortify tests back into the glibc tests."

* commit '9843afd62982516974fdc3c4481d36007527825a':
  Add the fortify tests back into the glibc tests.

9 years agoam ffbda83b: Merge "Add the fortify tests back into the glibc tests."
Elliott Hughes [Mon, 2 Feb 2015 06:01:10 +0000 (06:01 +0000)]
am ffbda83b: Merge "Add the fortify tests back into the glibc tests."

* commit 'ffbda83b302e3c3970135013d2bb92402e040fe5':
  Add the fortify tests back into the glibc tests.

9 years agoMerge "Add the fortify tests back into the glibc tests."
Elliott Hughes [Mon, 2 Feb 2015 05:56:26 +0000 (05:56 +0000)]
Merge "Add the fortify tests back into the glibc tests."

9 years agoAdd the fortify tests back into the glibc tests.
Elliott Hughes [Sun, 1 Feb 2015 05:32:10 +0000 (21:32 -0800)]
Add the fortify tests back into the glibc tests.

Change-Id: I4426d0c7c1bfe3b0028a674f72d1c3b9d883d6af

9 years agoam d2d63740: am 21cdd22f: Merge "Include <malloc.h> for struct mallinfo."
Elliott Hughes [Sat, 31 Jan 2015 07:49:25 +0000 (07:49 +0000)]
am d2d63740: am 21cdd22f: Merge "Include <malloc.h> for struct mallinfo."

* commit 'd2d63740b78459a414e293efdb16e7a9ac089d5c':
  Include <malloc.h> for struct mallinfo.