OSDN Git Service

android-x86/bionic.git
11 years agoMerge "Rewrite <fenv.h> for ARM."
Elliott Hughes [Tue, 6 Nov 2012 00:43:34 +0000 (16:43 -0800)]
Merge "Rewrite <fenv.h> for ARM."

11 years agoMerge "Upgrade to tzdata2012i."
Elliott Hughes [Mon, 5 Nov 2012 18:42:57 +0000 (10:42 -0800)]
Merge "Upgrade to tzdata2012i."

11 years agoMerge "Tone down some of the overly-verbose linker logging."
Elliott Hughes [Mon, 5 Nov 2012 17:13:31 +0000 (09:13 -0800)]
Merge "Tone down some of the overly-verbose linker logging."

11 years agoTone down some of the overly-verbose linker logging.
Elliott Hughes [Mon, 5 Nov 2012 17:11:43 +0000 (09:11 -0800)]
Tone down some of the overly-verbose linker logging.

We don't need to see every dlopen(3)/dlsym(3) failure unless LD_DEBUG is on.

Change-Id: I1edfe8b72f32ff54dd30e1acf32e20d470d5e9f7

11 years agoUpgrade to tzdata2012i.
Elliott Hughes [Mon, 5 Nov 2012 16:53:28 +0000 (08:53 -0800)]
Upgrade to tzdata2012i.

Also support GPG signature verification of updates, and fix remaining
pylint complaints.

The 2012i release of the tz data reflects the following changes recently
circulated on the tz mailing list:

* Cuba switches from DST [2012-11-04] at 01:00.  (Thanks to Steffen Thorsen.)

Change-Id: Ie81d395afa40aa217a0196aad8ca1f9a870bbc31

11 years agoRewrite <fenv.h> for ARM.
Elliott Hughes [Sat, 3 Nov 2012 00:05:20 +0000 (17:05 -0700)]
Rewrite <fenv.h> for ARM.

The old code was one big no-op.

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

11 years agoMerge "Cleaning the linker environment as we initialize it requires less API."
Elliott Hughes [Fri, 2 Nov 2012 20:47:50 +0000 (13:47 -0700)]
Merge "Cleaning the linker environment as we initialize it requires less API."

11 years agoMerge "Make dynamic linker debugging always available."
Elliott Hughes [Fri, 2 Nov 2012 20:46:55 +0000 (13:46 -0700)]
Merge "Make dynamic linker debugging always available."

11 years agoMake dynamic linker debugging always available.
Elliott Hughes [Fri, 2 Nov 2012 19:37:13 +0000 (12:37 -0700)]
Make dynamic linker debugging always available.

If you need to build your own linker to get debugging, the debugging
is never available when you need it.

Change-Id: I5ff7e55753459d49a2990f25d9aa155e0b8602e0

11 years agoCleaning the linker environment as we initialize it requires less API.
Elliott Hughes [Fri, 2 Nov 2012 19:40:11 +0000 (12:40 -0700)]
Cleaning the linker environment as we initialize it requires less API.

Change-Id: I612fd699e46833a411589478564a1f859223c380

11 years agoMerge "Adjust symbol lookup for DT_SYMBOLIC case"
Elliott Hughes [Fri, 2 Nov 2012 18:25:48 +0000 (11:25 -0700)]
Merge "Adjust symbol lookup for DT_SYMBOLIC case"

11 years agoAdjust symbol lookup for DT_SYMBOLIC case
Pavel Chupin [Wed, 31 Oct 2012 09:55:51 +0000 (13:55 +0400)]
Adjust symbol lookup for DT_SYMBOLIC case

According ELF spec re. DT_SYMBOLIC:
This element's presence in a shared object library alters the dynamic
linker's symbol resolution algorithm for references within the library.
Instead of starting a symbol search with the executable file, the
dynamic linker starts from the shared object itself. If the shared
object fails to supply the referenced symbol, the dynamic linker then
searches the executable file and other shared objects as usual.

This change implements the last part.

Change-Id: Iae95d53d455313a4306f11733941bcd3596ac85f
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
11 years agoMerge "Allow dlopen("egl/blah.so")."
Elliott Hughes [Fri, 2 Nov 2012 06:01:57 +0000 (23:01 -0700)]
Merge "Allow dlopen("egl/blah.so")."

11 years agoAllow dlopen("egl/blah.so").
Elliott Hughes [Fri, 2 Nov 2012 05:59:19 +0000 (22:59 -0700)]
Allow dlopen("egl/blah.so").

NVIDIA binary blobs construct strings to pass to dlopen(3) that
contain '/' but require that we fall back to LD_LIBRARY_PATH.

Change-Id: Iad831899986baace6962f4b335eeb288250a1e22

