OSDN Git Service

android-x86/bionic.git
14 years agoUse private futexes for pthread_mutex_t.
David 'Digit' Turner [Fri, 19 Mar 2010 00:13:41 +0000 (17:13 -0700)]
Use private futexes for pthread_mutex_t.

This does not change the implementation of conditional variables
since we're waiting for other system components to properly use
pthread_condattr_init/setpshared before that.

Also remove an obsolete x86 source file.

Change-Id: Ia3e3fbac35b87a534fb04d4381c3c66b975bc8f7

14 years agoAdd pthread_condattr_init/destroy/setpshared/getpshared
David 'Digit' Turner [Thu, 18 Mar 2010 21:07:42 +0000 (14:07 -0700)]
Add pthread_condattr_init/destroy/setpshared/getpshared

Note that this does not change the implementation of conditional variables
which still use shared futexes, independent on the flags being selected.

This will be fixed in a later patch, once our system is modified to use
pthread_condattr_setpshared(attr, PTHREAD_PROCESS_SHARED) properly.

Change-Id: I935de50964cd41f97a13dbfd6626d3407b0406c3

14 years agoFix indentation in pthread mutex implementation.
David 'Digit' Turner [Wed, 17 Mar 2010 18:25:46 +0000 (11:25 -0700)]
Fix indentation in pthread mutex implementation.

This is preliminary work to simplify later changes to support
private futexes.

Change-Id: I06750936a93747a5e3f5a10228cbdc29e39c528c

14 years agoRevert "bionic: pthread: use private futexes by default for mutexes and condvars"
Fabrice Di Meglio [Thu, 11 Mar 2010 22:47:47 +0000 (14:47 -0800)]
Revert "bionic: pthread: use private futexes by default for mutexes and condvars"

This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.

14 years agobionic: pthread: use private futexes by default for mutexes and condvars
David 'Digit' Turner [Thu, 11 Mar 2010 00:44:08 +0000 (16:44 -0800)]
bionic: pthread: use private futexes by default for mutexes and condvars

Private futexes are a recent kernel addition: faster futexes that cannot be
shared between processes. This patch uses them by default, unless the PROCESS_SHARED
attribute flag is used when creating a mutex and/or conditional variable.

Also introduces pthread_condattr_init/destroy/setpshared/getpshared.

Change-Id: I3a0e2116f467072b046524cb5babc00e41057a53

14 years agoMerge "Only use NEON memcpy if __ARM_NEON__ is defined"
Colin Cross [Thu, 11 Mar 2010 02:14:25 +0000 (18:14 -0800)]
Merge "Only use NEON memcpy if __ARM_NEON__ is defined"

14 years agoOnly use NEON memcpy if __ARM_NEON__ is defined
Colin Cross [Wed, 10 Mar 2010 00:23:51 +0000 (16:23 -0800)]
Only use NEON memcpy if __ARM_NEON__ is defined

Change-Id: I32e6b9385d46efeec15dee8e395a82eef24ba3ea

14 years agoMerge "Fix spurious DNS lookups in the C library."
David 'Digit' Turner [Tue, 9 Mar 2010 19:13:35 +0000 (11:13 -0800)]
Merge "Fix spurious DNS lookups in the C library."

14 years agoAdd an empty CleanSpec.mk
Jean-Baptiste Queru [Tue, 9 Mar 2010 02:04:02 +0000 (18:04 -0800)]
Add an empty CleanSpec.mk

Change-Id: Id233ea6f854253776f57e64196e262c5a057e654

14 years agoFix spurious DNS lookups in the C library.
David 'Digit' Turner [Mon, 8 Mar 2010 23:13:04 +0000 (15:13 -0800)]
Fix spurious DNS lookups in the C library.

The problem was that the 'defdname' field of res_state structure
was not properly initialized in __res_vinit(). This field is used
to store the default domain name, which is normally build from
calling gethostname() (see line 549 of res_init.c).

Unfortunately, in the typical Android case, gethostname() returns
an error (the hostname is configured) and a random stack string is
used later to build the DNS search list (see lines 556+ in res_init.c)

For the sake of illustration, let's say the search list is set to
a random value like 'xWLK'.

The end result is that when trying to result an unknown domain name
(e.g. 'www.ptn'), the query fails then the resolver tries to make a
new query with the DNS search list path(s) appended (e.g. 'www.ptn.xWLK').

The patch simply initializes 'defdname' to an empty string to avoid
this when the net.dns.search system property is not set.

