OSDN Git Service

android-x86/bionic.git
9 years agoMerge "[MIPS] Fix Mips64 build of libm"
Christopher Ferris [Wed, 11 Feb 2015 21:07:46 +0000 (21:07 +0000)]
Merge "[MIPS] Fix Mips64 build of libm"

9 years ago[MIPS] Fix Mips64 build of libm
Duane Sand [Wed, 11 Feb 2015 20:51:42 +0000 (12:51 -0800)]
[MIPS] Fix Mips64 build of libm

Change-Id: Ib742b408d4f21d5ec8d455a3fea7c08165c7f321

9 years agoMerge "Fix our ftw tests."
Elliott Hughes [Tue, 10 Feb 2015 23:34:18 +0000 (23:34 +0000)]
Merge "Fix our ftw tests."

9 years agoFix our ftw tests.
Elliott Hughes [Tue, 10 Feb 2015 22:15:33 +0000 (14:15 -0800)]
Fix our ftw tests.

SELinux denies access to some files in /sys, so we can't just trawl
through that asserting general truths. Instead, create a small known
tree.

Sadly neither ftw nor nftw takes user callback data, otherwise it would
be nice to assert that we visit all the expected nodes.

Bug: 19252748
Change-Id: Ib5309c38aaef53e6030281191a265a8d5a619044

9 years agoMerge "Define MAXHOSTNAMELEN explicitly in source files."
Yabin Cui [Tue, 10 Feb 2015 17:51:33 +0000 (17:51 +0000)]
Merge "Define MAXHOSTNAMELEN explicitly in source files."

9 years agoMerge "bionic: benchmarks: Add BM_semaphore_sem_post"
Mark Salyzyn [Tue, 10 Feb 2015 15:16:33 +0000 (15:16 +0000)]
Merge "bionic: benchmarks: Add BM_semaphore_sem_post"

9 years agoDefine MAXHOSTNAMELEN explicitly in source files.
Yabin Cui [Mon, 9 Feb 2015 21:58:28 +0000 (13:58 -0800)]
Define MAXHOSTNAMELEN explicitly in source files.

Bug: 19093777
Bug: 19092844
Change-Id: I0778507ca2d5c008abb9a6d6315d0909263a8817

9 years agobionic: benchmarks: Add BM_semaphore_sem_post
Mark Salyzyn [Mon, 9 Feb 2015 16:18:10 +0000 (08:18 -0800)]
bionic: benchmarks: Add BM_semaphore_sem_post

This test tries its best to report the producer side underlying futex
wake syscall overhead wthin sem_post. It does not measure the time it
takes for the wakeup to propagate to the consumer. It suffers from
clock_gettime syscall overhead, so subtract that. Lock the CPU speed
for consistent results as we may not reach >50% cpu utilization.

Change-Id: I02fa9dab2e6ac27202f0290115150bd3c8de00f2

9 years agoMerge "Cleanup the libm makefile."
Christopher Ferris [Tue, 10 Feb 2015 00:31:05 +0000 (00:31 +0000)]
Merge "Cleanup the libm makefile."

9 years agoMerge "Switch pthread_cond_t to <stdatomic.h>."
Yabin Cui [Tue, 10 Feb 2015 00:10:45 +0000 (00:10 +0000)]
Merge "Switch pthread_cond_t to <stdatomic.h>."

9 years agoSwitch pthread_cond_t to <stdatomic.h>.
Yabin Cui [Thu, 29 Jan 2015 20:13:33 +0000 (12:13 -0800)]
Switch pthread_cond_t to <stdatomic.h>.

Bug: 17574458
Change-Id: Ic7f79861df4fe751cfa6c6b20b71123cc31e7114

9 years agoCleanup the libm makefile.
Christopher Ferris [Fri, 23 Jan 2015 01:16:33 +0000 (17:16 -0800)]
Cleanup the libm makefile.

Change-Id: I3d95f75da24ee3b064a9cce67586b0e6f32272d8

