OSDN Git Service

android-x86/bionic.git
11 years agoMerge "Make bionic's dependency on the tzdata explicit."
Elliott Hughes [Thu, 18 Oct 2012 20:19:13 +0000 (13:19 -0700)]
Merge "Make bionic's dependency on the tzdata explicit."

11 years agoMake bionic's dependency on the tzdata explicit.
Elliott Hughes [Thu, 18 Oct 2012 18:28:56 +0000 (11:28 -0700)]
Make bionic's dependency on the tzdata explicit.

Also stop building the obsolete three files, now bionic and libcore
both use the new single file.

Bug: 7012465
Change-Id: I1b9b49af7382c57b6cb8820c2275e6d4044b2bb6

11 years agoMerge "Pull bionic's time zone data from the new single 'tzdata' file."
Elliott Hughes [Thu, 18 Oct 2012 17:48:10 +0000 (10:48 -0700)]
Merge "Pull bionic's time zone data from the new single 'tzdata' file."

11 years agoMerge "Remove obsolete CHANGES.TXT and ISSUES.TXT."
Elliott Hughes [Thu, 18 Oct 2012 17:09:47 +0000 (10:09 -0700)]
Merge "Remove obsolete CHANGES.TXT and ISSUES.TXT."

11 years agoPull bionic's time zone data from the new single 'tzdata' file.
Elliott Hughes [Wed, 17 Oct 2012 23:30:47 +0000 (16:30 -0700)]
Pull bionic's time zone data from the new single 'tzdata' file.

Bug: 7012465
Change-Id: Iec71e448bf7a40af30ca89150b3c336e67a44a43

11 years agoMerge "Put all the tzdata in one file."
Elliott Hughes [Wed, 17 Oct 2012 22:52:09 +0000 (15:52 -0700)]
Merge "Put all the tzdata in one file."

11 years agoPut all the tzdata in one file.
Elliott Hughes [Wed, 17 Oct 2012 21:24:50 +0000 (14:24 -0700)]
Put all the tzdata in one file.

I'll come back and remove the separate files (and change the regular 'generate'
script) when the separate files are obsolete, but in the interim period, it's
easier to have both old and new files available.

Bug: 7012465
Change-Id: I36e2fd49c08ff79ded6eca1c5bc4c08837cc490a

11 years agoRemove obsolete CHANGES.TXT and ISSUES.TXT.
Elliott Hughes [Wed, 17 Oct 2012 18:32:50 +0000 (11:32 -0700)]
Remove obsolete CHANGES.TXT and ISSUES.TXT.

These haven't been updated in a long time, and "git log" is the source of truth.

Change-Id: I99036f6111e53425f32df510b7b717deb77513a5

11 years agoMerge "Make dlerror(3) thread-safe."
Elliott Hughes [Wed, 17 Oct 2012 17:50:48 +0000 (10:50 -0700)]
Merge "Make dlerror(3) thread-safe."

11 years agoMerge "Revert "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>""
David 'Digit' Turner [Wed, 17 Oct 2012 17:11:22 +0000 (10:11 -0700)]
Merge "Revert "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>""

11 years agoRevert "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>"
David 'Digit' Turner [Wed, 17 Oct 2012 17:10:11 +0000 (19:10 +0200)]
Revert "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>"

This creates build issues in the internal Android tree.
Will investigate later.

Original patch: https://android-review.googlesource.com/#/c/38875/

Change-Id: I12c5995ebf172890051af42a5d3b31014c9c5117

11 years agoMerge "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>"
David 'Digit' Turner [Wed, 17 Oct 2012 14:20:54 +0000 (07:20 -0700)]
Merge "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>"

11 years agolibc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>
David 'Digit' Turner [Thu, 12 Jul 2012 17:06:15 +0000 (19:06 +0200)]
libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>

This patch updates the C library headers to provide ucontext_t
definitions for three architectures.

+ Fix <signal.h> to always define 'struct sigcontext'.

The new declarations are announced with new macros defined in
<sys/cdefs.h> in order to make it easier to adapt client code
that already defines its own, incompatible, versions of the
structures seen here.

http://code.google.com/p/android/issues/detail?id=34784

Change-Id: Ie78c48690a4ce61c50593f6c39639be7fead3596

11 years agoMake dlerror(3) thread-safe.
Elliott Hughes [Tue, 16 Oct 2012 22:54:46 +0000 (15:54 -0700)]
Make dlerror(3) thread-safe.