Also contains whitespace/formatting fixes

14 years agoFix timezone management in the C library
David 'Digit' Turner [Fri, 5 Mar 2010 22:17:35 +0000 (14:17 -0800)]
Fix timezone management in the C library

Define 'timezone' and 'daylight' global variables that are already
defined in <time.h>

Properly update the 'tm_gmtoff' field in 'struct tm' values.

14 years agoMerge "QUalcomm H.264 encoder support."
Gloria Wang [Thu, 4 Mar 2010 02:02:33 +0000 (18:02 -0800)]
Merge "QUalcomm H.264 encoder support."

14 years agoQUalcomm H.264 encoder support.
Gloria Wang [Thu, 4 Mar 2010 00:26:26 +0000 (16:26 -0800)]
QUalcomm H.264 encoder support.

14 years agoam 71fbeecd: (-s ours) am fd5b1bb8: Add stdlib functions mbstowcs() and wcstombs...
Dan Bornstein [Wed, 3 Mar 2010 19:07:09 +0000 (11:07 -0800)]
am 71fbeecd: (-s ours) am fd5b1bb8: Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.

Merge commit '71fbeecdbd7bcf2282e4b032ceb2f6ead13dc9cb'

* commit '71fbeecdbd7bcf2282e4b032ceb2f6ead13dc9cb':
  Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.

14 years agoam fd5b1bb8: Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
Dan Bornstein [Wed, 3 Mar 2010 18:51:34 +0000 (10:51 -0800)]
am fd5b1bb8: Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.

Merge commit 'fd5b1bb85d0a971fd8469112a157380c4d3a146f' into eclair-mr2-plus-aosp

* commit 'fd5b1bb85d0a971fd8469112a157380c4d3a146f':
  Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.

14 years agoAdd stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
Dan Bornstein [Tue, 10 Nov 2009 20:15:33 +0000 (12:15 -0800)]
Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.

As with the other wchar functions in Bionic, these are really
minimally functional stubs.

14 years agobonic: libc: cpuacct support for setuid functions
Mike Chan [Tue, 2 Mar 2010 18:55:58 +0000 (10:55 -0800)]
bonic: libc: cpuacct support for setuid functions

Any of the setuid functions now updates /acct/uid/ with its own tid
before changing users. This is so we can properly account for cpu time
per uid.

Change-Id: I34186cf4d5228cac8439e582a9e26c01ef3011e4
Signed-off-by: Mike Chan <mike@android.com>
14 years agolibc: kernel: update pmem header with cache flush ioctl
Dima Zavin [Wed, 3 Mar 2010 00:10:21 +0000 (16:10 -0800)]
libc: kernel: update pmem header with cache flush ioctl

Change-Id: Ied08844035d4526175dcdcb7f219f9f90c4679d2
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoadd sigaltstack syscall
Andrei Popescu [Thu, 25 Feb 2010 13:27:46 +0000 (13:27 +0000)]
add sigaltstack syscall

14 years agoFix pthread_sigmask() to return correct error values.
David 'Digit' Turner [Mon, 1 Mar 2010 19:30:40 +0000 (11:30 -0800)]
Fix pthread_sigmask() to return correct error values.

Before that, it returned -1 on error and set errno (not Posix)
After the patch, it returns the error code and leaves errno untouched.

14 years agoMerge "Implement support for RFC 3484 (address selection/sorting) in bionic. (The...
David Turner [Wed, 24 Feb 2010 18:04:09 +0000 (10:04 -0800)]
Merge "Implement support for RFC 3484 (address selection/sorting) in bionic.  (The Java changes required not to mess up the ordering from bionic will arrive in a later commit.) In particular, this will give us more correct behavior when on a 6to4 network, in that IPv4 will usually be preferred over 6to4."

14 years agoImplement support for RFC 3484 (address selection/sorting) in bionic. (The
Steinar H. Gunderson [Thu, 11 Feb 2010 14:44:55 +0000 (15:44 +0100)]
Implement support for RFC 3484 (address selection/sorting) in bionic.  (The
Java changes required not to mess up the ordering from bionic will arrive in a
later commit.) In particular, this will give us more correct behavior when on a
6to4 network, in that IPv4 will usually be preferred over 6to4.

Most of RFC 3484 is implemented -- what's not is rule 3 (avoid deprecated
addresses), 4 (prefer home addresses) and 7 (prefer native transport) as they
require low-level access to the kernel routing table via netlink. (glibc also
started out this way, and these rules are primarily useful in pretty obscure
circumstances, so we should be fine for the time being.)

