OSDN Git Service

android-x86/bionic.git
14 years agoMerge "Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb bionic: fix clearenv...
Jean-Baptiste Queru [Thu, 8 Jul 2010 22:38:13 +0000 (15:38 -0700)]
Merge "Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb bionic: fix clearenv() compiler warning and related comment typos"

14 years agoFix missing NL
Bruce Beare [Fri, 25 Jun 2010 16:02:10 +0000 (09:02 -0700)]
Fix missing NL

Change-Id: Ic210fe9f740b9a8235a66d479ad4eddc869998bb
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
14 years agoMerge "Regenerate linux/netfilter_ipv6/ip6_tables.h."
Jean-Baptiste Queru [Fri, 2 Jul 2010 17:34:04 +0000 (10:34 -0700)]
Merge "Regenerate linux/netfilter_ipv6/ip6_tables.h."

14 years agoAllow dlclose() to properly call static C++ destructors.
David 'Digit' Turner [Fri, 2 Jul 2010 06:09:28 +0000 (23:09 -0700)]
Allow dlclose() to properly call static C++ destructors.

With this patch _and_ an upcoming build/ patch, the destruction
of static C++ objects contained in shared libraries will happen
properly when dlclose() is called.

Note that this change introduces crtbegin_so.S and crtend_so.S which
are currently ignored by the build system.

+ move definition of __dso_handle to the right place
(before that, all shared libraries used the __dso_handle
global variable from the C library).

Note that we keep a 'weak' __dso_handle in aeabi.c to avoid
breaking the build until the next patch to build/core/combo/
appears. We will be able to remove that later.

+ move bionic/aeabi.c to arch-arm/bionic/ (its proper location)

NOTE: The NDK will need to be modified to enable this feature in
         the shared libraries that are generated through it.

Change-Id: I99cd801375bbaef0581175893d1aa0943211b9bc

14 years agoRegenerate linux/netfilter_ipv6/ip6_tables.h.
Vilmos Nebehaj [Mon, 28 Jun 2010 13:13:23 +0000 (15:13 +0200)]
Regenerate linux/netfilter_ipv6/ip6_tables.h.

Add ip6t_get_target() to kernel_known_generic_statics in
libc/kernel/tools/defaults.py to be able to build ip6tables.

Change-Id: Iadb885db3faa85b2d0070dc2e0ac493af6e62bb6

14 years agoChange-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb
Chris Peterson [Mon, 28 Jun 2010 03:53:04 +0000 (20:53 -0700)]
Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb
bionic: fix clearenv() compiler warning and related comment typos

14 years agomerge from open-source master
The Android Open Source Project [Fri, 18 Jun 2010 18:33:00 +0000 (11:33 -0700)]
merge from open-source master

Change-Id: I408b5705b18d9e93e66bfbfeec0e3baefd618dec

14 years agoMerge "Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)"
David Turner [Thu, 17 Jun 2010 00:36:32 +0000 (17:36 -0700)]
Merge "Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)"

14 years agoFix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)
Mikael Ohlson [Fri, 21 May 2010 09:20:39 +0000 (11:20 +0200)]
Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)

When calling sysconf with _SC_NPROCESSORS_ONLN, the value one (1) was
returned on systems with two or more cores, since '/proc/stat' was
incorrectly parsed.

The function line_parser_getc (LineParser* p) read 128 characters of
input for each invocation.

The proper and probably aimed for behavior is to read 128 characters
at the first call, then for each subsequent call only return the next
buffered character until a new read is needed and only then read
another 128 characters.

Due to a flipped comparison between the two variables in_len and
in_pos that track the number of bytes of data read into the input
buffer and how much of it has been parsed, a new group of 128
characters were read at almost every call to line_parser_getc,
overwriting the still unhandled bytes from the previous call to
read. This caused the lines to be read to be sampled more than parsed.

Change-Id: I93eec3c8c9b9f19ef798748579d0977111b5c0bb

Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
14 years agomerge from open-source master
The Android Open Source Project [Mon, 14 Jun 2010 17:49:00 +0000 (10:49 -0700)]
merge from open-source master

Change-Id: I63e2bfcf87d190fb063c5b2457ebe6b0d50ddd26

