OSDN Git Service

android-x86/bionic.git
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 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 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 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 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 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 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 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 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 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 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 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>
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.

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

Change-Id: I51fba4ceb80b63e583f462a2a00f3f658c7cdd36
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoUse more optimized version of memmove
Johannes Carlsson [Thu, 3 Feb 2011 14:16:15 +0000 (15:16 +0100)]
Use more optimized version of memmove

On ARM there is currently no assembler optimized memmove in libc.
There is however a more optimized bcopy which copies long instead
of bytes where possible. This almost doubles the performance in
best case.

Change-Id: I1f1cd27529443358047c385730deaf938ce4e642

13 years agoMerge "Add time-to-live (TTL) support to resolver cache"
Brad Fitzpatrick [Wed, 2 Feb 2011 22:55:20 +0000 (14:55 -0800)]
Merge "Add time-to-live (TTL) support to resolver cache"

13 years agoAdd time-to-live (TTL) support to resolver cache
Mattias Falk [Mon, 31 Jan 2011 11:42:26 +0000 (12:42 +0100)]
Add time-to-live (TTL) support to resolver cache

Use the the TTL of the answer as the time a query
shall remain in the resolver cache.

Added some debugging support as well, i.e.
parse answer and print a la dig.

Change-Id: I724d3392245032592f1912f3ca7a81a8987ebbac

13 years agoam 8e2ff164: libm: Add nanf() and tgammaf() implementations.
David 'Digit' Turner [Wed, 26 Jan 2011 13:34:40 +0000 (05:34 -0800)]
am 8e2ff164: libm: Add nanf() and tgammaf() implementations.

* commit '8e2ff164cc327aad8666333a1d75f86291858da0':
  libm: Add nanf() and tgammaf() implementations.

13 years agoam d05446b3: am 7a2e1a02: Merge "Don\'t proxy getaddrinfo when net.dns1.[MYPID] is...
Brad Fitzpatrick [Wed, 26 Jan 2011 00:14:11 +0000 (16:14 -0800)]
am d05446b3: am 7a2e1a02: Merge "Don\'t proxy getaddrinfo when net.dns1.[MYPID] is set."

* commit 'd05446b34e416d89261a31452afee10eb12bb71d':
  Don't proxy getaddrinfo when net.dns1.[MYPID] is set.

13 years agoresolved conflicts for merge of ff242869 to honeycomb-plus-aosp
Brad Fitzpatrick [Wed, 26 Jan 2011 00:11:42 +0000 (16:11 -0800)]
resolved conflicts for merge of ff242869 to honeycomb-plus-aosp

Change-Id: I560f07374589a844bdf611da8ec5e358dc451ba4

13 years agoam 7a2e1a02: Merge "Don\'t proxy getaddrinfo when net.dns1.[MYPID] is set."
Brad Fitzpatrick [Tue, 25 Jan 2011 23:41:28 +0000 (15:41 -0800)]
am 7a2e1a02: Merge "Don\'t proxy getaddrinfo when net.dns1.[MYPID] is set."

* commit '7a2e1a0245f5645661fdbc6887c2bc7c7f49e0ee':
  Don't proxy getaddrinfo when net.dns1.[MYPID] is set.

13 years agoam 0ec85334: Merge "DNS proxy: the start. proxies getaddrinfo calls."
Brad Fitzpatrick [Tue, 25 Jan 2011 23:41:21 +0000 (15:41 -0800)]
am 0ec85334: Merge "DNS proxy: the start.  proxies getaddrinfo calls."

* commit '0ec85334ff375a2b7823f322e083d4a0ea24c289':
  DNS proxy: the start.  proxies getaddrinfo calls.

13 years agoMerge "Don't proxy getaddrinfo when net.dns1.[MYPID] is set."
Brad Fitzpatrick [Tue, 25 Jan 2011 23:09:13 +0000 (15:09 -0800)]
Merge "Don't proxy getaddrinfo when net.dns1.[MYPID] is set."

13 years agoMerge "DNS proxy: the start. proxies getaddrinfo calls."
Brad Fitzpatrick [Tue, 25 Jan 2011 23:09:09 +0000 (15:09 -0800)]
Merge "DNS proxy: the start.  proxies getaddrinfo calls."