Also, rule 9 (use longest matching prefix) has been modified so it does not try
to sort IPv4 addresses; given current IPv4 addressing practice these rules are
pretty much meaningless. Finally, I've added support for Teredo as a separate
label, with slightly lower preference than 6to4. (Vista puts the preference
below IPv4 by default. glibc puts the preference together with non-tunneled
IPv6.)

Note that this patch removes support for the "sortlist" directive in
resolv.conf; I've never seen it in actual use, it's irrelevant for Android
(since we don't use resolv.conf anyway), and it's not clear how it would be
implemented alongside RFC 3484.

14 years agobionic: syscalls: Add ioprio_set/ioprio_get syscall wrappers
San Mehat [Tue, 23 Feb 2010 23:55:29 +0000 (15:55 -0800)]
bionic: syscalls: Add ioprio_set/ioprio_get syscall wrappers

Signed-off-by: San Mehat <san@google.com>
14 years agoMerge "Merge memory checking functionality from sandbox"
Vladimir Chtchetkine [Wed, 17 Feb 2010 21:43:15 +0000 (13:43 -0800)]
Merge "Merge memory checking functionality from sandbox"

14 years agoMerge memory checking functionality from sandbox
Vladimir Chtchetkine [Fri, 12 Feb 2010 16:59:58 +0000 (08:59 -0800)]
Merge memory checking functionality from sandbox

Change-Id: I304c789a752c9f4af4944ca14b9bf1e7644da15a

14 years agoMerge "Changed __get_h_errno linkage to "C"."
Niko Catania [Fri, 12 Feb 2010 21:46:31 +0000 (13:46 -0800)]
Merge "Changed __get_h_errno linkage to "C"."

14 years agoFix sem_post() behaviour to wake up multiple waiting threads.
David 'Digit' Turner [Fri, 12 Feb 2010 20:50:32 +0000 (12:50 -0800)]
Fix sem_post() behaviour to wake up multiple waiting threads.

14 years agoFix sem_trywait() implementation + update changelog.
David 'Digit' Turner [Fri, 12 Feb 2010 20:18:37 +0000 (12:18 -0800)]
Fix sem_trywait() implementation + update changelog.

14 years agoChanged __get_h_errno linkage to "C".
Nicolas Catania [Fri, 12 Feb 2010 19:33:53 +0000 (11:33 -0800)]
Changed __get_h_errno linkage to "C".

Bug:2441631

14 years agoFix android_id_from_name to accept "app_0" as a valid ID.
David 'Digit' Turner [Fri, 12 Feb 2010 19:35:38 +0000 (11:35 -0800)]
Fix android_id_from_name to accept "app_0" as a valid ID.

This fixes getpwnam and getpwgrp which returned NULL for "app_0".
"app_0" corresponds to uid/gid 10000 and is perfectly valid.

14 years agoFix debug output in the dynamic linker.
David 'Digit' Turner [Wed, 20 Jan 2010 20:36:51 +0000 (12:36 -0800)]
Fix debug output in the dynamic linker.

This provides a mini-printf implementation that reduces the
size of the dynamic linker by 25 KB, by preventing the drag of
formatting-related routines from the C library.

Also allow traces to be sent to the log, instead of stdout.

NOTE: You now need to modify Android.mk to enable/disable debug
      output.

14 years agobionic/linker: rename ba_prelink to ba_nonprelink
Iliyan Malchev [Wed, 10 Feb 2010 23:19:37 +0000 (15:19 -0800)]
bionic/linker: rename ba_prelink to ba_nonprelink

-- fixes b/2432550
-- ba_prelink is used to manage non-prelinked libraries, hence ba_nonprelink is
   a more appropriate name for it

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoMerge "Fix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ inclusio...
David Turner [Tue, 9 Feb 2010 22:50:57 +0000 (14:50 -0800)]
Merge "Fix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ inclusion guards"

14 years agoFix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ inclusion guards
David 'Digit' Turner [Tue, 9 Feb 2010 22:05:43 +0000 (14:05 -0800)]
Fix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ inclusion guards

14 years agoam 58060c50: am ee424e23: bionic: update processed kernel header a1026.h
Iliyan Malchev [Tue, 9 Feb 2010 17:32:25 +0000 (09:32 -0800)]
am 58060c50: am ee424e23: bionic: update processed kernel header a1026.h

Merge commit '58060c50bc4228a7d0253338cae0437211759959'

* commit '58060c50bc4228a7d0253338cae0437211759959':
  bionic: update processed kernel header a1026.h

14 years agoam ee424e23: bionic: update processed kernel header a1026.h
Iliyan Malchev [Tue, 9 Feb 2010 17:25:57 +0000 (09:25 -0800)]
am ee424e23: bionic: update processed kernel header a1026.h

Merge commit 'ee424e23c10c051ee4760177c85f6003ff20108c' into eclair-plus-aosp

* commit 'ee424e23c10c051ee4760177c85f6003ff20108c':
  bionic: update processed kernel header a1026.h

14 years agobionic: update processed kernel header a1026.h
Iliyan Malchev [Mon, 8 Feb 2010 23:57:09 +0000 (15:57 -0800)]
bionic: update processed kernel header a1026.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoam 1db87472: am ba8bfedd: reconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 22:14:46 +0000 (14:14 -0800)]
am 1db87472: am ba8bfedd: reconcile main tree with open-source eclair

