OSDN Git Service

android-x86/bionic.git
13 years agoMerge "Don't call freeaddrinfo with a NULL ptr."
Robert Greenwalt [Fri, 29 Jul 2011 17:00:39 +0000 (10:00 -0700)]
Merge "Don't call freeaddrinfo with a NULL ptr."

13 years agoDon't call freeaddrinfo with a NULL ptr.
Robert Greenwalt [Fri, 29 Jul 2011 00:21:17 +0000 (17:21 -0700)]
Don't call freeaddrinfo with a NULL ptr.

bug:5067055
Change-Id: I863dc4760a0aa449ac6298397ed571d8d9287801

13 years agoMerge "Don't reset caches when dns props change."
Robert Greenwalt [Wed, 20 Jul 2011 22:39:28 +0000 (15:39 -0700)]
Merge "Don't reset caches when dns props change."

13 years agoDon't reset caches when dns props change.
Mattias Falk [Mon, 4 Apr 2011 14:12:35 +0000 (16:12 +0200)]
Don't reset caches when dns props change.

This happens too frequently.  We should flush a per-interface cache
when it's dns server addrs changes.

Change-Id: I8a691c96ce9a775160ef55ddb8f755d649041583

13 years agoMerge "enable support for large files (> 2G)"
David Turner [Sat, 9 Jul 2011 01:52:49 +0000 (18:52 -0700)]
Merge "enable support for large files (> 2G)"

13 years agoMerge "Really fix the build."
David 'Digit' Turner [Wed, 6 Jul 2011 17:19:47 +0000 (10:19 -0700)]
Merge "Really fix the build."

13 years agoReally fix the build.
David 'Digit' Turner [Wed, 6 Jul 2011 17:02:15 +0000 (19:02 +0200)]
Really fix the build.

libcutils/mspace.c includes libc/bionic/dlmalloc.c, we need to
take care of the fact that any internal C library function cannot
be used from it.

Change-Id: I0bc81ae090b7ac2d464f26b97fc6b94a08cdad9c

13 years agoMerge "Fix broken build"
David 'Digit' Turner [Wed, 6 Jul 2011 15:56:48 +0000 (08:56 -0700)]
Merge "Fix broken build"

13 years agoFix broken build
David 'Digit' Turner [Wed, 6 Jul 2011 15:54:35 +0000 (17:54 +0200)]
Fix broken build

Change-Id: Ia46b50aec51a55434c8828a73e07f4732f8f6c1c

13 years agoMerge "libc: Add logcat error message for memory corruption"
David 'Digit' Turner [Tue, 5 Jul 2011 18:59:42 +0000 (11:59 -0700)]
Merge "libc: Add logcat error message for memory corruption"

13 years agolibc: Add logcat error message for memory corruption
David 'Digit' Turner [Thu, 30 Jun 2011 16:32:03 +0000 (18:32 +0200)]
libc: Add logcat error message for memory corruption

Our dlmalloc implementation currently calls abort() when it detects
that the heap is corrupted, or that an invalid pointer is passed to
one of its functions.

The only way to detect this is because abort() will force-fully
crash the current program with a magic fault address of '0xdeadbaad'.

However, this is not really well documented, and a frequent topic
on the android-ndk forum (among others).

This change makes our dlmalloc code dump a simple message to the
log just before the abort() call (and hence before the stack trace)
to better help identify the problem.

Change-Id: Iebf7eb7fe26463ecadfaca8f247d237edb441e3c

13 years agoenable support for large files (> 2G)
Dragos Tatulea [Mon, 4 Jul 2011 15:37:50 +0000 (18:37 +0300)]
enable support for large files (> 2G)

bionic has an i386 ifdef guard for the O_LARGEFILE flag. The reason for this
is not traceable in the git history, but it's most likely due to some old
toolchain or emulator problem.

Bug Id: 10035

Change-Id: I742ee6e50220276c2cb268d66f89b5655ef689fc
Signed-off-by: Dragos Tatulea <dragos.tatulea@intel.com>
13 years agoMerge "Update to tzdata2011h."
Elliott Hughes [Fri, 1 Jul 2011 00:00:17 +0000 (17:00 -0700)]
Merge "Update to tzdata2011h."

13 years agoUpdate to tzdata2011h.
Elliott Hughes [Thu, 30 Jun 2011 23:03:23 +0000 (16:03 -0700)]
Update to tzdata2011h.

This includes the Egyptian and Russian DST changes.

(Cherry pick of dd0ffc738e3f956cf4f0ae409cda22595a33f08b.)