14 years agoadded missing ether_aton and ether_ntoa
Szymon Jakubczak [Wed, 9 Jun 2010 19:53:28 +0000 (15:53 -0400)]
added missing ether_aton and ether_ntoa

Change-Id: I32ee448abde4d5693d393030ed77ddc6d2ad1dfc

14 years agomerge from open-source master
The Android Open Source Project [Mon, 7 Jun 2010 18:01:49 +0000 (11:01 -0700)]
merge from open-source master

Change-Id: I1cc2f1123a296b05c4faaa419374376395e05936

14 years agoMerge "Add missing termios defns to bring on par with ARM"
David Turner [Sat, 5 Jun 2010 20:07:40 +0000 (13:07 -0700)]
Merge "Add missing termios defns to bring on par with ARM"

14 years agoAdd missing termios defns to bring on par with ARM
Bruce Beare [Fri, 4 Jun 2010 15:14:44 +0000 (08:14 -0700)]
Add missing termios defns to bring on par with ARM

Change-Id: Ied1871aa0a2e33473b89a4ac6d54e3c44be7f457

14 years agomerge from open-source master
The Android Open Source Project [Thu, 3 Jun 2010 21:39:20 +0000 (14:39 -0700)]
merge from open-source master

Change-Id: Ib7fc9c6f79f9b13e2175da137005d8968ea85eaf

14 years agoMerge "pthread: introduce pthread_setname_np() as a mean to give names to threads"
David Turner [Thu, 3 Jun 2010 20:11:52 +0000 (13:11 -0700)]
Merge "pthread: introduce pthread_setname_np() as a mean to give names to threads"

14 years agopthread: introduce pthread_setname_np() as a mean to give names to threads
André Goddard Rosa [Thu, 20 May 2010 02:17:16 +0000 (23:17 -0300)]
pthread: introduce pthread_setname_np() as a mean to give names to threads

... so that each cloned process at the kernel level can be named
independently. Tools like 'top' can display the CPU/memory statistics
for each process's thread if "Show Threads" mode is on.

With this function in place, we can convert dalvik/Thread.c setThreadName()
function over this function. This feature ought to be provided by the
underlying C library and not coded directly in Dalvik.

Change-Id: Ifa997665dbaa114e0b126f8c667708be9a4137fd
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
14 years agomerge from open-source master
The Android Open Source Project [Mon, 17 May 2010 17:22:35 +0000 (10:22 -0700)]
merge from open-source master

Change-Id: I5804d8850f2d4fb7b5d5c53d51e153f7ced9646e

14 years agoimprove readability of stdio: fix indentation and remove trailing spaces
André Goddard Rosa [Sun, 31 Jan 2010 00:46:25 +0000 (22:46 -0200)]
improve readability of stdio: fix indentation and remove trailing spaces

Change-Id: Ic51e58a7c75d20bf770dc0ebd7f97a338fbe0036
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
14 years agomerge from open-source master
The Android Open Source Project [Fri, 14 May 2010 20:30:10 +0000 (13:30 -0700)]
merge from open-source master

Change-Id: I9c926a3cd680a96ece026cdec71c6e0fb0b7ad7c

14 years agoMerge "Add declaration for sys_signame[] forgotten in change 12489"
David Turner [Fri, 14 May 2010 19:12:24 +0000 (12:12 -0700)]
Merge "Add declaration for sys_signame[] forgotten in change 12489"

14 years agomerge from open-source master
The Android Open Source Project [Thu, 13 May 2010 21:31:02 +0000 (14:31 -0700)]
merge from open-source master

Change-Id: I2be62bce462ee53fe9519f433523bd7a44a73d40

14 years agoSet SA_RESTORER in sigaction()
Matt Fischer [Mon, 11 Jan 2010 02:02:06 +0000 (10:02 +0800)]
Set SA_RESTORER in sigaction()

GDB looks for specific opcode sequences when trying to recognize a stack
frame as a signal trampoline.  The sequences it looks for happen to be those
created when SA_RESTORER is set, since glibc always sets a restorer.  This
patch does the same here, so that the trampolines can be correctly identified.

Change-Id: I0ac574a68818cb24d939c3527f3aaeb04b853d04

