OSDN Git Service

android-x86/bionic.git
12 years agoam 821bea02: Merge "DO NOT MERGE: libc: enable IPTOS_MINCOST, fixup gethostbyaddr...
JP Abgrall [Wed, 27 Jul 2011 16:20:51 +0000 (09:20 -0700)]
am 821bea02: Merge "DO NOT MERGE: libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto." into honeycomb-LTE

* commit '821bea0266810e546a842582b0e29a9bfd5223d9':
  DO NOT MERGE: libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto.

12 years agoam 30517a93: Merge "DO NOT MERGE: Update netlink-related kernel includes" into honeyc...
JP Abgrall [Wed, 27 Jul 2011 16:20:50 +0000 (09:20 -0700)]
am 30517a93: Merge "DO NOT MERGE: Update netlink-related kernel includes" into honeycomb-LTE

* commit '30517a9344a8ac06b6962bfb24bb33463767307e':
  DO NOT MERGE: Update netlink-related kernel includes

12 years agoresolved conflicts for merge of 9363d912 to honeycomb-plus-aosp
Robert Greenwalt [Wed, 27 Jul 2011 16:18:54 +0000 (09:18 -0700)]
resolved conflicts for merge of 9363d912 to honeycomb-plus-aosp

Change-Id: Ib0680d7e0be34ae656a9675ddd1014a6193a4006

12 years agoMerge "DO NOT MERGE: libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto." into...
JP Abgrall [Wed, 27 Jul 2011 01:40:04 +0000 (18:40 -0700)]
Merge "DO NOT MERGE: libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto." into honeycomb-LTE

12 years agoMerge "DO NOT MERGE: Update netlink-related kernel includes" into honeycomb-LTE
JP Abgrall [Wed, 27 Jul 2011 01:39:56 +0000 (18:39 -0700)]
Merge "DO NOT MERGE: Update netlink-related kernel includes" into honeycomb-LTE

12 years agoAdd per-interface dns caches.
Robert Greenwalt [Mon, 25 Jul 2011 19:30:17 +0000 (12:30 -0700)]
Add per-interface dns caches.

import of changes 22100 and 23138 from opensource.

Change-Id: I3ce86394323d269272aeb2bebeed4374f171a8cf

12 years agoDO NOT MERGE: libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto.
JP Abgrall [Wed, 18 May 2011 23:53:23 +0000 (16:53 -0700)]
DO NOT MERGE: libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto.

DO NOT MERGE: pulled in from master for iptables v1.4.11 update

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

12 years agoDO NOT MERGE: Update netlink-related kernel includes
Dmitry Shmidt [Tue, 22 Mar 2011 22:21:48 +0000 (15:21 -0700)]
DO NOT MERGE: Update netlink-related kernel includes

DO NOT MERGE: pulled in from master for iptables v1.4.11 update

Change-Id: I7e41bb168a1036093b598383d663a6a2e036ea42
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoam f6fcdb2e: am 28de3e59: Merge "Don\'t reset caches when dns props change."
Robert Greenwalt [Thu, 21 Jul 2011 00:16:37 +0000 (17:16 -0700)]
am f6fcdb2e: am 28de3e59: Merge "Don\'t reset caches when dns props change."

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

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 agoam 3a131026: resolved conflicts for merge of 50a83255 to gingerbread-plus-aosp
David 'Digit' Turner [Mon, 11 Jul 2011 20:25:01 +0000 (13:25 -0700)]
am 3a131026: resolved conflicts for merge of 50a83255 to gingerbread-plus-aosp

* commit '3a13102637c8be53edf28f96598ac11aaa3e14df':
  enable support for large files (> 2G)
  Enable functional DSO object destruction
  x86: Enable -fstack-protector
  Update X86 Bionic CRT files for unwind/exceptions
  bionic, libthread_db x86 fixes
  Updated gcc 4.4.3 IA toolchain doesn't require the .ctors list
  Remove an extra register move.
  Replace __atomic_XXX with GCC __sync_XXX intrinsics.
  move some typedefs to procfs.h required by gdbserver build
  use consistent guards for off_t and size_t defines for IA
  Simplify variable typing for IA builds
  sigsetmask.c was not processing the "mask" argument.
  Add defines for CAIF support
  Remove extra/unneeded copy of fenv.h
  Use proper variable typing
  Update ATOM string routines to latest
  Fix undefined reference to dl_iterate_phdr for x86
  Fix missing NL
  ptrace.c Fix source file format to unix from dos

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 agoam 57aadbb0: Merge "enable support for large files (> 2G)"
David Turner [Mon, 11 Jul 2011 17:46:00 +0000 (10:46 -0700)]
am 57aadbb0: Merge "enable support for large files (> 2G)"

* commit '57aadbb096a118dd33f9f16c67bd18dbb6b92c4a':
  enable support for large files (> 2G)

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 agoam 9c95cbf7: Merge "Really fix the build."
David 'Digit' Turner [Wed, 6 Jul 2011 17:27:49 +0000 (10:27 -0700)]
am 9c95cbf7: Merge "Really fix the build."