Merge commit '1db874720a58ff7e3684116d59ad08bc73db26d9'

* commit '1db874720a58ff7e3684116d59ad08bc73db26d9':
  android-2.1_r1 snapshot

14 years agoam ba8bfedd: reconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 16:44:18 +0000 (08:44 -0800)]
am ba8bfedd: reconcile main tree with open-source eclair

Merge commit 'ba8bfedd04824eea944236ffc885f866c5e9c651' into eclair-plus-aosp

* commit 'ba8bfedd04824eea944236ffc885f866c5e9c651':
  android-2.1_r1 snapshot

14 years agoreconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 16:09:31 +0000 (08:09 -0800)]
reconcile main tree with open-source eclair

14 years agoam c0472409: am d0996bb4: bionic: update processed kernel header tpa2018d1.h
Iliyan Malchev [Wed, 3 Feb 2010 00:22:10 +0000 (16:22 -0800)]
am c0472409: am d0996bb4: bionic: update processed kernel header tpa2018d1.h

Merge commit 'c0472409d14eebf797df962dd78fc31afbc4bd07'

* commit 'c0472409d14eebf797df962dd78fc31afbc4bd07':
  bionic: update processed kernel header tpa2018d1.h

14 years agoam 7ec87a19: am 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h
Iliyan Malchev [Wed, 3 Feb 2010 00:22:06 +0000 (16:22 -0800)]
am 7ec87a19: am 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h

Merge commit '7ec87a1926250d3c1f74193bf36417707e691e10'

* commit '7ec87a1926250d3c1f74193bf36417707e691e10':
  bionic: add processed kernel headers a1026.h and tpa2018d1.h

14 years agoam d0996bb4: bionic: update processed kernel header tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 22:21:05 +0000 (14:21 -0800)]
am d0996bb4: bionic: update processed kernel header tpa2018d1.h

Merge commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d' into eclair-plus-aosp

* commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d':
  bionic: update processed kernel header tpa2018d1.h

14 years agoam 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 22:21:02 +0000 (14:21 -0800)]
am 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h

Merge commit '276313ec18c18a07e867dffe568a377583cfd905' into eclair-plus-aosp

* commit '276313ec18c18a07e867dffe568a377583cfd905':
  bionic: add processed kernel headers a1026.h and tpa2018d1.h

14 years agobionic: update processed kernel header tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 21:42:55 +0000 (13:42 -0800)]
bionic: update processed kernel header tpa2018d1.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agobionic: add processed kernel headers a1026.h and tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 19:56:26 +0000 (11:56 -0800)]
bionic: add processed kernel headers a1026.h and tpa2018d1.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agobionic: update processed kernel header msm_camera.h
Iliyan Malchev [Mon, 1 Feb 2010 01:22:25 +0000 (17:22 -0800)]
bionic: update processed kernel header msm_camera.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoreconcile android-2.1_r1 snapshot
The Android Open Source Project [Fri, 29 Jan 2010 22:07:31 +0000 (14:07 -0800)]
reconcile android-2.1_r1 snapshot

14 years agoMerge "Implement clone() C library function properly."
David Turner [Mon, 25 Jan 2010 22:30:17 +0000 (14:30 -0800)]
Merge "Implement clone() C library function properly."

14 years agoImplement clone() C library function properly.
David 'Digit' Turner [Sat, 23 Jan 2010 02:59:05 +0000 (18:59 -0800)]
Implement clone() C library function properly.

