OSDN Git Service

android-x86/bionic.git
9 years agoam ef5cc0b8: am 1f3ac62b: am ceb9c182: Merge "bionic: deprecate _PATH_MEM"
Mark Salyzyn [Mon, 2 Mar 2015 22:45:45 +0000 (22:45 +0000)]
am ef5cc0b8: am 1f3ac62b: am ceb9c182: Merge "bionic: deprecate _PATH_MEM"

* commit 'ef5cc0b8d71ed74129b010550a35d0a3a97f913a':
  bionic: deprecate _PATH_MEM

9 years agoam 1f3ac62b: am ceb9c182: Merge "bionic: deprecate _PATH_MEM"
Mark Salyzyn [Mon, 2 Mar 2015 19:47:36 +0000 (19:47 +0000)]
am 1f3ac62b: am ceb9c182: Merge "bionic: deprecate _PATH_MEM"

* commit '1f3ac62b447f67fc60620bd3254761b1d73297ba':
  bionic: deprecate _PATH_MEM

9 years agoam ceb9c182: Merge "bionic: deprecate _PATH_MEM"
Mark Salyzyn [Mon, 2 Mar 2015 19:41:53 +0000 (19:41 +0000)]
am ceb9c182: Merge "bionic: deprecate _PATH_MEM"

* commit 'ceb9c182dbb9752004a3d61d872fb3f0cc1c3f9c':
  bionic: deprecate _PATH_MEM

9 years agoMerge "bionic: deprecate _PATH_MEM"
Mark Salyzyn [Mon, 2 Mar 2015 18:56:21 +0000 (18:56 +0000)]
Merge "bionic: deprecate _PATH_MEM"

9 years agobionic: deprecate _PATH_MEM
Mark Salyzyn [Mon, 2 Mar 2015 17:14:51 +0000 (09:14 -0800)]
bionic: deprecate _PATH_MEM

/dev/mem (and /dev/kmem) are not enabled in the kernels, and selinux
prevents access and makes it a rule compilation error to enable
access. No code uses the _PATH_MEM macro. Remove definition to
suppress future usage.

Bug: 19549480
Change-Id: Ie0fb0f53d43349f4fe227068e4bf8a768f620d60

9 years agoam 219ce296: am df14d8ef: am 2ae7c1e3: Merge "Fix fread returning bad data."
Christopher Ferris [Sat, 28 Feb 2015 18:47:26 +0000 (18:47 +0000)]
am 219ce296: am df14d8ef: am 2ae7c1e3: Merge "Fix fread returning bad data."

* commit '219ce2968b42ff4019d7eea2e8728505851ba475':
  Fix fread returning bad data.

9 years agoam df14d8ef: am 2ae7c1e3: Merge "Fix fread returning bad data."
Christopher Ferris [Sat, 28 Feb 2015 18:41:27 +0000 (18:41 +0000)]
am df14d8ef: am 2ae7c1e3: Merge "Fix fread returning bad data."

* commit 'df14d8ef9884d85987e9810ae44837b659e1f82a':
  Fix fread returning bad data.

9 years agoam 2ae7c1e3: Merge "Fix fread returning bad data."
Christopher Ferris [Sat, 28 Feb 2015 18:36:18 +0000 (18:36 +0000)]
am 2ae7c1e3: Merge "Fix fread returning bad data."

* commit '2ae7c1e336af3dd2901e90608be3adeb577659a7':
  Fix fread returning bad data.

9 years agoMerge "Fix fread returning bad data."
Christopher Ferris [Sat, 28 Feb 2015 18:31:00 +0000 (18:31 +0000)]
Merge "Fix fread returning bad data."

9 years agoFix fread returning bad data.
Christopher Ferris [Sat, 28 Feb 2015 02:22:45 +0000 (18:22 -0800)]
Fix fread returning bad data.

Bug: 19172514
Change-Id: I05016577858a02aca7d14e75e6ec28abc925037c

9 years agoam e30073f2: am d957bd08: am e6a33cef: Merge "libm: arm: Add arm specific floor(...
Christopher Ferris [Fri, 27 Feb 2015 20:46:53 +0000 (20:46 +0000)]
am e30073f2: am d957bd08: am e6a33cef: Merge "libm: arm: Add arm specific floor() optimization"

* commit 'e30073f2a54d4f3ca072c7d28ee5b0209c8532a8':
  libm: arm: Add arm specific floor() optimization

9 years agoam d957bd08: am e6a33cef: Merge "libm: arm: Add arm specific floor() optimization"
Christopher Ferris [Fri, 27 Feb 2015 20:40:46 +0000 (20:40 +0000)]
am d957bd08: am e6a33cef: Merge "libm: arm: Add arm specific floor() optimization"

* commit 'd957bd08b08685da987ebf609f87c3806b4455bc':
  libm: arm: Add arm specific floor() optimization

9 years agoam e6a33cef: Merge "libm: arm: Add arm specific floor() optimization"
Christopher Ferris [Fri, 27 Feb 2015 20:28:36 +0000 (20:28 +0000)]
am e6a33cef: Merge "libm: arm: Add arm specific floor() optimization"

