OSDN Git Service

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

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.

Change-Id: I79b898ea5b882e8c0564e25466e827a9bedda6e8
Author: yhe19 <yunan.he@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoRevert "sigsetmask.c was not processing the "mask" argument."
Yu Shan Emily Lau [Thu, 9 Dec 2010 19:57:42 +0000 (11:57 -0800)]
Revert "sigsetmask.c was not processing the "mask" argument."

This reverts commit 9a9c1619b8124f07fc772c0b700e4d411cd78525.

13 years agoReplace all occurrances of asm with __asm__ in the output headers
Martin Storsjo [Wed, 8 Dec 2010 10:39:05 +0000 (11:39 +0100)]
Replace all occurrances of asm with __asm__ in the output headers

asm() conflicts with userland code compiled with -std=c99, the userland
libc should only use __asm__() instead. Therefore, this transformation
has to be applied to all exported headers.

This only changes arch-arm/asm/byteorder.h.

Change-Id: I1cf88c37201c3a91668d387293a18885c316d53c

13 years agoAdd a method for replacing tokens in the preprocessed headers
Martin Storsjo [Wed, 8 Dec 2010 10:38:14 +0000 (11:38 +0100)]
Add a method for replacing tokens in the preprocessed headers

Change-Id: I14cf6337945560b012732ae0fe7a247074810678

13 years agoUse __asm__ instead of asm in public libc headers
Martin Storsjo [Wed, 8 Dec 2010 08:33:51 +0000 (09:33 +0100)]
Use __asm__ instead of asm in public libc headers

If compiling userland code with -std=c99, the current header produces an
error. The content of this header originally is a kernel internal header,
where asm() is acceptable. In a header visible to userland, this should be
__asm__ instead.

Change-Id: I4d3188dd96f7836148ca89f5053d0389dd459d6e

13 years agoam 48bebaec: am 4efbf95d: Merge "Use proper variable typing"
David Turner [Tue, 7 Dec 2010 14:44:41 +0000 (06:44 -0800)]
am 48bebaec: am 4efbf95d: Merge "Use proper variable typing"

* commit '48bebaeca84cd9014171d2874785ddb57d1103ae':
  Use proper variable typing

13 years agoam 4efbf95d: Merge "Use proper variable typing"
David Turner [Tue, 7 Dec 2010 14:38:26 +0000 (06:38 -0800)]
am 4efbf95d: Merge "Use proper variable typing"

* commit '4efbf95d8c88a3a203d687d9048b51e256ef3641':
  Use proper variable typing

13 years agoMerge "Use proper variable typing"
David Turner [Tue, 7 Dec 2010 14:27:23 +0000 (06:27 -0800)]
Merge "Use proper variable typing"

13 years agoMerge "<sched.h>: Add sched_getcpu() and cpu_set_t"
David 'Digit' Turner [Tue, 7 Dec 2010 12:51:39 +0000 (04:51 -0800)]
Merge "<sched.h>: Add sched_getcpu() and cpu_set_t"

13 years agoMerge "<time.h>: Add timegm(), timelocal() and others."
David 'Digit' Turner [Tue, 7 Dec 2010 12:26:32 +0000 (04:26 -0800)]
Merge "<time.h>: Add timegm(), timelocal() and others."

13 years agoMerge "libc: Add <android/api-level.h>"
David 'Digit' Turner [Tue, 7 Dec 2010 12:26:27 +0000 (04:26 -0800)]
Merge "libc: Add <android/api-level.h>"

13 years agoam e05762a5: am 8e6435ea: Merge "Add defines for CAIF support"
David Turner [Tue, 7 Dec 2010 00:44:46 +0000 (16:44 -0800)]
am e05762a5: am 8e6435ea: Merge "Add defines for CAIF support"

* commit 'e05762a5312261b96d20597eb6c3a61abaeac2cf':
  Add defines for CAIF support

13 years agoam b11d7c3e: am bcb0a925: Merge "sigsetmask.c was not processing the "mask" argument."
Jean-Baptiste Queru [Tue, 7 Dec 2010 00:44:30 +0000 (16:44 -0800)]
am b11d7c3e: am bcb0a925: Merge "sigsetmask.c was not processing the "mask" argument."

* commit 'b11d7c3eca0e5bc04c14afe82a530429f173706c':
  sigsetmask.c was not processing the "mask" argument.

13 years agoam 8e6435ea: Merge "Add defines for CAIF support"
David Turner [Mon, 6 Dec 2010 21:31:43 +0000 (13:31 -0800)]
am 8e6435ea: Merge "Add defines for CAIF support"

