OSDN Git Service

android-x86/bionic.git
9 years agoam 6f9d7444: Merge "Fix running the bionic benchmarks on the host."
Elliott Hughes [Mon, 1 Dec 2014 21:46:28 +0000 (21:46 +0000)]
am 6f9d7444: Merge "Fix running the bionic benchmarks on the host."

* commit '6f9d7444e801487fb2362955c62c379a681a55f6':
  Fix running the bionic benchmarks on the host.

9 years agoMerge "Fix running the bionic benchmarks on the host."
Elliott Hughes [Mon, 1 Dec 2014 21:40:24 +0000 (21:40 +0000)]
Merge "Fix running the bionic benchmarks on the host."

9 years agoFix running the bionic benchmarks on the host.
Elliott Hughes [Mon, 1 Dec 2014 21:11:38 +0000 (13:11 -0800)]
Fix running the bionic benchmarks on the host.

Bug: 18556607
Change-Id: I4e75bfcde788b43e1926be1b0146acf09b496390

9 years agoam 3e6ef3f9: Merge "support _POSIX_CPUTIME"
Yabin Cui [Mon, 1 Dec 2014 17:09:48 +0000 (17:09 +0000)]
am 3e6ef3f9: Merge "support _POSIX_CPUTIME"

* commit '3e6ef3f90285191976a60d7a94287fb0fec1af5d':
  support _POSIX_CPUTIME

9 years agoMerge "support _POSIX_CPUTIME"
Yabin Cui [Mon, 1 Dec 2014 17:06:01 +0000 (17:06 +0000)]
Merge "support _POSIX_CPUTIME"

9 years agoam fabb4282: Merge "libc: Fix headers to allow direct inclusion."
David 'Digit' Turner [Mon, 1 Dec 2014 16:55:32 +0000 (16:55 +0000)]
am fabb4282: Merge "libc: Fix headers to allow direct inclusion."

* commit 'fabb4282be66caed37c405e36c94dd1dc30ddbb2':
  libc: Fix headers to allow direct inclusion.

9 years agoMerge "libc: Fix headers to allow direct inclusion."
David 'Digit' Turner [Mon, 1 Dec 2014 16:50:04 +0000 (16:50 +0000)]
Merge "libc: Fix headers to allow direct inclusion."

9 years agolibc: Fix headers to allow direct inclusion.
David 'Digit' Turner [Tue, 18 Nov 2014 11:21:55 +0000 (12:21 +0100)]
libc: Fix headers to allow direct inclusion.

These headers are missing a few #includes to allow their direct
inclusion from C

http://b.android.com/79841

Change-Id: Ifc712c17f4da70b26adb67d4d49ed659f53c3621

9 years agoam 7602628e: Merge "Add error-check when mapping socket to fd"
Elliott Hughes [Thu, 27 Nov 2014 19:10:14 +0000 (19:10 +0000)]
am 7602628e: Merge "Add error-check when mapping socket to fd"

* commit '7602628e972b90689b8f39e0c837cad28383bc2b':
  Add error-check when mapping socket to fd

9 years agoMerge "Add error-check when mapping socket to fd"
Elliott Hughes [Thu, 27 Nov 2014 19:05:13 +0000 (19:05 +0000)]
Merge "Add error-check when mapping socket to fd"

9 years agoAdd error-check when mapping socket to fd
Robert Alm [Tue, 25 Nov 2014 12:28:11 +0000 (13:28 +0100)]
Add error-check when mapping socket to fd

The call to fdopen can fail in several ways.
The fprintf on the next line will then dereference a
NULL-pointer FILE*.
Added a NULL-check, closed the socket, returned system error
and added a comment about it.

Change-Id: I7a6b26aa3c79452b1fdd76af12dfa75da88cbad7

9 years agoam 46140327: Merge "Move a private x86-64 header file out of the limelight."
Elliott Hughes [Thu, 27 Nov 2014 17:24:23 +0000 (17:24 +0000)]
am 46140327: Merge "Move a private x86-64 header file out of the limelight."