* commit 'e6a33cefe4b3759fb77d9e69356cb50a97ea7e54':
  libm: arm: Add arm specific floor() optimization

9 years agoMerge "libm: arm: Add arm specific floor() optimization"
Christopher Ferris [Fri, 27 Feb 2015 20:23:15 +0000 (20:23 +0000)]
Merge "libm: arm: Add arm specific floor() optimization"

9 years agoam 0d282fc5: am 09ee78ae: am b220c4b6: Merge "Make bionic gtest main be compatible...
Yabin Cui [Fri, 27 Feb 2015 18:49:54 +0000 (18:49 +0000)]
am 0d282fc5: am 09ee78ae: am b220c4b6: Merge "Make bionic gtest main be compatible with gtest output format for cts test."

* commit '0d282fc57291cf392f6322e34769c50d815085e7':
  Make bionic gtest main be compatible with gtest output format for cts test.

9 years agoam 09ee78ae: am b220c4b6: Merge "Make bionic gtest main be compatible with gtest...
Yabin Cui [Fri, 27 Feb 2015 18:42:52 +0000 (18:42 +0000)]
am 09ee78ae: am b220c4b6: Merge "Make bionic gtest main be compatible with gtest output format for cts test."

* commit '09ee78ae010a1aa91ed5c12f8da80829837df944':
  Make bionic gtest main be compatible with gtest output format for cts test.

9 years agoam b220c4b6: Merge "Make bionic gtest main be compatible with gtest output format...
Yabin Cui [Fri, 27 Feb 2015 18:36:08 +0000 (18:36 +0000)]
am b220c4b6: Merge "Make bionic gtest main be compatible with gtest output format for cts test."

* commit 'b220c4b609270cc6b76c4635d91d1f851aa63e57':
  Make bionic gtest main be compatible with gtest output format for cts test.

9 years agoMerge "Make bionic gtest main be compatible with gtest output format for cts test."
Yabin Cui [Fri, 27 Feb 2015 18:29:47 +0000 (18:29 +0000)]
Merge "Make bionic gtest main be compatible with gtest output format for cts test."

9 years agoMake bionic gtest main be compatible with gtest output format for cts test.
Yabin Cui [Fri, 27 Feb 2015 03:03:54 +0000 (19:03 -0800)]
Make bionic gtest main be compatible with gtest output format for cts test.

Bug: 17589740
Change-Id: Ifab521da379a33bf0a7bf11c21386f936f0d494c

9 years agoam 21ddfa23: am e6c7e294: am f8eec1e5: Merge "Allow wildcards to match arg values."
Christopher Ferris [Thu, 26 Feb 2015 04:04:42 +0000 (04:04 +0000)]
am 21ddfa23: am e6c7e294: am f8eec1e5: Merge "Allow wildcards to match arg values."

* commit '21ddfa23f67cd0a9db7eff0c8a4ada5df1931f15':
  Allow wildcards to match arg values.

9 years agoam 8a661472: am 00ba42b9: am 7355d29b: Merge "Make getgrent deprecated."
Yabin Cui [Thu, 26 Feb 2015 04:04:41 +0000 (04:04 +0000)]
am 8a661472: am 00ba42b9: am 7355d29b: Merge "Make getgrent deprecated."

* commit '8a6614726802170a19e5e68543a06117596def06':
  Make getgrent deprecated.

9 years agoam e6c7e294: am f8eec1e5: Merge "Allow wildcards to match arg values."
Christopher Ferris [Thu, 26 Feb 2015 03:58:38 +0000 (03:58 +0000)]
am e6c7e294: am f8eec1e5: Merge "Allow wildcards to match arg values."

* commit 'e6c7e294820a3b6c3569decad57d29eac31254b3':
  Allow wildcards to match arg values.

9 years agoam 00ba42b9: am 7355d29b: Merge "Make getgrent deprecated."
Yabin Cui [Thu, 26 Feb 2015 03:58:37 +0000 (03:58 +0000)]
am 00ba42b9: am 7355d29b: Merge "Make getgrent deprecated."

* commit '00ba42b9f509baa706c93f648c8ad7c84c89d6d0':
  Make getgrent deprecated.

9 years agoam f8eec1e5: Merge "Allow wildcards to match arg values."
Christopher Ferris [Thu, 26 Feb 2015 03:52:35 +0000 (03:52 +0000)]
am f8eec1e5: Merge "Allow wildcards to match arg values."

* commit 'f8eec1e54fbfb7b0304b73cb9ce2de44760a672e':
  Allow wildcards to match arg values.

9 years agoam 7355d29b: Merge "Make getgrent deprecated."
Yabin Cui [Thu, 26 Feb 2015 03:52:34 +0000 (03:52 +0000)]
am 7355d29b: Merge "Make getgrent deprecated."

* commit '7355d29bbd106bd4ab3f5be1b743fb73e8c3b4da':
  Make getgrent deprecated.

9 years agoMerge "Allow wildcards to match arg values."
Christopher Ferris [Thu, 26 Feb 2015 03:47:12 +0000 (03:47 +0000)]
Merge "Allow wildcards to match arg values."