13 years agolibm: Add nanf() and tgammaf() implementations.
David 'Digit' Turner [Tue, 25 Jan 2011 16:05:50 +0000 (17:05 +0100)]
libm: Add nanf() and tgammaf() implementations.

Requested by b/3370708 to export these through RenderScript.

Change-Id: I1ae69f87a1ad4765b2dee8e4a6f2f3a6eb7c5ad4

13 years agoam 5d45fa40: am 2081fda6: Merge "Only look up A records if the system has IPv4."...
David Turner [Fri, 21 Jan 2011 23:50:23 +0000 (15:50 -0800)]
am 5d45fa40: am 2081fda6: Merge "Only look up A records if the system has IPv4." into gingerbread

* commit '5d45fa4049d9ba03c0d922ece18d1d2dda119dc7':
  Only look up A records if the system has IPv4.

13 years agoam b67c1bac: Fix bug in linker environment variable lookup.
tedbo [Fri, 21 Jan 2011 21:10:24 +0000 (13:10 -0800)]
am b67c1bac: Fix bug in linker environment variable lookup.

* commit 'b67c1bacd0fc27c26cc3ec19bd2c9ded19cecd08':
  Fix bug in linker environment variable lookup.

13 years agoam 56faf66f: raise: Send signal to current thread
Colin Cross [Fri, 21 Jan 2011 20:36:31 +0000 (12:36 -0800)]
am 56faf66f: raise: Send signal to current thread

* commit '56faf66fd7a90ea11835f8f0c9a7d6d8b350a09d':
  raise: Send signal to current thread

13 years agoFix bug in linker environment variable lookup.
tedbo [Fri, 21 Jan 2011 04:44:44 +0000 (20:44 -0800)]
Fix bug in linker environment variable lookup.

The linker_env_get() method that is used to match an environment
variable was failing due to an incorrect equality check.

This  was introduced in git change
be5755969d70668bbab0e0c0ed75ebd867189723.

The bug was causing the linker to ignore environment variables such
as LD_LIBRARY_PATH. This issue also affects the linker_env_secure()
path that removes unsafe environment variables, since it would
not match any in the unsecure variable list.

Change-Id: I14228df9252010e9fb4c1862bed5735f23e97aec

13 years agoraise: Send signal to current thread
Colin Cross [Fri, 21 Jan 2011 19:37:56 +0000 (11:37 -0800)]
raise: Send signal to current thread

Change-Id: Ie4318b8ddd01cc2f58f5e07c1d71376953943153

13 years agoam 2081fda6: Merge "Only look up A records if the system has IPv4." into gingerbread
David Turner [Wed, 19 Jan 2011 01:34:33 +0000 (17:34 -0800)]
am 2081fda6: Merge "Only look up A records if the system has IPv4." into gingerbread

* commit '2081fda69a68505c914324797400b1b798516904':
  Only look up A records if the system has IPv4.

13 years agoMerge "Only look up A records if the system has IPv4." into gingerbread
David Turner [Wed, 19 Jan 2011 01:32:02 +0000 (17:32 -0800)]
Merge "Only look up A records if the system has IPv4." into gingerbread

13 years agoam 2be18508: am 2e23e292: Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c...
Steinar H. Gunderson [Mon, 17 Jan 2011 20:19:01 +0000 (12:19 -0800)]
am 2be18508: am 2e23e292: Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9 to gingerbread.

* commit '2be18508f349b74b60b09e1b1118d879afb5928c':
  Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9 to gingerbread.

13 years agoam 4eb4c932: am f4dca7be: Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb...
Steinar H. Gunderson [Mon, 17 Jan 2011 20:18:59 +0000 (12:18 -0800)]
am 4eb4c932: am f4dca7be: Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6 to gingerbread.

* commit '4eb4c932dccdca663a651630fed14c760ea1e88c':
  Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6 to gingerbread.