I gave up trying to use the usual thread-local buffer idiom; calls to
calloc(3) and free(3) from any of the "dl" functions -- which live in
the dynamic linker -- end up resolving to the dynamic linker's stubs.
I tried to work around that, but was just making things more complicated.
This alternative costs us a well-known TLS slot (instead of the
dynamically-allocated TLS slot we'd have used otherwise, so no difference
there), plus an extra buffer inside every pthread_internal_t.

Bug: 5404023
Change-Id: Ie9614edd05b6d1eeaf7bf9172792d616c6361767

11 years agoMerge "LONG_LONG_MIN/MAX: Move declarations to <limits.h>"
Elliott Hughes [Tue, 16 Oct 2012 00:34:08 +0000 (17:34 -0700)]
Merge "LONG_LONG_MIN/MAX: Move declarations to <limits.h>"

11 years agoLONG_LONG_MIN/MAX: Move declarations to <limits.h>
David 'Digit' Turner [Thu, 13 Sep 2012 15:14:00 +0000 (17:14 +0200)]
LONG_LONG_MIN/MAX: Move declarations to <limits.h>

LONG_LONG_MIN, LONG_LONG_MAX and ULONG_LONG_MAX are
GLibc-specific macros that are better defined in <limits.h>
instead of the current exotic location (<pthread.h>).

Note that GCC's <limits.h> only defines these macros
when __GNU_LIBRARY__ is also defined. This is only the
case when building against GLibc, so manually redefine
the macros here.

Note that using LLONG_MIN/LLONG_MAX/ULLONG_MAX is the
C99-compliant way to get these values, but it's easier
to define these compatibility macros for the sake of
porting existing code.

Change-Id: I8023918d73b4685238054932f94a4006c1ca7d03

11 years agoMerge "Fix realloc(3) when chk_malloc debugging is on."
Elliott Hughes [Sat, 13 Oct 2012 00:09:02 +0000 (17:09 -0700)]
Merge "Fix realloc(3) when chk_malloc debugging is on."

11 years agoFix realloc(3) when chk_malloc debugging is on.
Elliott Hughes [Sat, 13 Oct 2012 00:05:05 +0000 (17:05 -0700)]
Fix realloc(3) when chk_malloc debugging is on.

The tests for a NULL pointer and size 0 were the wrong way round.

From Intel's patch 9cae4f2ffc4778ed82be04711d8775a84092d4e2.

Change-Id: I118aff3358aa5f34126d74bfaa43f6e2f1a89055

11 years agoMerge "Make the dlfcn mutex static."
Elliott Hughes [Fri, 12 Oct 2012 17:59:59 +0000 (10:59 -0700)]
Merge "Make the dlfcn mutex static."

11 years agoMake the dlfcn mutex static.
Elliott Hughes [Fri, 12 Oct 2012 17:50:21 +0000 (10:50 -0700)]
Make the dlfcn mutex static.

More style fixes too, and removal of yet another lingering SH reference!

Change-Id: Iebc34a46475dd11845ad172b9108bb6ddd7585bb

11 years agoMerge "Fix dlerror(3)."
Elliott Hughes [Fri, 12 Oct 2012 17:27:43 +0000 (10:27 -0700)]
Merge "Fix dlerror(3)."

11 years agoFix dlerror(3).
Elliott Hughes [Thu, 11 Oct 2012 23:08:51 +0000 (16:08 -0700)]
Fix dlerror(3).

Add unit tests for dlerror(3) in various situations. I think We're at least
as good as glibc now.

Also factor out the ScopedPthreadMutexLock and use it here too.

Bug: http://code.google.com/p/android/issues/detail?id=38398
Change-Id: I040938b4366ab836e3df46d1d8055b92f4ea6ed8

11 years agoMerge "Fix perf_event_open syscall for x86 and mips"
Elliott Hughes [Thu, 11 Oct 2012 17:26:00 +0000 (10:26 -0700)]
Merge "Fix perf_event_open syscall for x86 and mips"

11 years agoFix perf_event_open syscall for x86 and mips
Shuo Gao [Thu, 11 Oct 2012 05:27:48 +0000 (13:27 +0800)]
Fix perf_event_open syscall for x86 and mips

perf_event_open syscall has a different syscall number for
the 3 supported architectures: arm, x86 and mips. Currenlty
only the arm syscall number is defined for all architectures.
Tracing tools like perf will not work on other architectures
than arm.