9 years agoMerge "Make getgrent deprecated."
Yabin Cui [Thu, 26 Feb 2015 03:46:40 +0000 (03:46 +0000)]
Merge "Make getgrent deprecated."

9 years agoam 0a2db6e2: am 253fcfe7: am 398ef152: Merge "Move endpwent to ndk_cruft.cpp."
Yabin Cui [Thu, 26 Feb 2015 03:06:26 +0000 (03:06 +0000)]
am 0a2db6e2: am 253fcfe7: am 398ef152: Merge "Move endpwent to ndk_cruft.cpp."

* commit '0a2db6e26f3a605df3d6c62e90b86b894be6f64b':
  Move endpwent to ndk_cruft.cpp.

9 years agoam f244b6d6: am fbff0fd5: am f1b4a5d5: Merge "Make tempnam/mktemp deprecated."
Yabin Cui [Thu, 26 Feb 2015 03:06:24 +0000 (03:06 +0000)]
am f244b6d6: am fbff0fd5: am f1b4a5d5: Merge "Make tempnam/mktemp deprecated."

* commit 'f244b6d6920bdc9e7d2b597b0ac790759b603f72':
  Make tempnam/mktemp deprecated.

9 years agoMake getgrent deprecated.
Yabin Cui [Thu, 26 Feb 2015 03:05:37 +0000 (19:05 -0800)]
Make getgrent deprecated.

Bug: 19340053
Change-Id: Ie8b97f840d9e87555e6a3d591fc87bc08c2d6820

9 years agoam 253fcfe7: am 398ef152: Merge "Move endpwent to ndk_cruft.cpp."
Yabin Cui [Thu, 26 Feb 2015 02:58:56 +0000 (02:58 +0000)]
am 253fcfe7: am 398ef152: Merge "Move endpwent to ndk_cruft.cpp."

* commit '253fcfe70e1bb87ca66e2886d90f6906e8d27f12':
  Move endpwent to ndk_cruft.cpp.

9 years agoam fbff0fd5: am f1b4a5d5: Merge "Make tempnam/mktemp deprecated."
Yabin Cui [Thu, 26 Feb 2015 02:58:50 +0000 (02:58 +0000)]
am fbff0fd5: am f1b4a5d5: Merge "Make tempnam/mktemp deprecated."

* commit 'fbff0fd516a5d6499b3417eb194b0631ae50094a':
  Make tempnam/mktemp deprecated.

9 years agoam 398ef152: Merge "Move endpwent to ndk_cruft.cpp."
Yabin Cui [Thu, 26 Feb 2015 02:52:36 +0000 (02:52 +0000)]
am 398ef152: Merge "Move endpwent to ndk_cruft.cpp."

* commit '398ef152d50854fccb21086e30b5cc24641b3e2a':
  Move endpwent to ndk_cruft.cpp.

9 years agoam f1b4a5d5: Merge "Make tempnam/mktemp deprecated."
Yabin Cui [Thu, 26 Feb 2015 02:52:35 +0000 (02:52 +0000)]
am f1b4a5d5: Merge "Make tempnam/mktemp deprecated."

* commit 'f1b4a5d510c693d7cffc76cade9ab049f7dfed07':
  Make tempnam/mktemp deprecated.

9 years agoMerge "Move endpwent to ndk_cruft.cpp."
Yabin Cui [Thu, 26 Feb 2015 02:23:07 +0000 (02:23 +0000)]
Merge "Move endpwent to ndk_cruft.cpp."

9 years agoMerge "Make tempnam/mktemp deprecated."
Yabin Cui [Thu, 26 Feb 2015 02:17:16 +0000 (02:17 +0000)]
Merge "Make tempnam/mktemp deprecated."

9 years agoMake tempnam/mktemp deprecated.
Yabin Cui [Tue, 24 Feb 2015 00:42:07 +0000 (16:42 -0800)]
Make tempnam/mktemp deprecated.

Bug: 19340053
Change-Id: Ib02c65814ef97cd1758fd8142b73736cc8bc1700

9 years agoMove endpwent to ndk_cruft.cpp.
Yabin Cui [Wed, 25 Feb 2015 22:58:08 +0000 (14:58 -0800)]
Move endpwent to ndk_cruft.cpp.

Bug: 19109159
Change-Id: I3683a247643006ea6d6bcf3845f57d1908d457d7

9 years agoAllow wildcards to match arg values.
Christopher Ferris [Sat, 21 Feb 2015 02:31:06 +0000 (18:31 -0800)]
Allow wildcards to match arg values.

Change-Id: I38230b500bb8f8f69af0d7c740855a401cd12898

9 years agoam 561d57a2: am f5d4f322: am 448a8596: Merge "Switch system_properties.cpp from bioni...
Yabin Cui [Wed, 25 Feb 2015 21:21:25 +0000 (21:21 +0000)]
am 561d57a2: am f5d4f322: am 448a8596: Merge "Switch system_properties.cpp from bionic atomic operations to stdatomic."

* commit '561d57a246179d7148781eea4659fa960e93df02':
  Switch system_properties.cpp from bionic atomic operations to stdatomic.

