Yabin Cui
4a2891d8c8
Better control of pthread keys used in bionic.
...
Change-Id: I1e1bc77c0e7879baead6c3417282ce549a1153b5
2015-03-04 16:53:23 -08:00
Yabin Cui
821653e65f
am dec9501a
: Merge "Add fortify compile test."
...
* commit 'dec9501af2ee4d7cec3a163310d42e8ea1b8c58f':
Add fortify compile test.
2015-03-04 23:55:21 +00:00
Yabin Cui
dec9501af2
Merge "Add fortify compile test."
2015-03-04 23:25:42 +00:00
Christopher Ferris
1edafd561a
am 86ac7341
: Merge "Add aarch64 instructions wherever possible"
...
* commit '86ac734142a4d0765ceb589e7dcc3af1a4f4a8dd':
Add aarch64 instructions wherever possible
2015-03-04 22:44:43 +00:00
Shu Zhang
c78fa26d47
libm: arm: add arm specific sqrt and sqrtf
...
Add arm specific optimized sqrt and sqrtf.
Change-Id: I8ea417fc98a800c8cf4f47a0c6668c51d927b1dc
2015-03-04 14:07:35 -08:00
Christopher Ferris
86ac734142
Merge "Add aarch64 instructions wherever possible"
2015-03-04 21:52:01 +00:00
Yabin Cui
20f2268d61
Add fortify compile test.
...
Two parts of tests are added:
1. Compile time warnings for gcc checking built-in functions.
2. Compile time errors for each errordecl() in bionic.
Bug: 19234260
Change-Id: Iec6e4a8070c36815574fe9e0af9595d6143a4757
2015-03-04 13:10:38 -08:00
Amaury Le Leyzour
32936c895d
Add aarch64 instructions wherever possible
...
fma, sqrt and various rounding functions have aarch64 instruction equivalent
Change-Id: I1284f31b9f78f914281e5563b8d44db8362b627d
2015-03-04 12:18:52 -08:00
Yabin Cui
c210e84f28
am e1edd301
: Merge "Refactor pthread_key.cpp to be lock-free."
...
* commit 'e1edd301d2a722e0a0687a7a3a87081c8cb956d3':
Refactor pthread_key.cpp to be lock-free.
2015-03-04 01:53:46 +00:00
Yabin Cui
e1edd301d2
Merge "Refactor pthread_key.cpp to be lock-free."
2015-03-04 01:49:20 +00:00
Yabin Cui
5e2bd719d7
Refactor pthread_key.cpp to be lock-free.
...
Change-Id: I20dfb9d3cdc40eed10ea12ac34f03caaa94f7a49
2015-03-03 15:46:53 -08:00
Yabin Cui
62b6d11b2d
am d5c2745c
: Merge "Lose bionic_atomic stuff."
...
* commit 'd5c2745ca8664b987d737e4a32922b6c9fe7c628':
Lose bionic_atomic stuff.
2015-03-03 03:00:42 +00:00
Yabin Cui
d5c2745ca8
Merge "Lose bionic_atomic stuff."
2015-03-03 02:56:19 +00:00
Mark Salyzyn
1f3ac62b44
am ceb9c182
: Merge "bionic: deprecate _PATH_MEM"
...
* commit 'ceb9c182dbb9752004a3d61d872fb3f0cc1c3f9c':
bionic: deprecate _PATH_MEM
2015-03-02 19:41:53 +00:00
Mark Salyzyn
ceb9c182db
Merge "bionic: deprecate _PATH_MEM"
2015-03-02 18:57:59 +00:00
Mark Salyzyn
c09268a3fe
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
2015-03-02 18:44:11 +00:00
Christopher Ferris
df14d8ef98
am 2ae7c1e3
: Merge "Fix fread returning bad data."
...
* commit '2ae7c1e336af3dd2901e90608be3adeb577659a7':
Fix fread returning bad data.
2015-02-28 18:36:18 +00:00
Christopher Ferris
2ae7c1e336
Merge "Fix fread returning bad data."
2015-02-28 18:31:01 +00:00
Christopher Ferris
cc9ca1051d
Fix fread returning bad data.
...
Bug: 19172514
Change-Id: I05016577858a02aca7d14e75e6ec28abc925037c
2015-02-27 18:22:45 -08:00
Christopher Ferris
d957bd08b0
am e6a33cef
: Merge "libm: arm: Add arm specific floor() optimization"
...
* commit 'e6a33cefe4b3759fb77d9e69356cb50a97ea7e54':
libm: arm: Add arm specific floor() optimization
2015-02-27 20:28:36 +00:00
Christopher Ferris
e6a33cefe4
Merge "libm: arm: Add arm specific floor() optimization"
2015-02-27 20:23:15 +00:00
Yabin Cui
09ee78ae01
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.
2015-02-27 18:36:08 +00:00
Yabin Cui
b220c4b609
Merge "Make bionic gtest main be compatible with gtest output format for cts test."
2015-02-27 18:29:48 +00:00
Yabin Cui
f6237470a3
Make bionic gtest main be compatible with gtest output format for cts test.
...
Bug: 17589740
Change-Id: Ifab521da379a33bf0a7bf11c21386f936f0d494c
2015-02-26 19:03:54 -08:00
Yabin Cui
ce751b3536
Lose bionic_atomic stuff.
...
Bug: 17177189
Change-Id: Ie1f5d7af359d31b14f58e53ec89c72111362d7ec
2015-02-26 13:45:06 -08:00
Christopher Ferris
e6c7e29482
am f8eec1e5
: Merge "Allow wildcards to match arg values."
...
* commit 'f8eec1e54fbfb7b0304b73cb9ce2de44760a672e':
Allow wildcards to match arg values.
2015-02-26 03:52:35 +00:00
Yabin Cui
00ba42b9f5
am 7355d29b
: Merge "Make getgrent deprecated."
...
* commit '7355d29bbd106bd4ab3f5be1b743fb73e8c3b4da':
Make getgrent deprecated.
2015-02-26 03:52:34 +00:00
Christopher Ferris
f8eec1e54f
Merge "Allow wildcards to match arg values."
2015-02-26 03:47:12 +00:00
Yabin Cui
7355d29bbd
Merge "Make getgrent deprecated."
2015-02-26 03:46:41 +00:00
Yabin Cui
b8b5a72f41
Make getgrent deprecated.
...
Bug: 19340053
Change-Id: Ie8b97f840d9e87555e6a3d591fc87bc08c2d6820
2015-02-25 19:05:37 -08:00
Yabin Cui
253fcfe70e
am 398ef152
: Merge "Move endpwent to ndk_cruft.cpp."
...
* commit '398ef152d50854fccb21086e30b5cc24641b3e2a':
Move endpwent to ndk_cruft.cpp.
2015-02-26 02:52:36 +00:00
Yabin Cui
fbff0fd516
am f1b4a5d5
: Merge "Make tempnam/mktemp deprecated."
...
* commit 'f1b4a5d510c693d7cffc76cade9ab049f7dfed07':
Make tempnam/mktemp deprecated.
2015-02-26 02:52:35 +00:00
Yabin Cui
398ef152d5
Merge "Move endpwent to ndk_cruft.cpp."
2015-02-26 02:23:08 +00:00
Yabin Cui
f1b4a5d510
Merge "Make tempnam/mktemp deprecated."
2015-02-26 02:17:17 +00:00
Yabin Cui
9b4f77f5cf
Make tempnam/mktemp deprecated.
...
Bug: 19340053
Change-Id: Ib02c65814ef97cd1758fd8142b73736cc8bc1700
2015-02-25 15:42:01 -08:00
Yabin Cui
52d7f1a94f
Move endpwent to ndk_cruft.cpp.
...
Bug: 19109159
Change-Id: I3683a247643006ea6d6bcf3845f57d1908d457d7
2015-02-25 14:58:08 -08:00
Christopher Ferris
339ac378ca
Allow wildcards to match arg values.
...
Change-Id: I38230b500bb8f8f69af0d7c740855a401cd12898
2015-02-25 14:56:32 -08:00
Yabin Cui
f5d4f322bb
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.
2015-02-25 21:10:42 +00:00
Yabin Cui
448a85968d
Merge "Switch system_properties.cpp from bionic atomic operations to stdatomic."
2015-02-25 21:04:56 +00:00
Yabin Cui
a1e4a4a3c6
am 8c41eae6
: Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."
...
* commit '8c41eae6fcdb6cad1f6c46ae01708ead6b734060':
Move getusershell/endusershell/setusershell to ndk_cruft.cpp.
2015-02-25 00:05:52 +00:00
Yabin Cui
8c41eae6fc
Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."
2015-02-25 00:00:51 +00:00
Yabin Cui
4600bdac70
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.
2015-02-24 23:48:02 +00:00
Yabin Cui
af3ba5c873
Merge "Make all output of child test go to parent process in gtest_main."
2015-02-24 23:40:31 +00:00
Yabin Cui
7fb680bfda
Move getusershell/endusershell/setusershell to ndk_cruft.cpp.
...
Bug: 19108648
Change-Id: I65134040345398dde612c4325d902db58f3bd2be
2015-02-24 14:46:59 -08:00
Yabin Cui
ea9c933f36
Make all output of child test go to parent process in gtest_main.
...
Change-Id: Iad460e89755051cdb99593cbf42c97d9a359f32b
2015-02-24 14:44:51 -08:00
Nick Kralevich
e93bc6bbe8
am d91ded81
: Merge "Fix "faccessat ignores flags""
...
* commit 'd91ded81376a10a1c89f7a5ae3c462ae3b24188e':
Fix "faccessat ignores flags"
2015-02-24 21:52:36 +00:00
Nick Kralevich
d91ded8137
Merge "Fix "faccessat ignores flags""
2015-02-24 21:49:09 +00:00
Nick Kralevich
35778253a5
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
2015-02-24 13:40:43 -08:00
Yabin Cui
b8ce474217
Switch system_properties.cpp from bionic atomic operations to stdatomic.
...
Bug: 17177189
Change-Id: I42e05ad1c490cc7a8040138151afc0ee72a9b63f
2015-02-24 10:41:53 -08:00
Elliott Hughes
4ec60a0178
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.
2015-02-24 05:59:52 +00:00