OSDN Git Service

android-x86/bionic.git
12 years agoam f5aa1382: Merge "x86 libc: Fix the range to check the error"
David Turner [Fri, 5 Aug 2011 15:24:22 +0000 (08:24 -0700)]
am f5aa1382: Merge "x86 libc: Fix the range to check the error"

* commit 'f5aa1382ec7592c58827ed0822c77cb5bf8df165':
  x86 libc: Fix the range to check the error

12 years agoMerge "x86 libc: Fix the range to check the error"
David Turner [Fri, 5 Aug 2011 15:08:57 +0000 (08:08 -0700)]
Merge "x86 libc: Fix the range to check the error"

12 years agoam 023c4988: Merge "libc: x86: Fixed size_t definition."
David 'Digit' Turner [Thu, 4 Aug 2011 18:09:34 +0000 (11:09 -0700)]
am 023c4988: Merge "libc: x86: Fixed size_t definition."

* commit '023c49882e247bd0345946c908cff231ebf7097e':
  libc: x86: Fixed size_t definition.

12 years agoMerge "libc: x86: Fixed size_t definition."
David 'Digit' Turner [Thu, 4 Aug 2011 18:01:13 +0000 (11:01 -0700)]
Merge "libc: x86: Fixed size_t definition."

12 years agolibc: x86: Fixed size_t definition.
David 'Digit' Turner [Thu, 4 Aug 2011 12:07:00 +0000 (14:07 +0200)]
libc: x86: Fixed size_t definition.

This patch changes the declaration of size_t on x86 targets
to test for the __ANDROID__ macro, instead of ANDROID

__ANDROID__ should be a builting toolchain macro, while ANDROID
is usually added manually during the build.

Testing against __ANDROID__ allows us to use the header when
using the NDK's standalone x86 toolchain.

This is related to http://code.google.com/p/android/issues/detail?id=19011
The bug was already fixed in the NDK platform headers, this simply updates
the C library one accordingly.

Change-Id: Ie038c4c8b37b7d24e2e4ae4d7a63371b69c9a51e

12 years agoam 9efda5b7: Merge "typo in libc/stdio/wcio.h"
David Turner [Wed, 3 Aug 2011 15:14:52 +0000 (08:14 -0700)]
am 9efda5b7: Merge "typo in libc/stdio/wcio.h"

* commit '9efda5b7d0a2e8d9dc7495680d66085dc0e151f3':
  typo in libc/stdio/wcio.h

12 years agoMerge "typo in libc/stdio/wcio.h"
David Turner [Wed, 3 Aug 2011 15:10:29 +0000 (08:10 -0700)]
Merge "typo in libc/stdio/wcio.h"

12 years agoam bcf861f2: Merge "Don\'t call freeaddrinfo with a NULL ptr."
Robert Greenwalt [Fri, 29 Jul 2011 17:15:21 +0000 (10:15 -0700)]
am bcf861f2: Merge "Don\'t call freeaddrinfo with a NULL ptr."

* commit 'bcf861f246bb06ebba2c070af5b3222c5254970d':
  Don't call freeaddrinfo with a NULL ptr.

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

12 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 agoam 28de3e59: Merge "Don\'t reset caches when dns props change."
Robert Greenwalt [Wed, 20 Jul 2011 22:49:50 +0000 (15:49 -0700)]
am 28de3e59: Merge "Don\'t reset caches when dns props change."

* commit '28de3e5901fd54208f20e027365d2ba7b7e136b6':
  Don't reset caches when dns props change.

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 agoresolved conflicts for merge of 50a83255 to gingerbread-plus-aosp
David 'Digit' Turner [Mon, 11 Jul 2011 19:39:06 +0000 (21:39 +0200)]
resolved conflicts for merge of 50a83255 to gingerbread-plus-aosp

Change-Id: Idf1971120bbdd52676f95aa3aa69f62342dc012e

13 years agomerge intel x86 patches into gingerbread branch
David 'Digit' Turner [Sat, 9 Jul 2011 01:55:33 +0000 (03:55 +0200)]
merge intel x86 patches into gingerbread branch

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 "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 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 agox86: Enable -fstack-protector
Bruce Beare [Wed, 4 May 2011 04:04:40 +0000 (21:04 -0700)]
x86: Enable -fstack-protector

Change-Id: Iff9e3a3ba0e2d0faa7c6d98154aa5be0cc8a6c50
Orig-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: I01c14c19ef7569c9ffed89495cae2a459972c04b
Orig-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 agobionic, libthread_db x86 fixes
James Rose [Tue, 31 May 2011 17:20:42 +0000 (10:20 -0700)]
bionic, libthread_db x86 fixes

Orig-Change-Id: I3be997f5f1f6a894a3c200d4f325cf3bfd428c66
Author: James Rose <james.rose@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
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