Only provide an implementation for ARM at the moment, since
it requires specific assembly fragments (the standard syscall
stubs cannot be used because the child returns in a different
stack).

14 years agoFix typo in a comment.
Doug Kwan [Mon, 25 Jan 2010 19:09:31 +0000 (11:09 -0800)]
Fix typo in a comment.

14 years agoAlign TEXT section to 4K boundary so that we can use both ld and gold.
Doug Kwan [Mon, 25 Jan 2010 18:24:50 +0000 (10:24 -0800)]
Align TEXT section to 4K boundary so that we can use both ld and gold.

14 years agoAdd Bionic Changelog in libc/docs/CHANGES.TXT
David 'Digit' Turner [Thu, 21 Jan 2010 23:03:26 +0000 (15:03 -0800)]
Add Bionic Changelog in libc/docs/CHANGES.TXT

14 years agoAdd implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell
Colin Cross [Thu, 14 Jan 2010 01:48:34 +0000 (17:48 -0800)]
Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell

Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3

14 years agoAdd killpg function
Colin Cross [Thu, 14 Jan 2010 00:39:26 +0000 (16:39 -0800)]
Add killpg function

Change-Id: I9bc347d264fe38faf2d0f9935d2ebb43a353196e

14 years agoAdd fts, err, and sys/queue for grep
Colin Cross [Thu, 14 Jan 2010 05:19:52 +0000 (21:19 -0800)]
Add fts, err, and sys/queue for grep

Change-Id: Id47514a1812d828e95efa2fab0e9c15c5b682b58

14 years agomntent.h requires stdio.h
Colin Cross [Thu, 14 Jan 2010 02:31:01 +0000 (18:31 -0800)]
mntent.h requires stdio.h

Change-Id: If69f64cf088dedb19602bf47627d03400abb9095

14 years agoAdd definition of rlim_t
Colin Cross [Thu, 14 Jan 2010 00:28:13 +0000 (16:28 -0800)]
Add definition of rlim_t

Change-Id: Ie8c2451360cbcce9fc1587528a95aca09a03d0de

14 years agoImport change from ctype.h revision 1.20 from openbsd
Colin Cross [Wed, 13 Jan 2010 22:38:20 +0000 (14:38 -0800)]
Import change from ctype.h revision 1.20 from openbsd

Fixes builds with gcc >= 4.3 with -std=gnu99

Change-Id: I8729b7f4237fd7a99a82b2fe60573a7afe66b435

14 years agoImport include/arpa/telnet.h from BSD
Colin Cross [Wed, 13 Jan 2010 03:00:00 +0000 (19:00 -0800)]
Import include/arpa/telnet.h from BSD

Change-Id: I684251bfb8ef04f0706866ea55dceebcd2a5b0e1

14 years agoImport regex from OpenBSD
Colin Cross [Wed, 13 Jan 2010 02:59:25 +0000 (18:59 -0800)]
Import regex from OpenBSD

Change-Id: I7ad7d907ef65e4e345f94777d730813b1270a612

14 years agoMerge "Use correct TLS codepath for linker"
Colin Cross [Fri, 15 Jan 2010 22:07:40 +0000 (14:07 -0800)]
Merge "Use correct TLS codepath for linker"

14 years agoUse correct TLS codepath for linker
Gary King [Tue, 29 Sep 2009 23:12:31 +0000 (16:12 -0700)]
Use correct TLS codepath for linker

Replicate ARM libc build's HAVE_ARM_TLS_REGISTER preprocessor definition
logic, to ensure that the runtime linker uses the correct codepath for
accessing the TLS address

14 years agoandroid-2.1_r1 snapshot
The Android Open Source Project [Tue, 12 Jan 2010 23:18:05 +0000 (15:18 -0800)]
android-2.1_r1 snapshot

14 years agoFix ptsname_r(3) return type to match glibc
Colin Cross [Tue, 12 Jan 2010 20:58:12 +0000 (12:58 -0800)]
Fix ptsname_r(3) return type to match glibc

The gHardy man pages specify the return type of ptsname_r to be char*, but the
return value to be 0 on success, negative on error and the gHardy stdlib.h
defines extern int ptsname_r(...).

Busybox telnetd fails to run successfully without this change.

14 years agoMerge "Fix usleep(3) return type to be POSIX-compliant."
Elliott Hughes [Thu, 7 Jan 2010 23:54:35 +0000 (15:54 -0800)]
Merge "Fix usleep(3) return type to be POSIX-compliant."