Add the different values for perf_event_open on x86 and mips
and run gensyscalls.py to update generated headers.

Change-Id: I2ed78bd42c0e5df8dbc51d784be49cccda5fab30
Author: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
11 years agoMerge "Fix a getcwd(3) bug and make our tests run correctly under valgrind."
Elliott Hughes [Wed, 10 Oct 2012 01:14:36 +0000 (18:14 -0700)]
Merge "Fix a getcwd(3) bug and make our tests run correctly under valgrind."

11 years agoMerge "Fix two comment typos."
Elliott Hughes [Wed, 10 Oct 2012 00:23:38 +0000 (17:23 -0700)]
Merge "Fix two comment typos."

11 years agoFix two comment typos.
Elliott Hughes [Wed, 10 Oct 2012 00:23:09 +0000 (17:23 -0700)]
Fix two comment typos.

Change-Id: Icb2d6f7fa97ef5a4409a7606875e416cfab0a4b3

11 years agoFix a getcwd(3) bug and make our tests run correctly under valgrind.
Elliott Hughes [Wed, 10 Oct 2012 00:14:56 +0000 (17:14 -0700)]
Fix a getcwd(3) bug and make our tests run correctly under valgrind.

The getcwd(3) bug was found by valgrind.

Bug: 7291287
Change-Id: I59f3bff1c1392a408b905934eebcd5d894d37492

11 years agoam fa7e2586: Merge "Test flags before using "info""
Elliott Hughes [Thu, 4 Oct 2012 00:41:08 +0000 (17:41 -0700)]
am fa7e2586: Merge "Test flags before using "info""

* commit 'fa7e2586176711896e6c0b94c7b811f7cbe29907':
  Test flags before using "info"

11 years agoMerge "Test flags before using "info""
Elliott Hughes [Thu, 4 Oct 2012 00:27:51 +0000 (17:27 -0700)]
Merge "Test flags before using "info""

11 years agoTest flags before using "info"
Andy McFadden [Tue, 2 Oct 2012 20:53:13 +0000 (13:53 -0700)]
Test flags before using "info"

Our debugger signal catcher expects to receive three args, but if
somebody cleared SA_SIGINFO we only get one, and bad things happen
when we try to use the second one.  Test to see if SA_SIGINFO is
still set before we try to use the argument.

(cherry-pick of f84bc8d6f6368f1c846124a8168761ee8cc589c0.)

Bug: 7272866
Change-Id: I69a65c25e833aea70acb78f9ba40ed93308583e6

11 years agoam 95a2a7f3: Merge "Fix MIPS build."
Elliott Hughes [Tue, 2 Oct 2012 18:31:30 +0000 (11:31 -0700)]
am 95a2a7f3: Merge "Fix MIPS build."

* commit '95a2a7f325330830d6227aa683948b325e38e653':
  Fix MIPS build.

11 years agoMerge "Fix MIPS build."
Elliott Hughes [Tue, 2 Oct 2012 18:22:32 +0000 (11:22 -0700)]
Merge "Fix MIPS build."

11 years agoFix MIPS build.
Elliott Hughes [Tue, 2 Oct 2012 18:20:07 +0000 (11:20 -0700)]
Fix MIPS build.

ARM and x86 have custom memcpy implementations, but MIPS relies on the generic
one, which I recently moved.

Change-Id: I9e49243f63b27a4123f2c6623d6286ec82d333c7

11 years agoam b98204a9: Merge "Move non-upstream code into the libc/bionic directory."
Elliott Hughes [Tue, 2 Oct 2012 16:22:03 +0000 (09:22 -0700)]
am b98204a9: Merge "Move non-upstream code into the libc/bionic directory."

* commit 'b98204a9fb5c84478a9710163df395486443c7f6':
  Move non-upstream code into the libc/bionic directory.

11 years agoMerge "Move non-upstream code into the libc/bionic directory."
Elliott Hughes [Tue, 2 Oct 2012 16:13:34 +0000 (09:13 -0700)]
Merge "Move non-upstream code into the libc/bionic directory."

11 years agoam 75f43525: Merge "Always take GCC\'s definition of NULL."
Elliott Hughes [Tue, 2 Oct 2012 01:18:06 +0000 (18:18 -0700)]
am 75f43525: Merge "Always take GCC\'s definition of NULL."