14 years agofix build
Jean-Baptiste Queru [Wed, 12 May 2010 17:05:59 +0000 (10:05 -0700)]
fix build

Change-Id: I243c98e20a250e0d40d481f16af481ff070219fd

14 years agomerge from open-source master
The Android Open Source Project [Wed, 12 May 2010 16:22:50 +0000 (09:22 -0700)]
merge from open-source master

Change-Id: Iecfd2bd3069f70bbe508042cc249fcf7ff24800d

14 years agoMerge "Sometimes the compiler is very right! Found bug in bessel routines for float."
Jean-Baptiste Queru [Tue, 11 May 2010 17:43:56 +0000 (10:43 -0700)]
Merge "Sometimes the compiler is very right! Found bug in bessel routines for float."

14 years agoMerge "Reduce compiler anxiety."
David Turner [Tue, 11 May 2010 17:20:15 +0000 (10:20 -0700)]
Merge "Reduce compiler anxiety."

14 years agoMerge "Added support for LD_PRELOAD"
David Turner [Tue, 11 May 2010 17:17:00 +0000 (10:17 -0700)]
Merge "Added support for LD_PRELOAD"

14 years agoMerge "stdio: simplify __fremovelock()"
David Turner [Mon, 10 May 2010 23:04:02 +0000 (16:04 -0700)]
Merge "stdio: simplify __fremovelock()"

14 years agoMerge "Reversed order of const and static to hush warning from compiler."
Jean-Baptiste Queru [Mon, 10 May 2010 23:00:22 +0000 (16:00 -0700)]
Merge "Reversed order of const and static to hush warning from compiler."

14 years agostdio: simplify __fremovelock()
André Goddard Rosa [Sun, 31 Jan 2010 00:45:07 +0000 (22:45 -0200)]
stdio: simplify __fremovelock()

... by removing extraneous NULL check, as free() already does it.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: I0445f35c7ad0a049a0e4aee1fbe002ed2f13b94b

14 years agoAdded support for LD_PRELOAD
Matt Fischer [Thu, 31 Dec 2009 18:09:10 +0000 (12:09 -0600)]
Added support for LD_PRELOAD

The LD_PRELOAD environment variable allows the user to specify a list of
libraries which should be unconditionally loaded before any others.  This
makes possible some useful tricks, such as library interposers.

Change-Id: I433d775ab08ef63a5fbe7b21f87a5642954fc32f

14 years agoMerge "string: tidy up strndup()"
David Turner [Mon, 10 May 2010 21:52:02 +0000 (14:52 -0700)]
Merge "string: tidy up strndup()"

14 years agoSometimes the compiler is very right! Found bug in bessel routines for float.
Scott Turner [Sat, 16 Jan 2010 16:30:44 +0000 (11:30 -0500)]
Sometimes the compiler is very right! Found bug in bessel routines for float.

Original compiler error:

target arm C: libm <= bionic/libm/src/e_j0f.c
bionic/libm/src/e_j0f.c: In function 'j0f':
bionic/libm/src/e_j0f.c:66: warning: comparison between signed and unsigned integer expressions
bionic/libm/src/e_j0f.c: In function 'y0f':
bionic/libm/src/e_j0f.c:140: warning: comparison between signed and unsigned integer expressions
target arm C: libm <= bionic/libm/src/e_j1.c

It's subtle but ix is masked with 0x7f000000 so it can never ever have a value
greater than 0x80000000. So I switched to using the unmasked hx and added a
cast as a reward to the compiler for being right.

I checked the original routines that e_j0f.c was ported from (in e_j0.c) and
the double's don't use 0x80000000 so this issue didn't exist there.

Let that be a warning to those that just slap on casts to shut up the compiler,
sometimes it's sniffed out a bug for you. :-)

Similar fixes in the other functions.

Change-Id: I7a776e5d4721fc3a9e3bd89179b67e9af3a2ebfa

14 years agomerge from open-source master
The Android Open Source Project [Mon, 3 May 2010 22:33:05 +0000 (15:33 -0700)]
merge from open-source master

Change-Id: If02d33af51017dbd85e91c79ac2e848eda6cf253