9 years agoMerge "Stop including <linux/param.h> in <sys/param.h>."
Yabin Cui [Mon, 9 Feb 2015 19:46:45 +0000 (19:46 +0000)]
Merge "Stop including <linux/param.h> in <sys/param.h>."

9 years agoMerge "Remove stray log line."
Narayan Kamath [Mon, 9 Feb 2015 18:57:50 +0000 (18:57 +0000)]
Merge "Remove stray log line."

9 years agoRemove stray log line.
Narayan Kamath [Mon, 9 Feb 2015 17:59:22 +0000 (17:59 +0000)]
Remove stray log line.

Change-Id: Id948ae37a91dadd9d40e91de97f18774bdccfc78

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 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 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 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 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 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 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 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 agoStop including <linux/param.h> in <sys/param.h>.
Yabin Cui [Wed, 4 Feb 2015 02:40:44 +0000 (18:40 -0800)]
Stop including <linux/param.h> in <sys/param.h>.

Bug: 19092844
Change-Id: I1a4a0c84a196a187ea32e58491de744cf3c0f404

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 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 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 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 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 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 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 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 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 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 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 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 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 agoMerge "Include <malloc.h> for struct mallinfo."
Elliott Hughes [Sat, 31 Jan 2015 04:37:10 +0000 (04:37 +0000)]
Merge "Include <malloc.h> for struct mallinfo."

9 years agoInclude <malloc.h> for struct mallinfo.
Elliott Hughes [Sat, 31 Jan 2015 04:33:31 +0000 (20:33 -0800)]
Include <malloc.h> for struct mallinfo.

GCC doesn't seem to care, but clang does.

Change-Id: I9884820339a9e6f142862928c357f1a538184ae0

9 years agoMerge "Break two incorrect transitive includes."
Elliott Hughes [Sat, 31 Jan 2015 04:18:09 +0000 (04:18 +0000)]
Merge "Break two incorrect transitive includes."

9 years agoMerge "Put back inline definitions if using an old API."
Dan Albert [Fri, 30 Jan 2015 17:18:48 +0000 (17:18 +0000)]
Merge "Put back inline definitions if using an old API."

9 years agoMerge "Remove unused CONFIG_SECONDS."
Elliott Hughes [Fri, 30 Jan 2015 06:21:54 +0000 (06:21 +0000)]
Merge "Remove unused CONFIG_SECONDS."

9 years agoRemove unused CONFIG_SECONDS.
Elliott Hughes [Fri, 30 Jan 2015 05:47:37 +0000 (21:47 -0800)]
Remove unused CONFIG_SECONDS.

Bug: https://code.google.com/p/android/issues/detail?id=65951
Change-Id: I8ae7057c68e16618de6dd06cf052426c6cad8a3d

9 years agoBreak two incorrect transitive includes.
Elliott Hughes [Thu, 29 Jan 2015 05:02:34 +0000 (21:02 -0800)]
Break two incorrect transitive includes.

Change-Id: I95519caa5258cf5c6b8053f1c7e08ade2a824e49

9 years agoPut back inline definitions if using an old API.
Dan Albert [Thu, 29 Jan 2015 02:16:08 +0000 (18:16 -0800)]
Put back inline definitions if using an old API.

All these inlines were turned in to out of line definitions in L.
This brings us a step closer to being able to just use the current
bionic headers for the NDK, rather than having many old versions of
them.

Change-Id: Ie010bc727d78d3742abc577c70f6578db2e68625

9 years agoMerge "Add primitive CPPLINT.cfg."
Dan Albert [Thu, 29 Jan 2015 21:54:54 +0000 (21:54 +0000)]
Merge "Add primitive CPPLINT.cfg."

9 years agoMerge "Rewrite __cxa_guard.cpp with <stdatomic.h>."
Yabin Cui [Thu, 29 Jan 2015 20:22:24 +0000 (20:22 +0000)]
Merge "Rewrite __cxa_guard.cpp with <stdatomic.h>."