Change-Id: Ibf4b6a1f004c997a0b8df66e78f8867425d15dbe

13 years agoMerge "Add support for a dns cache per interface"
Robert Greenwalt [Thu, 23 Jun 2011 17:20:38 +0000 (10:20 -0700)]
Merge "Add support for a dns cache per interface"

13 years agoMerge "time: Improve C99 compliance"
David Turner [Thu, 23 Jun 2011 16:10:39 +0000 (09:10 -0700)]
Merge "time: Improve C99 compliance"

13 years agoMerge "strftime: Use snprintf() instead of sprintf()"
David Turner [Thu, 23 Jun 2011 13:04:28 +0000 (06:04 -0700)]
Merge "strftime: Use snprintf() instead of sprintf()"

13 years agoMerge "Enable functional DSO object destruction"
David Turner [Thu, 23 Jun 2011 11:39:04 +0000 (04:39 -0700)]
Merge "Enable functional DSO object destruction"

13 years agostrftime: Use snprintf() instead of sprintf()
Jim Huang [Thu, 16 Jun 2011 14:35:16 +0000 (22:35 +0800)]
strftime: Use snprintf() instead of sprintf()

Change-Id: I112ac012894eddc96e5f3e77cb87bb300596e3ce
Signed-off-by: Jim Huang <jserv@0xlab.org>
13 years agotime: Improve C99 compliance
Jim Huang [Thu, 16 Jun 2011 14:40:10 +0000 (22:40 +0800)]
time: Improve C99 compliance

Quote from Linux Programmer's Manual:
  "If t is non-NULL, the return value is also stored in the memory
   pointed to by t."

Change-Id: I8cb66b67e5f34c536ce2f0db76a6dc337c42ea3f
Signed-off-by: Jim Huang <jserv@0xlab.org>
13 years agoEnable functional DSO object destruction
Bruce Beare [Mon, 20 Jun 2011 17:29:50 +0000 (10:29 -0700)]
Enable functional DSO object destruction

Unfortunately, legacy .so files for ARM don't have a correct crtbegin file.
Consequently, we have to grandfather the old __dso_handle behaviour.
Add some ifdefs for ARM to allow it to use the old code until we can work
out a transition.

Change-Id: I6a28f368267d792c94e1d985d8344023bc632f6f
Author: H.J. Lu <hongjiu.lu@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoMerge "libstdc++: make operator new call abort on failure."
David 'Digit' Turner [Fri, 17 Jun 2011 09:51:58 +0000 (02:51 -0700)]
Merge "libstdc++: make operator new call abort on failure."

13 years agolibstdc++: make operator new call abort on failure.
David 'Digit' Turner [Tue, 14 Jun 2011 19:58:55 +0000 (21:58 +0200)]
libstdc++: make operator new call abort on failure.

This change ensures that operator new will call abort() in case
of memory allocation failure. Note that due to our usage of memory
overcommit, this can only happen under very rare circumstances
(i.e. trying to allocate memory larger than the larger free range
of virtual address space, or when memory is corrutped in various
ways).

Change-Id: I128b8bf626216e899c22a00f24492cd148a1fc94

13 years agoAdd support for a dns cache per interface
Mattias Falk [Mon, 4 Apr 2011 14:12:35 +0000 (16:12 +0200)]
Add support for a dns cache per interface

Initial commit for dns cache per interface.
Added a type that holds a reference to a
cache and name of associated interface,
address of interface, name server(s)
associated with an interface etc.

New functions to set default interface,
address of name servers etc.

Change-Id: Ie991bc5592fd998409853d8bf77d7fe69035dac5

13 years agoMerge "libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto."
Jean-Baptiste Queru [Thu, 2 Jun 2011 22:31:01 +0000 (15:31 -0700)]
Merge "libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto."

13 years agolibc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto.
JP Abgrall [Wed, 18 May 2011 23:53:23 +0000 (16:53 -0700)]
libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto.

Make netinet/ip.h have IPTOS_MINCOST which matches what
  kernel/common/linux/ip.h has to say.
Fixup gethostbyaddr() 1st arg to match what man has to say.

Change-Id: Iff9647d4a46ea88b1fc32163eb69bb9b27cdf370

13 years agoMerge "Update netlink-related kernel includes"
Jean-Baptiste Queru [Thu, 2 Jun 2011 22:16:48 +0000 (15:16 -0700)]
Merge "Update netlink-related kernel includes"