* commit '461403270593363dfe0b75db9f5e9f454b4258d2':
  Move a private x86-64 header file out of the limelight.

9 years agoMerge "Move a private x86-64 header file out of the limelight."
Elliott Hughes [Thu, 27 Nov 2014 17:20:49 +0000 (17:20 +0000)]
Merge "Move a private x86-64 header file out of the limelight."

9 years agoMove a private x86-64 header file out of the limelight.
Elliott Hughes [Thu, 27 Nov 2014 03:31:19 +0000 (19:31 -0800)]
Move a private x86-64 header file out of the limelight.

Currently this is on everyone's include path and is getting exported
via the NDK.

Change-Id: Ia417839fb65c7e0afddcd9fae3438665dae8e752

9 years agoam 87516a65: Merge "[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6"
Elliott Hughes [Thu, 27 Nov 2014 02:35:02 +0000 (02:35 +0000)]
am 87516a65: Merge "[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6"

* commit '87516a6508add943cea99f3d29cb8bd89c4a3bdb':
  [MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6

9 years agoMerge "[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6"
Elliott Hughes [Thu, 27 Nov 2014 02:28:49 +0000 (02:28 +0000)]
Merge "[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6"

9 years agoam cc0a9e6b: Merge "bionic tests: add setjmp/_setjmp/sigsetjmp tests."
Elliott Hughes [Thu, 27 Nov 2014 01:52:32 +0000 (01:52 +0000)]
am cc0a9e6b: Merge "bionic tests: add setjmp/_setjmp/sigsetjmp tests."

* commit 'cc0a9e6bdf0c07f0ce9fab106a026bfb30757b86':
  bionic tests: add setjmp/_setjmp/sigsetjmp tests.

9 years agoMerge "bionic tests: add setjmp/_setjmp/sigsetjmp tests."
Elliott Hughes [Thu, 27 Nov 2014 01:33:08 +0000 (01:33 +0000)]
Merge "bionic tests: add setjmp/_setjmp/sigsetjmp tests."

9 years agobionic tests: add setjmp/_setjmp/sigsetjmp tests.
Yongqin Liu [Fri, 31 Oct 2014 08:37:09 +0000 (16:37 +0800)]
bionic tests: add setjmp/_setjmp/sigsetjmp tests.

Bug: 17288973
Change-Id: I2808eee58cbddae1b16fbe19a715b72d6dbaaec3
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agosupport _POSIX_CPUTIME
Yabin Cui [Wed, 26 Nov 2014 22:04:26 +0000 (14:04 -0800)]
support _POSIX_CPUTIME

Bug: 18490039
Change-Id: I01fa83b48e1b908de1f227b6e4f98e280bcd50ee

9 years agoam f64c43ba: Merge "Revert "Use mmap to create the pthread_internal_t.""
Nicolas Geoffray [Wed, 26 Nov 2014 12:03:26 +0000 (12:03 +0000)]
am f64c43ba: Merge "Revert "Use mmap to create the pthread_internal_t.""

* commit 'f64c43ba6c9244c50e904961dc432f04b1dfcfd9':
  Revert "Use mmap to create the pthread_internal_t."

9 years agoMerge "Revert "Use mmap to create the pthread_internal_t.""
Nicolas Geoffray [Wed, 26 Nov 2014 11:57:46 +0000 (11:57 +0000)]
Merge "Revert "Use mmap to create the pthread_internal_t.""

9 years agoRevert "Use mmap to create the pthread_internal_t."
Nicolas Geoffray [Wed, 26 Nov 2014 11:53:44 +0000 (11:53 +0000)]
Revert "Use mmap to create the pthread_internal_t."

Unfortunately, this change provokes random crashes for ART, and
I have seen libc crashes on the device that might be related to it.

Reverting it fixes the ART crashes. there is unfortunately no
stack trace for the crashes, but just a "Segmentation fault" message.

This reverts commit cc5f6543e3f91385b9a912438965b7e8265df54a.

Change-Id: I68dca8e1e9b9edcce7eb84596e8db619e40e8052

9 years ago[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6
Duane Sand [Wed, 26 Nov 2014 01:33:10 +0000 (17:33 -0800)]
[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6

Change-Id: Idcd13413520dd503bc9cf782553675313e500a83

9 years agoam 4a6069a8: Merge "Use mmap to create the pthread_internal_t."
Yabin Cui [Tue, 25 Nov 2014 23:58:36 +0000 (23:58 +0000)]
am 4a6069a8: Merge "Use mmap to create the pthread_internal_t."

* commit '4a6069a8af7755076283749111b7fac308c7bb7e':
  Use mmap to create the pthread_internal_t.

9 years agoMerge "Use mmap to create the pthread_internal_t."
Yabin Cui [Tue, 25 Nov 2014 23:53:43 +0000 (23:53 +0000)]
Merge "Use mmap to create the pthread_internal_t."

9 years agoUse mmap to create the pthread_internal_t.
Yabin Cui [Tue, 25 Nov 2014 22:18:12 +0000 (14:18 -0800)]
Use mmap to create the pthread_internal_t.

Bug: 16847284
Change-Id: Ic8c85f95afac1d8422ecb69674c688d1fecb6a44

9 years agoam eb3a5e02: Merge "flesh out sysconf(3) and the _POSIX_* constants"
Yabin Cui [Mon, 24 Nov 2014 02:13:02 +0000 (02:13 +0000)]
am eb3a5e02: Merge "flesh out sysconf(3) and the _POSIX_* constants"

* commit 'eb3a5e026e65ea80b17580a71f4451f5cf5d6612':
  flesh out sysconf(3) and the _POSIX_* constants

9 years agoMerge "flesh out sysconf(3) and the _POSIX_* constants"
Yabin Cui [Mon, 24 Nov 2014 01:59:22 +0000 (01:59 +0000)]
Merge "flesh out sysconf(3) and the _POSIX_* constants"

9 years agoam 95a02366: Merge "Sync with upstream OpenBSD fts.c."
Elliott Hughes [Sun, 23 Nov 2014 18:09:50 +0000 (18:09 +0000)]
am 95a02366: Merge "Sync with upstream OpenBSD fts.c."

* commit '95a02366f2697ed65c4a2849a9cbde3d403142e3':
  Sync with upstream OpenBSD fts.c.

9 years agoMerge "Sync with upstream OpenBSD fts.c."
Elliott Hughes [Sun, 23 Nov 2014 18:06:28 +0000 (18:06 +0000)]
Merge "Sync with upstream OpenBSD fts.c."

9 years agoam 806dd9f9: Merge "Move some pthread functions to signal.h."
Dan Albert [Sat, 22 Nov 2014 22:42:34 +0000 (22:42 +0000)]
am 806dd9f9: Merge "Move some pthread functions to signal.h."

* commit '806dd9f90c8daadfafd19d69e3f36bb00729cb8e':
  Move some pthread functions to signal.h.

9 years agoMerge "Move some pthread functions to signal.h."
Dan Albert [Sat, 22 Nov 2014 22:38:50 +0000 (22:38 +0000)]
Merge "Move some pthread functions to signal.h."

9 years agoSync with upstream OpenBSD fts.c.
Elliott Hughes [Sat, 22 Nov 2014 03:25:27 +0000 (19:25 -0800)]
Sync with upstream OpenBSD fts.c.

Change-Id: Ia7e26b603f6461095b5a8d7e8a6cdf4f8279fa84

9 years agoflesh out sysconf(3) and the _POSIX_* constants
Yabin Cui [Thu, 20 Nov 2014 03:49:14 +0000 (19:49 -0800)]
flesh out sysconf(3) and the _POSIX_* constants

Bug: 17571891
Change-Id: I81036615486bde65969ae5662587fcc88348474e

9 years agoam d77c1ec9: Merge "Bring our <machine/endian.h> files back in sync."
Elliott Hughes [Sat, 22 Nov 2014 02:44:26 +0000 (02:44 +0000)]
am d77c1ec9: Merge "Bring our <machine/endian.h> files back in sync."

* commit 'd77c1ec90a17ac91c24904670ba9a3a60fe4cd3d':
  Bring our <machine/endian.h> files back in sync.

9 years agoMerge "Bring our <machine/endian.h> files back in sync."
Elliott Hughes [Sat, 22 Nov 2014 02:41:44 +0000 (02:41 +0000)]
Merge "Bring our <machine/endian.h> files back in sync."

9 years agoBring our <machine/endian.h> files back in sync.
Elliott Hughes [Sat, 22 Nov 2014 02:34:36 +0000 (18:34 -0800)]
Bring our <machine/endian.h> files back in sync.

They'd drifted slightly which led to a compilation error in toybox,
which was assuming pid_t was defined. arm and arm64 were picking it
up via <endian.h> but x86 wasn't.

Change-Id: I58401e6c0066959dfc3b305b020876aaf7074bbf

9 years agoam 80838f19: Merge "Mips: remove arch-specific atexit.h"
Dmitriy Ivanov [Fri, 21 Nov 2014 23:04:49 +0000 (23:04 +0000)]
am 80838f19: Merge "Mips: remove arch-specific atexit.h"

* commit '80838f190ad9454d1a9ebc2204cbfbbb22086f56':
  Mips: remove arch-specific atexit.h

9 years agoam ff1c2526: Merge "Mips: Remove unused files"
Dmitriy Ivanov [Fri, 21 Nov 2014 23:01:11 +0000 (23:01 +0000)]
am ff1c2526: Merge "Mips: Remove unused files"

* commit 'ff1c25262d801e631c88526346989b033805607d':
  Mips: Remove unused files

9 years agoMerge "Mips: remove arch-specific atexit.h"
Dmitriy Ivanov [Fri, 21 Nov 2014 22:59:06 +0000 (22:59 +0000)]
Merge "Mips: remove arch-specific atexit.h"

9 years agoMips: remove arch-specific atexit.h
Dmitriy Ivanov [Fri, 21 Nov 2014 22:42:53 +0000 (14:42 -0800)]
Mips: remove arch-specific atexit.h

Change-Id: I687ff4ead6c5e81db44782bf851cb84f87bfe085

9 years agoMerge "Mips: Remove unused files"
Dmitriy Ivanov [Fri, 21 Nov 2014 22:38:47 +0000 (22:38 +0000)]
Merge "Mips: Remove unused files"

9 years agoMips: Remove unused files
Dmitriy Ivanov [Fri, 21 Nov 2014 22:29:43 +0000 (14:29 -0800)]
Mips: Remove unused files

Change-Id: If98b832ee32f6dcd9f5d7ae21c601c210adfad6b

9 years agoam 6b1230b5: Merge "Mips: Reuse atexit.h from libc/arch-common"
Dmitriy Ivanov [Fri, 21 Nov 2014 21:20:57 +0000 (21:20 +0000)]
am 6b1230b5: Merge "Mips: Reuse atexit.h from libc/arch-common"

* commit '6b1230b57649309050d21929e02d0ccab87ff36b':
  Mips: Reuse atexit.h from libc/arch-common

9 years agoMerge "Mips: Reuse atexit.h from libc/arch-common"
Dmitriy Ivanov [Fri, 21 Nov 2014 21:17:18 +0000 (21:17 +0000)]
Merge "Mips: Reuse atexit.h from libc/arch-common"

9 years agoMips: Reuse atexit.h from libc/arch-common
Dmitriy Ivanov [Fri, 21 Nov 2014 21:07:36 +0000 (13:07 -0800)]
Mips: Reuse atexit.h from libc/arch-common

Change-Id: Ica1670e6d3d1b6b0c64df93720efa65586e67727

9 years agoam 66ca8249: Merge "Revert "<sched.h> should offer both __sched_priority and sched_pr...
Dan Albert [Fri, 21 Nov 2014 20:19:48 +0000 (20:19 +0000)]
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."

9 years agoMerge "Revert "<sched.h> should offer both __sched_priority and sched_priority.""
Dan Albert [Fri, 21 Nov 2014 20:15:55 +0000 (20:15 +0000)]
Merge "Revert "<sched.h> should offer both __sched_priority and sched_priority.""

9 years agoMove some pthread functions to signal.h.
Dan Albert [Fri, 21 Nov 2014 08:18:07 +0000 (00:18 -0800)]
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

9 years agoRevert "<sched.h> should offer both __sched_priority and sched_priority."
Dan Albert [Fri, 21 Nov 2014 18:22:09 +0000 (10:22 -0800)]
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.

9 years agoam a847073a: Merge "Rename test_forked -> test_isolated"
Dmitriy Ivanov [Fri, 21 Nov 2014 16:07:11 +0000 (16:07 +0000)]
am a847073a: Merge "Rename test_forked -> test_isolated"

* commit 'a847073a05295cc140fc79c9d433961442a6cae4':
  Rename test_forked -> test_isolated

9 years agoMerge "Rename test_forked -> test_isolated"
Dmitriy Ivanov [Fri, 21 Nov 2014 16:02:42 +0000 (16:02 +0000)]
Merge "Rename test_forked -> test_isolated"

9 years agoRename test_forked -> test_isolated
Dmitriy Ivanov [Fri, 21 Nov 2014 05:21:26 +0000 (21:21 -0800)]
Rename test_forked -> test_isolated

Change-Id: Ie72627e986c159832cbd3635d8ff5b1af3d5b1eb

9 years agoam 8b4b8273: Merge "Add test_forked() option"
Dmitriy Ivanov [Fri, 21 Nov 2014 01:27:14 +0000 (01:27 +0000)]
am 8b4b8273: Merge "Add test_forked() option"

* commit '8b4b82733877928da429e47d9a9bb73317517b2e':
  Add test_forked() option

9 years agoMerge "Add test_forked() option"
Dmitriy Ivanov [Fri, 21 Nov 2014 01:21:15 +0000 (01:21 +0000)]
Merge "Add test_forked() option"

9 years agoAdd test_forked() option
Dmitriy Ivanov [Fri, 21 Nov 2014 00:53:47 +0000 (16:53 -0800)]
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

9 years agoam 770198d3: Merge "Make the ftw(3) tests a bit more thorough."
Elliott Hughes [Thu, 20 Nov 2014 00:14:39 +0000 (00:14 +0000)]
am 770198d3: Merge "Make the ftw(3) tests a bit more thorough."

* commit '770198d3f707d5eccd6796f311015903aec31b26':
  Make the ftw(3) tests a bit more thorough.

9 years agoMerge "Make the ftw(3) tests a bit more thorough."
Elliott Hughes [Thu, 20 Nov 2014 00:09:32 +0000 (00:09 +0000)]
Merge "Make the ftw(3) tests a bit more thorough."

9 years agoam 5313c3ff: Merge "Fix flockfile(3) and friends for stdin/stdout/stderr too."
Elliott Hughes [Wed, 19 Nov 2014 23:51:22 +0000 (23:51 +0000)]
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.

9 years agoMerge "Fix flockfile(3) and friends for stdin/stdout/stderr too."
Elliott Hughes [Wed, 19 Nov 2014 23:48:19 +0000 (23:48 +0000)]
Merge "Fix flockfile(3) and friends for stdin/stdout/stderr too."

9 years agoMake the ftw(3) tests a bit more thorough.
Elliott Hughes [Tue, 18 Nov 2014 23:57:23 +0000 (15:57 -0800)]
Make the ftw(3) tests a bit more thorough.

These also test much of fts(3).

Change-Id: Ia9245d6acbbd071191563ab1b91a400044104028

9 years agoFix flockfile(3) and friends for stdin/stdout/stderr too.
Elliott Hughes [Wed, 19 Nov 2014 23:16:51 +0000 (15:16 -0800)]
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

9 years agoam 6b48b20a: Merge "Yet another relocation test"
Dmitriy Ivanov [Wed, 19 Nov 2014 19:40:48 +0000 (19:40 +0000)]
am 6b48b20a: Merge "Yet another relocation test"

* commit '6b48b20a1e613dcb41704deb266142a7cc45588c':
  Yet another relocation test

9 years agoMerge "Yet another relocation test"
Dmitriy Ivanov [Wed, 19 Nov 2014 19:35:59 +0000 (19:35 +0000)]
Merge "Yet another relocation test"

9 years agoYet another relocation test
Dmitriy Ivanov [Wed, 19 Nov 2014 01:26:31 +0000 (17:26 -0800)]
Yet another relocation test

 This time we check if a -> b -> c function in 'a' relocates against
 implementation in 'c'.

Change-Id: I528180c3efd346bd447ea0237e5a8a0ac3cc031f

9 years agoam c9278b8a: Merge "libc: Move <sgidefs.h> to libc/arch-mips/"
David 'Digit' Turner [Wed, 19 Nov 2014 14:53:45 +0000 (14:53 +0000)]
am c9278b8a: Merge "libc: Move <sgidefs.h> to libc/arch-mips/"

* commit 'c9278b8a17e9a0a4e85c377105f500a7c1f41535':
  libc: Move <sgidefs.h> to libc/arch-mips/

9 years agoMerge "libc: Move <sgidefs.h> to libc/arch-mips/"
David 'Digit' Turner [Wed, 19 Nov 2014 14:49:51 +0000 (14:49 +0000)]
Merge "libc: Move <sgidefs.h> to libc/arch-mips/"

9 years agoam 649f78df: Merge "fix shared gid support in getpwnam/getgrnam"
Yabin Cui [Wed, 19 Nov 2014 04:28:31 +0000 (04:28 +0000)]
am 649f78df: Merge "fix shared gid support in getpwnam/getgrnam"

* commit '649f78df79bc45a46de9f3c391f395d5ab4fe73a':
  fix shared gid support in getpwnam/getgrnam

9 years agoMerge "fix shared gid support in getpwnam/getgrnam"
Yabin Cui [Wed, 19 Nov 2014 04:25:24 +0000 (04:25 +0000)]
Merge "fix shared gid support in getpwnam/getgrnam"

9 years agofix shared gid support in getpwnam/getgrnam
Yabin Cui [Wed, 19 Nov 2014 00:14:54 +0000 (16:14 -0800)]
fix shared gid support in getpwnam/getgrnam

Bug: 18374693
Change-Id: I5353403cbbead6f6abac87bee2cf53a60dba408c

9 years agoam 27aa9c5b: Merge "Fix jump to unmapped memory on atexit"
Dmitriy Ivanov [Tue, 18 Nov 2014 21:28:24 +0000 (21:28 +0000)]
am 27aa9c5b: Merge "Fix jump to unmapped memory on atexit"

* commit '27aa9c5b50cc3e979fc67c1bf5296dfd725c8540':
  Fix jump to unmapped memory on atexit

9 years agoMerge "Fix jump to unmapped memory on atexit"
Dmitriy Ivanov [Tue, 18 Nov 2014 21:25:37 +0000 (21:25 +0000)]
Merge "Fix jump to unmapped memory on atexit"

9 years agoFix jump to unmapped memory on atexit
Dmitriy Ivanov [Tue, 18 Nov 2014 20:03:09 +0000 (12:03 -0800)]
Fix jump to unmapped memory on atexit

 Split d-tor calls and soinfo_free to 2 separate steps

Bug: 18338888
Change-Id: Idbcb7242ade16fa18cba7fe30505ebd8d6023622

9 years agolibc: Move <sgidefs.h> to libc/arch-mips/
David 'Digit' Turner [Tue, 18 Nov 2014 19:13:10 +0000 (20:13 +0100)]
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

9 years agoam 8eda0a6d: Merge "libc: Fix mktime returns an uncorrect time in empty TZ case"
Elliott Hughes [Mon, 17 Nov 2014 23:18:39 +0000 (23:18 +0000)]
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

9 years agoMerge "libc: Fix mktime returns an uncorrect time in empty TZ case"
Elliott Hughes [Mon, 17 Nov 2014 23:14:57 +0000 (23:14 +0000)]
Merge "libc: Fix mktime returns an uncorrect time in empty TZ case"

9 years agoam ee4c8feb: Merge "bionic/test: migrate sysconf tests from system/extras to bionic...
Dmitriy Ivanov [Mon, 17 Nov 2014 18:48:23 +0000 (18:48 +0000)]
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

9 years agoMerge "bionic/test: migrate sysconf tests from system/extras to bionic/tests"
Dmitriy Ivanov [Mon, 17 Nov 2014 18:43:31 +0000 (18:43 +0000)]
Merge "bionic/test: migrate sysconf tests from system/extras to bionic/tests"

9 years agoam f2c88209: Merge "Add getaddrinfo(3) tests for NULL arguments."
Elliott Hughes [Mon, 17 Nov 2014 18:31:53 +0000 (18:31 +0000)]
am f2c88209: Merge "Add getaddrinfo(3) tests for NULL arguments."

* commit 'f2c882095b5747cd7f3158428208580a7ff72ed6':
  Add getaddrinfo(3) tests for NULL arguments.

9 years agoam 35f8910e: Merge "Remove remaining bionic support for TARGET_CPU_SMP being false."
Elliott Hughes [Mon, 17 Nov 2014 18:31:51 +0000 (18:31 +0000)]
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.

9 years agoMerge "Add getaddrinfo(3) tests for NULL arguments."
Elliott Hughes [Mon, 17 Nov 2014 18:26:45 +0000 (18:26 +0000)]
Merge "Add getaddrinfo(3) tests for NULL arguments."

9 years agoMerge "Remove remaining bionic support for TARGET_CPU_SMP being false."
Elliott Hughes [Mon, 17 Nov 2014 18:24:22 +0000 (18:24 +0000)]
Merge "Remove remaining bionic support for TARGET_CPU_SMP being false."

9 years agoRemove remaining bionic support for TARGET_CPU_SMP being false.
Elliott Hughes [Mon, 17 Nov 2014 18:06:20 +0000 (10:06 -0800)]
Remove remaining bionic support for TARGET_CPU_SMP being false.

Change-Id: I02a0a1c0ae55ccb5c45d17fb99a09c374d71def4

9 years agoAdd getaddrinfo(3) tests for NULL arguments.
Elliott Hughes [Sun, 16 Nov 2014 18:14:54 +0000 (10:14 -0800)]
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

9 years agoam eef1eb64: Merge "Allow asan for glibc tests."
Dan Albert [Sat, 15 Nov 2014 06:51:47 +0000 (06:51 +0000)]
am eef1eb64: Merge "Allow asan for glibc tests."

* commit 'eef1eb64bb5be68bfb00f8e71d3118a2cfec99e7':
  Allow asan for glibc tests.

9 years agoMerge "Allow asan for glibc tests."
Dan Albert [Sat, 15 Nov 2014 06:47:07 +0000 (06:47 +0000)]
Merge "Allow asan for glibc tests."

9 years agoAllow asan for glibc tests.
Dan Albert [Sat, 15 Nov 2014 03:58:26 +0000 (19:58 -0800)]
Allow asan for glibc tests.

SANITIZE_HOST will break if we don't allow ASAN.

Change-Id: I0beed82b058db391f633e0ea1098f140497c65d4

9 years agolibc: Fix mktime returns an uncorrect time in empty TZ case
Satoru Takeuchi [Tue, 27 May 2014 08:04:04 +0000 (17:04 +0900)]
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

9 years agobionic/test: migrate sysconf tests from system/extras to bionic/tests
Derek Xue [Thu, 25 Sep 2014 09:55:34 +0000 (10:55 +0100)]
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>
9 years agoam 38569312: Merge "Add functions in sysinfo.h."
Yabin Cui [Sat, 15 Nov 2014 00:56:42 +0000 (00:56 +0000)]
am 38569312: Merge "Add functions in sysinfo.h."

* commit '38569312bc5a3a4688d45997d81b59abb0a60825':
  Add functions in sysinfo.h.

9 years agoMerge "Add functions in sysinfo.h."
Yabin Cui [Sat, 15 Nov 2014 00:53:37 +0000 (00:53 +0000)]
Merge "Add functions in sysinfo.h."

9 years agoAdd functions in sysinfo.h.
Yabin Cui [Fri, 14 Nov 2014 23:51:58 +0000 (15:51 -0800)]
Add functions in sysinfo.h.

Bug: 17703902

Change-Id: I699d12d76a8fc483c919be730c2ac63641b71a1d

9 years agoam 661423a4: Merge "Increase support of pathconf options."
Yabin Cui [Fri, 14 Nov 2014 23:49:21 +0000 (23:49 +0000)]
am 661423a4: Merge "Increase support of pathconf options."

* commit '661423a453b2692d592df56307a876dfc35c50f2':
  Increase support of pathconf options.

9 years agoMerge "Increase support of pathconf options."
Yabin Cui [Fri, 14 Nov 2014 23:45:44 +0000 (23:45 +0000)]
Merge "Increase support of pathconf options."

9 years agoIncrease support of pathconf options.
Yabin Cui [Sat, 8 Nov 2014 22:58:12 +0000 (14:58 -0800)]
Increase support of pathconf options.

Bug: 18206366
Change-Id: Ie770e49f5af3631eb9fbd2cd5174edf004c81e00

9 years agoam 4cf942d3: Merge "sysconf(3) returns long."
Elliott Hughes [Fri, 14 Nov 2014 23:36:21 +0000 (23:36 +0000)]
am 4cf942d3: Merge "sysconf(3) returns long."

* commit '4cf942d318f2856dff078798ce9a3eac5de593b7':
  sysconf(3) returns long.

9 years agoMerge "sysconf(3) returns long."
Elliott Hughes [Fri, 14 Nov 2014 23:33:20 +0000 (23:33 +0000)]
Merge "sysconf(3) returns long."

9 years agosysconf(3) returns long.
Elliott Hughes [Fri, 14 Nov 2014 23:14:44 +0000 (15:14 -0800)]
sysconf(3) returns long.

On LP32, this makes no difference. Not an ABI change.

On LP64, results are going to be in %rax or x0 whether they're 32- or 64-bit,
and the only difference is going to be whether the top bits are clobbered.

Bug: 18390956
Change-Id: I0bd4496231bdded34c1fa03e895021ac0df7f8e1

9 years agoam cdcef73a: Merge "Add non-macro stdin/stdout/stderr too."
Elliott Hughes [Fri, 14 Nov 2014 22:56:03 +0000 (22:56 +0000)]
am cdcef73a: Merge "Add non-macro stdin/stdout/stderr too."

* commit 'cdcef73a23833ebd50bb5b654eb278b164e286ad':
  Add non-macro stdin/stdout/stderr too.