* commit '9c95cbf75094c15d251bb3d57a55ce47d7c6c2c8':
  Really fix the build.

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 agoam 01eb7f72: Merge "Fix broken build"
David 'Digit' Turner [Wed, 6 Jul 2011 16:08:47 +0000 (09:08 -0700)]
am 01eb7f72: Merge "Fix broken build"

* commit '01eb7f72434830bb14cec906d885d2b7ee40d53b':
  Fix broken build

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 agoam b73b6783: Merge "libc: Add logcat error message for memory corruption"
David 'Digit' Turner [Wed, 6 Jul 2011 14:46:40 +0000 (07:46 -0700)]
am b73b6783: Merge "libc: Add logcat error message for memory corruption"

* commit 'b73b6783a595cf4b1cef6463c23317a8b417f1e9':
  libc: Add logcat error message for memory corruption

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 agoresolved conflicts for merge of 2f5c6d2d to honeycomb-plus-aosp
repo sync [Fri, 1 Jul 2011 00:28:59 +0000 (17:28 -0700)]
resolved conflicts for merge of 2f5c6d2d to honeycomb-plus-aosp

Change-Id: I858210fce4a04531afd9337a098db1dbf2308c2c

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 agoam cc32fbc3: Merge "Add support for a dns cache per interface"
Robert Greenwalt [Thu, 23 Jun 2011 18:12:19 +0000 (11:12 -0700)]
am cc32fbc3: Merge "Add support for a dns cache per interface"

* commit 'cc32fbc3050079aa020ac39afb1c84b5e72737a8':
  Add support for a dns cache per interface

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 agoam 2be3f09f: Merge "time: Improve C99 compliance"
David Turner [Thu, 23 Jun 2011 17:01:11 +0000 (10:01 -0700)]
am 2be3f09f: Merge "time: Improve C99 compliance"

* commit '2be3f09f2d9b6d35b262f7a6148f51c164bb8cbb':
  time: Improve C99 compliance

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 agoam ac56f5ca: Merge "strftime: Use snprintf() instead of sprintf()"
David Turner [Thu, 23 Jun 2011 13:13:53 +0000 (06:13 -0700)]
am ac56f5ca: Merge "strftime: Use snprintf() instead of sprintf()"

* commit 'ac56f5ca2f4c54ddbd37b033f9465d89542c2cbe':
  strftime: Use snprintf() instead of sprintf()

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 agoam 1c0a0381: Merge "Enable functional DSO object destruction"
David Turner [Thu, 23 Jun 2011 12:28:13 +0000 (05:28 -0700)]
am 1c0a0381: Merge "Enable functional DSO object destruction"

* commit '1c0a0381dfb3648ffadef9537ec9383d63d62473':
  Enable functional DSO object destruction

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 agoam 4d9b75a9: Merge "libstdc++: make operator new call abort on failure."
David 'Digit' Turner [Fri, 17 Jun 2011 10:22:21 +0000 (03:22 -0700)]
am 4d9b75a9: Merge "libstdc++: make operator new call abort on failure."

* commit '4d9b75a9b08c19cef81b22f889edba61257fb356':
  libstdc++: make operator new call abort on failure.

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 agoam b127b1f2: Merge "libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto."
Jean-Baptiste Queru [Tue, 7 Jun 2011 20:24:04 +0000 (13:24 -0700)]
am b127b1f2: Merge "libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto."

* commit 'b127b1f208e67d74a7ee94ad2bd0ffb2fed3af6b':
  libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto.

13 years agoam e1bd6aa4: Merge "Update netlink-related kernel includes"
Jean-Baptiste Queru [Tue, 7 Jun 2011 20:24:01 +0000 (13:24 -0700)]
am e1bd6aa4: Merge "Update netlink-related kernel includes"

* commit 'e1bd6aa4e10e6b05e74d915c52e11a3998217522':
  Update netlink-related kernel includes

13 years agoam 81ec4e43: Merge "Add icmp6.h and ip6.h files from current NetBSD libc."
Jean-Baptiste Queru [Tue, 7 Jun 2011 20:23:58 +0000 (13:23 -0700)]
am 81ec4e43: Merge "Add icmp6.h and ip6.h files from current NetBSD libc."

* commit '81ec4e437a192189d6abdf32988504c371e52c27':
  Add icmp6.h and ip6.h files from current NetBSD libc.

13 years agoam 2cae7967: Merge "libc: Fix prctl() declaration."
David 'Digit' Turner [Mon, 6 Jun 2011 19:27:10 +0000 (12:27 -0700)]
am 2cae7967: Merge "libc: Fix prctl() declaration."

* commit '2cae7967e6049e45eaef71207481b6f8b2456025':
  libc: Fix prctl() declaration.