13 years agoUpdate netlink-related kernel includes
Dmitry Shmidt [Tue, 22 Mar 2011 22:21:48 +0000 (15:21 -0700)]
Update netlink-related kernel includes

Change-Id: I7e41bb168a1036093b598383d663a6a2e036ea42
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoMerge "Add icmp6.h and ip6.h files from current NetBSD libc."
Jean-Baptiste Queru [Thu, 2 Jun 2011 14:49:14 +0000 (07:49 -0700)]
Merge "Add icmp6.h and ip6.h files from current NetBSD libc."

13 years agoAdd icmp6.h and ip6.h files from current NetBSD libc.
Steinar H. Gunderson [Thu, 20 Jan 2011 00:31:36 +0000 (01:31 +0100)]
Add icmp6.h and ip6.h files from current NetBSD libc.

Change-Id: I6b304dfbefaec74c5fb15b216f38d698a55f0642

13 years agoMerge "libc: Fix prctl() declaration."
David 'Digit' Turner [Thu, 26 May 2011 01:24:51 +0000 (18:24 -0700)]
Merge "libc: Fix prctl() declaration."

13 years agolibc: Fix prctl() declaration.
David 'Digit' Turner [Thu, 26 May 2011 00:46:41 +0000 (02:46 +0200)]
libc: Fix prctl() declaration.

This change fixes the prctl() declaration to match GLibc, and allow us
to build gcc-4.6 for Android (among other things). Note that this does
not change the source and binary interfaces.

Change-Id: I3900c957f0da8b3548cbe9da8c41d50099dc19d6

13 years agoMerge "x86: Enable -fstack-protector"
David Turner [Wed, 25 May 2011 00:43:27 +0000 (17:43 -0700)]
Merge "x86: Enable -fstack-protector"

13 years agoMerge "Update X86 Bionic CRT files for unwind/exceptions"
David Turner [Wed, 25 May 2011 00:26:45 +0000 (17:26 -0700)]
Merge "Update X86 Bionic CRT files for unwind/exceptions"

13 years agox86: Enable -fstack-protector
Bruce Beare [Wed, 4 May 2011 04:04:40 +0000 (21:04 -0700)]
x86: Enable -fstack-protector

Change-Id: Ib69514c3afcb4c1f5e5f3f8cd91acfd145a0866c
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoUpdate X86 Bionic CRT files for unwind/exceptions
Mark D Horn [Tue, 26 Apr 2011 21:05:30 +0000 (14:05 -0700)]
Update X86 Bionic CRT files for unwind/exceptions

Several updates to Bionic crt*.o files to implement Linux/x86
stack unwind/exception handling.
Mark __dso_handle as hidden.
Note: Requires complete rebuild due to CRT changes. Google will
need to regenerate and check-in all the prebuilt x86 CRT object
files and libraries which link to them.

Change-Id: I191ce1afb0dee7bbc28dcd9694e5919226dbd070
Signed-off-by: Bruce J Beare <bruce.j.beare@intel.com>
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Author: Lu, Hongjiu <hongjiu.lu@intel.com>

13 years agoMerge "libc: Fix leak in the DNS thread-specific state."
David 'Digit' Turner [Fri, 20 May 2011 21:32:35 +0000 (14:32 -0700)]
Merge "libc: Fix leak in the DNS thread-specific state."

13 years agolibc: Fix leak in the DNS thread-specific state.
David 'Digit' Turner [Thu, 17 Mar 2011 20:31:33 +0000 (21:31 +0100)]
libc: Fix leak in the DNS thread-specific state.

NOTE: This is a back-port from the internal HC branch.

This patch fixes a leak that occurs when creating a new
thread-specific DNS resolver state object.

Essentially, each thread that calls gethostbyname() or getaddrinfo()
at least once will leak a small memory block. Another leak happens
anytime these functions are called after a change of the network
settings.

The leak is insignificant and hard to notice on typical programs.
However, netd tends to create one new thread for each DNS request
it processes, and quickly grows in size after a > 20 hours.

The same problem is seen in other system processes that tend to
create one thread per request too.

The leak occured becasue res_ninit() was called twice when creating
a new thread-specific DNS resolver state in _res_get_thread().

This function could not properly reset an existing thread and was
leaking a memory block.

The patch does two things:

- First, it fixes res_ninit() to prevent any leakage when resetting
  the state of a given res_state instance.

- Second, it modifies the _res_get_thread() implementation to
  make it more explicit, and avoid calling res_ninit() twice
  in a row on first-time creation.