11 years agoMerge "Don't corrupt the thread list if the main thread exits."
Elliott Hughes [Fri, 2 Nov 2012 00:28:00 +0000 (17:28 -0700)]
Merge "Don't corrupt the thread list if the main thread exits."

11 years agoDon't corrupt the thread list if the main thread exits.
Elliott Hughes [Thu, 1 Nov 2012 23:33:29 +0000 (16:33 -0700)]
Don't corrupt the thread list if the main thread exits.

...and don't pass a non-heap pointer to free(3), either.

This patch replaces the "node** prev" with the clearer "node* prev"
style and fixes the null pointer dereference in the old code. That's
not sufficient to fix the reporter's bug, though. The pthread_internal_t*
for the main thread isn't heap-allocated --- __libc_init_tls causes a
pointer to a statically-allocated pthread_internal_t to be added to
the thread list.

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

11 years agoMerge "Keep the dynamic linker's soinfo pools mostly read-only."
Elliott Hughes [Thu, 1 Nov 2012 23:49:37 +0000 (16:49 -0700)]
Merge "Keep the dynamic linker's soinfo pools mostly read-only."

11 years agoKeep the dynamic linker's soinfo pools mostly read-only.
Elliott Hughes [Thu, 1 Nov 2012 22:16:56 +0000 (15:16 -0700)]
Keep the dynamic linker's soinfo pools mostly read-only.

We'll need a lot more refactoring of this code before we can reduce
the granularity, but this is a step forward.

Change-Id: I07061720e734b571a8399c1d5b4f2f35cd681307

11 years agoMerge "Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too."
Elliott Hughes [Thu, 1 Nov 2012 20:56:59 +0000 (13:56 -0700)]
Merge "Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too."

11 years agoStop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too.
Elliott Hughes [Thu, 1 Nov 2012 20:49:32 +0000 (13:49 -0700)]
Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too.

Also remove an unnecessary #include and a now-obsolete TODO.

Change-Id: I36d923721e349a286934b9534090a67ce0786e7b

11 years agoMerge "Dynamically allocate soinfo-structs in linker"
Elliott Hughes [Thu, 1 Nov 2012 18:36:01 +0000 (11:36 -0700)]
Merge "Dynamically allocate soinfo-structs in linker"

11 years agoDynamically allocate soinfo-structs in linker
Magnus Malmborn [Wed, 12 Sep 2012 11:00:55 +0000 (13:00 +0200)]
Dynamically allocate soinfo-structs in linker

Request memory from the system when needed instead of having a fixed
array for soinfo structs. Note that malloc() et al can't be used in
linker, so use mmap() instead.

Change-Id: I4b495995931d7752b0e8c944e64d1fe41b9f7144

11 years agoMerge "Reject .so files with no sysv hash table."
Elliott Hughes [Wed, 31 Oct 2012 22:09:45 +0000 (15:09 -0700)]
Merge "Reject .so files with no sysv hash table."

11 years agoReject .so files with no sysv hash table.
Elliott Hughes [Wed, 31 Oct 2012 21:20:03 +0000 (14:20 -0700)]
Reject .so files with no sysv hash table.

Also ensure that dlopen(3) errors always include the name of the library we
failed to open.

Also fix a bug where we'd fall back to searching LD_LIBRARY_PATH and the
built-in paths for names that include slashes.

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

11 years agoMerge "Start cleaning up libm."
Elliott Hughes [Wed, 31 Oct 2012 20:43:41 +0000 (13:43 -0700)]
Merge "Start cleaning up libm."

11 years agoStart cleaning up libm.
Elliott Hughes [Wed, 31 Oct 2012 20:26:46 +0000 (13:26 -0700)]
Start cleaning up libm.

We have two copies of fenv.h for every architecture, one of which
isn't used. We also have unused makefiles and files for architectures
we don't support.

This patch removes all the obviously useless files.

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

11 years agoMerge "linker: handle R_ARM_COPY relocations in a proper way"
Elliott Hughes [Wed, 31 Oct 2012 00:10:30 +0000 (17:10 -0700)]
Merge "linker: handle R_ARM_COPY relocations in a proper way"

11 years agolinker: handle R_ARM_COPY relocations in a proper way
Ard Biesheuvel [Thu, 30 Aug 2012 10:48:32 +0000 (12:48 +0200)]
linker: handle R_ARM_COPY relocations in a proper way

If an executable contain copy relocations, other references
to the symbol it points to should be preempted and made to
point to the copy instead.

Also, the linker should make sure the target area has
sufficient space to contain the copy. It also checks
whether the library that supplies the symbol is built
with -Bsymbolic, and errors out if this is the case.

Change-Id: If135c83590092741cfd8f82f54816f363a4a4a3b
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
11 years agoMerge "More dynamic linker cleanup."
Elliott Hughes [Tue, 30 Oct 2012 23:41:00 +0000 (16:41 -0700)]
Merge "More dynamic linker cleanup."