* commit '8e6435ead5b118f1fd458d4acbdd0bf86754ab1b':
  Add defines for CAIF support

13 years agoMerge "Add defines for CAIF support"
David Turner [Mon, 6 Dec 2010 21:18:37 +0000 (13:18 -0800)]
Merge "Add defines for CAIF support"

13 years agoam bcb0a925: Merge "sigsetmask.c was not processing the "mask" argument."
Jean-Baptiste Queru [Mon, 6 Dec 2010 18:55:14 +0000 (10:55 -0800)]
am bcb0a925: Merge "sigsetmask.c was not processing the "mask" argument."

* commit 'bcb0a925b0d6d545bbd9a4ebd9ac61bdacbfa2fe':
  sigsetmask.c was not processing the "mask" argument.

13 years agoMerge "sigsetmask.c was not processing the "mask" argument."
Jean-Baptiste Queru [Mon, 6 Dec 2010 18:42:08 +0000 (10:42 -0800)]
Merge "sigsetmask.c was not processing the "mask" argument."

13 years ago<sched.h>: Add sched_getcpu() and cpu_set_t
David 'Digit' Turner [Fri, 3 Dec 2010 17:04:01 +0000 (18:04 +0100)]
<sched.h>: Add sched_getcpu() and cpu_set_t

This adds the cpu_set_t type definition and related functions
and macros used to handle CPU thread affinity.

  sched_getcpu()
  sched_setaffinity()
  sched_getaffinity()

Change-Id: If382ecafde8926341a88478062b275553645065b

13 years ago<time.h>: Add timegm(), timelocal() and others.
David 'Digit' Turner [Mon, 6 Dec 2010 11:23:16 +0000 (12:23 +0100)]
<time.h>: Add timegm(), timelocal() and others.

Add timegm(), timelocal(), time2posix() and posix2time() to the
C library.

Change-Id: I34d5771ed83dd994870a5ca58a511d01898b1ffb

13 years agolibc: Add <android/api-level.h>
David 'Digit' Turner [Mon, 6 Dec 2010 11:05:11 +0000 (12:05 +0100)]
libc: Add <android/api-level.h>

Add a new header that defines __ANDROID_API__ as a constant integer
corresponding to the current native API level. This header is included
by <sys/cdefs.h>

Change-Id: Ib4774e247b395991266245815a24292afc919848
NOTE: This header is already provided by the NDK's platform headers.
      for levels 3 to 9.

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.

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

Change-Id: I32d2e02814f1965ebdcecb804e947ff303dbe230
Author: Mark Gross <mark.gross@intel.com>
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoMerge "Add mkdtemp() prototype to stdlib.h."
Ed Heyl [Thu, 2 Dec 2010 21:20:15 +0000 (13:20 -0800)]
Merge "Add mkdtemp() prototype to stdlib.h."

13 years agoAdd mkdtemp() prototype to stdlib.h.
tedbo [Tue, 30 Nov 2010 20:45:02 +0000 (12:45 -0800)]
Add mkdtemp() prototype to stdlib.h.

The mkdtemp() function is implemented in libc/stdio/mktemp.c but not
exposed in stdlib.h. This change adds the prototype to stdlib.h.

Change-Id: I5a98650c665d2e45b2cf6ed3382742f7bdc7c88a

13 years agoAdd wcscasecmp() and wcsncasecmp() prototypes to wchar.h.
tedbo [Mon, 29 Nov 2010 21:15:07 +0000 (13:15 -0800)]
Add wcscasecmp() and wcsncasecmp() prototypes to wchar.h.

The above prototypes are missing from libc/include/wchar.h but
the functions are present (although with a limited implementation)
in libc.

Change-Id: I1b7c6accfc59ff0f56f3f41a9d3c075e935ac54a

13 years agoAdd support for pread64/pwrite64
Kenny Root [Wed, 24 Nov 2010 21:10:49 +0000 (13:10 -0800)]
Add support for pread64/pwrite64

64-bit pread() and pwrite() is needed for ZipFileRO to be able to read
ludicrously large ZIP files just in case someone is crazy enough to do
it.

Also fix a license header that was apparently mangled.

Change-Id: I6819ef8b36e46b63b40749c95717b1ecf9307033

13 years agobionic: update processed kernel header tegra_audio.h
Iliyan Malchev [Tue, 23 Nov 2010 00:52:22 +0000 (16:52 -0800)]
bionic: update processed kernel header tegra_audio.h

Change-Id: Idefc8cae9315f1f4f340330ee1b38a7c0acb5fd8
Signed-off-by: Iliyan Malchev <malchev@google.com>