Dmitriy Ivanov
cfacfcc398
am 6b1230b5: Merge "Mips: Reuse atexit.h from libc/arch-common"
...
* commit '6b1230b57649309050d21929e02d0ccab87ff36b':
Mips: Reuse atexit.h from libc/arch-common
2014-11-21 21:20:57 +00:00
Dmitriy Ivanov
6b1230b576
Merge "Mips: Reuse atexit.h from libc/arch-common"
2014-11-21 21:17:19 +00:00
Dmitriy Ivanov
c619603a31
Mips: Reuse atexit.h from libc/arch-common
...
Change-Id: Ica1670e6d3d1b6b0c64df93720efa65586e67727
2014-11-21 13:07:36 -08:00
Dan Albert
a77b8529eb
am 66ca8249: Merge "Revert "<sched.h> should offer both __sched_priority and sched_priority.""
...
* commit '66ca82495cb24545897bb4141f55afd2f17775b7':
Revert "<sched.h> should offer both __sched_priority and sched_priority."
2014-11-21 20:19:48 +00:00
Dan Albert
66ca82495c
Merge "Revert "<sched.h> should offer both __sched_priority and sched_priority.""
2014-11-21 20:15:55 +00:00
Dan Albert
75ef63d6cf
Move some pthread functions to signal.h.
...
POSIX specifies that pthread_kill(3) and pthread_sigmask(3) are
supposed to live in signal.h rather than pthread.h.
Since signal.h now needs pthread_t and pthread_attr_t, I've moved
those defintions into include/machine/pthread_types.h to keep the
namespace clean. I also sorted some includes. The combination of these
two things seems to have exploded into a cascade of missing includes,
so this patch also cleans up all those.
Change-Id: Icfa92a39432fe83f542a797e5a113289d7e4ad0c
2014-11-21 10:26:09 -08:00
Dan Albert
f664034887
Revert "<sched.h> should offer both __sched_priority and sched_priority."
...
This was only ever added to keep strace compiling, but strace has
since (actually, prior) fixed their source to use the less ugly name,
so we don't need this anymore (good riddance, #define!).
This reverts commit bbb34f9536db8234b0b43bd5333256fa4accc50e.
2014-11-21 10:24:40 -08:00
Dmitriy Ivanov
c07f7ee70d
am a847073a: Merge "Rename test_forked -> test_isolated"
...
* commit 'a847073a05295cc140fc79c9d433961442a6cae4':
Rename test_forked -> test_isolated
2014-11-21 16:07:11 +00:00
Dmitriy Ivanov
a847073a05
Merge "Rename test_forked -> test_isolated"
2014-11-21 16:02:43 +00:00
Dmitriy Ivanov
0864d8bc47
Rename test_forked -> test_isolated
...
Change-Id: Ie72627e986c159832cbd3635d8ff5b1af3d5b1eb
2014-11-20 22:53:59 -08:00
Dmitriy Ivanov
4b0e0fa753
am 8b4b8273: Merge "Add test_forked() option"
...
* commit '8b4b82733877928da429e47d9a9bb73317517b2e':
Add test_forked() option
2014-11-21 01:27:14 +00:00
Dmitriy Ivanov
8b4b827338
Merge "Add test_forked() option"
2014-11-21 01:21:16 +00:00
Dmitriy Ivanov
00e37818a7
Add test_forked() option
...
Executing test via test_forked() allows us to
avoid undesired global state changes in tests like
atexit, dlopen(.., RTLD_NODELETE) and similar.
Change-Id: I118cdf009269ab5dd7b117c9b61dafa47de2a011
2014-11-20 17:11:06 -08:00
Elliott Hughes
4e14c9b81f
am 770198d3: Merge "Make the ftw(3) tests a bit more thorough."
...
* commit '770198d3f707d5eccd6796f311015903aec31b26':
Make the ftw(3) tests a bit more thorough.
2014-11-20 00:14:39 +00:00
Elliott Hughes
770198d3f7
Merge "Make the ftw(3) tests a bit more thorough."
2014-11-20 00:09:32 +00:00
Elliott Hughes
4ed111efe3
am 5313c3ff: Merge "Fix flockfile(3) and friends for stdin/stdout/stderr too."
...
* commit '5313c3ff89db33dc0af3fabfe142a7219adce0aa':
Fix flockfile(3) and friends for stdin/stdout/stderr too.
2014-11-19 23:51:22 +00:00
Elliott Hughes
5313c3ff89
Merge "Fix flockfile(3) and friends for stdin/stdout/stderr too."
2014-11-19 23:48:19 +00:00
Elliott Hughes
63bd43bbdc
Make the ftw(3) tests a bit more thorough.
...
These also test much of fts(3).
Change-Id: Ia9245d6acbbd071191563ab1b91a400044104028
2014-11-19 15:47:53 -08:00
Elliott Hughes
c48c3e4bb3
Fix flockfile(3) and friends for stdin/stdout/stderr too.
...
stdin/stdout/stderr are special; their mutexes are initialized by
__sinit. There's no unit test for this, because __sinit has already
been called by the time the first unit test runs, but you could
reproduce this failure with a trivial main() that calls flockfile
or ftrylockfile on one of the standard streams before otherwise
using stdio.
Bug: 18208568
Change-Id: I28d232cf05a9f198a2bed61854d8047b23d2091d
2014-11-19 15:16:51 -08:00
Dmitriy Ivanov
d3dcb7830b
am 6b48b20a: Merge "Yet another relocation test"
...
* commit '6b48b20a1e613dcb41704deb266142a7cc45588c':
Yet another relocation test
2014-11-19 19:40:48 +00:00
Dmitriy Ivanov
6b48b20a1e
Merge "Yet another relocation test"
2014-11-19 19:35:59 +00:00
Dmitriy Ivanov
7699d13a74
Yet another relocation test
...
This time we check if a -> b -> c function in 'a' relocates against
implementation in 'c'.
Change-Id: I528180c3efd346bd447ea0237e5a8a0ac3cc031f
2014-11-19 10:39:05 -08:00
David 'Digit' Turner
a2f6e783cd
am c9278b8a: Merge "libc: Move <sgidefs.h> to libc/arch-mips/"
...
* commit 'c9278b8a17e9a0a4e85c377105f500a7c1f41535':
libc: Move <sgidefs.h> to libc/arch-mips/
2014-11-19 14:53:45 +00:00
David 'Digit' Turner
c9278b8a17
Merge "libc: Move <sgidefs.h> to libc/arch-mips/"
2014-11-19 14:49:52 +00:00
Yabin Cui
9014065b98
am 649f78df: Merge "fix shared gid support in getpwnam/getgrnam"
...
* commit '649f78df79bc45a46de9f3c391f395d5ab4fe73a':
fix shared gid support in getpwnam/getgrnam
2014-11-19 04:28:31 +00:00
Yabin Cui
649f78df79
Merge "fix shared gid support in getpwnam/getgrnam"
2014-11-19 04:25:24 +00:00
Yabin Cui
a04c79b9d3
fix shared gid support in getpwnam/getgrnam
...
Bug: 18374693
Change-Id: I5353403cbbead6f6abac87bee2cf53a60dba408c
2014-11-18 19:58:04 -08:00
Dmitriy Ivanov
5266383620
am 27aa9c5b: Merge "Fix jump to unmapped memory on atexit"
...
* commit '27aa9c5b50cc3e979fc67c1bf5296dfd725c8540':
Fix jump to unmapped memory on atexit
2014-11-18 21:28:24 +00:00
Dmitriy Ivanov
27aa9c5b50
Merge "Fix jump to unmapped memory on atexit"
2014-11-18 21:25:37 +00:00
Dmitriy Ivanov
a2547055f2
Fix jump to unmapped memory on atexit
...
Split d-tor calls and soinfo_free to 2 separate steps
Bug: 18338888
Change-Id: Idbcb7242ade16fa18cba7fe30505ebd8d6023622
2014-11-18 13:16:27 -08:00
David 'Digit' Turner
6e50cb4544
libc: Move <sgidefs.h> to libc/arch-mips/
...
This is a MIPS-only header, and should not be part of the common
headers. See http://b.android.com/79841 for context.
Change-Id: I610bc3ff626b57e7854dad15a4a2f67e1e5ded75
2014-11-18 20:13:10 +01:00
Elliott Hughes
cbdc7e6883
am 8eda0a6d: Merge "libc: Fix mktime returns an uncorrect time in empty TZ case"
...
* commit '8eda0a6d69fda865b576bc18311a3d79c84b42a1':
libc: Fix mktime returns an uncorrect time in empty TZ case
2014-11-17 23:18:39 +00:00
Elliott Hughes
8eda0a6d69
Merge "libc: Fix mktime returns an uncorrect time in empty TZ case"
2014-11-17 23:14:58 +00:00
Dmitriy Ivanov
78d809fd4b
am ee4c8feb: Merge "bionic/test: migrate sysconf tests from system/extras to bionic/tests"
...
* commit 'ee4c8febb7bd1f5492486cc11980f925425b02ec':
bionic/test: migrate sysconf tests from system/extras to bionic/tests
2014-11-17 18:48:23 +00:00
Dmitriy Ivanov
ee4c8febb7
Merge "bionic/test: migrate sysconf tests from system/extras to bionic/tests"
2014-11-17 18:43:32 +00:00
Elliott Hughes
18aa454f2f
am f2c88209: Merge "Add getaddrinfo(3) tests for NULL arguments."
...
* commit 'f2c882095b5747cd7f3158428208580a7ff72ed6':
Add getaddrinfo(3) tests for NULL arguments.
2014-11-17 18:31:53 +00:00
Elliott Hughes
c0aba7c5ad
am 35f8910e: Merge "Remove remaining bionic support for TARGET_CPU_SMP being false."
...
* commit '35f8910e4cdf3f7d0b877394524c7dd719084187':
Remove remaining bionic support for TARGET_CPU_SMP being false.
2014-11-17 18:31:51 +00:00
Elliott Hughes
f2c882095b
Merge "Add getaddrinfo(3) tests for NULL arguments."
2014-11-17 18:26:46 +00:00
Elliott Hughes
35f8910e4c
Merge "Remove remaining bionic support for TARGET_CPU_SMP being false."
2014-11-17 18:24:22 +00:00
Elliott Hughes
bfbf7a4300
Remove remaining bionic support for TARGET_CPU_SMP being false.
...
Change-Id: I02a0a1c0ae55ccb5c45d17fb99a09c374d71def4
2014-11-17 10:06:20 -08:00
Elliott Hughes
32fea147ea
Add getaddrinfo(3) tests for NULL arguments.
...
According to https://github.com/ukanth/afwall/pull/213 some OEMs have
shipped a getaddrinfo(3) that crashes given NULL hostnames.
Change-Id: I9cea5fdd68546b7c64cf47e10e2b2b4d672b69d0
2014-11-16 12:14:04 -08:00
Dan Albert
c449b7a533
am eef1eb64: Merge "Allow asan for glibc tests."
...
* commit 'eef1eb64bb5be68bfb00f8e71d3118a2cfec99e7':
Allow asan for glibc tests.
2014-11-15 06:51:47 +00:00
Dan Albert
eef1eb64bb
Merge "Allow asan for glibc tests."
2014-11-15 06:47:08 +00:00
Dan Albert
01f1ff2440
Allow asan for glibc tests.
...
SANITIZE_HOST will break if we don't allow ASAN.
Change-Id: I0beed82b058db391f633e0ea1098f140497c65d4
2014-11-14 20:00:06 -08:00
Satoru Takeuchi
154e2026c8
libc: Fix mktime returns an uncorrect time in empty TZ case
...
The mktime API returned an uncorrect time when TZ is set as empty.
A timezone UTC/GMT+0 should be implied in the empty case. However
mktime keeps previous information about timezone. If mktime was called
with a timezone which has DST before, the "defaulttype" member of
"state" structure wouldn't be 0. Then it would be used next time,
even though UTC/GMT+0 doesn't have DST.
Added initialization of the "defaulttype" in the empty TZ case.
Change-Id: Ic480c63c548c05444134e0aefb30a7b380e3f40b
2014-11-14 18:13:07 -08:00
Derek Xue
bc6447673f
bionic/test: migrate sysconf tests from system/extras to bionic/tests
...
The old test are implemented in file:
system/extras/tests/bionic/libc/other/test_sysconf.c
This change is to migrate them to bionic/tests with the gtest format.
and since the sysconf is defined in unistd.h, will put the test under
bionic/tests/unistd_test.cpp file as unistd.syscon test
Change-Id: Ie519147c1c86a6c4cefa8c88b18bf58bdfbffbdb
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-11-15 09:48:36 +08:00
Yabin Cui
48c6f1b66d
am 38569312: Merge "Add functions in sysinfo.h."
...
* commit '38569312bc5a3a4688d45997d81b59abb0a60825':
Add functions in sysinfo.h.
2014-11-15 00:56:42 +00:00
Yabin Cui
38569312bc
Merge "Add functions in sysinfo.h."
2014-11-15 00:53:37 +00:00
Yabin Cui
9d93986481
Add functions in sysinfo.h.
...
Bug: 17703902
Change-Id: I699d12d76a8fc483c919be730c2ac63641b71a1d
2014-11-14 16:22:48 -08:00
Yabin Cui
b4e7f4e226
am 661423a4: Merge "Increase support of pathconf options."
...
* commit '661423a453b2692d592df56307a876dfc35c50f2':
Increase support of pathconf options.
2014-11-14 23:49:21 +00:00