13 years agoam b2c7e0c1: Merge "x86: Enable -fstack-protector"
David Turner [Mon, 6 Jun 2011 18:32:49 +0000 (11:32 -0700)]
am b2c7e0c1: Merge "x86: Enable -fstack-protector"

* commit 'b2c7e0c18b7ab04cfe306277c79165de0612a2d1':
  x86: Enable -fstack-protector

13 years agoam 56baceca: Merge "Update X86 Bionic CRT files for unwind/exceptions"
David Turner [Mon, 6 Jun 2011 18:32:38 +0000 (11:32 -0700)]
am 56baceca: Merge "Update X86 Bionic CRT files for unwind/exceptions"

* commit '56baceca024f1cc2a5e8ef8c5e7ba7ea463d1ae2':
  Update X86 Bionic CRT files for unwind/exceptions

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 agoam 8f7cdff4: am a7f976c9: update linux/tegrafb.h
Michael I. Gold [Tue, 24 May 2011 23:48:48 +0000 (16:48 -0700)]
am 8f7cdff4: am a7f976c9: update linux/tegrafb.h

* commit '8f7cdff45557c937e6c7a7e010dc961feeb60c16':
  update linux/tegrafb.h

13 years agoam a7f976c9: update linux/tegrafb.h
Michael I. Gold [Tue, 24 May 2011 23:46:27 +0000 (16:46 -0700)]
am a7f976c9: update linux/tegrafb.h

* commit 'a7f976c9de3c20cc8cdde4f3dfeeb48a1a89adb7':
  update linux/tegrafb.h

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 agoupdate linux/tegrafb.h
Michael I. Gold [Fri, 13 May 2011 22:23:26 +0000 (15:23 -0700)]
update linux/tegrafb.h

Change-Id: I6bccdb7e0eb34fc4ca370458f44ed187ccb67ac8

13 years agoam 9062a236: Merge "libc: Fix leak in the DNS thread-specific state."
David 'Digit' Turner [Fri, 20 May 2011 22:06:58 +0000 (15:06 -0700)]
am 9062a236: Merge "libc: Fix leak in the DNS thread-specific state."

* commit '9062a2369107eadb2b45973adc3246cba35640e6':
  libc: Fix leak in the DNS thread-specific state.

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 agoam a7a9dddb: Merge "bionic: Add ARM optimized strcmp()"
David Turner [Tue, 17 May 2011 11:47:09 +0000 (04:47 -0700)]
am a7a9dddb: Merge "bionic: Add ARM optimized strcmp()"

* commit 'a7a9dddb5dfe783d65fec4d3b0dee9f734345a29':
  bionic: Add ARM optimized strcmp()

13 years agoam c5c84c86: Merge "vfscanf: Add support for L type modifier for long long"
David Turner [Tue, 17 May 2011 11:47:06 +0000 (04:47 -0700)]
am c5c84c86: Merge "vfscanf: Add support for L type modifier for long long"

* commit 'c5c84c8643250c71bde87541f2b28fc21a9c5cc7':
  vfscanf: Add support for L type modifier for long long

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 agoam e8f7e30b: Merge "bionic, libthread_db x86 fixes"
David Turner [Wed, 11 May 2011 00:19:13 +0000 (17:19 -0700)]
am e8f7e30b: Merge "bionic, libthread_db x86 fixes"

* commit 'e8f7e30b05c6ba103d64c1fb3cd5ef2b17be7aab':
  bionic, libthread_db x86 fixes

13 years agoam c7b54666: Merge remote branch \'goog/honeycomb-mr2\' into honeycomb-LTE
The Android Automerger [Mon, 9 May 2011 17:39:25 +0000 (10:39 -0700)]
am c7b54666: Merge remote branch \'goog/honeycomb-mr2\' into honeycomb-LTE

* commit 'c7b54666e097fbc102ac6754da99e1513f60d5ea':
  Update to tzdata2011g.

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 agoMerge remote branch 'goog/honeycomb-mr2' into honeycomb-LTE
The Android Automerger [Mon, 9 May 2011 05:30:23 +0000 (22:30 -0700)]
Merge remote branch 'goog/honeycomb-mr2' into honeycomb-LTE

13 years agoUpdate to tzdata2011g.
Elliott Hughes [Mon, 25 Apr 2011 17:46:43 +0000 (10:46 -0700)]
Update to tzdata2011g.

Egypt abandoned DST this year.

git cherry-pick 8d54a62c6d7896565102cef3bac4c30232ec847d

Change-Id: I8df051cd270108651501d9da6a9e5ce127ad3d22

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 agoam e274a9fa: Merge "Tracking change to dns proxy protocol"
Brian Carlstrom [Tue, 3 May 2011 23:14:51 +0000 (16:14 -0700)]
am e274a9fa: Merge "Tracking change to dns proxy protocol"

* commit 'e274a9fac077d350391b721e9a08b650b243577e':
  Tracking change to dns proxy protocol

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"