Fix for Bug 4089945, and Bug 4090857

Change-Id: Icde1d4d1dfb9383efdbf38d0658ba915be77942e

13 years agoMerge "bionic: Add ARM optimized strcmp()"
David Turner [Tue, 17 May 2011 11:29:20 +0000 (04:29 -0700)]
Merge "bionic: Add ARM optimized strcmp()"

13 years agoMerge "vfscanf: Add support for L type modifier for long long"
David Turner [Tue, 17 May 2011 11:07:27 +0000 (04:07 -0700)]
Merge "vfscanf: Add support for L type modifier for long long"

13 years agoMerge "bionic, libthread_db x86 fixes"
David Turner [Mon, 9 May 2011 15:03:51 +0000 (08:03 -0700)]
Merge "bionic, libthread_db x86 fixes"

13 years agovfscanf: Add support for L type modifier for long long
Chris Fries [Wed, 4 May 2011 14:54:06 +0000 (09:54 -0500)]
vfscanf: Add support for L type modifier for long long

scanf()'s man page suggests support for %Ld, (and ioux).
Implement this so that 3rd party code will work correctly.

Change-Id: Idce9d266071cb688ca71429395a2d9edf6813595

13 years agoMerge "Tracking change to dns proxy protocol"
Brian Carlstrom [Tue, 3 May 2011 17:21:35 +0000 (10:21 -0700)]
Merge "Tracking change to dns proxy protocol"

13 years agoMerge "Use MAP_FIXED when allocating prelinked shared library regions"
David Turner [Mon, 2 May 2011 06:59:33 +0000 (23:59 -0700)]
Merge "Use MAP_FIXED when allocating prelinked shared library regions"

13 years agoTracking change to dns proxy protocol
Brian Carlstrom [Fri, 29 Apr 2011 23:43:16 +0000 (16:43 -0700)]
Tracking change to dns proxy protocol

The gethostbyaddr code in system/netd now expects a string address
from inet_ntop, not raw bytes, in order to properly pass addresses
containing null and probably spaces and newlines characeters as well.

Bug: 4344448
Change-Id: I8ec0eab94d5b1d38e9269ba3afb2825e946f8df3

13 years agobionic, libthread_db x86 fixes
Bruce Beare [Mon, 28 Mar 2011 16:47:35 +0000 (09:47 -0700)]
bionic, libthread_db x86 fixes

Change-Id: I3be997f5f1f6a894a3c200d4f325cf3bfd428c66
Author: James Rose <james.rose@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agobionic: Add ARM optimized strcmp()
Jim Huang [Wed, 20 Apr 2011 07:35:04 +0000 (15:35 +0800)]
bionic: Add ARM optimized strcmp()

Reference results of the experiments on TI OMAP3430 at 600 MHz

$ bench_strcmp -N "strcmp_1k" -s 1k -I 200

[original C code]
             prc thr   usecs/call      samples   errors cnt/samp     size
strcmp_1k      1   1     10.38000          102        0    15000     1024

[ARM optimized code]
             prc thr   usecs/call      samples   errors cnt/samp     size
strcmp_1k      1   1      3.08840           88        0    15000     1024

The work was derived from ARM Ltd, contributed to newlib, and reworked
for Android by Linaro.

Change-Id: Ib0d5755e1eb9adb07d80ef0252f57a5c4c57a425
Signed-off-by: Jim Huang <jserv@0xlab.org>
13 years agoam 3ef36b21: Merge "Use system property to set dns cache size"
Brad Fitzpatrick [Mon, 11 Apr 2011 22:35:44 +0000 (15:35 -0700)]
am 3ef36b21: Merge "Use system property to set dns cache size"

* commit '3ef36b2115d0802e668e325b59af6ef14d999e71':
  Use system property to set dns cache size

13 years agoMerge "Use system property to set dns cache size"
Brad Fitzpatrick [Mon, 11 Apr 2011 16:42:30 +0000 (09:42 -0700)]
Merge "Use system property to set dns cache size"

13 years agoam 4c090434: Merge "removing shadowing redeclaration of result"
David Turner [Tue, 5 Apr 2011 14:35:09 +0000 (07:35 -0700)]
am 4c090434: Merge "removing shadowing redeclaration of result"

* commit '4c090434a4fcffb3a8bb7ebee7cc6e52befceeae':
  removing shadowing redeclaration of result

13 years agoam fcee105b: Merge "x86 libc: fix the wrong return value of syscall"
David Turner [Tue, 5 Apr 2011 14:35:07 +0000 (07:35 -0700)]
am fcee105b: Merge "x86 libc: fix the wrong return value of syscall"