14 years agoMerge "Fix log channel initialization at bionic/logd_write.c."
David Turner [Sat, 1 May 2010 22:31:39 +0000 (15:31 -0700)]
Merge "Fix log channel initialization at bionic/logd_write.c."

14 years agoMerge "added headers for SuperH which automatically generate by update_all.py"
Jean-Baptiste Queru [Thu, 29 Apr 2010 15:01:50 +0000 (08:01 -0700)]
Merge "added headers for SuperH which automatically generate by update_all.py"

14 years agolinker: fix the undefined weak symbols issue
Yi Sun [Wed, 2 Dec 2009 08:08:14 +0000 (00:08 -0800)]
linker: fix the undefined weak symbols issue

I'm not sure if this is a correct fix or not.
Also need to find out why 1.6 does not have this issue.

Change-Id: If46c844834bda1e2cbf084a1a45a1832119b3ae3

14 years agobionic: add missing NULL check from memory allocation on record_backtrace()
André Goddard Rosa [Fri, 5 Feb 2010 18:03:09 +0000 (16:03 -0200)]
bionic: add missing NULL check from memory allocation on record_backtrace()

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: I739c63c5a7344fff1775580044dc647edf246ebf

14 years agostdio: simplify vasprintf()
André Goddard Rosa [Sun, 31 Jan 2010 00:40:45 +0000 (22:40 -0200)]
stdio: simplify vasprintf()

... by removing unneeded NULL check, as free() already does it.
By the way, we don't need to set a stack variable back to NULL.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: Id90eb8f042b5c922c5ff139b11ff8366fb404566

14 years agostdio: simplify asprintf()
André Goddard Rosa [Sun, 31 Jan 2010 00:39:00 +0000 (22:39 -0200)]
stdio: simplify asprintf()

... by removing unneeded NULL check, as free() already does it.
By the way, we don't need to set a stack variable back to NULL.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: Id1f72e872f73366dddcea4abc75885a3d9a318c6

14 years agoimprove readability of stdlib: fix indentation and remove trailing spaces
André Goddard Rosa [Fri, 5 Feb 2010 20:32:52 +0000 (18:32 -0200)]
improve readability of stdlib: fix indentation and remove trailing spaces

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: I7dd90a0816b5376ffc1de4499d56935e0bd574a1

14 years agomerge from open-source master
The Android Open Source Project [Wed, 21 Apr 2010 16:10:08 +0000 (09:10 -0700)]
merge from open-source master

Change-Id: I518bb4ae9d7269957365561d4d609f22cde519db

14 years agomerge from open-source master
The Android Open Source Project [Thu, 8 Apr 2010 18:11:53 +0000 (11:11 -0700)]
merge from open-source master

Change-Id: If77618a329fc7b497c44c2585e644bc50e7e1406

14 years agoFixed support for RTLD_NEXT in dlsym()
Matt Fischer [Thu, 31 Dec 2009 18:17:56 +0000 (12:17 -0600)]
Fixed support for RTLD_NEXT in dlsym()

The previous implementation of this flag was broken--it behaved identically
to RTLD_DEFAULT.  This adds a proper implementation, which examines the address
of the calling function, and uses it to determine which library to use to begin
the symbol search process.

Change-Id: I2ad2b46363f68932af63a3828a22f9c7987eea67

14 years agoam 91638721: kernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32
San Mehat [Wed, 7 Apr 2010 05:02:48 +0000 (22:02 -0700)]
am 91638721: kernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32

Merge commit '9163872132a3e92f986b1d684badb1dd4482ad8e' into froyo-plus-aosp

* commit '9163872132a3e92f986b1d684badb1dd4482ad8e':
  kernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32

14 years agokernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32
San Mehat [Wed, 7 Apr 2010 01:49:49 +0000 (18:49 -0700)]
kernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32

For: For http://b/issue?id=2576057

Change-Id: I553ca14974aaec4434e384979e0bb7007dcf6033
Signed-off-by: San Mehat <san@google.com>
14 years agoAdd declaration for sys_signame[] forgotten in change 12489
Thorsten Glaser [Tue, 1 Dec 2009 14:12:01 +0000 (15:12 +0100)]
Add declaration for sys_signame[] forgotten in change 12489