13 years agoam 42e449e9: am a798b9f0: Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6...
Steinar H. Gunderson [Mon, 17 Jan 2011 20:18:57 +0000 (12:18 -0800)]
am 42e449e9: am a798b9f0: Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6 to gingerbread.

* commit '42e449e972c94d4af5a5ddffe2ffa73cc5666712':
  Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6 to gingerbread.

13 years agoam 2e23e292: Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9...
Steinar H. Gunderson [Mon, 17 Jan 2011 20:15:45 +0000 (12:15 -0800)]
am 2e23e292: Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9 to gingerbread.

* commit '2e23e29245aa42d0f9419187c94e72dba3888eef':
  Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9 to gingerbread.

13 years agoam f4dca7be: Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6...
Steinar H. Gunderson [Mon, 17 Jan 2011 20:15:44 +0000 (12:15 -0800)]
am f4dca7be: Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6 to gingerbread.

* commit 'f4dca7be3b7bc181f1534be187428c5a52cb8c6a':
  Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6 to gingerbread.

13 years agoam a798b9f0: Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6...
Steinar H. Gunderson [Mon, 17 Jan 2011 20:15:41 +0000 (12:15 -0800)]
am a798b9f0: Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6 to gingerbread.

* commit 'a798b9f0e171643b0bc7bbf79f14cb018689f715':
  Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6 to gingerbread.

13 years agoOnly look up A records if the system has IPv4.
Lorenzo Colitti [Fri, 14 Jan 2011 20:26:05 +0000 (12:26 -0800)]
Only look up A records if the system has IPv4.

getaddrinfo only asks DNS for IPv6 addresses if the system
has IPv6 connectivity, but always asks for IPv4 addresses.
Don't ask for IPv4 addresses if there is no IPv4
connectivity.

Change-Id: Iefe9fcb006fabe60b4b11dd4653a7c4a406506f4

13 years agoBackport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9
Steinar H. Gunderson [Mon, 20 Dec 2010 10:48:07 +0000 (11:48 +0100)]
Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9
to gingerbread.

Implement RFC3484 policy table changes from draft-ietf-6man-rfc3484-revise-01.

The changes in a nutshell:

 - Handle v4-mapped as different from v4-compat (this was probably
   an existing bug in our code).
 - Add policy entries for ULA, above most everything else.
 - Put v4-compat, old-style IPv6 site-local and 6bone addresses
   way down in the preference table.

The rest is just shuffling numbers around (no actual changes to
priority).

13 years agoBackport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6
Steinar H. Gunderson [Mon, 20 Dec 2010 10:33:31 +0000 (11:33 +0100)]
Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6
to gingerbread.

Add a new #define IN6_IS_ADDR_ULA, for testing for Universal Local IPv6 Unicast addresses (ULAs). These replace the old site-local IPv6 addresses.

13 years agoBackport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6
Steinar H. Gunderson [Mon, 20 Dec 2010 10:15:33 +0000 (11:15 +0100)]
Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6
to gingerbread.

Don't treat private IPv4 addresses as being in a non-global scope. The effect of this change is essentially to prefer NATed IPv4 over 6to4.

13 years agoam f588772b: Merge changes I9347ab44,I3f080b34
Jean-Baptiste Queru [Tue, 11 Jan 2011 22:56:52 +0000 (14:56 -0800)]
am f588772b: Merge changes I9347ab44,I3f080b34

* commit 'f588772b05c35f19e25404bedc7890289de7c4b9':
  use consistent guards for off_t and size_t defines for IA
  Simplify variable typing for IA builds

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

Change-Id: Ie92b7597883c99e7f4101f4cf5e0ad267b4ee706

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

Change-Id: I065e5176b3a15bd74ba832f8827b4a4e4837b0f7

13 years agoMerge changes I9347ab44,I3f080b34
Jean-Baptiste Queru [Fri, 7 Jan 2011 19:39:25 +0000 (11:39 -0800)]
Merge changes I9347ab44,I3f080b34

* changes:
  use consistent guards for off_t and size_t defines for IA
  Simplify variable typing for IA builds

13 years agoDon't proxy getaddrinfo when net.dns1.[MYPID] is set.
Brad Fitzpatrick [Thu, 28 Oct 2010 20:22:20 +0000 (13:22 -0700)]
Don't proxy getaddrinfo when net.dns1.[MYPID] is set.