* commit 'fcee105b2baca9eb338e89ecc9ba99e15dd31e78':
  x86 libc: fix the wrong return value of syscall

13 years agoMerge "removing shadowing redeclaration of result"
David Turner [Tue, 5 Apr 2011 14:14:28 +0000 (07:14 -0700)]
Merge "removing shadowing redeclaration of result"

13 years agoMerge "x86 libc: fix the wrong return value of syscall"
David Turner [Tue, 5 Apr 2011 13:58:54 +0000 (06:58 -0700)]
Merge "x86 libc: fix the wrong return value of syscall"

13 years agox86 libc: fix the wrong return value of syscall
Kan-Ru Chen [Tue, 29 Mar 2011 04:00:38 +0000 (12:00 +0800)]
x86 libc: fix the wrong return value of syscall

According to Intel ABI spec, there is no need to save %eax, %ecx, %edx
on the stack. Worse, popping %eax will wipe out the return value.

Change-Id: Ida536c3b98174b8deef88f8f3b9352eaaeb7c0c0

13 years agoam 0e47a919: Merge "libc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++"
David 'Digit' Turner [Fri, 25 Mar 2011 15:51:56 +0000 (08:51 -0700)]
am 0e47a919: Merge "libc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++"

* commit '0e47a919f413ff14a540a0dbad873ee8f834b210':
  libc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++

13 years agoMerge "libc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++"
David 'Digit' Turner [Fri, 25 Mar 2011 15:39:37 +0000 (08:39 -0700)]
Merge "libc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++"

13 years agoremoving shadowing redeclaration of result
Christopher Schwardt [Tue, 22 Mar 2011 14:35:40 +0000 (15:35 +0100)]
removing shadowing redeclaration of result

Change-Id: Ic1f86962dfb8620cf5c63ff4913b2f0bf908abb5

13 years agolibc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++
David 'Digit' Turner [Thu, 17 Mar 2011 09:56:25 +0000 (10:56 +0100)]
libc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++

See http://code.google.com/p/android/issues/detail?id=14627 for context.

Change-Id: Idb10b675667d0d6e64dcb1d382be11e45aa6f4c4

13 years agoam 5a6f593b: Merge "Use sigemptyset to initialise sigset_t values. sigset_t may not...
Brad Fitzpatrick [Wed, 16 Mar 2011 18:41:24 +0000 (11:41 -0700)]
am 5a6f593b: Merge "Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type."

* commit '5a6f593b6197b96f980d9d45f9a981ef8705caf4':
  Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type.

13 years agoMerge "Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented...
Brad Fitzpatrick [Wed, 16 Mar 2011 18:15:37 +0000 (11:15 -0700)]
Merge "Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type."

13 years agoam 3f14ff34: DO NOT MERGE: Update USB accessory kernel header to include serial numbe...
Mike Lockwood [Tue, 15 Mar 2011 21:49:22 +0000 (14:49 -0700)]
am 3f14ff34: DO NOT MERGE: Update USB accessory kernel header to include serial number support

* commit '3f14ff34dfbd00fcffb18b10a1a3e17e2cc5ebdf':
  DO NOT MERGE: Update USB accessory kernel header to include serial number support

13 years agoDO NOT MERGE: Update USB accessory kernel header to include serial number support
Mike Lockwood [Mon, 14 Mar 2011 21:50:44 +0000 (17:50 -0400)]
DO NOT MERGE: Update USB accessory kernel header to include serial number support

Change-Id: I61d889b107bd5e052ebac393883b87dac730ea6a
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoam 6139fa33: DO NOT MERGE: linux/usb/f_accessory.h: Update USB accessory kernel header
Mike Lockwood [Mon, 14 Mar 2011 20:35:03 +0000 (13:35 -0700)]
am 6139fa33: DO NOT MERGE: linux/usb/f_accessory.h: Update USB accessory kernel header

* commit '6139fa33ab823e935471fa71bba4c6f715ad6c56':
  DO NOT MERGE: linux/usb/f_accessory.h: Update USB accessory kernel header

13 years agoUse sigemptyset to initialise sigset_t values.
Chris Dearman [Thu, 10 Mar 2011 19:12:27 +0000 (11:12 -0800)]
Use sigemptyset to initialise sigset_t values.
sigset_t may not be implemented as an integral type.