* commit '75f43525550c5cad3980f7dd125cb838836790b8':
  Always take GCC's definition of NULL.

11 years agoMerge "Always take GCC's definition of NULL."
Elliott Hughes [Tue, 2 Oct 2012 01:11:20 +0000 (18:11 -0700)]
Merge "Always take GCC's definition of NULL."

11 years agoAlways take GCC's definition of NULL.
Elliott Hughes [Tue, 2 Oct 2012 00:56:58 +0000 (17:56 -0700)]
Always take GCC's definition of NULL.

There's a (bad) definition of NULL in <linux/stddef.h>, and this
definition of NULL, and the One True definition in the <stddef.h> provided
by the compiler. This change at least kills one of the bad duplicates.
Killing the <linux/stddef.h> one is harder, because it's in a generated
file.

Change-Id: Iea4ccb12d6758199f312ea9cd753b84322d5c471

11 years agoMove non-upstream code into the libc/bionic directory.
Elliott Hughes [Tue, 2 Oct 2012 00:35:49 +0000 (17:35 -0700)]
Move non-upstream code into the libc/bionic directory.

I'll need at least one more pass, because there's some upstream code
lurking in libc/bionic, but this is still a step in the right direction.

Change-Id: I55927315972da8327ae01c5240ed587db17e8462

11 years agoam d3bf954e: Merge "Remove useless #defines and incorrect claims from header files."
Elliott Hughes [Mon, 1 Oct 2012 22:50:51 +0000 (15:50 -0700)]
am d3bf954e: Merge "Remove useless #defines and incorrect claims from header files."

* commit 'd3bf954e9ffbdee8d732ccb6ad6143dc31b605fc':
  Remove useless #defines and incorrect claims from header files.

11 years agoMerge "Remove useless #defines and incorrect claims from header files."
Elliott Hughes [Mon, 1 Oct 2012 22:37:18 +0000 (15:37 -0700)]
Merge "Remove useless #defines and incorrect claims from header files."

11 years agoRemove useless #defines and incorrect claims from header files.
Elliott Hughes [Mon, 1 Oct 2012 22:12:40 +0000 (15:12 -0700)]
Remove useless #defines and incorrect claims from header files.

The various __need_* macros were write-only.

Change-Id: Id3cca34188e0801fdf93a038b22f2817226ad9c2

11 years agoam fe712e6c: Merge "Upgrade seed48 too."
Elliott Hughes [Mon, 1 Oct 2012 21:46:46 +0000 (14:46 -0700)]
am fe712e6c: Merge "Upgrade seed48 too."

* commit 'fe712e6caedccbbba24bda8429cb0b8cc6057ff1':
  Upgrade seed48 too.

11 years agoMerge "Upgrade seed48 too."
Elliott Hughes [Mon, 1 Oct 2012 21:38:09 +0000 (14:38 -0700)]
Merge "Upgrade seed48 too."

11 years agoUpgrade seed48 too.
Elliott Hughes [Mon, 1 Oct 2012 21:14:21 +0000 (14:14 -0700)]
Upgrade seed48 too.

Missed this in 774c7f54ff375d71106283d42779b0cc5f238f87.

Change-Id: Ic24fd67f003d0e2d192cfb08f96f63024ca817eb

11 years agoam cd195eba: Merge "Upgrade to the current NetBSD rand implementation."
Elliott Hughes [Mon, 1 Oct 2012 21:13:16 +0000 (14:13 -0700)]
am cd195eba: Merge "Upgrade to the current NetBSD rand implementation."

* commit 'cd195eba1f9235b9b9d4dda70142d927b1b9802d':
  Upgrade to the current NetBSD rand implementation.

11 years agoMerge "Upgrade to the current NetBSD rand implementation."
Elliott Hughes [Mon, 1 Oct 2012 21:05:08 +0000 (14:05 -0700)]
Merge "Upgrade to the current NetBSD rand implementation."

11 years agoUpgrade to the current NetBSD rand implementation.
Elliott Hughes [Mon, 1 Oct 2012 20:11:03 +0000 (13:11 -0700)]
Upgrade to the current NetBSD rand implementation.

Also add basic unit tests.

Change-Id: I7fc7ef61d47c1e8fdf8b8eff67a635220c3afd56