Orig-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 agoRemove an extra register move.
Bruce Beare [Thu, 27 Jan 2011 18:25:33 +0000 (10:25 -0800)]
Remove an extra register move.

Orig-Change-Id: I63c217b73203b44b1a2e74950b58f2ec12989cab
Author: H.J. Lu <hjl.tools@gmail.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoReplace __atomic_XXX with GCC __sync_XXX intrinsics.
Bruce Beare [Thu, 27 Jan 2011 18:24:52 +0000 (10:24 -0800)]
Replace __atomic_XXX with GCC __sync_XXX intrinsics.

Orig-Change-Id: I14f275392fcd70cc15e307470e0a099777c7c09e
Author: H.J. Lu <hjl.tools@gmail.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agomove some typedefs to procfs.h required by gdbserver build
Bruce Beare [Thu, 27 Jan 2011 18:26:30 +0000 (10:26 -0800)]
move some typedefs to procfs.h required by gdbserver build

Orig-Change-Id: I51fba4ceb80b63e583f462a2a00f3f658c7cdd36
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agouse consistent guards for off_t and size_t defines for IA
Bruce Beare [Sun, 26 Dec 2010 17:29:57 +0000 (09:29 -0800)]
use consistent guards for off_t and size_t defines for IA

Orig-Change-Id: I9347ab4407c48c71c99f42583523ebe31a5e67ae
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoSimplify variable typing for IA builds
Bruce Beare [Sun, 26 Dec 2010 17:28:49 +0000 (09:28 -0800)]
Simplify variable typing for IA builds

Orig-Change-Id: I3f080b34360bfade0dbd5e2d8d0365e049162e4c
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agosigsetmask.c was not processing the "mask" argument.
Bruce Beare [Sat, 4 Dec 2010 00:48:47 +0000 (16:48 -0800)]
sigsetmask.c was not processing the "mask" argument.

Orig-Change-Id: I79b898ea5b882e8c0564e25466e827a9bedda6e8
Author: yhe19 <yunan.he@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoAdd defines for CAIF support
Bruce Beare [Sat, 4 Dec 2010 00:14:59 +0000 (16:14 -0800)]
Add defines for CAIF support

Orig-Change-Id: I32d2e02814f1965ebdcecb804e947ff303dbe230
Author: Mark Gross <mark.gross@intel.com>
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoRemove extra/unneeded copy of fenv.h
Bruce Beare [Mon, 11 Oct 2010 19:01:14 +0000 (12:01 -0700)]
Remove extra/unneeded copy of fenv.h

Orig-Change-Id: I80da2521c50df7e8967af48164cc834abf499c50
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoUse proper variable typing
Bruce Beare [Mon, 11 Oct 2010 19:08:07 +0000 (12:08 -0700)]
Use proper variable typing

Orig-Change-Id: If5c33d90b33f538448ac12e7bee94b4b9173d39c
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoUpdate ATOM string routines to latest
Bruce Beare [Tue, 31 May 2011 16:56:55 +0000 (09:56 -0700)]
Update ATOM string routines to latest

Orig-Change-Id: I22a600e7f172681cfd38ff73a64e3fd07b284959
Signed-off-by: Lu, Hongjiu <hongjiu.lu@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoFix undefined reference to dl_iterate_phdr for x86
Bruce Beare [Thu, 8 Jul 2010 21:47:50 +0000 (14:47 -0700)]
Fix undefined reference to dl_iterate_phdr for x86

Orig-Change-Id: I22410b27939e8f54da932d7a1104102550c4685f
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoFix missing NL
Bruce Beare [Fri, 25 Jun 2010 16:02:10 +0000 (09:02 -0700)]
Fix missing NL

Orig-Change-Id: Ic210fe9f740b9a8235a66d479ad4eddc869998bb
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoptrace.c Fix source file format to unix from dos
Bruce Beare [Tue, 31 May 2011 17:26:08 +0000 (10:26 -0700)]
ptrace.c Fix source file format to unix from dos

Orig-Change-Id: Ia771b457eec7f9575d4631fb1c12a7062ebcc7de
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
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 agotypo in libc/stdio/wcio.h
Nathan Forbes [Sun, 3 Jul 2011 00:29:25 +0000 (20:29 -0400)]
typo in libc/stdio/wcio.h

whcar_io_data -> wchar_io_data
Signed-off-by: Nathan Forbes <me@nathanforbes.com>
Change-Id: I45c231efffac265eed51b7632d5a1b21c18bfa55

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 agox86 libc: Fix the range to check the error
Jun Nakajima [Fri, 17 Jun 2011 21:37:50 +0000 (14:37 -0700)]
x86 libc: Fix the range to check the error

The spec says "A value in the range between -4095 to -1 indicates an error" (not -129).
This was pointed out in the comment in 22039.

Change-Id: I11b7c45015a9e4ccf09aed5364a889437eab6ab8
Signed-off-by: Jun Nakajima <jun.nakajima@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.