11 years agoMore dynamic linker cleanup.
Elliott Hughes [Tue, 30 Oct 2012 00:37:13 +0000 (17:37 -0700)]
More dynamic linker cleanup.

I still want to break linker_format out into its own library so we can reuse
it for malloc debugging and so forth. (There are many similar pieces of code
in bionic, but the linker's one seems to be the most complete/functional.)

Change-Id: If3721853d28937c8e821ca1d23cf200e228a409a

11 years agoMerge "Fix bug in pthread_join, pthread_exit, pthread_detach"
Elliott Hughes [Tue, 30 Oct 2012 19:57:57 +0000 (12:57 -0700)]
Merge "Fix bug in pthread_join, pthread_exit, pthread_detach"

11 years agoMerge "Clean up the <libgen.h> implementation a little, bring in tests."
Elliott Hughes [Mon, 29 Oct 2012 22:03:21 +0000 (15:03 -0700)]
Merge "Clean up the <libgen.h> implementation a little, bring in tests."

11 years agoClean up the <libgen.h> implementation a little, bring in tests.
Elliott Hughes [Mon, 29 Oct 2012 21:27:10 +0000 (14:27 -0700)]
Clean up the <libgen.h> implementation a little, bring in tests.

Most of these tests were in system/extras, but I've added more to cover other
cases explicitly mentioned by POSIX.

Change-Id: I5e8d77e4179028d77306935cceadbb505515dcde

11 years agoFix bug in pthread_join, pthread_exit, pthread_detach
Sergey Melnikov [Fri, 26 Oct 2012 10:06:43 +0000 (14:06 +0400)]
Fix bug in pthread_join, pthread_exit, pthread_detach

pthread_no_op_detach_after_join test from bionic-unit-tests hangs
on x86 emulator. There is a race in the pthread_join, pthread_exit,
pthread_detach functions:
- pthread_join waits for the non-detached thread
- pthread_detach sets the detached flag on that thread
- the thread executes pthread_exit which just kills the now-detached
thread, without sending the join notification.

This patch improves the test so it fails on ARM too, and modifies
pthread_detach to behave more like glibc, not setting the detach state if
called on a thread that's already being joined (but not returning an error).

Change-Id: I87dc688221ce979ef5178753dd63d01ac0b108e6
Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com>
11 years agoMerge "Fix the pthread_join on self error case."
Elliott Hughes [Mon, 29 Oct 2012 17:30:15 +0000 (10:30 -0700)]
Merge "Fix the pthread_join on self error case."

11 years agoFix the pthread_join on self error case.
Elliott Hughes [Mon, 29 Oct 2012 17:19:44 +0000 (10:19 -0700)]
Fix the pthread_join on self error case.

We should return EDEADLK, not deadlock the calling thread.

Change-Id: I1243483f709c11b2a60e41142725c54c7dbfcbc9

11 years agoMerge "Fix a potential NULL pointer dereference in _init_thread()."
Elliott Hughes [Mon, 29 Oct 2012 15:26:01 +0000 (08:26 -0700)]
Merge "Fix a potential NULL pointer dereference in _init_thread()."

11 years agoFix a potential NULL pointer dereference in _init_thread().
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>
11 years agoMerge "libc: Fix alphasort() signature (and implementation)."
Elliott Hughes [Mon, 29 Oct 2012 14:45:12 +0000 (07:45 -0700)]
Merge "libc: Fix alphasort() signature (and implementation)."

11 years agolibc: 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

11 years agoMerge "Upgrade to tzdata2012h."
Elliott Hughes [Mon, 29 Oct 2012 14:29:13 +0000 (07:29 -0700)]
Merge "Upgrade to tzdata2012h."

11 years agoUpgrade 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

11 years agoMerge "Clean up the implementation of the <dirent.h> functions."
Elliott Hughes [Fri, 26 Oct 2012 23:42:47 +0000 (16:42 -0700)]
Merge "Clean up the implementation of the <dirent.h> functions."

11 years agoClean 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

11 years agoMerge "Workaround g++ 4.7 compfail"
Elliott Hughes [Thu, 25 Oct 2012 22:00:45 +0000 (15:00 -0700)]
Merge "Workaround g++ 4.7 compfail"

11 years agoMerge "Fix recovery: don't assert if there's no tzdata."
Elliott Hughes [Thu, 25 Oct 2012 21:56:53 +0000 (14:56 -0700)]
Merge "Fix recovery: don't assert if there's no tzdata."

11 years agoFix 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

11 years agoMerge "Per-thread -fstack-protector guards for x86."
Elliott Hughes [Thu, 25 Oct 2012 19:08:50 +0000 (12:08 -0700)]
Merge "Per-thread -fstack-protector guards for x86."

11 years agoPer-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

11 years agoWorkaround g++ 4.7 compfail
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>
11 years agoMerge "More upstream NetBSD upgrades."
Elliott Hughes [Tue, 23 Oct 2012 23:55:19 +0000 (16:55 -0700)]
Merge "More upstream NetBSD upgrades."

11 years agoMore upstream NetBSD upgrades.
Elliott Hughes [Tue, 23 Oct 2012 23:05:09 +0000 (16:05 -0700)]
More upstream NetBSD upgrades.

Change-Id: Idb781d37de3b05585271d7d258ecffd5ba87d0b8

11 years agoMerge "Upgrade more functions to the current upstream NetBSD copy."
Elliott Hughes [Tue, 23 Oct 2012 20:45:36 +0000 (13:45 -0700)]
Merge "Upgrade more functions to the current upstream NetBSD copy."

11 years agoUpgrade 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

11 years agoMerge "Move setlocale(3) and the wchar stubs over to .cpp."
Elliott Hughes [Tue, 23 Oct 2012 00:50:26 +0000 (17:50 -0700)]
Merge "Move setlocale(3) and the wchar stubs over to .cpp."

11 years agoMove 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

11 years agoMerge "Add missing BEGIN_DECLS/END_DECLS for FORTIFY_SOURCE stdio prototypes."
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."

11 years agoMerge "Clean up warnings in stubs.cpp."
Elliott Hughes [Mon, 22 Oct 2012 23:12:46 +0000 (16:12 -0700)]
Merge "Clean up warnings in stubs.cpp."

11 years agoAdd missing BEGIN_DECLS/END_DECLS for FORTIFY_SOURCE stdio prototypes.
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

11 years agoClean up warnings in stubs.cpp.
Elliott Hughes [Mon, 22 Oct 2012 23:04:56 +0000 (16:04 -0700)]
Clean up warnings in stubs.cpp.

Change-Id: Ie0792846de7cf5f5c72737494bf78ab8dcb8cc3e

11 years agoMerge "Move the FORTIFY_SOURCE helpers over to .cpp."
Elliott Hughes [Mon, 22 Oct 2012 22:51:11 +0000 (15:51 -0700)]
Merge "Move the FORTIFY_SOURCE helpers over to .cpp."

11 years agoMove 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

11 years agoMerge "Support zone.tab in bionic, and remove the file format version."
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."

11 years agoSupport 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

11 years agoMerge "Make bionic look in /data/misc for tzdata updates."
Elliott Hughes [Mon, 22 Oct 2012 18:37:26 +0000 (11:37 -0700)]
Merge "Make bionic look in /data/misc for tzdata updates."

11 years agoMake 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

11 years agoMerge "Change ZoneCompator to generate the single "tzdata" file."
Elliott Hughes [Sat, 20 Oct 2012 00:12:37 +0000 (17:12 -0700)]
Merge "Change ZoneCompator to generate the single "tzdata" file."

11 years agoMerge "Update generate-NOTICE.py to know about tzdata."
Elliott Hughes [Sat, 20 Oct 2012 00:07:45 +0000 (17:07 -0700)]
Merge "Update generate-NOTICE.py to know about tzdata."

11 years agoChange ZoneCompator to generate the single "tzdata" file.
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

11 years agoUpdate generate-NOTICE.py to know about tzdata.
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

11 years agoMerge "Track the tzdata2012g update in the new file format."
Elliott Hughes [Fri, 19 Oct 2012 21:30:04 +0000 (14:30 -0700)]
Merge "Track the tzdata2012g update in the new file format."

11 years agoTrack 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

11 years agoMerge "Upgrade to tzdata2012g."
Elliott Hughes [Fri, 19 Oct 2012 20:45:50 +0000 (13:45 -0700)]
Merge "Upgrade to tzdata2012g."

11 years agoUpgrade 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

11 years agoMerge "Do all the zoneinfo.* file generation in Java."
Elliott Hughes [Fri, 19 Oct 2012 20:37:24 +0000 (13:37 -0700)]
Merge "Do all the zoneinfo.* file generation in Java."

11 years agoDo 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

11 years agoMerge "Switch bionic over to using libcore's copy of libcore.util.ZoneInfo."
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."

11 years agoSwitch 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

11 years agoMerge "Fixes x86 build."
Elliott Hughes [Thu, 18 Oct 2012 20:43:40 +0000 (13:43 -0700)]
Merge "Fixes x86 build."

11 years agoFixes x86 build.
Elliott Hughes [Thu, 18 Oct 2012 20:42:59 +0000 (13:42 -0700)]
Fixes x86 build.

Change-Id: I0e576784b2224668d58ebea03986d534ee0e43b4

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