11 years agoam 5b6346f6: Merge "bionic: linker: Need update the map->l_addr for execution."
Elliott Hughes [Mon, 1 Oct 2012 16:21:08 +0000 (09:21 -0700)]
am 5b6346f6: Merge "bionic: linker: Need update the map->l_addr for execution."

* commit '5b6346f6d5dca4022fe0044dd2807c19ac596788':
  bionic: linker: Need update the map->l_addr for execution.

11 years agoMerge "bionic: linker: Need update the map->l_addr for execution."
Elliott Hughes [Mon, 1 Oct 2012 16:09:17 +0000 (09:09 -0700)]
Merge "bionic: linker: Need update the map->l_addr for execution."

11 years agoam d03bfe68: Merge "Define ssize_t if necessary."
Elliott Hughes [Fri, 28 Sep 2012 17:27:06 +0000 (10:27 -0700)]
am d03bfe68: Merge "Define ssize_t if necessary."

* commit 'd03bfe689a6e29aa010a927741f42c08f89ef04d':
  Define ssize_t if necessary.

11 years agoMerge "Define ssize_t if necessary."
Elliott Hughes [Fri, 28 Sep 2012 17:16:57 +0000 (10:16 -0700)]
Merge "Define ssize_t if necessary."

11 years agoDefine ssize_t if necessary.
Elliott Hughes [Fri, 28 Sep 2012 17:15:52 +0000 (10:15 -0700)]
Define ssize_t if necessary.

Change-Id: I63801cc1f09be5e4ca20a6da7ec3366ba6441afd

11 years agoam f9163dd1: Merge "Add getdelim(3) and getline(3) to bionic"
Elliott Hughes [Fri, 28 Sep 2012 16:53:08 +0000 (09:53 -0700)]
am f9163dd1: Merge "Add getdelim(3) and getline(3) to bionic"

* commit 'f9163dd1f0f6cbd7b8305fa1b2ce46754ed95278':
  Add getdelim(3) and getline(3) to bionic

11 years agoMerge "Add getdelim(3) and getline(3) to bionic"
Elliott Hughes [Fri, 28 Sep 2012 16:44:23 +0000 (09:44 -0700)]
Merge "Add getdelim(3) and getline(3) to bionic"

11 years agoAdd getdelim(3) and getline(3) to bionic
Irina Tirdea [Sat, 8 Sep 2012 06:28:30 +0000 (09:28 +0300)]
Add getdelim(3) and getline(3) to bionic

Some userspace programs (e.g. perf) need getline.