14 years agoAdd user-space ptrace data structure to dump VFP registers and status word.
Ben Cheng [Thu, 17 Dec 2009 20:46:45 +0000 (12:46 -0800)]
Add user-space ptrace data structure to dump VFP registers and status word.

14 years agoMerge commit 'goog/eclair-plus-aosp'
Android Git Automerger [Tue, 15 Dec 2009 08:44:05 +0000 (00:44 -0800)]
Merge commit 'goog/eclair-plus-aosp'

14 years agoFix usleep(3) return type to be POSIX-compliant.
Elliott Hughes [Tue, 15 Dec 2009 01:07:19 +0000 (17:07 -0800)]
Fix usleep(3) return type to be POSIX-compliant.

POSIX usleep(3) returns 0 on successful completion, -1 otherwise:
  http://www.opengroup.org/onlinepubs/007908799/xsh/usleep.html

This was found by an external user porting native code:
  http://groups.google.com/group/android-porting/browse_thread/thread/674848f001db0292

14 years agoam f197147a: am ca07064c: am 5f53a182: Revert "Add qsort_r() implementation to the...
Mathias Agopian [Fri, 4 Dec 2009 12:31:23 +0000 (04:31 -0800)]
am f197147a: am ca07064c: am 5f53a182: Revert "Add qsort_r() implementation to the C library."

Merge commit 'f197147a787d7415e6e0a1bad15566836c55befb'

* commit 'f197147a787d7415e6e0a1bad15566836c55befb':
  Revert "Add qsort_r() implementation to the C library."

14 years agoam be71c814: am 20b3097d: am 754c178a: Add qsort_r() implementation to the C library.
David 'Digit' Turner [Fri, 4 Dec 2009 12:29:36 +0000 (04:29 -0800)]
am be71c814: am 20b3097d: am 754c178a: Add qsort_r() implementation to the C library.

Merge commit 'be71c8142d4225dd9af4742ec050f30fcbc2aa5e'

* commit 'be71c8142d4225dd9af4742ec050f30fcbc2aa5e':
  Add qsort_r() implementation to the C library.

14 years agoam a0783df1: am df55c642: am e1e68492: Merge change Ifa58a406 into eclair
Dima Zavin [Fri, 4 Dec 2009 01:21:46 +0000 (17:21 -0800)]
am a0783df1: am df55c642: am e1e68492: Merge change Ifa58a406 into eclair

Merge commit 'a0783df14eaf9b0d858dd42d4e8a64a738314900'

* commit 'a0783df14eaf9b0d858dd42d4e8a64a738314900':
  libc: kernel: Update msm_kgsl.h header

14 years agoam ca07064c: am 5f53a182: Revert "Add qsort_r() implementation to the C library."
Mathias Agopian [Fri, 4 Dec 2009 01:15:16 +0000 (17:15 -0800)]
am ca07064c: am 5f53a182: Revert "Add qsort_r() implementation to the C library."

Merge commit 'ca07064c9ebd8523ed88fa09e97feaaafb7e9c15' into eclair-mr2-plus-aosp

* commit 'ca07064c9ebd8523ed88fa09e97feaaafb7e9c15':
  Revert "Add qsort_r() implementation to the C library."

14 years agoam 5f53a182: Revert "Add qsort_r() implementation to the C library."
Mathias Agopian [Fri, 4 Dec 2009 01:10:45 +0000 (17:10 -0800)]
am 5f53a182: Revert "Add qsort_r() implementation to the C library."

Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-plus-aosp

* commit '5f53a18204ec991f5a77872806eeaa185936aa8c':
  Revert "Add qsort_r() implementation to the C library."

14 years agoam 5f53a182: Revert "Add qsort_r() implementation to the C library."
Mathias Agopian [Fri, 4 Dec 2009 01:10:14 +0000 (17:10 -0800)]
am 5f53a182: Revert "Add qsort_r() implementation to the C library."

Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-mr2

* commit '5f53a18204ec991f5a77872806eeaa185936aa8c':
  Revert "Add qsort_r() implementation to the C library."

14 years agoam 20b3097d: am 754c178a: Add qsort_r() implementation to the C library.
David 'Digit' Turner [Fri, 4 Dec 2009 00:44:43 +0000 (16:44 -0800)]
am 20b3097d: am 754c178a: Add qsort_r() implementation to the C library.