Part of on-going DNS proxy/cache work.

Bug: 1146676
Change-Id: I5e6028169c81c2223efc34c3b57e348c44f26d26

13 years agoDNS proxy: the start. proxies getaddrinfo calls.
Brad Fitzpatrick [Wed, 27 Oct 2010 17:36:36 +0000 (10:36 -0700)]
DNS proxy: the start.  proxies getaddrinfo calls.

Will also need to do gethostinfo, but that's probably about it.

It was cleaner to do it at this level, rather than speaking in terms
of DNS packets.

Change-Id: I047cc459979ffb0170a3eb0d432a7e827fb71c26

13 years agoAdd a new #define IN6_IS_ADDR_ULA, for testing for Universal Local IPv6 Unicast addre...
Steinar H. Gunderson [Mon, 20 Dec 2010 10:33:31 +0000 (11:33 +0100)]
Add a new #define IN6_IS_ADDR_ULA, for testing for Universal Local IPv6 Unicast addresses (ULAs). These replace the old site-local IPv6 addresses.

Change-Id: I2656423764569d07b92b8eb8fe6dcad6eba5b0bb

13 years agoMerge "libc: Fix the definition of SIGRTMAX"
David 'Digit' Turner [Wed, 5 Jan 2011 08:19:20 +0000 (00:19 -0800)]
Merge "libc: Fix the definition of SIGRTMAX"

13 years agoMerge "Don't treat private IPv4 addresses as being in a non-global scope. The effect...
Lorenzo Colitti [Wed, 5 Jan 2011 04:09:37 +0000 (20:09 -0800)]
Merge "Don't treat private IPv4 addresses as being in a non-global scope. The effect of this change is essentially to prefer NATed IPv4 over 6to4."

13 years agoMerge "libc: remove obsolete sha1hash.c source file"
David 'Digit' Turner [Tue, 4 Jan 2011 20:30:23 +0000 (12:30 -0800)]
Merge "libc: remove obsolete sha1hash.c source file"

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

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

Change-Id: I3f080b34360bfade0dbd5e2d8d0365e049162e4c
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoam 3de4dcdb: Merge "android-x86: use proper variable typing"
David Turner [Fri, 31 Dec 2010 11:03:42 +0000 (03:03 -0800)]
am 3de4dcdb: Merge "android-x86: use proper variable typing"

* commit '3de4dcdb189262e5beb73fe8431df67d51ec9f5f':
  android-x86: use proper variable typing

13 years agoam ae5df14f: Merge "Use __asm__ instead of asm in public libc headers"
David Turner [Fri, 31 Dec 2010 11:03:39 +0000 (03:03 -0800)]
am ae5df14f: Merge "Use __asm__ instead of asm in public libc headers"

* commit 'ae5df14f9349a000356cf45ec0292bc21ceb5b3a':
  Use __asm__ instead of asm in public libc headers

13 years agoMerge "android-x86: use proper variable typing"
David Turner [Fri, 31 Dec 2010 10:35:25 +0000 (02:35 -0800)]
Merge "android-x86: use proper variable typing"

13 years agoMerge "Use __asm__ instead of asm in public libc headers"
David Turner [Fri, 31 Dec 2010 10:30:33 +0000 (02:30 -0800)]
Merge "Use __asm__ instead of asm in public libc headers"

13 years agoam 3d302be4: Merge "android-x86: add sigsetjmp.S"
Jean-Baptiste Queru [Wed, 29 Dec 2010 19:29:33 +0000 (11:29 -0800)]
am 3d302be4: Merge "android-x86: add sigsetjmp.S"

* commit '3d302be485bc2f62a889fac85e386c9b8775eb59':
  android-x86: add sigsetjmp.S

13 years agoMerge "android-x86: add sigsetjmp.S"
Jean-Baptiste Queru [Wed, 29 Dec 2010 19:01:23 +0000 (11:01 -0800)]
Merge "android-x86: add sigsetjmp.S"