Changes:
() add getdelim.c, getline.c from NetBSD (http://netbsd.org/) under the
NetBSD Foundation's (TNF) license ("2 clause" Berkeley-style license).
() add stub for reentrant.h header that is needed by getdelim.c
() add tests for getdelim(3) and getline(3).
() update NOTICE file.

Change-Id: I22ed82dd5904b9d7a3695535c04f502be3c27c5d
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
11 years agoam e4030e0b: Merge "Fix several compiler warnings."
Elliott Hughes [Wed, 26 Sep 2012 23:04:51 +0000 (16:04 -0700)]
am e4030e0b: Merge "Fix several compiler warnings."

* commit 'e4030e0bfc427e755477bbea69afe60308a62d91':
  Fix several compiler warnings.

11 years agoMerge "Fix several compiler warnings."
Elliott Hughes [Wed, 26 Sep 2012 22:51:01 +0000 (15:51 -0700)]
Merge "Fix several compiler warnings."

11 years agoam 827a2604: Merge "Replace __unused in kernel headers with __linux_unused to avoid...
Elliott Hughes [Wed, 26 Sep 2012 22:17:07 +0000 (15:17 -0700)]
am 827a2604: Merge "Replace __unused in kernel headers with __linux_unused to avoid conflicts with __unused macro in sys/cdefs.h"

* commit '827a2604ee660df80feb231a1f8bcc96ea6e64ce':
  Replace __unused in kernel headers with __linux_unused to avoid conflicts with __unused macro in sys/cdefs.h

11 years agoMerge "Replace __unused in kernel headers with __linux_unused to avoid conflicts...
Elliott Hughes [Wed, 26 Sep 2012 21:58:10 +0000 (14:58 -0700)]
Merge "Replace __unused in kernel headers with __linux_unused to avoid conflicts with __unused macro in sys/cdefs.h"

11 years agoFix several compiler warnings.
Elliott Hughes [Wed, 26 Sep 2012 21:20:22 +0000 (14:20 -0700)]
Fix several compiler warnings.

Change-Id: I55caa50a5937442734f4fcbdb4edf1c70f335bf8

11 years agoam 8e630dac: Merge "Simple tests for dladdr(3)."
Elliott Hughes [Wed, 26 Sep 2012 19:18:14 +0000 (12:18 -0700)]
am 8e630dac: Merge "Simple tests for dladdr(3)."

* commit '8e630dacf61307e4681f04fc6b5ee593f30d91d0':
  Simple tests for dladdr(3).

11 years agoam 855dde44: Merge "Fix tmpfile(3)."
Elliott Hughes [Wed, 26 Sep 2012 19:18:13 +0000 (12:18 -0700)]
am 855dde44: Merge "Fix tmpfile(3)."

* commit '855dde44266e3c8384ea419f51f9a5c748253eda':
  Fix tmpfile(3).

11 years agoMerge "Simple tests for dladdr(3)."
Elliott Hughes [Wed, 26 Sep 2012 19:10:55 +0000 (12:10 -0700)]
Merge "Simple tests for dladdr(3)."

11 years agoMerge "Fix tmpfile(3)."
Elliott Hughes [Wed, 26 Sep 2012 19:04:58 +0000 (12:04 -0700)]
Merge "Fix tmpfile(3)."

11 years agoFix tmpfile(3).
Elliott Hughes [Tue, 25 Sep 2012 00:55:15 +0000 (17:55 -0700)]
Fix tmpfile(3).

This could be better, but at least now it works.

Change-Id: I88b7cf3f7ce8e5fa0b3fe678b7d1679a68ffffc9

11 years agoSimple tests for dladdr(3).
Elliott Hughes [Wed, 26 Sep 2012 18:44:01 +0000 (11:44 -0700)]
Simple tests for dladdr(3).

Change-Id: I22160b7fc9b950ea19adb6da42af2f893f4fe5d5

11 years agoam 25937d36: Merge "FORTIFY_SOURCE: add umask check"
Nick Kralevich [Wed, 26 Sep 2012 18:12:34 +0000 (11:12 -0700)]
am 25937d36: Merge "FORTIFY_SOURCE: add umask check"

* commit '25937d36a0639593520d2765c59736c40095f0ae':
  FORTIFY_SOURCE: add umask check

11 years agoMerge "FORTIFY_SOURCE: add umask check"
Nick Kralevich [Wed, 26 Sep 2012 17:59:28 +0000 (10:59 -0700)]
Merge "FORTIFY_SOURCE: add umask check"

11 years agoam 3307bff0: Merge "Revert dl_fbase initialization to the address where the shared...
Elliott Hughes [Wed, 26 Sep 2012 17:43:00 +0000 (10:43 -0700)]
am 3307bff0: Merge "Revert dl_fbase initialization to the address where the shared object is loaded."

* commit '3307bff0232a00f879053e94a5f37f1ca1256f7c':
  Revert dl_fbase initialization to the address where the shared object is loaded.

11 years agoMerge "Revert dl_fbase initialization to the address where the shared object is loaded."
Elliott Hughes [Wed, 26 Sep 2012 17:38:10 +0000 (10:38 -0700)]
Merge "Revert dl_fbase initialization to the address where the shared object is loaded."

11 years agoFORTIFY_SOURCE: add umask check
Nick Kralevich [Wed, 26 Sep 2012 17:02:30 +0000 (10:02 -0700)]
FORTIFY_SOURCE: add umask check

Verify that the call to umask makes sense. While this wouldn't
have detected bug 7094213 (because the low order bits were all zero),
it might detect other similar bugs.

References: https://code.google.com/p/android-source-browsing/source/detail?r=acba45cc4b1f98f67fcdeda2f7c13ed57659b92a&repo=platform--libcore

Change-Id: I966a531d6b3cf8e1c5eacd69bd3cbec475b5fa58

11 years agoReplace __unused in kernel headers with __linux_unused to avoid
Raghu Gandham [Wed, 26 Sep 2012 00:49:17 +0000 (17:49 -0700)]
Replace __unused in kernel headers with __linux_unused to avoid
conflicts with __unused macro in sys/cdefs.h

Change-Id: Ice664397e0b7c7a90795012f30be5e43a9675525

11 years agoRevert dl_fbase initialization to the address where the shared object is loaded.
Raghu Gandham [Tue, 25 Sep 2012 22:50:33 +0000 (15:50 -0700)]
Revert dl_fbase initialization to the address where the shared object is loaded.

Change-Id: If868cab774a1ae5ff370208216cecda9b8c3b9fd

11 years agoam 6e0e03c3: Merge "Add the cleaned kernel headers"
Elliott Hughes [Mon, 24 Sep 2012 20:47:29 +0000 (13:47 -0700)]
am 6e0e03c3: Merge "Add the cleaned kernel headers"

* commit '6e0e03c38bc0e864225b89b3fb273fb56ded8940':
  Add the cleaned kernel headers

11 years agoMerge "Add the cleaned kernel headers"
Elliott Hughes [Mon, 24 Sep 2012 20:39:32 +0000 (13:39 -0700)]
Merge "Add the cleaned kernel headers"

11 years agoam 7b0377ed: Merge "[MIPS] Removed the unused header"
Elliott Hughes [Mon, 24 Sep 2012 19:41:20 +0000 (12:41 -0700)]
am 7b0377ed: Merge "[MIPS] Removed the unused header"

* commit '7b0377eda03abc9db79faa244e28aea1ac7b64da':
  [MIPS] Removed the unused header

11 years agoAdd the cleaned kernel headers
Raghu Gandham [Mon, 24 Sep 2012 19:33:04 +0000 (12:33 -0700)]
Add the cleaned kernel headers

Change-Id: Ied4e3ca765672ebaebe9d4d0909b3278c2ff3cd8

11 years agoMerge "[MIPS] Removed the unused header"
Elliott Hughes [Mon, 24 Sep 2012 19:24:00 +0000 (12:24 -0700)]
Merge "[MIPS] Removed the unused header"

11 years ago[MIPS] Removed the unused header
Raghu Gandham [Mon, 24 Sep 2012 18:52:00 +0000 (11:52 -0700)]
[MIPS] Removed the unused header

Change-Id: I8756a862669d4e5f283945496983f11a59dea30c

11 years agoam 3b6914bf: Merge "Fix dlsym and dladdr to use load_bias instead of base"
Elliott Hughes [Mon, 24 Sep 2012 17:21:23 +0000 (10:21 -0700)]
am 3b6914bf: Merge "Fix dlsym and dladdr to use load_bias instead of base"

* commit '3b6914bf04942f74e9dba43a75d5d5ae94161b95':
  Fix dlsym and dladdr to use load_bias instead of base

11 years agoMerge "Fix dlsym and dladdr to use load_bias instead of base"
Elliott Hughes [Mon, 24 Sep 2012 17:03:51 +0000 (10:03 -0700)]
Merge "Fix dlsym and dladdr to use load_bias instead of base"

11 years agoam 0c24effd: Merge "Add the libcutils localtime_tz and mktime_t extensions to bionic."
Elliott Hughes [Mon, 24 Sep 2012 15:55:27 +0000 (08:55 -0700)]
am 0c24effd: Merge "Add the libcutils localtime_tz and mktime_t extensions to bionic."

* commit '0c24effd01736e533fd082b2cf1de8926b0fe880':
  Add the libcutils localtime_tz and mktime_t extensions to bionic.

11 years agoam 85049ead: Merge "Use hidden visibility for several internal-use-only functions."
Elliott Hughes [Mon, 24 Sep 2012 15:43:45 +0000 (08:43 -0700)]
am 85049ead: Merge "Use hidden visibility for several internal-use-only functions."

* commit '85049ead251b0af9411ada3ad1db0f6b75f8e4a8':
  Use hidden visibility for several internal-use-only functions.

11 years agoam 882c6af9: Merge "[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS...
Elliott Hughes [Mon, 24 Sep 2012 15:43:44 +0000 (08:43 -0700)]
am 882c6af9: Merge "[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. Some of the required structure definitons are defined under this macro."

* commit '882c6af953e5b3fd4b9f4fe74a68128ea16fba3b':
  [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. Some of the required structure definitons are defined under this macro.

11 years agoMerge "Add the libcutils localtime_tz and mktime_t extensions to bionic."
Elliott Hughes [Mon, 24 Sep 2012 15:41:55 +0000 (08:41 -0700)]
Merge "Add the libcutils localtime_tz and mktime_t extensions to bionic."

11 years agoMerge "Use hidden visibility for several internal-use-only functions."
Elliott Hughes [Sun, 23 Sep 2012 18:08:18 +0000 (11:08 -0700)]
Merge "Use hidden visibility for several internal-use-only functions."

11 years agoUse hidden visibility for several internal-use-only functions.
Elliott Hughes [Sat, 22 Sep 2012 01:27:40 +0000 (18:27 -0700)]
Use hidden visibility for several internal-use-only functions.

Change-Id: Ibeea6963ff0cc06479d0a3ed7e868eeece8c55a0

11 years agoMerge "[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. Some of the...
Elliott Hughes [Sat, 22 Sep 2012 01:20:03 +0000 (18:20 -0700)]
Merge "[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. Some of the required structure definitons are defined under this macro."

11 years ago[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS.
Raghu Gandham [Sat, 22 Sep 2012 00:13:25 +0000 (17:13 -0700)]
[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS.
Some of the required structure definitons are defined under this macro.

Change-Id: I7a9a986e371381697dcb56bd8ea362856ffa7509

11 years agoFix dlsym and dladdr to use load_bias instead of base
Raghu Gandham [Fri, 21 Sep 2012 19:21:02 +0000 (12:21 -0700)]
Fix dlsym and dladdr to use load_bias instead of base

Change-Id: If0f9aa944ccb1f90451aa6674428e34494331d2d

11 years agoam 47dc4d43: Merge "Make pthread_create more forgiving of invalid sched_policy. Bug...
Elliott Hughes [Wed, 19 Sep 2012 00:13:15 +0000 (17:13 -0700)]
am 47dc4d43: Merge "Make pthread_create more forgiving of invalid sched_policy. Bug: 7005326"

* commit '47dc4d431017e701239dd7d9a16333e0ad56a0ac':
  Make pthread_create more forgiving of invalid sched_policy. Bug: 7005326

11 years agoMerge "Make pthread_create more forgiving of invalid sched_policy. Bug: 7005326"
Elliott Hughes [Tue, 18 Sep 2012 23:56:44 +0000 (16:56 -0700)]
Merge "Make pthread_create more forgiving of invalid sched_policy. Bug: 7005326"

11 years agoMake pthread_create more forgiving of invalid sched_policy.
Dave Burke [Tue, 18 Sep 2012 03:37:38 +0000 (20:37 -0700)]
Make pthread_create more forgiving of invalid sched_policy.
Bug: 7005326

(cherry-pick of e58303249b9e799a4fe84c5a2dfe71518441a6ec.)

Change-Id: Ie81494e0f6a71caa6fd9fabbcfc47a23077554d6

11 years agoam 77ac158e: Merge "Don\'t copy strerror(3) or strsignal(3) strings if we can share."
Elliott Hughes [Mon, 17 Sep 2012 22:50:18 +0000 (15:50 -0700)]
am 77ac158e: Merge "Don\'t copy strerror(3) or strsignal(3) strings if we can share."

* commit '77ac158e90712a975f61b7559b8de558f644f48d':
  Don't copy strerror(3) or strsignal(3) strings if we can share.

11 years agoMerge "Don't copy strerror(3) or strsignal(3) strings if we can share."
Elliott Hughes [Mon, 17 Sep 2012 22:36:26 +0000 (15:36 -0700)]
Merge "Don't copy strerror(3) or strsignal(3) strings if we can share."

11 years agoDon't copy strerror(3) or strsignal(3) strings if we can share.
Elliott Hughes [Mon, 17 Sep 2012 22:23:35 +0000 (15:23 -0700)]
Don't copy strerror(3) or strsignal(3) strings if we can share.

Change-Id: Ic405269f63b945c6fb347e7c4346cd6f104aff35

11 years agoam 047a285d: Merge "Fix <sys/klog.h> to correspond to the kernel operations."
Elliott Hughes [Fri, 14 Sep 2012 23:18:00 +0000 (16:18 -0700)]
am 047a285d: Merge "Fix <sys/klog.h> to correspond to the kernel operations."

* commit '047a285d41e3fe0b1a8071ec19f436baf6f187b2':
  Fix <sys/klog.h> to correspond to the kernel operations.

11 years agoMerge "Fix <sys/klog.h> to correspond to the kernel operations."
Elliott Hughes [Fri, 14 Sep 2012 23:14:48 +0000 (16:14 -0700)]
Merge "Fix <sys/klog.h> to correspond to the kernel operations."