9 years agoam f5d4f322: am 448a8596: Merge "Switch system_properties.cpp from bionic atomic...
Yabin Cui [Wed, 25 Feb 2015 21:14:44 +0000 (21:14 +0000)]
am f5d4f322: am 448a8596: Merge "Switch system_properties.cpp from bionic atomic operations to stdatomic."

* commit 'f5d4f322bbea9e5a5a1ec4025a0289123c667e5f':
  Switch system_properties.cpp from bionic atomic operations to stdatomic.

9 years agoam 448a8596: Merge "Switch system_properties.cpp from bionic atomic operations to...
Yabin Cui [Wed, 25 Feb 2015 21:10:42 +0000 (21:10 +0000)]
am 448a8596: Merge "Switch system_properties.cpp from bionic atomic operations to stdatomic."

* commit '448a85968da1e4622e829bb48fd888a38f9f6c49':
  Switch system_properties.cpp from bionic atomic operations to stdatomic.

9 years agoMerge "Switch system_properties.cpp from bionic atomic operations to stdatomic."
Yabin Cui [Wed, 25 Feb 2015 21:04:56 +0000 (21:04 +0000)]
Merge "Switch system_properties.cpp from bionic atomic operations to stdatomic."

9 years agoam e4093959: am a1e4a4a3: am 8c41eae6: Merge "Move getusershell/endusershell/setusers...
Yabin Cui [Wed, 25 Feb 2015 17:04:56 +0000 (17:04 +0000)]
am e4093959: am a1e4a4a3: am 8c41eae6: Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."

* commit 'e4093959c06ee37f28461a460f553882eb010c4f':
  Move getusershell/endusershell/setusershell to ndk_cruft.cpp.

9 years agoam d16844ab: am 4600bdac: am af3ba5c8: Merge "Make all output of child test go to...
Yabin Cui [Wed, 25 Feb 2015 17:04:55 +0000 (17:04 +0000)]
am d16844ab: am 4600bdac: am af3ba5c8: Merge "Make all output of child test go to parent process in gtest_main."

* commit 'd16844abcea1cc50a64694367d6571c084c6a745':
  Make all output of child test go to parent process in gtest_main.

9 years agoam fccf68ac: am e93bc6bb: am d91ded81: Merge "Fix "faccessat ignores flags""
Nick Kralevich [Wed, 25 Feb 2015 17:04:53 +0000 (17:04 +0000)]
am fccf68ac: am e93bc6bb: am d91ded81: Merge "Fix "faccessat ignores flags""

* commit 'fccf68ace95348338e8b19afd6101581588a4f83':
  Fix "faccessat ignores flags"

9 years agoam a1e4a4a3: am 8c41eae6: Merge "Move getusershell/endusershell/setusershell to ndk_c...
Yabin Cui [Wed, 25 Feb 2015 16:52:39 +0000 (16:52 +0000)]
am a1e4a4a3: am 8c41eae6: Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."

* commit 'a1e4a4a3c68fc99958cc7a6e6fb7fed58feeaae8':
  Move getusershell/endusershell/setusershell to ndk_cruft.cpp.

9 years agoam 4600bdac: am af3ba5c8: Merge "Make all output of child test go to parent process...
Yabin Cui [Wed, 25 Feb 2015 16:52:35 +0000 (16:52 +0000)]
am 4600bdac: am af3ba5c8: Merge "Make all output of child test go to parent process in gtest_main."

* commit '4600bdac709969408ac446507d85881db55b0ca7':
  Make all output of child test go to parent process in gtest_main.

9 years agoam e93bc6bb: am d91ded81: Merge "Fix "faccessat ignores flags""
Nick Kralevich [Wed, 25 Feb 2015 16:52:22 +0000 (16:52 +0000)]
am e93bc6bb: am d91ded81: Merge "Fix "faccessat ignores flags""

* commit 'e93bc6bbe8ce180187e3914d0a7494cfe84f6255':
  Fix "faccessat ignores flags"

9 years agoam 8c41eae6: Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."
Yabin Cui [Wed, 25 Feb 2015 00:05:52 +0000 (00:05 +0000)]
am 8c41eae6: Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."

* commit '8c41eae6fcdb6cad1f6c46ae01708ead6b734060':
  Move getusershell/endusershell/setusershell to ndk_cruft.cpp.

9 years agoMerge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."
Yabin Cui [Wed, 25 Feb 2015 00:00:51 +0000 (00:00 +0000)]
Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."

9 years agoam af3ba5c8: Merge "Make all output of child test go to parent process in gtest_main."
Yabin Cui [Tue, 24 Feb 2015 23:48:02 +0000 (23:48 +0000)]
am af3ba5c8: Merge "Make all output of child test go to parent process in gtest_main."

* commit 'af3ba5c87319e19c10be6755b37af92521f702c2':
  Make all output of child test go to parent process in gtest_main.

9 years agoMerge "Make all output of child test go to parent process in gtest_main."
Yabin Cui [Tue, 24 Feb 2015 23:40:30 +0000 (23:40 +0000)]
Merge "Make all output of child test go to parent process in gtest_main."

9 years agoMove getusershell/endusershell/setusershell to ndk_cruft.cpp.
Yabin Cui [Tue, 24 Feb 2015 21:18:25 +0000 (13:18 -0800)]
Move getusershell/endusershell/setusershell to ndk_cruft.cpp.