Merge commit '20b3097d4cc225d948dac38e778a9d3b3b1549db' into eclair-mr2-plus-aosp

* commit '20b3097d4cc225d948dac38e778a9d3b3b1549db':
  Add qsort_r() implementation to the C library.

14 years agoAdd missing symbol type directives.
Doug Kwan [Fri, 4 Dec 2009 00:26:04 +0000 (16:26 -0800)]
Add missing symbol type directives.

14 years agoRevert "Add qsort_r() implementation to the C library."
Mathias Agopian [Fri, 4 Dec 2009 00:14:40 +0000 (16:14 -0800)]
Revert "Add qsort_r() implementation to the C library."

This reverts commit 754c178ae551aedcbbfd3bfd1c1c3b710d9ad989.

Turns out we don't need it afterall (needed a stable sort anyways).
So, we'll make that change in the dev branch instead.

14 years agoam 754c178a: Add qsort_r() implementation to the C library.
David 'Digit' Turner [Fri, 4 Dec 2009 00:00:48 +0000 (16:00 -0800)]
am 754c178a: Add qsort_r() implementation to the C library.

Merge commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989' into eclair-mr2

* commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989':
  Add qsort_r() implementation to the C library.

14 years agoam 754c178a: Add qsort_r() implementation to the C library.
David 'Digit' Turner [Fri, 4 Dec 2009 00:00:26 +0000 (16:00 -0800)]
am 754c178a: Add qsort_r() implementation to the C library.

Merge commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989' into eclair-plus-aosp

* commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989':
  Add qsort_r() implementation to the C library.

14 years agoAdd qsort_r() implementation to the C library.
David 'Digit' Turner [Thu, 3 Dec 2009 01:38:41 +0000 (17:38 -0800)]
Add qsort_r() implementation to the C library.

NOTE: This replaces qsort.c with the FreeBSD version. While
      the patch changes the source, it should not alter the
      implementation that should use the exact same algorithm.

14 years agoam df55c642: am e1e68492: Merge change Ifa58a406 into eclair
Dima Zavin [Thu, 3 Dec 2009 10:20:57 +0000 (02:20 -0800)]
am df55c642: am e1e68492: Merge change Ifa58a406 into eclair

Merge commit 'df55c64203ac96fa0447357d1d19e6adee52c8d1' into eclair-mr2-plus-aosp

* commit 'df55c64203ac96fa0447357d1d19e6adee52c8d1':
  libc: kernel: Update msm_kgsl.h header

14 years agoam e1e68492: Merge change Ifa58a406 into eclair
Dima Zavin [Thu, 3 Dec 2009 10:14:57 +0000 (02:14 -0800)]
am e1e68492: Merge change Ifa58a406 into eclair

Merge commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47' into eclair-plus-aosp

* commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47':
  libc: kernel: Update msm_kgsl.h header

14 years agoam e1e68492: Merge change Ifa58a406 into eclair
Dima Zavin [Thu, 3 Dec 2009 10:14:56 +0000 (02:14 -0800)]
am e1e68492: Merge change Ifa58a406 into eclair

Merge commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47' into eclair-mr2

* commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47':
  libc: kernel: Update msm_kgsl.h header

14 years agoMerge change Ifa58a406 into eclair
Android (Google) Code Review [Thu, 3 Dec 2009 10:09:47 +0000 (02:09 -0800)]
Merge change Ifa58a406 into eclair

* changes:
  libc: kernel: Update msm_kgsl.h header

14 years agoam aeebf717: am db63eff2: am fe62de1a: Add support for R_ARM_REL32 to the dynamic...
David 'Digit' Turner [Thu, 3 Dec 2009 04:31:36 +0000 (20:31 -0800)]
am aeebf717: am db63eff2: am fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.

Merge commit 'aeebf717ad596f144d7ba8f8d5778bdbbd51cbe7'

* commit 'aeebf717ad596f144d7ba8f8d5778bdbbd51cbe7':
  Add support for R_ARM_REL32 to the dynamic linker.

14 years agoam db63eff2: am fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.
David 'Digit' Turner [Wed, 2 Dec 2009 19:23:26 +0000 (11:23 -0800)]
am db63eff2: am fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.

Merge commit 'db63eff2d5790d40577baefea1d1895e3004fd22' into eclair-mr2-plus-aosp

* commit 'db63eff2d5790d40577baefea1d1895e3004fd22':
  Add support for R_ARM_REL32 to the dynamic linker.