9 years agoAdd primitive CPPLINT.cfg.
Dan Albert [Thu, 29 Jan 2015 18:52:53 +0000 (10:52 -0800)]
Add primitive CPPLINT.cfg.

We'll add more things to this as we discover other warnings we don't
care about.

Change-Id: I408f688827cab0f74e055d8f1778069163663f0b

9 years agoRewrite __cxa_guard.cpp with <stdatomic.h>.
Yabin Cui [Thu, 29 Jan 2015 18:47:45 +0000 (10:47 -0800)]
Rewrite __cxa_guard.cpp with <stdatomic.h>.

Bug: 19180923
Change-Id: If4912d01db43c72ef12f4b04270ddb5d76d09462

9 years agoMerge "Add missing includes."
Elliott Hughes [Thu, 29 Jan 2015 03:23:35 +0000 (03:23 +0000)]
Merge "Add missing includes."

9 years agoAdd missing includes.
Elliott Hughes [Thu, 29 Jan 2015 02:02:33 +0000 (18:02 -0800)]
Add missing includes.

Change-Id: Ibf549266a19a67eb9158d341a69dddfb654be669

9 years agoMerge "Add --gtest-filter as synonym for --gtest_filter in bionic gtest main."
Yabin Cui [Thu, 29 Jan 2015 02:30:24 +0000 (02:30 +0000)]
Merge "Add --gtest-filter as synonym for --gtest_filter in bionic gtest main."

9 years agoMerge "Only one crashing thread should contact debuggerd."
Christopher Ferris [Thu, 29 Jan 2015 01:49:20 +0000 (01:49 +0000)]
Merge "Only one crashing thread should contact debuggerd."

9 years agoMerge "Modify MIPS64 stat structure to match a generic one in AOSP."
Elliott Hughes [Thu, 29 Jan 2015 01:31:58 +0000 (01:31 +0000)]
Merge "Modify MIPS64 stat structure to match a generic one in AOSP."

9 years agoOnly one crashing thread should contact debuggerd.
Christopher Ferris [Thu, 29 Jan 2015 00:13:56 +0000 (16:13 -0800)]
Only one crashing thread should contact debuggerd.

If two or more threads crash at the same time, only let one talk to
debuggerd. It's possible for a race to occur that two threads send
data to debuggerd, the second one will cause errors in debuggerd since
the process will die once debuggerd lets the crashing pid start again.

Bug: 19183955
Change-Id: I17dfce46102117ab4a870f7381bd526488d37fb5

9 years agoModify MIPS64 stat structure to match a generic one in AOSP.
Raghu Gandham [Thu, 15 Jan 2015 19:12:22 +0000 (11:12 -0800)]
Modify MIPS64 stat structure to match a generic one in AOSP.

The kernel version of the stat structure is used during the syscalls. After the syscall,
the kernel stat structure is converted to match the generic one. Eventually we would like
the generic stat structure and related syscalls be added to MIPS64 kernel, removing the
thunks added to AOSP.

Change-Id: I7764e80278c1cc8254754c3531ec2dda7544a8ec

9 years agoAdd --gtest-filter as synonym for --gtest_filter in bionic gtest main.
Yabin Cui [Wed, 28 Jan 2015 22:28:14 +0000 (14:28 -0800)]
Add --gtest-filter as synonym for --gtest_filter in bionic gtest main.

Bug: 19130480
Change-Id: I0d3df70ee8f692581cc4b9b742c5f347259fd0d2

9 years agoMerge "Switch pthread_once_t to stdatomic.h."
Yabin Cui [Wed, 28 Jan 2015 21:16:04 +0000 (21:16 +0000)]
Merge "Switch pthread_once_t to stdatomic.h."

9 years agoMerge "Fix mips64 build. Replace explicit cast with static_cast"
Dimitry Ivanov [Wed, 28 Jan 2015 17:34:51 +0000 (17:34 +0000)]
Merge "Fix mips64 build. Replace explicit cast with static_cast"