Change-Id: I3f5ec86d6383685979d8d23ef508b6c609569b38
Signed-off-by: Raghu Gandham <raghu@mips.com>
13 years agoam 0c398985: Merge "[ENDIAN] Build md5 code correctly for bigendian targets"
Brad Fitzpatrick [Mon, 14 Mar 2011 17:52:05 +0000 (10:52 -0700)]
am 0c398985: Merge "[ENDIAN] Build md5 code correctly for bigendian targets"

* commit '0c3989854fa3ea3ffb4152c013f68f2a21a52dc1':
  [ENDIAN] Build md5 code correctly for bigendian targets

13 years agoMerge "[ENDIAN] Build md5 code correctly for bigendian targets"
Brad Fitzpatrick [Mon, 14 Mar 2011 17:39:10 +0000 (10:39 -0700)]
Merge "[ENDIAN] Build md5 code correctly for bigendian targets"

13 years agoDO NOT MERGE: linux/usb/f_accessory.h: Update USB accessory kernel header
Mike Lockwood [Thu, 10 Mar 2011 02:57:00 +0000 (21:57 -0500)]
DO NOT MERGE: linux/usb/f_accessory.h: Update USB accessory kernel header

For bugs b/4079236, b/4073248 and b/4080288

Change-Id: Id9cdbe95d7dd892bf38e16e7da505ee0eae26b99
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoam da8ea213: Merge "libc: <stdint.h>: Don\'t make __STD_CONSTANT_MACROS available...
David 'Digit' Turner [Fri, 11 Mar 2011 19:13:45 +0000 (11:13 -0800)]
am da8ea213: Merge "libc: <stdint.h>: Don\'t make __STD_CONSTANT_MACROS available if only __STD_LIMIT_MACROS is defined."

* commit 'da8ea213abb8bec08da37622179061630bd8e2f8':
  libc: <stdint.h>: Don't make __STD_CONSTANT_MACROS available if only __STD_LIMIT_MACROS is defined.

13 years agoam e6e2ba1d: Merge "libc: <pthread.h>: Replace \'#if __cplusplus\' by \'#ifdef __cplu...
David 'Digit' Turner [Fri, 11 Mar 2011 19:12:11 +0000 (11:12 -0800)]
am e6e2ba1d: Merge "libc: <pthread.h>: Replace \'#if __cplusplus\' by \'#ifdef __cplusplus\'"

* commit 'e6e2ba1d40241c85de16d75cbd397cc3670d7535':
  libc: <pthread.h>: Replace '#if __cplusplus' by '#ifdef __cplusplus'

13 years agoMerge "libc: <stdint.h>: Don't make __STD_CONSTANT_MACROS available if only __STD_LIM...
David 'Digit' Turner [Fri, 11 Mar 2011 17:32:33 +0000 (09:32 -0800)]
Merge "libc: <stdint.h>: Don't make __STD_CONSTANT_MACROS available if only __STD_LIMIT_MACROS is defined."

13 years agoMerge "libc: <pthread.h>: Replace '#if __cplusplus' by '#ifdef __cplusplus'"
David 'Digit' Turner [Fri, 11 Mar 2011 17:31:57 +0000 (09:31 -0800)]
Merge "libc: <pthread.h>: Replace '#if __cplusplus' by '#ifdef __cplusplus'"

13 years agolibc: <pthread.h>: Replace '#if __cplusplus' by '#ifdef __cplusplus'
David 'Digit' Turner [Fri, 11 Mar 2011 13:51:19 +0000 (14:51 +0100)]
libc: <pthread.h>: Replace '#if __cplusplus' by '#ifdef __cplusplus'

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

Change-Id: Ia7b6668c28737810d6c4941604c6adf232a27c61

13 years agolibc: <stdint.h>: Don't make __STD_CONSTANT_MACROS available if only __STD_LIMIT_MACR...
David 'Digit' Turner [Fri, 11 Mar 2011 13:39:05 +0000 (14:39 +0100)]
libc: <stdint.h>: Don't make __STD_CONSTANT_MACROS available if only __STD_LIMIT_MACROS is defined.

Change-Id: I8b0ea266eab9c6f75d8407b704953ecaef948221

13 years agoam dfe6eda5: Merge "libc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition"
David 'Digit' Turner [Thu, 10 Mar 2011 20:14:51 +0000 (12:14 -0800)]
am dfe6eda5: Merge "libc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition"

* commit 'dfe6eda57e1e463427f941d5d71f8ccb5297d6d2':
  libc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition

13 years agoam d6722bdd: Merge "libc: <stdint.h>: Proper C++"
David 'Digit' Turner [Thu, 10 Mar 2011 20:11:41 +0000 (12:11 -0800)]
am d6722bdd: Merge "libc: <stdint.h>: Proper C++"

* commit 'd6722bdd201e2747c55ec7255db7f1d5864ccdd3':
  libc: <stdint.h>: Proper C++

13 years agoMerge "libc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition"
David 'Digit' Turner [Thu, 10 Mar 2011 19:35:58 +0000 (11:35 -0800)]
Merge "libc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition"

13 years agolibc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition
David 'Digit' Turner [Thu, 10 Mar 2011 19:34:23 +0000 (20:34 +0100)]
libc: <stdint.h>: fix typo in INTMAX_C()/UINTMAX_C() definition

Change-Id: I3c74269901a288c448734dd7eb442a62b9348db8

13 years ago[ENDIAN] Build md5 code correctly for bigendian targets
Paul Lind [Thu, 10 Mar 2011 19:13:50 +0000 (11:13 -0800)]
[ENDIAN] Build md5 code correctly for bigendian targets

Signed-off-by: Raghu Gandham <raghu@mips.com>
13 years agoMerge "libc: <stdint.h>: Proper C++"
David 'Digit' Turner [Thu, 10 Mar 2011 19:01:24 +0000 (11:01 -0800)]
Merge "libc: <stdint.h>: Proper C++"

13 years agoUse MAP_FIXED when allocating prelinked shared library regions
Chris Dearman [Thu, 10 Mar 2011 18:48:14 +0000 (10:48 -0800)]
Use MAP_FIXED when allocating prelinked shared library regions

Prelinked libraries must be mapped to a fixed address. MAP_FIXED is ignored
for non-prelinked libraries (si->base==0)

Signed-off-by: Raghu Gandham <raghu@mips.com>
13 years agolibc: <stdint.h>: Proper C++
David 'Digit' Turner [Thu, 10 Mar 2011 17:02:01 +0000 (18:02 +0100)]
libc: <stdint.h>: Proper C++

This patch prevents the definition of various macros when <stdint.h> is
included from C++. The ISO C99 standard mentions that when this header
is included from a C++ source file, limit and constant related macros
should only be defined when asked explicitely by defining
__STDC_LIMIT_MACROS and __STD_CONSTANT_MACROS, respectively.

The <stdint.h> lacked the proper #ifdef .. #endif blocks for the
following macros:

    INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, PTRDIFF_MIN, PTRDIFF_MAX
    INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX,
    INPTR_C, UINTPR_C, PTRDIFF_C, INTMAX_C, UINTMAX_C

This is intended to fix http://code.google.com/p/android/issues/detail?id=14380
after we copy this file to development/ndk/platforms/android-3/include/

Change-Id: Ia77e0822edfaaf568ea599d7de673b310eeeaa4a

13 years agoam fed58049: Merge "libc: Fix PTHREAD_RWLOCK_INITIALIZER"
David 'Digit' Turner [Thu, 10 Mar 2011 09:51:19 +0000 (01:51 -0800)]
am fed58049: Merge "libc: Fix PTHREAD_RWLOCK_INITIALIZER"

* commit 'fed58049d50083e4c960d89f4bbd516a181c2d18':
  libc: Fix PTHREAD_RWLOCK_INITIALIZER
  Proxy getnameinfo through netd
  Updated gcc 4.4.3 IA toolchain doesn't require the .ctors list
  Convert cname lenght before use

13 years agoMerge "libc: Fix PTHREAD_RWLOCK_INITIALIZER"
David 'Digit' Turner [Thu, 10 Mar 2011 09:26:26 +0000 (01:26 -0800)]
Merge "libc: Fix PTHREAD_RWLOCK_INITIALIZER"

13 years agolibc: Fix PTHREAD_RWLOCK_INITIALIZER
David 'Digit' Turner [Thu, 10 Mar 2011 09:22:55 +0000 (10:22 +0100)]
libc: Fix PTHREAD_RWLOCK_INITIALIZER

The macro definition was incorrect and resulted in a compile error
when used.

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

Change-Id: I8fa6047b63e7f56b53653774327099822c469cd1

13 years agoam 6bd73ed4: Add linux/usb/f_accessory.h header for USB accessory driver DO NOT MERGE
Mike Lockwood [Wed, 9 Mar 2011 21:31:58 +0000 (13:31 -0800)]
am 6bd73ed4: Add linux/usb/f_accessory.h header for USB accessory driver DO NOT MERGE