14 years agoam fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.
David 'Digit' Turner [Wed, 2 Dec 2009 19:17:29 +0000 (11:17 -0800)]
am fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.

Merge commit 'fe62de1ad036a1417df44b7b1a7c65cc79dc7091' into eclair-plus-aosp

* commit 'fe62de1ad036a1417df44b7b1a7c65cc79dc7091':
  Add support for R_ARM_REL32 to the dynamic linker.

14 years agoam fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.
David 'Digit' Turner [Wed, 2 Dec 2009 19:16:57 +0000 (11:16 -0800)]
am fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.

Merge commit 'fe62de1ad036a1417df44b7b1a7c65cc79dc7091' into eclair-mr2

* commit 'fe62de1ad036a1417df44b7b1a7c65cc79dc7091':
  Add support for R_ARM_REL32 to the dynamic linker.

14 years agoAdd support for R_ARM_REL32 to the dynamic linker.
David 'Digit' Turner [Wed, 2 Dec 2009 18:54:53 +0000 (10:54 -0800)]
Add support for R_ARM_REL32 to the dynamic linker.

Merged from eclair-mr2

14 years agolibc: kernel: Update msm_kgsl.h header
Dima Zavin [Thu, 19 Nov 2009 17:55:56 +0000 (09:55 -0800)]
libc: kernel: Update msm_kgsl.h header

Change-Id: Ifa58a406c9419c5ad73a1f9456add6dd54bfb2ba
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoFix libc logging implementation.
Andy McFadden [Tue, 1 Dec 2009 01:09:45 +0000 (17:09 -0800)]
Fix libc logging implementation.

The file descriptor wasn't getting set, so the writev() call was
silently failing.

There's a parallel implementation over in system/core/liblog, but it's
still using the old approach and didn't have this problem.

14 years agoMerge change Ic1202510
Android (Google) Code Review [Thu, 26 Nov 2009 00:25:04 +0000 (16:25 -0800)]
Merge change Ic1202510

* changes:
  Added a comment.

14 years agoAdded a comment.
Andy McFadden [Wed, 25 Nov 2009 22:16:53 +0000 (14:16 -0800)]
Added a comment.

The structs for stdin/stdout/stderr are formed with a static initializer
that needs to be updated if something in FILE is changed.

14 years agoam ae77aae8: am 07401a68: am cd5df2d9: Rebuild the time zone data files in 32-bit...
Eric Fischer [Tue, 24 Nov 2009 22:14:02 +0000 (14:14 -0800)]
am ae77aae8: am 07401a68: am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.

Merge commit 'ae77aae80cb78b33f32e65c43a473d5e297b866b'

* commit 'ae77aae80cb78b33f32e65c43a473d5e297b866b':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.

14 years agoam 07401a68: am cd5df2d9: Rebuild the time zone data files in 32-bit format instead...
Eric Fischer [Tue, 24 Nov 2009 22:09:34 +0000 (14:09 -0800)]
am 07401a68: am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.

Merge commit '07401a681f7530a8126fb0fd07a097828337b30a' into eclair-mr2-plus-aosp

* commit '07401a681f7530a8126fb0fd07a097828337b30a':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.

14 years agoam cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.
Eric Fischer [Tue, 24 Nov 2009 22:02:30 +0000 (14:02 -0800)]
am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.

Merge commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4' into eclair-mr2

* commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.

14 years agoam cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.
Eric Fischer [Tue, 24 Nov 2009 22:01:54 +0000 (14:01 -0800)]
am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.

Merge commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4' into eclair-plus-aosp

* commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.

14 years agoRebuild the time zone data files in 32-bit format instead of 64-bit.
Eric Fischer [Tue, 24 Nov 2009 21:52:05 +0000 (13:52 -0800)]
Rebuild the time zone data files in 32-bit format instead of 64-bit.

The 64-bit data is not currently being used and more than doubles the size.

14 years agoam a5d96513: am 8d7c6953: am 7e617899: Correct the raw offsets in the time zone index...
Eric Fischer [Tue, 24 Nov 2009 01:12:28 +0000 (17:12 -0800)]
am a5d96513: am 8d7c6953: am 7e617899: Correct the raw offsets in the time zone index for a few zones.

Merge commit 'a5d9651368779ae054f4184c5881566fdee85003'

* commit 'a5d9651368779ae054f4184c5881566fdee85003':
  Correct the raw offsets in the time zone index for a few zones.