Bug: 19108648
Change-Id: I65134040345398dde612c4325d902db58f3bd2be

9 years agoMake all output of child test go to parent process in gtest_main.
Yabin Cui [Tue, 24 Feb 2015 22:39:19 +0000 (14:39 -0800)]
Make all output of child test go to parent process in gtest_main.

Change-Id: Iad460e89755051cdb99593cbf42c97d9a359f32b

9 years agoam d91ded81: Merge "Fix "faccessat ignores flags""
Nick Kralevich [Tue, 24 Feb 2015 21:52:36 +0000 (21:52 +0000)]
am d91ded81: Merge "Fix "faccessat ignores flags""

* commit 'd91ded81376a10a1c89f7a5ae3c462ae3b24188e':
  Fix "faccessat ignores flags"

9 years agoMerge "Fix "faccessat ignores flags""
Nick Kralevich [Tue, 24 Feb 2015 21:49:09 +0000 (21:49 +0000)]
Merge "Fix "faccessat ignores flags""

9 years agoFix "faccessat ignores flags"
Nick Kralevich [Tue, 24 Feb 2015 21:40:43 +0000 (13:40 -0800)]
Fix "faccessat ignores flags"

The kernel system call faccessat() does not have any flags arguments,
so passing flags to the kernel is currently ignored.

Fix the kernel system call so that no flags argument is passed in.