* commit '6bd73ed417c52ed57d5f62ea9988b6071a1efbeb':
  Add linux/usb/f_accessory.h header for USB accessory driver DO NOT MERGE

13 years agoMerge "Proxy getnameinfo through netd"
Brad Fitzpatrick [Tue, 22 Feb 2011 15:18:56 +0000 (07:18 -0800)]
Merge "Proxy getnameinfo through netd"

13 years agoMerge "Updated gcc 4.4.3 IA toolchain doesn't require the .ctors list"
David Turner [Tue, 22 Feb 2011 15:05:32 +0000 (07:05 -0800)]
Merge "Updated gcc 4.4.3 IA toolchain doesn't require the .ctors list"

13 years agoProxy getnameinfo through netd
Mattias Falk [Tue, 15 Feb 2011 07:45:26 +0000 (08:45 +0100)]
Proxy getnameinfo through netd

Proxy the parts of getnameinfo that utilize
the dns cache through netd.

Change-Id: I1d57c451ea6b179c34828cf57a4182b262674003

13 years agoAdd linux/usb/f_accessory.h header for USB accessory driver DO NOT MERGE
Mike Lockwood [Tue, 15 Feb 2011 14:20:21 +0000 (09:20 -0500)]
Add linux/usb/f_accessory.h header for USB accessory driver DO NOT MERGE

Change-Id: I972d28065ee7e77e93699512310fcd6d5742ed0d
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoMerge "Convert cname lenght before use"
David Turner [Thu, 17 Feb 2011 02:58:45 +0000 (18:58 -0800)]
Merge "Convert cname lenght before use"

13 years agoUpdated gcc 4.4.3 IA toolchain doesn't require the .ctors list
Bruce Beare [Thu, 27 Jan 2011 18:23:16 +0000 (10:23 -0800)]
Updated gcc 4.4.3 IA toolchain doesn't require the .ctors list

Change-Id: Ia840a19a45257128eccdcf25d105f500f2d90741
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoConvert cname lenght before use
Mattias Falk [Tue, 15 Feb 2011 07:44:20 +0000 (08:44 +0100)]
Convert cname lenght before use

The length of the cname is sent in big-endian
order. Thus, it has to be converted before used
in android_getaddrinfo_proxy

Change-Id: I1a0cc12780c47f7493fcf06f690515829f88c01e

13 years agoUse system property to set dns cache size
Mattias Falk [Mon, 14 Feb 2011 11:41:11 +0000 (12:41 +0100)]
Use system property to set dns cache size

Use system property ro.net.dns_cache_size to set
the size of the cache. If the system property
is not set the default cache size is defined by
CONFIG_MAX_ENTRIES.

The number of entries in the hash table will be equal
to the number of max entries allowed in the cache.

Change-Id: I77d69d7c178937fa483d0b40512483ad29232d28

13 years agoMerge "Update"
Jean-Baptiste Queru [Fri, 11 Feb 2011 20:17:21 +0000 (12:17 -0800)]
Merge "Update"

13 years agoUpdate
Dmitry Shmidt [Thu, 6 Jan 2011 23:30:35 +0000 (15:30 -0800)]
Update

Change-Id: I41f590dec6bfd26c36cf01601cf03502d02d29af

13 years agoMerge "Remove an extra register move."
David Turner [Sun, 6 Feb 2011 23:01:57 +0000 (15:01 -0800)]
Merge "Remove an extra register move."

13 years agoMerge "Replace __atomic_XXX with GCC __sync_XXX intrinsics."
David Turner [Sun, 6 Feb 2011 23:01:39 +0000 (15:01 -0800)]
Merge "Replace __atomic_XXX with GCC __sync_XXX intrinsics."

13 years agoMerge "move some typedefs to procfs.h required by gdbserver build"
David Turner [Sun, 6 Feb 2011 23:01:02 +0000 (15:01 -0800)]
Merge "move some typedefs to procfs.h required by gdbserver build"

13 years agoMerge "Use more optimized version of memmove"
David Turner [Fri, 4 Feb 2011 13:13:35 +0000 (05:13 -0800)]
Merge "Use more optimized version of memmove"

13 years agoRemove an extra register move.
Bruce Beare [Thu, 27 Jan 2011 18:25:33 +0000 (10:25 -0800)]
Remove an extra register move.

Change-Id: I63c217b73203b44b1a2e74950b58f2ec12989cab
Author: H.J. Lu <hjl.tools@gmail.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>