13 years agoam b05aa150: Merge "Replace all occurrances of asm with __asm__ in the output headers"
Jean-Baptiste Queru [Tue, 28 Dec 2010 19:35:22 +0000 (11:35 -0800)]
am b05aa150: Merge "Replace all occurrances of asm with __asm__ in the output headers"

* commit 'b05aa1500035d0e02d30143a0702a72b111f200e':
  Replace all occurrances of asm with __asm__ in the output headers

13 years agoMerge "Replace all occurrances of asm with __asm__ in the output headers"
Jean-Baptiste Queru [Tue, 28 Dec 2010 19:10:31 +0000 (11:10 -0800)]
Merge "Replace all occurrances of asm with __asm__ in the output headers"

13 years agoandroid-x86: add sigsetjmp.S
Chih-Wei Huang [Tue, 14 Dec 2010 09:55:23 +0000 (17:55 +0800)]
android-x86: add sigsetjmp.S

It adds two functions sigsetjmp and siglongjmp
that fix compiling errors in bluetooth and mksh.

Copy directly from sigsetjmp.S of OpenBSD.

Change-Id: I4696f82ee6f85d1c93cbdd3c9e40f4917d50f3a6

13 years agoandroid-x86: use proper variable typing
Chih-Wei Huang [Tue, 14 Dec 2010 08:46:12 +0000 (16:46 +0800)]
android-x86: use proper variable typing

Change-Id: Iff99932acd2f6cb482fc5da9ff586d7ab2a8b209

13 years agoam a4f6d228: Merge "Add a method for replacing tokens in the preprocessed headers"
David Turner [Wed, 22 Dec 2010 19:29:30 +0000 (11:29 -0800)]
am a4f6d228: Merge "Add a method for replacing tokens in the preprocessed headers"

* commit 'a4f6d2281f979c013080e28b1f658c2ba9a8e9f3':
  Add a method for replacing tokens in the preprocessed headers

13 years agolibc: remove obsolete sha1hash.c source file
David 'Digit' Turner [Mon, 20 Dec 2010 15:03:07 +0000 (16:03 +0100)]
libc: remove obsolete sha1hash.c source file

The source file is not part of the C library build, so the Android.mk
is unaffected. In other words, this source file was never compiled.

Change-Id: Idec3d5b6ec30dc9ee38296d12dc6e522997df29a

13 years agolibc: Fix the definition of SIGRTMAX
David 'Digit' Turner [Mon, 20 Dec 2010 14:58:06 +0000 (15:58 +0100)]
libc: Fix the definition of SIGRTMAX

After this change, SIGRTMAX will be set to 64 (instead of 32 currently).
Note that this doesn't change the fact that our sigset_t is still defined
as a 32-bit unsigned integer, so most functions that deal with this type
won't support real-time signals though.

Change-Id: Ie1e2f97d646f1664f05a0ac9cac4a43278c3cfa8

13 years agolinker: Remove unsecure env. variable for setuid programs.
David 'Digit' Turner [Thu, 16 Dec 2010 18:52:02 +0000 (19:52 +0100)]
linker: Remove unsecure env. variable for setuid programs.

This removes several unsecure environment variables from the
environment block when the program being loaded is setuid. The
list of env. variables is the same than what GLibc uses at this
point.

Change-Id: I456d3ea0880fe0d4de0d3c5dd51871dd36e87fd6

13 years agoMerge "Add a method for replacing tokens in the preprocessed headers"
David Turner [Mon, 20 Dec 2010 10:43:26 +0000 (02:43 -0800)]
Merge "Add a method for replacing tokens in the preprocessed headers"

13 years agoDon't treat private IPv4 addresses as being in a non-global scope. The effect of...
Steinar H. Gunderson [Mon, 20 Dec 2010 10:15:33 +0000 (11:15 +0100)]
Don't treat private IPv4 addresses as being in a non-global scope. The effect of this change is essentially to prefer NATed IPv4 over 6to4.

Change-Id: I53a8613ca9eb61cac0bf18f0b5f98a2d35ab9c50