9 years agoFix mips64 build. Replace explicit cast with static_cast
Nikola Veljkovic [Wed, 28 Jan 2015 15:18:52 +0000 (16:18 +0100)]
Fix mips64 build. Replace explicit cast with static_cast

Change-Id: Ib08fbe8bb832884a3eb33904fe4d490759116cb2

9 years agoSwitch pthread_once_t to stdatomic.h.
Yabin Cui [Sat, 24 Jan 2015 02:21:46 +0000 (18:21 -0800)]
Switch pthread_once_t to stdatomic.h.

Bug: 17574610

Change-Id: I653f2aa4b5b38dbdaffe4a6c3deccfe6ad3b0e74

9 years agoMerge "Fix parse of gtest_filter in bionic gtest main."
Yabin Cui [Tue, 27 Jan 2015 22:00:35 +0000 (22:00 +0000)]
Merge "Fix parse of gtest_filter in bionic gtest main."

9 years agoMerge "Fix mips build."
Elliott Hughes [Tue, 27 Jan 2015 19:39:37 +0000 (19:39 +0000)]
Merge "Fix mips build."

9 years agoFix parse of gtest_filter in bionic gtest main.
Yabin Cui [Tue, 27 Jan 2015 19:22:46 +0000 (11:22 -0800)]
Fix parse of gtest_filter in bionic gtest main.

Bug: 19130330
Change-Id: Id6a60570a8aab6ae7259ff228b3801285b378f77

9 years agoFix mips build.
Elliott Hughes [Tue, 27 Jan 2015 19:09:27 +0000 (11:09 -0800)]
Fix mips build.

Move various mips-only things into the arch-mips directory. As soon as mips
writes assembler replacements, we can remove these.

Change-Id: Ia7308559bc361f5c8df3e1d456b381865e060b93

9 years agoMerge "Add a test for float registers across setjmp/logjmp."
Elliott Hughes [Tue, 27 Jan 2015 19:08:33 +0000 (19:08 +0000)]
Merge "Add a test for float registers across setjmp/logjmp."

9 years agoMerge "x86 has an assembler bcopy implementation."
Elliott Hughes [Tue, 27 Jan 2015 05:46:55 +0000 (05:46 +0000)]
Merge "x86 has an assembler bcopy implementation."

9 years agox86 has an assembler bcopy implementation.
Elliott Hughes [Tue, 27 Jan 2015 05:45:56 +0000 (21:45 -0800)]
x86 has an assembler bcopy implementation.

Change-Id: I4ed7af3c5b104f86550120401f773150c460f37b

9 years agoMerge "Rename "TIMEWARN" to "SLOW" in bionic gtest."
Yabin Cui [Tue, 27 Jan 2015 05:32:52 +0000 (05:32 +0000)]
Merge "Rename "TIMEWARN" to "SLOW" in bionic gtest."

9 years agoRename "TIMEWARN" to "SLOW" in bionic gtest.
Yabin Cui [Tue, 27 Jan 2015 01:19:37 +0000 (17:19 -0800)]
Rename "TIMEWARN" to "SLOW" in bionic gtest.

Bug: 19109188.
Change-Id: Idfe769ac652bf37642da24e4abb6061ca861d57e

9 years agoMerge "[Arm64] Fix overlapping fp fields in jmp_buf"
Elliott Hughes [Tue, 27 Jan 2015 04:56:19 +0000 (04:56 +0000)]
Merge "[Arm64] Fix overlapping fp fields in jmp_buf"

9 years agoAdd a test for float registers across setjmp/logjmp.
Elliott Hughes [Tue, 27 Jan 2015 04:52:34 +0000 (20:52 -0800)]
Add a test for float registers across setjmp/logjmp.

Change-Id: I17cc056b185755e0b91de096b5ceefee4f4e0b3a