14 years agomerge from open-source master
The Android Open Source Project [Wed, 31 Mar 2010 21:24:25 +0000 (14:24 -0700)]
merge from open-source master

Change-Id: I950e9aca87cbb0c35099b1d53cff6378bd0f26f4

14 years agomerge from open-source master
The Android Open Source Project [Wed, 31 Mar 2010 21:19:51 +0000 (14:19 -0700)]
merge from open-source master

Change-Id: I483fedf77d978b1c6e52d73eebc14f011bb9f809

14 years agomerge from open-source master
The Android Open Source Project [Wed, 31 Mar 2010 21:15:30 +0000 (14:15 -0700)]
merge from open-source master

Change-Id: I076e0df8656fdf58c229cc9a168cd6d8e16b6d8e

14 years agobionic: fix memory leak in get_malloc_leak_info() error path
André Goddard Rosa [Fri, 5 Feb 2010 18:01:05 +0000 (16:01 -0200)]
bionic: fix memory leak in get_malloc_leak_info() error path

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
14 years agoMerge "bionic: clear only the part of the buffer which is not overwritten afterward"
David Turner [Tue, 30 Mar 2010 21:52:14 +0000 (14:52 -0700)]
Merge "bionic: clear only the part of the buffer which is not overwritten afterward"

14 years agoMerge "linker: fix the undefined weak symbols issue"
David Turner [Mon, 29 Mar 2010 22:49:42 +0000 (15:49 -0700)]
Merge "linker: fix the undefined weak symbols issue"

14 years agolinker: fix the undefined weak symbols issue
Min-su, Kim [Tue, 19 Jan 2010 01:05:33 +0000 (10:05 +0900)]
linker: fix the undefined weak symbols issue

14 years agoMerge changes Ibdc6e3c8,I9bcb91a2
David Turner [Mon, 29 Mar 2010 22:05:47 +0000 (15:05 -0700)]
Merge changes Ibdc6e3c8,I9bcb91a2

* changes:
  Correct generic memset implementation
  Generic memcpy should define MEMCOPY before including bcopy.c

14 years agoMerge "Atom optimized string and memory routines"
David Turner [Mon, 29 Mar 2010 21:40:05 +0000 (14:40 -0700)]
Merge "Atom optimized string and memory routines"

14 years agomerge from open-source master
The Android Open Source Project [Mon, 29 Mar 2010 18:01:59 +0000 (11:01 -0700)]
merge from open-source master

Change-Id: I96d2cd063f084fd17116bf7ee08fa7109a3c1ceb

14 years agobionic: clear only the part of the buffer which is not overwritten afterward
André Goddard Rosa [Mon, 29 Mar 2010 00:32:36 +0000 (21:32 -0300)]
bionic: clear only the part of the buffer which is not overwritten afterward

Change-Id: I5ddd93f0557e5a7401460dc9fc8a55b330a79c3a
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
14 years agostdlib: optimize bsearch()
André Goddard Rosa [Mon, 29 Mar 2010 00:18:56 +0000 (21:18 -0300)]
stdlib: optimize bsearch()

... by checking most probable condition first (elements do differ)

Change-Id: I424eab9c32a6d9eb82b686ca04025ec8c9097035
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
14 years agoAtom optimized string and memory routines
Bruce Beare [Thu, 4 Mar 2010 19:03:37 +0000 (11:03 -0800)]
Atom optimized string and memory routines

Change-Id: I27b68bb28551c75c9ac84bb9730e2cd8254d8991

14 years agoAndroid hack for size_t
Bruce Beare [Wed, 10 Mar 2010 23:52:42 +0000 (15:52 -0800)]
Android hack for size_t

Change-Id: I3c967fca60f542459dc17be84da47b3b6a26242b

14 years agoFix comparison of IPv6 prefixes
Kenny Root [Thu, 25 Mar 2010 01:06:20 +0000 (18:06 -0700)]
Fix comparison of IPv6 prefixes

Typo assigned prefixlen1 twice instead of to the two different variables
for comparison and difference computation.

Change-Id: I6631b8269ca6aae264c8d7d414127b756838df96