13 years agolibc: Add missing declarations in <netinet/in.h>
David 'Digit' Turner [Thu, 16 Dec 2010 13:35:53 +0000 (14:35 +0100)]
libc: Add missing declarations in <netinet/in.h>

Add missing declarations:
  INET_ADDRSTRLEN
  IN6_IS_ADDR_MC_NODELOCAL
  IN6_IS_ADDR_MC_GLOBAL

It has been reported that these prevent compilation of the Boost libraries
with the NDK. The corresponding patch has already been performed under
development/ndk/platforms/android-3/include.

Change-Id: I4ac514973daf3c06a8ef5538d7df79142a98e562

13 years agolibc: Add ftruncate64 and improve 64-bit parameter syscall handling.
David 'Digit' Turner [Thu, 16 Dec 2010 15:47:14 +0000 (16:47 +0100)]
libc: Add ftruncate64 and improve 64-bit parameter syscall handling.

This patch improves the handling of 64-bit parameters in syscalls on ARM.
The ARM EABI mandates that 64-bit quantities be passed in even/odd register
pairs, which requires special treatment.

This allows us to simplify our implementations of pread() and pwrite()
and remove the C stubs for pread64() and pwrite64().

Also add ftruncate64() to <unistd.h>

Change-Id: I407e2fd223ba0093dd2d0b04c6152fadfc9ce3ef

Bug 3107933

13 years agolibc: Remove duplicate eventfd declaration from SYSCALLS.TXT
David 'Digit' Turner [Thu, 16 Dec 2010 13:57:31 +0000 (14:57 +0100)]
libc: Remove duplicate eventfd declaration from SYSCALLS.TXT

The second declaration came from an incorrect change in AOSP.
The eventfd stubs are not affected by this, they are already correct.

Change-Id: Icfc7612a68fc37a48dde2687137960a5d1dbc534

13 years agoam c99892f1: am a9e5bbfd: Merge "Support usage of __ARM_HAVE_LDREX_STREX"
Jean-Baptiste Queru [Wed, 15 Dec 2010 17:37:48 +0000 (09:37 -0800)]
am c99892f1: am a9e5bbfd: Merge "Support usage of __ARM_HAVE_LDREX_STREX"

* commit 'c99892f155efd1d3005abf8a2bae83d290606ba1':
  Support usage of __ARM_HAVE_LDREX_STREX

13 years agoam a9e5bbfd: Merge "Support usage of __ARM_HAVE_LDREX_STREX"
Jean-Baptiste Queru [Wed, 15 Dec 2010 17:29:06 +0000 (09:29 -0800)]
am a9e5bbfd: Merge "Support usage of __ARM_HAVE_LDREX_STREX"

* commit 'a9e5bbfd3d321bf52226d3fd57ed390925ab6a3d':
  Support usage of __ARM_HAVE_LDREX_STREX

13 years agoMerge "Support usage of __ARM_HAVE_LDREX_STREX"
Jean-Baptiste Queru [Wed, 15 Dec 2010 17:21:34 +0000 (09:21 -0800)]
Merge "Support usage of __ARM_HAVE_LDREX_STREX"

13 years agoam 572fced5: am 9691ecc9: Merge "Remove extra/unneeded copy of fenv.h"
David Turner [Tue, 14 Dec 2010 15:25:28 +0000 (07:25 -0800)]
am 572fced5: am 9691ecc9: Merge "Remove extra/unneeded copy of fenv.h"

* commit '572fced5b0376a0bdc9111843aa89065cba82629':
  Remove extra/unneeded copy of fenv.h

13 years agoam 9691ecc9: Merge "Remove extra/unneeded copy of fenv.h"
David Turner [Tue, 14 Dec 2010 15:19:17 +0000 (07:19 -0800)]
am 9691ecc9: Merge "Remove extra/unneeded copy of fenv.h"

* commit '9691ecc9a768e7e08cb6af0b454029195ffc285f':
  Remove extra/unneeded copy of fenv.h

13 years agoMerge "Remove extra/unneeded copy of fenv.h"
David Turner [Tue, 14 Dec 2010 15:09:35 +0000 (07:09 -0800)]
Merge "Remove extra/unneeded copy of fenv.h"