OSDN Git Service
Xi Wang [Sat, 27 Oct 2012 06:02:01 +0000 (02:02 -0400)]
Fix a potential NULL pointer dereference in _init_thread().
The first NULL pointer check against `attr' suggests that `attr' can
be NULL. Then later `attr' is directly dereferenced, suggesting the
opposite.
if (attr == NULL) {
...
} else {
...
}
...
if (attr->stack_base == ...) { ... }
The public API pthread_create(3) allows NULL, and interprets it as "default".
Our implementation actually swaps in a pointer to the global default
pthread_attr_t, so we don't need any NULL checks in _init_thread. (The other
internal caller passes its own pthread_attr_t.)
Change-Id: I0a4e79b83f5989249556a07eed1f2887e96c915e
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Elliott Hughes [Mon, 29 Oct 2012 14:45:12 +0000 (07:45 -0700)]
Merge "libc: Fix alphasort() signature (and implementation)."
David 'Digit' Turner [Mon, 29 Oct 2012 14:32:54 +0000 (15:32 +0100)]
libc: Fix alphasort() signature (and implementation).
The declaration for alphasort() in <dirent.h> used the deprecated:
int alphasort(const void*, const void*);
while both Posix and GLibc use instead:
int alphasort(const struct dirent** a, const struct dirent** b);
See: http://pubs.opengroup.org/onlinepubs/
9699919799/functions/alphasort.html
This patch does the following:
- Update the declaration to match Posix/GLibc
- Get rid of the upstream BSD code which isn't compatible with the new
signature.
- Implement a new trivial alphasort() with the right signature, and
ensure that it uses strcoll() instead of strcmp().
- Remove Bionic-specific #ifdef .. #else .. #endif block in
dirent_test.cpp which uses alphasort().
Even through strcoll() currently uses strcmp(), this does the right
thing in the case where we decide to update strcoll() to properly
implement locale-specific ordered comparison.
Change-Id: I4fd45604d8a940aaf2eb0ecd7d73e2f11c9bca96
Elliott Hughes [Mon, 29 Oct 2012 14:29:13 +0000 (07:29 -0700)]
Merge "Upgrade to tzdata2012h."
Elliott Hughes [Sat, 27 Oct 2012 21:32:44 +0000 (14:32 -0700)]
Upgrade to tzdata2012h.
The 2012h release reflects the following changes recently circulated
on the tz mailing list:
[Brazil] Bahia no longer has DST. (Thanks to Kelley Cook.)
[Brazil] Tocantins has DST. (Thanks to Rodrigo Severo.)
[Israel] Israel has new DST rules next year. (Thanks to Ephraim Silverberg.)
[Jordan] Jordan stays on DST this winter. (Thanks to Steffen Thorsen.)
Bug:
7429010
Change-Id: I0ec5fb72343e42f3f79490dfdea5f7f1946ae76f
Elliott Hughes [Fri, 26 Oct 2012 23:42:47 +0000 (16:42 -0700)]
Merge "Clean up the implementation of the <dirent.h> functions."
Elliott Hughes [Fri, 26 Oct 2012 03:55:23 +0000 (20:55 -0700)]
Clean up the implementation of the <dirent.h> functions.
Change-Id: I3c647cc9588525afc41fee90ee468d58cd13503a
Elliott Hughes [Thu, 25 Oct 2012 22:00:45 +0000 (15:00 -0700)]
Merge "Workaround g++ 4.7 compfail"
Elliott Hughes [Thu, 25 Oct 2012 21:56:53 +0000 (14:56 -0700)]
Merge "Fix recovery: don't assert if there's no tzdata."
Elliott Hughes [Thu, 25 Oct 2012 21:38:51 +0000 (14:38 -0700)]
Fix recovery: don't assert if there's no tzdata.
Change-Id: I4d808b57c63ec1ccc024da7fd6a65691e0d455c5
Elliott Hughes [Thu, 25 Oct 2012 19:08:50 +0000 (12:08 -0700)]
Merge "Per-thread -fstack-protector guards for x86."
Elliott Hughes [Thu, 25 Oct 2012 01:37:21 +0000 (18:37 -0700)]
Per-thread -fstack-protector guards for x86.
Based on a pair of patches from Intel:
https://android-review.googlesource.com/#/c/43909/
https://android-review.googlesource.com/#/c/44903/
For x86, this patch supports _both_ the global that ARM/MIPS use
and the per-thread TLS entry (%gs:20) that GCC uses by default. This
lets us support binaries built with any x86 toolchain (right now,
the NDK is emitting x86 code that uses the global).
I've also extended the original tests to cover ARM/MIPS too, and
be a little more thorough for x86.
Change-Id: I02f279a80c6b626aecad449771dec91df235ad01
Pavel Chupin [Thu, 25 Oct 2012 08:17:05 +0000 (12:17 +0400)]
Workaround g++ 4.7 compfail
error: C99 designator 'name' outside aggregate initializer
G++ 4.7+ can't handle some of C99 designated initializers.
Most likely it's just not implemented yet. Other possible workarounds is
to compile this as C not C++ or define name as char* instead of char[SIZE].
Appeared after this change https://android-review.googlesource.com/#/c/44470
Change-Id: Ib28157848ce759b8bb5dbb2ac0d9a768fa4e5107
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Elliott Hughes [Tue, 23 Oct 2012 23:55:19 +0000 (16:55 -0700)]
Merge "More upstream NetBSD upgrades."
Elliott Hughes [Tue, 23 Oct 2012 23:05:09 +0000 (16:05 -0700)]
More upstream NetBSD upgrades.
Change-Id: Idb781d37de3b05585271d7d258ecffd5ba87d0b8
Elliott Hughes [Tue, 23 Oct 2012 20:45:36 +0000 (13:45 -0700)]
Merge "Upgrade more functions to the current upstream NetBSD copy."
Elliott Hughes [Tue, 23 Oct 2012 19:26:26 +0000 (12:26 -0700)]
Upgrade more functions to the current upstream NetBSD copy.
Change-Id: Ie0b3f8b3fccef28609eb210434413ebd51d6ef45
Elliott Hughes [Tue, 23 Oct 2012 00:50:26 +0000 (17:50 -0700)]
Merge "Move setlocale(3) and the wchar stubs over to .cpp."
Elliott Hughes [Tue, 23 Oct 2012 00:05:27 +0000 (17:05 -0700)]
Move setlocale(3) and the wchar stubs over to .cpp.
Also separate out the C++ files so we can use -Werror on them. I'd
rather wait for LOCAL_CPPFLAGS to be in AOSP, but this also lets us
see which files still need to be sorted into one bucket or the other.
Change-Id: I6acc1f7c043935c70a3b089f705d218b9aaaba0a
Elliott Hughes [Mon, 22 Oct 2012 23:13:03 +0000 (16:13 -0700)]
Merge "Add missing BEGIN_DECLS/END_DECLS for FORTIFY_SOURCE stdio prototypes."
Elliott Hughes [Mon, 22 Oct 2012 23:12:46 +0000 (16:12 -0700)]
Merge "Clean up warnings in stubs.cpp."
Elliott Hughes [Mon, 22 Oct 2012 23:10:27 +0000 (16:10 -0700)]
Add missing BEGIN_DECLS/END_DECLS for FORTIFY_SOURCE stdio prototypes.
Change-Id: I35ceb09fedf873c5e98e1e26efce5e4f00a17e74
Elliott Hughes [Mon, 22 Oct 2012 23:04:56 +0000 (16:04 -0700)]
Clean up warnings in stubs.cpp.
Change-Id: Ie0792846de7cf5f5c72737494bf78ab8dcb8cc3e
Elliott Hughes [Mon, 22 Oct 2012 22:51:11 +0000 (15:51 -0700)]
Merge "Move the FORTIFY_SOURCE helpers over to .cpp."
Elliott Hughes [Mon, 22 Oct 2012 22:32:01 +0000 (15:32 -0700)]
Move the FORTIFY_SOURCE helpers over to .cpp.
Change-Id: Ib5067d51b983cac7760c975becce7fe2408ead04
Elliott Hughes [Mon, 22 Oct 2012 21:56:31 +0000 (14:56 -0700)]
Merge "Support zone.tab in bionic, and remove the file format version."
Elliott Hughes [Mon, 22 Oct 2012 21:47:58 +0000 (14:47 -0700)]
Support zone.tab in bionic, and remove the file format version.
Bug:
7012465
Change-Id: I6335c91ebadc609fae85bad94db972be7574b6e4
Elliott Hughes [Mon, 22 Oct 2012 18:37:26 +0000 (11:37 -0700)]
Merge "Make bionic look in /data/misc for tzdata updates."
Elliott Hughes [Sat, 20 Oct 2012 01:13:15 +0000 (18:13 -0700)]
Make bionic look in /data/misc for tzdata updates.
Bug:
7012465
Change-Id: I4d1018f686f2409600fdb6630732cae33efe8f02
Elliott Hughes [Sat, 20 Oct 2012 00:12:37 +0000 (17:12 -0700)]
Merge "Change ZoneCompator to generate the single "tzdata" file."
Elliott Hughes [Sat, 20 Oct 2012 00:07:45 +0000 (17:07 -0700)]
Merge "Update generate-NOTICE.py to know about tzdata."
Elliott Hughes [Fri, 19 Oct 2012 21:47:37 +0000 (14:47 -0700)]
Change ZoneCompator to generate the single "tzdata" file.
Also remove the obsolete individual files, and the temporary script
that converted between the formats.
Bug:
7012465
Change-Id: I5a4030098e4d53e747fd6d395df2679d1567ee1f
Elliott Hughes [Fri, 19 Oct 2012 21:55:19 +0000 (14:55 -0700)]
Update generate-NOTICE.py to know about tzdata.
Also regenerate the NOTICE files. One had slipped behind.
Bug:
7012465
Change-Id: Ice2e909b521472eb1acd53d8151038bebe19984a
Elliott Hughes [Fri, 19 Oct 2012 21:30:04 +0000 (14:30 -0700)]
Merge "Track the tzdata2012g update in the new file format."
Elliott Hughes [Fri, 19 Oct 2012 21:28:56 +0000 (14:28 -0700)]
Track the tzdata2012g update in the new file format.
Change-Id: Id18aeb1122df769d83c4be06fbf37681231e79f0
Elliott Hughes [Fri, 19 Oct 2012 20:45:50 +0000 (13:45 -0700)]
Merge "Upgrade to tzdata2012g."
Elliott Hughes [Thu, 18 Oct 2012 23:34:48 +0000 (16:34 -0700)]
Upgrade to tzdata2012g.
This release reflects the following changes recently circulated on the tz
mailing list:
Samoa fall 2012 and later. (Thanks to Nicholas Pereira
and Robert Elz.)
Palestine fall 2012. (Thanks to Steffen Thorsen.)
This release does not reflect the possible changes discussed yesterday
for Tocantins and Bahia.
(cherry-pick of
f0e402dbd257ab495eab514b347db4b3d6844826.)
Change-Id: I8202292b11accedb811194a821dacf837a1bbd6e
Elliott Hughes [Fri, 19 Oct 2012 20:37:24 +0000 (13:37 -0700)]
Merge "Do all the zoneinfo.* file generation in Java."
Elliott Hughes [Fri, 19 Oct 2012 20:03:52 +0000 (13:03 -0700)]
Do all the zoneinfo.* file generation in Java.
Bug:
7012465
Change-Id: Ia5d5ad75db94d680a6b34ccc26eb68d5bd2bfc29
Elliott Hughes [Fri, 19 Oct 2012 20:01:04 +0000 (13:01 -0700)]
Merge "Switch bionic over to using libcore's copy of libcore.util.ZoneInfo."
Elliott Hughes [Fri, 19 Oct 2012 19:05:24 +0000 (12:05 -0700)]
Switch bionic over to using libcore's copy of libcore.util.ZoneInfo.
Bug:
7012465
Change-Id: I1225494c5d77a20fd48be1e904d8695ef95860e3
Elliott Hughes [Thu, 18 Oct 2012 20:43:40 +0000 (13:43 -0700)]
Merge "Fixes x86 build."
Elliott Hughes [Thu, 18 Oct 2012 20:42:59 +0000 (13:42 -0700)]
Fixes x86 build.
Change-Id: I0e576784b2224668d58ebea03986d534ee0e43b4
Elliott Hughes [Thu, 18 Oct 2012 20:19:13 +0000 (13:19 -0700)]
Merge "Make 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
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."
Elliott Hughes [Thu, 18 Oct 2012 17:09:47 +0000 (10:09 -0700)]
Merge "Remove obsolete CHANGES.TXT and ISSUES.TXT."
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
Elliott Hughes [Wed, 17 Oct 2012 22:52:09 +0000 (15:52 -0700)]
Merge "Put 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
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
Elliott Hughes [Wed, 17 Oct 2012 17:50:48 +0000 (10:50 -0700)]
Merge "Make dlerror(3) thread-safe."
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>""
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
David 'Digit' Turner [Wed, 17 Oct 2012 14:20:54 +0000 (07:20 -0700)]
Merge "libc: 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
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
Elliott Hughes [Tue, 16 Oct 2012 00:34:08 +0000 (17:34 -0700)]
Merge "LONG_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
Elliott Hughes [Sat, 13 Oct 2012 00:09:02 +0000 (17:09 -0700)]
Merge "Fix 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
Elliott Hughes [Fri, 12 Oct 2012 17:59:59 +0000 (10:59 -0700)]
Merge "Make 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
Elliott Hughes [Fri, 12 Oct 2012 17:27:43 +0000 (10:27 -0700)]
Merge "Fix 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
Elliott Hughes [Thu, 11 Oct 2012 17:26:00 +0000 (10:26 -0700)]
Merge "Fix 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>
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."
Elliott Hughes [Wed, 10 Oct 2012 00:23:38 +0000 (17:23 -0700)]
Merge "Fix two comment typos."
Elliott Hughes [Wed, 10 Oct 2012 00:23:09 +0000 (17:23 -0700)]
Fix two comment typos.
Change-Id: Icb2d6f7fa97ef5a4409a7606875e416cfab0a4b3
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
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"
Elliott Hughes [Thu, 4 Oct 2012 00:27:51 +0000 (17:27 -0700)]
Merge "Test 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
Elliott Hughes [Tue, 2 Oct 2012 18:31:30 +0000 (11:31 -0700)]
am
95a2a7f3: Merge "Fix MIPS build."
* commit '
95a2a7f325330830d6227aa683948b325e38e653':
Fix MIPS build.
Elliott Hughes [Tue, 2 Oct 2012 18:22:32 +0000 (11:22 -0700)]
Merge "Fix 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
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.
Elliott Hughes [Tue, 2 Oct 2012 16:13:34 +0000 (09:13 -0700)]
Merge "Move non-upstream code into the libc/bionic directory."
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.
Elliott Hughes [Tue, 2 Oct 2012 01:11:20 +0000 (18:11 -0700)]
Merge "Always 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
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
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.
Elliott Hughes [Mon, 1 Oct 2012 22:37:18 +0000 (15:37 -0700)]
Merge "Remove 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
Elliott Hughes [Mon, 1 Oct 2012 21:46:46 +0000 (14:46 -0700)]
am
fe712e6c: Merge "Upgrade seed48 too."
* commit '
fe712e6caedccbbba24bda8429cb0b8cc6057ff1':
Upgrade seed48 too.
Elliott Hughes [Mon, 1 Oct 2012 21:38:09 +0000 (14:38 -0700)]
Merge "Upgrade 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
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.
Elliott Hughes [Mon, 1 Oct 2012 21:05:08 +0000 (14:05 -0700)]
Merge "Upgrade 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
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.
Elliott Hughes [Mon, 1 Oct 2012 16:09:17 +0000 (09:09 -0700)]
Merge "bionic: linker: Need update the map->l_addr for execution."
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.
Elliott Hughes [Fri, 28 Sep 2012 17:16:57 +0000 (10:16 -0700)]
Merge "Define 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
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
Elliott Hughes [Fri, 28 Sep 2012 16:44:23 +0000 (09:44 -0700)]
Merge "Add 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>