14 years agolibc: kernel: update msm_kgsl.h
Dima Zavin [Tue, 9 Mar 2010 01:34:52 +0000 (17:34 -0800)]
libc: kernel: update msm_kgsl.h

Change-Id: I8cd5a186071892bdc2b2b29061dd6c1fd927c0f5
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoFix typo that broke recursive mutexes implementation.
David 'Digit' Turner [Tue, 23 Mar 2010 12:30:55 +0000 (05:30 -0700)]
Fix typo that broke recursive mutexes implementation.

Change-Id: I832901604b487c6a50304c311b5ba135e153530d

14 years agopthread: Use private futexes by default in condition variables
David 'Digit' Turner [Sat, 20 Mar 2010 00:59:23 +0000 (17:59 -0700)]
pthread: Use private futexes by default in condition variables

Now that the system properly uses shared condvars when needed, we
can enable the use of private futexes for them too.

Change-Id: Icf8351fc0a2309f764cba45c65bc3af047720cdf

14 years agomerge from open-source master
The Android Open Source Project [Mon, 22 Mar 2010 22:55:09 +0000 (15:55 -0700)]
merge from open-source master

Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d

14 years agoMerge "Fix strtod security bug."
David 'Digit' Turner [Mon, 22 Mar 2010 22:45:32 +0000 (15:45 -0700)]
Merge "Fix strtod security bug."

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 agoMerge "bionic: on pthread_join(), avoid extra check in case we find the thread"
David Turner [Thu, 18 Mar 2010 23:42:49 +0000 (16:42 -0700)]
Merge "bionic: on pthread_join(), avoid extra check in case we find the thread"

14 years agoMerge "bionic: ftell() returns a long, not an int"
David Turner [Thu, 18 Mar 2010 23:35:42 +0000 (16:35 -0700)]
Merge "bionic: ftell() returns a long, not an int"

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 agoAdded support for dladdr()
Matt Fischer [Thu, 31 Dec 2009 18:17:40 +0000 (12:17 -0600)]
Added support for dladdr()

dladdr() is a GNU extension function, which allows the caller to retrieve
symbol information for a specified memory address.  It is useful for things
like generating backtrace information at runtime.

Change-Id: I3a1def1a6c9c666d93e1e97b7d260dfa5b9b79a9

14 years agoMerge "x86 syscall system call implementation"
David Turner [Wed, 17 Mar 2010 21:07:27 +0000 (14:07 -0700)]
Merge "x86 syscall system call implementation"

14 years agoMerge "Fix pread()/pwrite() stubs"
David Turner [Wed, 17 Mar 2010 21:00:20 +0000 (14:00 -0700)]
Merge "Fix pread()/pwrite() stubs"

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 agoMerge "bionic: remove unneeded variable from chk_realloc()"
David Turner [Wed, 17 Mar 2010 00:26:44 +0000 (17:26 -0700)]
Merge "bionic: remove unneeded variable from chk_realloc()"

14 years agoMerge "bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c"
David Turner [Wed, 17 Mar 2010 00:25:53 +0000 (17:25 -0700)]
Merge "bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c"

14 years agoMerge "improve readability of string: fix indentation and remove trailing spaces"
David Turner [Wed, 17 Mar 2010 00:25:04 +0000 (17:25 -0700)]
Merge "improve readability of string: fix indentation and remove trailing spaces"

14 years agoMerge "optimize delete/delete[] operators by removing unneeded branch"
David Turner [Wed, 17 Mar 2010 00:21:52 +0000 (17:21 -0700)]
Merge "optimize delete/delete[] operators by removing unneeded branch"

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 agoFix strtod security bug.
David 'Digit' Turner [Thu, 4 Mar 2010 19:51:42 +0000 (11:51 -0800)]
Fix strtod security bug.

To avoid introducing NULL checks everytime a Bigint computation
is performed, introduce a special value (BIGINT_INVALID) and only
check for it when absolutely needed (which means when the code
needs to access the Bigint's internal structure fields).

Change-Id: Ie3954523b0985b6a8cb62340802d8dcf63cbf16f

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 agox86 syscall system call implementation
Bruce Beare [Thu, 4 Mar 2010 18:29:38 +0000 (10:29 -0800)]
x86 syscall system call implementation

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."