Ensure that we don't support AT_SYMLINK_NOFOLLOW. This non-POSIX
(http://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html)
flag is a glibc extension, and has non-intuitive, error prone behavior.

For example, consider the following code:

  symlink("foo.is.dangling", "foo");
  if (faccessat(AT_FDCWD, "foo", R_OK, AT_SYMLINK_NOFOLLOW) == 0) {
    int fd = openat(AT_FDCWD, "foo", O_RDONLY | O_NOFOLLOW);
  }

The faccessat() call in glibc will return true, but an attempt to
open the dangling symlink will end up failing. GLIBC documents this
as returning the access mode of the symlink itself, which will
always return true for any symlink on Linux.

Some further discussions of this are at:

  * http://lists.landley.net/pipermail/toybox-landley.net/2014-September/003617.html
  * http://permalink.gmane.org/gmane.linux.lib.musl.general/6952

AT_SYMLINK_NOFOLLOW seems broken by design. I suspect this is why this
function was never added to POSIX. (note that "access" is pretty much
broken by design too, since it introduces a race condition between
check and action). We shouldn't support this until it's clearly
documented by POSIX or we can have it produce intuitive results.

Don't support AT_EACCESS for now. Implementing it is complicated, and
pretty much useless on Android, since we don't have setuid binaries.
See http://git.musl-libc.org/cgit/musl/commit/?id=0a05eace163cee9b08571d2ff9d90f5e82d9c228
for how an implementation might look.

Bug: 18867827
Change-Id: I25b86c5020f3152ffa3ac3047f6c4152908d0e04

9 years agoSwitch system_properties.cpp from bionic atomic operations to stdatomic.
Yabin Cui [Wed, 11 Feb 2015 05:35:56 +0000 (21:35 -0800)]
Switch system_properties.cpp from bionic atomic operations to stdatomic.

Bug: 17177189
Change-Id: I42e05ad1c490cc7a8040138151afc0ee72a9b63f

9 years agoam 549aab61: am 4ec60a01: am 2aef607b: Merge "Fix dup2 in the case where the two...
Elliott Hughes [Tue, 24 Feb 2015 06:06:43 +0000 (06:06 +0000)]
am 549aab61: am 4ec60a01: am 2aef607b: Merge "Fix dup2 in the case where the two fds are equal."

* commit '549aab610a36b696a4586e33c4b709a29a668c1a':
  Fix dup2 in the case where the two fds are equal.

9 years agoam 4ec60a01: am 2aef607b: Merge "Fix dup2 in the case where the two fds are equal."
Elliott Hughes [Tue, 24 Feb 2015 06:03:02 +0000 (06:03 +0000)]
am 4ec60a01: am 2aef607b: Merge "Fix dup2 in the case where the two fds are equal."

* commit '4ec60a017859b39d490cfeb089ed30da09863def':
  Fix dup2 in the case where the two fds are equal.

9 years agoam 2aef607b: Merge "Fix dup2 in the case where the two fds are equal."
Elliott Hughes [Tue, 24 Feb 2015 05:59:52 +0000 (05:59 +0000)]
am 2aef607b: Merge "Fix dup2 in the case where the two fds are equal."

* commit '2aef607b25c463baed5ae70d14212e24ea7bcf2b':
  Fix dup2 in the case where the two fds are equal.

9 years agoMerge "Fix dup2 in the case where the two fds are equal."
Elliott Hughes [Tue, 24 Feb 2015 05:55:37 +0000 (05:55 +0000)]
Merge "Fix dup2 in the case where the two fds are equal."

9 years agoFix dup2 in the case where the two fds are equal.
Elliott Hughes [Tue, 24 Feb 2015 02:02:29 +0000 (18:02 -0800)]
Fix dup2 in the case where the two fds are equal.

dup3's behavior differs from dup2 in this case, so we need to paper
over that in the C library.

Change-Id: I313cd6f226db5e237f61866f324c5ecdd12bf762

9 years agoam aced654f: am 491c09e0: am 393bdb15: Merge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."
Elliott Hughes [Tue, 24 Feb 2015 04:54:26 +0000 (04:54 +0000)]
am aced654f: am 491c09e0: am 393bdb15: Merge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."

* commit 'aced654f583682074db54b10706511453a7521da':
  Add RLIM_SAVED_CUR and RLIM_SAVED_MAX.

9 years agoam 491c09e0: am 393bdb15: Merge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."
Elliott Hughes [Mon, 23 Feb 2015 22:52:54 +0000 (22:52 +0000)]
am 491c09e0: am 393bdb15: Merge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."

* commit '491c09e0d5921edd57da2efb0c8ed4f32df93fe2':
  Add RLIM_SAVED_CUR and RLIM_SAVED_MAX.

9 years agoam 393bdb15: Merge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."
Elliott Hughes [Mon, 23 Feb 2015 22:45:14 +0000 (22:45 +0000)]
am 393bdb15: Merge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."

* commit '393bdb156d5024a03f03425a977d0518c84dbb98':
  Add RLIM_SAVED_CUR and RLIM_SAVED_MAX.

9 years agoMerge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."
Elliott Hughes [Mon, 23 Feb 2015 22:36:06 +0000 (22:36 +0000)]
Merge "Add RLIM_SAVED_CUR and RLIM_SAVED_MAX."

9 years agoAdd RLIM_SAVED_CUR and RLIM_SAVED_MAX.
Elliott Hughes [Mon, 23 Feb 2015 21:41:40 +0000 (13:41 -0800)]
Add RLIM_SAVED_CUR and RLIM_SAVED_MAX.

Change-Id: Ia6be76460bfcf852832325c5f36cb272f49a4b87

9 years agoam c0e7f55d: am 07e218a4: am 3d83b189: Merge "[MIPS64] Fix mips64 build."
Elliott Hughes [Mon, 23 Feb 2015 16:19:21 +0000 (16:19 +0000)]
am c0e7f55d: am 07e218a4: am 3d83b189: Merge "[MIPS64] Fix mips64 build."

* commit 'c0e7f55d9b89c7d80083842223c941c413bc3942':
  [MIPS64] Fix mips64 build.

9 years agoam 07e218a4: am 3d83b189: Merge "[MIPS64] Fix mips64 build."
Elliott Hughes [Mon, 23 Feb 2015 16:12:38 +0000 (16:12 +0000)]
am 07e218a4: am 3d83b189: Merge "[MIPS64] Fix mips64 build."

* commit '07e218a484d8a1ac71c3b9317e86f5ba39aae919':
  [MIPS64] Fix mips64 build.

9 years agoam 3d83b189: Merge "[MIPS64] Fix mips64 build."
Elliott Hughes [Mon, 23 Feb 2015 16:09:17 +0000 (16:09 +0000)]
am 3d83b189: Merge "[MIPS64] Fix mips64 build."

* commit '3d83b18970f32467596830845793b18a858f59e6':
  [MIPS64] Fix mips64 build.

9 years agoMerge "[MIPS64] Fix mips64 build."
Elliott Hughes [Mon, 23 Feb 2015 16:04:20 +0000 (16:04 +0000)]
Merge "[MIPS64] Fix mips64 build."

9 years ago[MIPS64] Fix mips64 build.
Nikola Veljkovic [Mon, 23 Feb 2015 15:14:56 +0000 (16:14 +0100)]
[MIPS64] Fix mips64 build.

Build was broken by:
https://android-review.googlesource.com/133834

Use <unistd.h> to get syscall().
Remove <asm/unistd.h>, it gets included through <sys/syscall.h>.

Change-Id: Id762f6dea5f9538c19b79cdd46deda978efd50fe

9 years agoam 973ceef6: am 4602d8c7: am 04bbef37: Merge "Fix 64-bit benchmark build"
Greg Hackmann [Fri, 20 Feb 2015 19:30:41 +0000 (19:30 +0000)]
am 973ceef6: am 4602d8c7: am 04bbef37: Merge "Fix 64-bit benchmark build"

* commit '973ceef6869a7dad02195389547bf6177bb6cb34':
  Fix 64-bit benchmark build

9 years agoam 4602d8c7: am 04bbef37: Merge "Fix 64-bit benchmark build"
Greg Hackmann [Fri, 20 Feb 2015 19:27:13 +0000 (19:27 +0000)]
am 4602d8c7: am 04bbef37: Merge "Fix 64-bit benchmark build"

* commit '4602d8c7621ffd87e32f53c8f7e8ac5453a404ca':
  Fix 64-bit benchmark build

9 years agoam 04bbef37: Merge "Fix 64-bit benchmark build"
Greg Hackmann [Fri, 20 Feb 2015 19:21:19 +0000 (19:21 +0000)]
am 04bbef37: Merge "Fix 64-bit benchmark build"

* commit '04bbef377b9941bf6d67d9c515b6640a314fb032':
  Fix 64-bit benchmark build

9 years agoMerge "Fix 64-bit benchmark build"
Greg Hackmann [Fri, 20 Feb 2015 19:16:48 +0000 (19:16 +0000)]
Merge "Fix 64-bit benchmark build"

9 years agoFix 64-bit benchmark build
Greg Hackmann [Fri, 20 Feb 2015 19:00:14 +0000 (11:00 -0800)]
Fix 64-bit benchmark build

The * flag to printf() wants an int instead of size_t, and these are
distinct types on 64-bit.  To accomodate this, make the name column
width helpers return int.

In theory this truncates things, but in practice this only matters if
you have a benchmark with more than INT_MAX characters in its name (in
which case you have bigger problems).

Change-Id: I3338948c25a3a8d84f1ead2f5b457c05da8a01cf
Signed-off-by: Greg Hackmann <ghackmann@google.com>
9 years agoam 5bf236e9: am 6421f8f5: am c39eef71: Merge "valgrind can\'t find syscall because...
Elliott Hughes [Fri, 20 Feb 2015 17:15:16 +0000 (17:15 +0000)]
am 5bf236e9: am 6421f8f5: am c39eef71: Merge "valgrind can\'t find syscall because we didn\'t put it in <unistd.h>."

* commit '5bf236e95f75de0169abbb22fc083c767ec681a6':
  valgrind can't find syscall because we didn't put it in <unistd.h>.

9 years agoam 6421f8f5: am c39eef71: Merge "valgrind can\'t find syscall because we didn\'t...
Elliott Hughes [Fri, 20 Feb 2015 17:08:47 +0000 (17:08 +0000)]
am 6421f8f5: am c39eef71: Merge "valgrind can\'t find syscall because we didn\'t put it in <unistd.h>."

* commit '6421f8f5b21357b3f956f4b20c3622f96863a219':
  valgrind can't find syscall because we didn't put it in <unistd.h>.

9 years agoam c39eef71: Merge "valgrind can\'t find syscall because we didn\'t put it in <unistd...
Elliott Hughes [Fri, 20 Feb 2015 17:02:25 +0000 (17:02 +0000)]
am c39eef71: Merge "valgrind can\'t find syscall because we didn\'t put it in <unistd.h>."

* commit 'c39eef71a7f66b69e2216a51d0e7fbc1796d0696':
  valgrind can't find syscall because we didn't put it in <unistd.h>.

9 years agoMerge "valgrind can't find syscall because we didn't put it in <unistd.h>."
Elliott Hughes [Fri, 20 Feb 2015 16:56:57 +0000 (16:56 +0000)]
Merge "valgrind can't find syscall because we didn't put it in <unistd.h>."

9 years agovalgrind can't find syscall because we didn't put it in <unistd.h>.
Elliott Hughes [Fri, 20 Feb 2015 06:49:44 +0000 (22:49 -0800)]
valgrind can't find syscall because we didn't put it in <unistd.h>.

Change-Id: I1e47291d4476bd2816138a8cf58f29d4986d39e3

9 years agoam e84dff9a: am 479070c5: am 324313a9: Merge "Refactor the benchmark code."
Christopher Ferris [Fri, 20 Feb 2015 01:10:48 +0000 (01:10 +0000)]
am e84dff9a: am 479070c5: am 324313a9: Merge "Refactor the benchmark code."

* commit 'e84dff9a1f1d583c428e137cf0120fdd4ce315ce':
  Refactor the benchmark code.

9 years agoam 479070c5: am 324313a9: Merge "Refactor the benchmark code."
Christopher Ferris [Fri, 20 Feb 2015 01:03:22 +0000 (01:03 +0000)]
am 479070c5: am 324313a9: Merge "Refactor the benchmark code."

* commit '479070c51e34f9f9f809df4daa8184e5b2947f14':
  Refactor the benchmark code.

9 years agoam 324313a9: Merge "Refactor the benchmark code."
Christopher Ferris [Fri, 20 Feb 2015 00:59:18 +0000 (00:59 +0000)]
am 324313a9: Merge "Refactor the benchmark code."

* commit '324313a9e58c0e8d2546d124d8fcf04306a114f5':
  Refactor the benchmark code.

9 years agoMerge "Refactor the benchmark code."
Christopher Ferris [Fri, 20 Feb 2015 00:53:24 +0000 (00:53 +0000)]
Merge "Refactor the benchmark code."

9 years agoam f5700e1f: am a6395dda: Merge commit \'9d7f68ebfd79b1ce54dc56bceb7346f34615e5a1...
Bill Yi [Fri, 20 Feb 2015 00:26:52 +0000 (00:26 +0000)]
am f5700e1f: am a6395dda: Merge commit \'9d7f68ebfd79b1ce54dc56bceb7346f34615e5a1\' into HEAD

* commit 'f5700e1fd4eb70f3458b3bd508a9bf945561d22a':

9 years agoam a6395dda: Merge commit \'9d7f68ebfd79b1ce54dc56bceb7346f34615e5a1\' into HEAD
Bill Yi [Fri, 20 Feb 2015 00:22:45 +0000 (00:22 +0000)]
am a6395dda: Merge commit \'9d7f68ebfd79b1ce54dc56bceb7346f34615e5a1\' into HEAD

* commit 'a6395dda54057170fc66faf00410e983202aa7e0':

9 years agoRefactor the benchmark code.
Christopher Ferris [Wed, 18 Feb 2015 03:58:53 +0000 (19:58 -0800)]
Refactor the benchmark code.

Changes:
- Modify the benchmarks to derive from a single Benchmark object.
- Rewrite the main iteration code. This includes changing the iteration
  code to use the actual total time calculated by the benchmark as a basis
  for determining whether there are enough iterations instead of using
  the time it takes to run the benchmark.
- Allow benchmarks to take no argument, int, or double.
- Fix the PrettyInt printer for negative integers.
- Modify the max column width name to include the whole name including
  the arg part.
- Reformat property_benchmark.cpp in line with the rest of the code.
- Modify a few of the math benchmarks to take an argument instead of
  separate benchmarks for the same function with different args.
- Create a vector of regex_t structs to represent the args all at
  once instead of when running each benchmark.

This change is in preparation for adding new math based benchmarks.

Tested by running on a nexus flo running at max using the new code
and the old code and comparing. All of the numbers are similar, but
some of the iterations are different due to the slightly different
algorithm used.

Change-Id: I57ad1f3ff083282b9ffeb72e687cab369ce3523a

9 years agoam 4379016a: Revert "Modify test to avoid race condition."
Christopher Ferris [Thu, 19 Feb 2015 22:36:17 +0000 (22:36 +0000)]
am 4379016a: Revert "Modify test to avoid race condition."

* commit '4379016a20131740e25b33b2b09a2caef0aa62bd':
  Revert "Modify test to avoid race condition."

9 years agoMerge commit '9d7f68ebfd79b1ce54dc56bceb7346f34615e5a1' into HEAD
Bill Yi [Thu, 19 Feb 2015 22:30:25 +0000 (14:30 -0800)]
Merge commit '9d7f68ebfd79b1ce54dc56bceb7346f34615e5a1' into HEAD

9 years agoRevert "Modify test to avoid race condition."
Christopher Ferris [Thu, 19 Feb 2015 21:35:16 +0000 (21:35 +0000)]
Revert "Modify test to avoid race condition."

This reverts commit 3da136aa47e2d1608b98abb2580f024b36f92831.

This change is not needed any where but lmp mr1.

Change-Id: I3f38e2e8e418959a487bc0c4148d3238743e4626

9 years agoam 4dc261b1: am d071b814: am 97484d3a: Merge "Add GNU extensions mempcpy and wmemcpy."
Elliott Hughes [Thu, 19 Feb 2015 20:27:25 +0000 (20:27 +0000)]
am 4dc261b1: am d071b814: am 97484d3a: Merge "Add GNU extensions mempcpy and wmemcpy."

* commit '4dc261b13c351edf26efd18aca448aa98f925d41':
  Add GNU extensions mempcpy and wmemcpy.

9 years agoam c2c319b2: am 43379c9c: am 3e1b5f46: Merge "Parameterize use of clang in libc_ndk."
Dan Albert [Thu, 19 Feb 2015 20:26:35 +0000 (20:26 +0000)]
am c2c319b2: am 43379c9c: am 3e1b5f46: Merge "Parameterize use of clang in libc_ndk."

* commit 'c2c319b2cb5dc3a7928121ecdd4312331dfb0496':
  Parameterize use of clang in libc_ndk.

9 years agoam 9ccce5d7: am 3da136aa: Modify test to avoid race condition.
Christopher Ferris [Thu, 19 Feb 2015 20:26:26 +0000 (20:26 +0000)]
am 9ccce5d7: am 3da136aa: Modify test to avoid race condition.

* commit '9ccce5d7efde606914ec0b88fa50785b21ea672b':
  Modify test to avoid race condition.

9 years agoam 0f13eac9: am 1cb009fb: am d3fa31a5: Merge "[MIPS] Fix setjmp signals"
Elliott Hughes [Thu, 19 Feb 2015 17:36:33 +0000 (17:36 +0000)]
am 0f13eac9: am 1cb009fb: am d3fa31a5: Merge "[MIPS] Fix setjmp signals"

* commit '0f13eac957c71e827e282fdd69de2dabeba28780':
  [MIPS] Fix setjmp signals

9 years agoam d071b814: am 97484d3a: Merge "Add GNU extensions mempcpy and wmemcpy."
Elliott Hughes [Thu, 19 Feb 2015 16:01:31 +0000 (16:01 +0000)]
am d071b814: am 97484d3a: Merge "Add GNU extensions mempcpy and wmemcpy."

* commit 'd071b814ac5674ca032c05f369b2606cf3520332':
  Add GNU extensions mempcpy and wmemcpy.

9 years agoam 97484d3a: Merge "Add GNU extensions mempcpy and wmemcpy."
Elliott Hughes [Thu, 19 Feb 2015 15:55:12 +0000 (15:55 +0000)]
am 97484d3a: Merge "Add GNU extensions mempcpy and wmemcpy."

* commit '97484d3a9d0d822aeaaa1547aeb76d7669076082':
  Add GNU extensions mempcpy and wmemcpy.