OSDN Git Service

android-x86/bionic.git
12 years agoam e8e1efea: Update to tzdata2011n.
Elliott Hughes [Thu, 19 Jan 2012 00:34:01 +0000 (16:34 -0800)]
am e8e1efea: Update to tzdata2011n.

* commit 'e8e1efeafb8754ea8358e78cfe3d0f7ad4e809b2':
  Update to tzdata2011n.

12 years agoam eae1f1fb: Merge "res_send: Avoid spurious close()s and (rare) failure"
Jean-Baptiste Queru [Wed, 18 Jan 2012 02:16:10 +0000 (18:16 -0800)]
am eae1f1fb: Merge "res_send: Avoid spurious close()s and (rare) failure"

* commit 'eae1f1fba33cb105302227b044a14e5abcbe55e7':
  res_send: Avoid spurious close()s and (rare) failure

12 years agoUpdate to tzdata2011n.
Elliott Hughes [Mon, 31 Oct 2011 21:11:32 +0000 (14:11 -0700)]
Update to tzdata2011n.

There are three changes of note - most urgently, Cuba (America/Havana)
has extended summer time by two weeks, now to end on Nov 13, rather than
the (already past) Oct 30.   Second, the Pridnestrovian Moldavian Republic
(Europe/Tiraspol) decided not to split from the rest of Moldova after
all, and consequently that zone has been removed (again) and reinstated
in the "backward" file as a link to Europe/Chisinau.   And third, the
end date for Fiji's summer time this summer was moved forward from the
earlier planned Feb 26, to Jan 22.

Apart from that, Moldova (MD) returns to a single entry in zone.tab
(and the incorrect syntax that was in the 2011m version of that file
is so fixed - it would have been fixed in a different way had this
change not happened - that's the "missing" sccs version id).

Bug: 5863692

Change-Id: I78e29c682c623b1dec0b0ea2cb6545713ae9eed0

12 years agoMerge "res_send: Avoid spurious close()s and (rare) failure"
Jean-Baptiste Queru [Tue, 17 Jan 2012 23:26:17 +0000 (15:26 -0800)]
Merge "res_send: Avoid spurious close()s and (rare) failure"

12 years agoam f44de270: add personality() system call.
Nick Kralevich [Tue, 17 Jan 2012 19:45:25 +0000 (11:45 -0800)]
am f44de270: add personality() system call.

* commit 'f44de270bba32c9b1b5eff8a34be07b10ddff238':
  add personality() system call.

12 years agores_send: Avoid spurious close()s and (rare) failure
Jim Huang [Mon, 12 Dec 2011 08:32:56 +0000 (16:32 +0800)]
res_send: Avoid spurious close()s and (rare) failure

When looping over the current list of sockets we are connected to,
use getpeername() not getsockname() to find out who the remote
end is.  This change avoids spurious close() and (rare) failure.

Origin: ISC bug #18625 and fixed in libbind 6.0

Change-Id: I5e85f9ff4b98c237978e4bf4bd85ba0a90d768e6

12 years agoadd personality() system call.
Nick Kralevich [Fri, 13 Jan 2012 22:03:01 +0000 (14:03 -0800)]
add personality() system call.

Change-Id: Ie899def8ea1d705930ed83adae1343c1353e7c57

12 years agoam ecd0e95a: Adding a timeout to tcp dns lookup connects.
Robert Greenwalt [Thu, 12 Jan 2012 23:03:52 +0000 (15:03 -0800)]
am ecd0e95a: Adding a timeout to tcp dns lookup connects.

* commit 'ecd0e95a0276c1ba72c7331f5e4617815f015f22':
  Adding a timeout to tcp dns lookup connects.

12 years agoAdding a timeout to tcp dns lookup connects.
Robert Greenwalt [Wed, 11 Jan 2012 18:04:48 +0000 (10:04 -0800)]
Adding a timeout to tcp dns lookup connects.

TCP isn't supported on some dns servers, which makes the old code
hang forever.

NOT adding a stopship to remove debugging stuff - it was too painful
(14s timeout on failed tcp dns lookups) so we decided not to bother people.

bug:5766949
Change-Id: I381c20c3e11b8e994438d4f7c58ef643cd36554e

12 years agosreadahead: adding readahead system call into bionic libc
Bruce Beare [Wed, 13 Jul 2011 17:23:50 +0000 (10:23 -0700)]
sreadahead: adding readahead system call into bionic libc

Add bionic libc to support readahead system call.
This is needed to enable sreadahead to work.

Change-Id: I3856e1a3833db82e6cf42fd34af7631bd40cc723
Author: Winson Yung <winson.w.yung@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoreaddir: fix interface to kernel getdents64 function
Bruce Beare [Tue, 2 Aug 2011 13:43:52 +0000 (06:43 -0700)]
readdir: fix interface to kernel getdents64 function

Issue:
  The kernel will pad the entry->d_reclen in a getdents64 call to a
  long-word boundary.  For very long records, this could exceed the
  size of a struct dirent. The mismatch in the size was causing error
  paranoid checking code in bionic to fail... thus causing an early
  "end" when reading the dirent structures from the kernel buffer.

Test:
 ls
 mkdir abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstu
 ls

Change-Id: I75d1f8e45e1655fdd7bac4a08a481d086f28073a
Author: Bruce Beare <bruce.j.beare@intel.com>

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Wed, 14 Dec 2011 03:10:03 +0000 (19:10 -0800)]
Reconcile with ics-mr1-release

Change-Id: I62bace5c4272d043a51d3f0f698556716838aa51

12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Wed, 14 Dec 2011 01:35:59 +0000 (17:35 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoam 94963af2: update video/dsscomp.h
Erik Gilling [Wed, 14 Dec 2011 00:02:50 +0000 (16:02 -0800)]
am 94963af2: update video/dsscomp.h

* commit '94963af28e445384e19775a838a29e6a71708179':
  update video/dsscomp.h

12 years agoupdate video/dsscomp.h
Erik Gilling [Tue, 13 Dec 2011 22:48:51 +0000 (14:48 -0800)]
update video/dsscomp.h

Change-Id: I9da47f7fb7f34f9c4baa860bb767cb8fd4f8020c
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agoam af96d4da: x86: libc may use the gcc flags from TARGET_linux-x86.mk
Bruce Beare [Sat, 10 Dec 2011 00:19:30 +0000 (16:19 -0800)]
am af96d4da: x86: libc may use the gcc flags from TARGET_linux-x86.mk

* commit 'af96d4dadc3f3d8466dbbeaf3a816e6871715fbc':
  x86: libc may use the gcc flags from TARGET_linux-x86.mk

12 years agox86: libc may use the gcc flags from TARGET_linux-x86.mk
Bruce Beare [Fri, 9 Dec 2011 21:52:19 +0000 (13:52 -0800)]
x86: libc may use the gcc flags from TARGET_linux-x86.mk

Change-Id: Iaf4d864d4b6fe388bd3c2d7c4d7d6e42aebb0d35
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoam 7d03c9cb: pathconf: dead loop in bionic function __2_symlinks
Bruce Beare [Fri, 9 Dec 2011 18:19:37 +0000 (10:19 -0800)]
am 7d03c9cb: pathconf: dead loop in bionic function __2_symlinks

* commit '7d03c9cbcedb1dc7e3a8210ac0001120558ec6df':
  pathconf: dead loop in bionic function __2_symlinks

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Fri, 9 Dec 2011 15:10:40 +0000 (07:10 -0800)]
Reconcile with ics-mr1-release

Change-Id: I0a43c4d104894fdde4eff9970bc78ed0aeb88ec2

12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Fri, 9 Dec 2011 01:34:07 +0000 (17:34 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoam bba5c314: update video/dsscomp.h
Erik Gilling [Thu, 8 Dec 2011 22:57:00 +0000 (14:57 -0800)]
am bba5c314: update video/dsscomp.h

* commit 'bba5c314b2420483e2c0e3e441bf54bda6935bc1':
  update video/dsscomp.h

12 years agoupdate video/dsscomp.h
Erik Gilling [Thu, 8 Dec 2011 22:42:04 +0000 (14:42 -0800)]
update video/dsscomp.h

Change-Id: Ic5f1c01add1f2adb5a09d05c94129f3dc9cc3f1f
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Thu, 8 Dec 2011 18:17:32 +0000 (10:17 -0800)]
Reconcile with ics-mr1-release

Change-Id: Icc9d31cb9a4f379354808a4c7e913685dfa22e80

12 years agopathconf: dead loop in bionic function __2_symlinks
Bruce Beare [Fri, 21 Oct 2011 02:16:11 +0000 (10:16 +0800)]
pathconf: dead loop in bionic function __2_symlinks

Fix dead loops in file ./bionic/libc/unistd/pathconf.c

Change-Id: I7a1e6bcd9879c96bacfd376b88a1f899793295c8
Author: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoam 177ba8cb: Prevent deadlock when using fork
Rabin Vincent [Tue, 6 Dec 2011 21:59:56 +0000 (13:59 -0800)]
am 177ba8cb: Prevent deadlock when using fork

* commit '177ba8cb42ed6d232e7c8bcad5e6ee21fc51a0e8':
  Prevent deadlock when using fork

12 years agoPrevent deadlock when using fork
Rabin Vincent [Fri, 8 Apr 2011 06:50:48 +0000 (08:50 +0200)]
Prevent deadlock when using fork

When forking of a new process in bionic, it is critical that it
does not allocate any memory according to the comment in
java_lang_ProcessManager.c:
"Note: We cannot malloc() or free() after this point!
A no-longer-running thread may be holding on to the heap lock, and
an attempt to malloc() or free() would result in deadlock."
However, as fork is using standard lib calls when tracing it a bit,
they might allocate memory, and thus causing the deadlock.
This is a rewrite so that the function cpuacct_add, that fork calls,
will use system calls instead of standard lib calls.

Signed-off-by: christian bejram <christian.bejram@stericsson.com>
Change-Id: Iff22ea6b424ce9f9bf0ac8e9c76593f689e0cc86

12 years agoam e4a21c89: signal: Align the sigset_t size passed to from user space to kernel.
Bruce Beare [Tue, 6 Dec 2011 06:12:08 +0000 (22:12 -0800)]
am e4a21c89: signal: Align the sigset_t size passed to from user space to kernel.

* commit 'e4a21c89a8b24b32f7a2637b45522dfa59f2aaa4':
  signal: Align the sigset_t size passed to from user space to kernel.

12 years agoam cb1df916: string: Fix wrong comparison semantics
Bruce Beare [Tue, 6 Dec 2011 06:12:07 +0000 (22:12 -0800)]
am cb1df916: string: Fix wrong comparison semantics

* commit 'cb1df9161666db2a312814752de67fc623149a9b':
  string: Fix wrong comparison semantics

12 years agosignal: Align the sigset_t size passed to from user space to kernel.
Bruce Beare [Mon, 5 Dec 2011 19:25:37 +0000 (11:25 -0800)]
signal: Align the sigset_t size passed to from user space to kernel.

Pass kernel space sigset_t size to __rt_sigprocmask to workaround
the miss-match of NSIG/sigset_t definition between kernel and bionic.

Note: Patch originally from Google...
Change-Id: I4840fdc56d0b90d7ce2334250f04a84caffcba2a
Signed-off-by: Chenyang Du <chenyang.du@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agostring: Fix wrong comparison semantics
Bruce Beare [Tue, 25 Oct 2011 09:06:09 +0000 (13:06 +0400)]
string: Fix wrong comparison semantics

Chars are signed for x86 -- correct the comparison semantics.

Change-Id: I2049e98eb063c0b4e83ea973d3fcae49c6817dde
Author: Liubov Dmitrieva <liubov.dmitrieva@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoam 89d3fdca: MALLOC_DEBUG: enable the option libc.debug.malloc = 10
Bruce Beare [Tue, 6 Dec 2011 01:01:13 +0000 (17:01 -0800)]
am 89d3fdca: MALLOC_DEBUG: enable the option libc.debug.malloc = 10

* commit '89d3fdcae26980bf81a4622c3c83e48ead4c1c3a':
  MALLOC_DEBUG: enable the option libc.debug.malloc = 10

12 years agoMALLOC_DEBUG: enable the option libc.debug.malloc = 10
Bruce Beare [Wed, 21 Sep 2011 10:44:05 +0000 (12:44 +0200)]
MALLOC_DEBUG: enable the option libc.debug.malloc = 10

Fix the compile warning to let the libc.debug.malloc=10 works well
Due to unsuitable value comparison, which cause compiler optimize the
code of comparing two digits.

Change-Id: I0bedd596c9ca2ba308fb008da20ecb328d8548f5
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Author: liu chuansheng <chuansheng.liu@intel.com>

12 years agoam e480fc83: bionic: fix pthread_{create, exit}/signal race condition
Jack Ren [Wed, 30 Nov 2011 06:42:32 +0000 (22:42 -0800)]
am e480fc83: bionic: fix pthread_{create, exit}/signal race condition

* commit 'e480fc83b2887388d469eb3bf58c86c610f5b082':
  bionic: fix pthread_{create, exit}/signal race condition

12 years agoam 31e72bc3: bionic: fix __get_tls( ) crash issue
Jack Ren [Wed, 30 Nov 2011 06:42:31 +0000 (22:42 -0800)]
am 31e72bc3: bionic: fix __get_tls( ) crash issue

* commit '31e72bc3289acdd85b0b745fbf64c5949ca33432':
  bionic: fix __get_tls( ) crash issue

12 years agoam 897815a1: bionic: add machine type check
Zhenghua Wang [Wed, 30 Nov 2011 06:42:30 +0000 (22:42 -0800)]
am 897815a1: bionic: add machine type check

* commit '897815a1feff230be3ea42655a77dcbb9a8dcca9':
  bionic: add machine type check

12 years agobionic: fix pthread_{create, exit}/signal race condition
Jack Ren [Wed, 21 Sep 2011 10:44:11 +0000 (12:44 +0200)]
bionic: fix pthread_{create, exit}/signal race condition

(1) in pthread_create:
    If the one signal is received before esp is subtracted by 16 and
    __thread_entry( ) is called, the stack will be cleared by kernel
    when it tries to contruct the signal stack frame. That will cause
    that __thread_entry will get a wrong tls pointer from the stack
    which leads to the segment fault when trying to access tls content.

(2) in pthread_exit
    After pthread_exit called system call unmap(), its stack will be
    freed.  If one signal is received at that time, there is no stack
    available for it.

Fixed by subtracting the child's esp by 16 before the clone system
call and by blocking signal handling before pthread_exit is started.

Author: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agobionic: fix __get_tls( ) crash issue
Jack Ren [Mon, 1 Aug 2011 10:44:55 +0000 (18:44 +0800)]
bionic: fix __get_tls( ) crash issue

When running the stress test of pthread create/destroy, a crash may
oocur in __get_tls(). That is caused by the race condition with __set_tls( ):

Author: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agobionic: add machine type check
Zhenghua Wang [Tue, 18 Oct 2011 16:29:14 +0000 (00:29 +0800)]
bionic: add machine type check

android linker doesn't check machine type, it may load some
libraries which it doesn't support sometimes.

Author: Zhenghua Wang <zhenghua.wang@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Wed, 16 Nov 2011 14:45:21 +0000 (06:45 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoAdd auto-exposure/auto-white balance lock support to soc2030 image
Eino-Ville Talvala [Mon, 31 Oct 2011 17:52:50 +0000 (10:52 -0700)]
Add auto-exposure/auto-white balance lock support to soc2030 image
sensor.

Bug: 4980604
Change-Id: I1be07a23573b70eeddd9ecb2370605713aea3d03

12 years agomerge in ics-release history after reset to master
The Android Automerger [Thu, 13 Oct 2011 13:59:20 +0000 (06:59 -0700)]
merge in ics-release history after reset to master

12 years agoMerge "Use ENTRY and EXIT macros for strcmp, memcpy, atexit."
Jesse Wilson [Wed, 12 Oct 2011 14:51:53 +0000 (07:51 -0700)]
Merge "Use ENTRY and EXIT macros for strcmp, memcpy, atexit."

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 11 Oct 2011 12:32:11 +0000 (05:32 -0700)]
merge in ics-release history after reset to master

12 years agoUse ENTRY and EXIT macros for strcmp, memcpy, atexit.
Evgeniy Stepanov [Tue, 4 Oct 2011 10:22:15 +0000 (14:22 +0400)]
Use ENTRY and EXIT macros for strcmp, memcpy, atexit.

Without this change strcmp size is zero (not set), and it gets
ignored by Valgrind. Changes to memcpy and atexit don't affect the
generated binary in any way.

Change-Id: I05818cb5951f75901dc8c0eef02807a2e83a9231

12 years agoUpdate to tzdata2011l.
Elliott Hughes [Mon, 10 Oct 2011 21:05:53 +0000 (14:05 -0700)]
Update to tzdata2011l.

This affects Asia/Hebron and Pacific/Fiji (and historical data for
America/Sitka).

Change-Id: I111a34038e44416f1900f774bdb78750e815eb5f

12 years agomerge in ics-release history after reset to master
The Android Automerger [Fri, 30 Sep 2011 13:44:15 +0000 (06:44 -0700)]
merge in ics-release history after reset to master

12 years agoam 32ca348e: am ce0d646c: resolved conflicts for merge of 6cda7b62 to gingerbread...
David 'Digit' Turner [Fri, 30 Sep 2011 04:09:08 +0000 (21:09 -0700)]
am 32ca348e: am ce0d646c: resolved conflicts for merge of 6cda7b62 to gingerbread-plus-aosp

* commit '32ca348eecb114b9b2a9393f178c82310f590ddb':
  Bionic: x86: Fix libm macro definitions

12 years agoam ce0d646c: resolved conflicts for merge of 6cda7b62 to gingerbread-plus-aosp
David 'Digit' Turner [Fri, 30 Sep 2011 04:03:00 +0000 (21:03 -0700)]
am ce0d646c: resolved conflicts for merge of 6cda7b62 to gingerbread-plus-aosp

* commit 'ce0d646cc0beb6b44d5429d01e51d00005264f44':
  Bionic: x86: Fix libm macro definitions

12 years agoresolved conflicts for merge of 6cda7b62 to gingerbread-plus-aosp
David 'Digit' Turner [Fri, 30 Sep 2011 03:56:51 +0000 (05:56 +0200)]
resolved conflicts for merge of 6cda7b62 to gingerbread-plus-aosp

Change-Id: I85bd5291c2a9cd29bff538b6d5a4dcd73f85a1fd

12 years agoMerge "Send both A and AAAA queries if all probes fail."
Lorenzo Colitti [Thu, 29 Sep 2011 17:52:23 +0000 (10:52 -0700)]
Merge "Send both A and AAAA queries if all probes fail."

12 years agoMerge "Revert "Use framework hints to determine dns query type.""
Lorenzo Colitti [Thu, 29 Sep 2011 17:52:16 +0000 (10:52 -0700)]
Merge "Revert "Use framework hints to determine dns query type.""

12 years agoBionic: x86: Fix libm macro definitions
Bruce Beare [Thu, 15 Sep 2011 17:59:01 +0000 (10:59 -0700)]
Bionic: x86: Fix libm macro definitions

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

GCC would remove inline asm due to lack of knowledge
of FPU register changes.

Change-Id: I9f9e8623fa6580843b7cd8178439ace8c2db2d51
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Author: Jingwei Zhang <jingwei.zhang@intel.com>

12 years agoSend both A and AAAA queries if all probes fail.
Lorenzo Colitti [Thu, 29 Sep 2011 02:47:38 +0000 (19:47 -0700)]
Send both A and AAAA queries if all probes fail.

AI_ADDRCONFIG is currently implemented by trying to connect
to well-known addresses in order to see if IPv4 and/or IPv6
connectivity is available.

In some cases (e.g., walled gardens with no global
connectivity) both probes can fail. If this happens,
query for both IPv4 and IPv6 addresses instead of doing
nothing and failing the query.

Bug: 5284168
Change-Id: I4e3a69ea86fb6d839a6bd31236b98da81e5cbf45

12 years agoRevert "Use framework hints to determine dns query type."
Lorenzo Colitti [Thu, 29 Sep 2011 02:28:32 +0000 (19:28 -0700)]
Revert "Use framework hints to determine dns query type."

Change Ife82a8d8 broke IPv6 on wifi. Change I4e3a69ea is
an alternate approach that does not require any framework
changes.

Bug: 5284168
Change-Id: Ib52614be3875a2ae2eaedd1be265f90e506eda41

12 years agomerge in ics-release history after reset to master
The Android Automerger [Thu, 29 Sep 2011 00:56:54 +0000 (17:56 -0700)]
merge in ics-release history after reset to master

12 years agofix prototype of dladdr
Mathias Agopian [Wed, 28 Sep 2011 05:30:19 +0000 (22:30 -0700)]
fix prototype of dladdr

this breaks C++ source code in particular.

Change-Id: Ie06b5d31d23b5455e6950c470adc64dd5e7784df

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 27 Sep 2011 13:59:11 +0000 (06:59 -0700)]
merge in ics-release history after reset to master

12 years agoUpdate to tzdata2011k.
Elliott Hughes [Mon, 26 Sep 2011 17:53:50 +0000 (10:53 -0700)]
Update to tzdata2011k.

Affects Palestine, Gaza, Hebron, Belarus, Ukraine, and "Russia".

Change-Id: Ib17f848c3b0e86d0bfcf289c4c4a3ae53dd2f8c4

12 years agomerge in ics-release history after reset to master
The Android Automerger [Sun, 25 Sep 2011 13:59:15 +0000 (06:59 -0700)]
merge in ics-release history after reset to master

12 years agoam 8af58f0f: Use framework hints to determine dns query type.
Robert Greenwalt [Fri, 23 Sep 2011 06:39:54 +0000 (23:39 -0700)]
am 8af58f0f: Use framework hints to determine dns query type.

* commit '8af58f0fd4ff3fb11cb8a3c61e4654e3633906a4':
  Use framework hints to determine dns query type.

12 years agoUse framework hints to determine dns query type.
Robert Greenwalt [Wed, 14 Sep 2011 00:33:52 +0000 (17:33 -0700)]
Use framework hints to determine dns query type.

Instead of checking for IPv4 or IPv6 connectivity, try using pid-specific
hints the framework has left for us.

bug:5284168
Change-Id: Id64d48db3900865a7d58ada8309870c63d6eab12

12 years agomerge in ics-release history after reset to master
The Android Automerger [Sun, 18 Sep 2011 13:59:17 +0000 (06:59 -0700)]
merge in ics-release history after reset to master

12 years agoam 3884bfe9: libc: popen: work around data corruption
JP Abgrall [Sat, 17 Sep 2011 23:32:00 +0000 (16:32 -0700)]
am 3884bfe9: libc: popen: work around data corruption

* commit '3884bfe9661955543ce203c60f9225bbdf33f6bb':
  libc: popen: work around data corruption

12 years agolibc: popen: work around data corruption
JP Abgrall [Sat, 17 Sep 2011 22:22:21 +0000 (15:22 -0700)]
libc: popen: work around data corruption

vfork() would not save the registers that the parent would expect
to have restored after execl() completed.
Specially that execl() would call execve() underneath, further messing
up the stack of the parent.
To avoid that, we fork() for now. Later we will revisit and cleanup
vfork()+execve() to actually have vfork() store all the register
that the parent expects to see, and not those left by execve().

In the original code, looking at the registers just before the call to
popen(), and after the call showed that r7 would get clobbered.
This would leave the caller with an invalid pointer, leading to all
kinds of data corruptions.
execve() is simpler that execl() in this case.

Bug: 5336252
Change-Id: I3bf718c0bb4c0439f6f2753f153cdea14175be9c

12 years agoAdd non-NDK internal API __pthread_gettid
Glenn Kasten [Mon, 11 Jul 2011 22:41:28 +0000 (15:41 -0700)]
Add non-NDK internal API __pthread_gettid

Tracking bugs 5267571 and 5090073 (for deadlock detection logs).

Change-Id: Icb90f91ec1525607551c2234ef921bf88296484f

12 years agomerge in ics-release history after reset to master
The Android Automerger [Thu, 15 Sep 2011 13:33:15 +0000 (06:33 -0700)]
merge in ics-release history after reset to master

12 years agoupdate linux/fb.h
Erik Gilling [Wed, 14 Sep 2011 18:20:23 +0000 (11:20 -0700)]
update linux/fb.h

Change-Id: Ib00343e3b6f95eaf3d347d4b8b9df950d0686e70
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 13 Sep 2011 13:33:13 +0000 (06:33 -0700)]
merge in ics-release history after reset to master

12 years agoMerge "Update to tzdata2011j."
Elliott Hughes [Mon, 12 Sep 2011 18:19:51 +0000 (11:19 -0700)]
Merge "Update to tzdata2011j."

12 years agoUpdate to tzdata2011j.
Elliott Hughes [Mon, 12 Sep 2011 17:28:11 +0000 (10:28 -0700)]
Update to tzdata2011j.

Affects Samoa, Kenya, Uganda, and Tanzania.

Change-Id: Ibee638d415d4f0389ff27ea1c9c481543e181f1f

12 years agoupdate kernel video/dsscomp.h
Erik Gilling [Wed, 7 Sep 2011 19:53:22 +0000 (12:53 -0700)]
update kernel video/dsscomp.h

Change-Id: Ifc4f96e3a9c3435c0b0ee80ac9da295b4e9463a1
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agoupdate kernel video/dsscomp.h
Erik Gilling [Wed, 7 Sep 2011 19:53:22 +0000 (12:53 -0700)]
update kernel video/dsscomp.h

Change-Id: Ifc4f96e3a9c3435c0b0ee80ac9da295b4e9463a1
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agomerge in ics-release history after reset to master
The Android Automerger [Mon, 5 Sep 2011 13:33:11 +0000 (06:33 -0700)]
merge in ics-release history after reset to master

12 years agoAdd some logging of dns cache operations
Robert Greenwalt [Fri, 2 Sep 2011 14:44:36 +0000 (07:44 -0700)]
Add some logging of dns cache operations

Added info about what entries are getting flushed due to ttl or size limits.

Change-Id: I69fb70ce23b5b820f5f1a5738c0f1aa57b6a1127

12 years agomerge in ics-release history after reset to master
The Android Automerger [Wed, 31 Aug 2011 13:33:08 +0000 (06:33 -0700)]
merge in ics-release history after reset to master

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 30 Aug 2011 20:42:36 +0000 (13:42 -0700)]
merge in ics-release history after reset to master

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 30 Aug 2011 19:45:01 +0000 (12:45 -0700)]
merge in ics-release history after reset to master

12 years agoam 91966c30: am 0acdbe08: am 89ea107d: Merge "linker: allow debugging of constructors"
David 'Digit' Turner [Tue, 30 Aug 2011 16:50:54 +0000 (09:50 -0700)]
am 91966c30: am 0acdbe08: am 89ea107d: Merge "linker: allow debugging of constructors"

* commit '91966c30efbdc7feecd6c45a46ab488e715c0a35':
  linker: allow debugging of constructors

12 years agoam 35aebd36: am c7f5c8e2: am 0f7d9df1: Merge "libc: fix typo in kernel helper script"
David 'Digit' Turner [Tue, 30 Aug 2011 16:50:52 +0000 (09:50 -0700)]
am 35aebd36: am c7f5c8e2: am 0f7d9df1: Merge "libc: fix typo in kernel helper script"

* commit '35aebd36c771f32656996b02595fad8953f29916':
  libc: fix typo in kernel helper script

12 years agoam 0acdbe08: am 89ea107d: Merge "linker: allow debugging of constructors"
David 'Digit' Turner [Tue, 30 Aug 2011 01:01:05 +0000 (18:01 -0700)]
am 0acdbe08: am 89ea107d: Merge "linker: allow debugging of constructors"

* commit '0acdbe0892105d01a38de9baf4e34eef22b8259c':
  linker: allow debugging of constructors

12 years agoam c7f5c8e2: am 0f7d9df1: Merge "libc: fix typo in kernel helper script"
David 'Digit' Turner [Tue, 30 Aug 2011 01:01:04 +0000 (18:01 -0700)]
am c7f5c8e2: am 0f7d9df1: Merge "libc: fix typo in kernel helper script"

* commit 'c7f5c8e2703c1dbeabe54d408b8819f97ef623f3':
  libc: fix typo in kernel helper script

12 years agoam 89ea107d: Merge "linker: allow debugging of constructors"
David 'Digit' Turner [Tue, 30 Aug 2011 00:57:59 +0000 (17:57 -0700)]
am 89ea107d: Merge "linker: allow debugging of constructors"

* commit '89ea107de51baaccb7ada150d1192b80c6faa642':
  linker: allow debugging of constructors

12 years agoam 0f7d9df1: Merge "libc: fix typo in kernel helper script"
David 'Digit' Turner [Tue, 30 Aug 2011 00:57:57 +0000 (17:57 -0700)]
am 0f7d9df1: Merge "libc: fix typo in kernel helper script"

* commit '0f7d9df17f2f5a355b1b799a70219c18587482a6':
  libc: fix typo in kernel helper script

12 years agolinker.h: don't change the soinfo structure
Nick Kralevich [Mon, 29 Aug 2011 20:49:22 +0000 (13:49 -0700)]
linker.h: don't change the soinfo structure

In 48527c3f740a80b45acb5a6efc217f771ae50143, we modified the soinfo
structure to remove an unnecessary variable. However, third party
programs seem to be relying on the structure not changing.
Add a dummy variable back into place to preserve structure.

Bug: 5064106

Change-Id: I3014dda1a46e624644b09e156c3e9381ba3729bd

12 years agoUpdate to tzdata2011i.
Elliott Hughes [Mon, 29 Aug 2011 15:58:09 +0000 (08:58 -0700)]
Update to tzdata2011i.

Affects South Sudan (Africa/Juba), Samoa, Europe/Kalingrad, Newfoundland,
America/Resolute, Metlakatla, America/Honolulu, America/Goose_Bay and
America/St_Johns.

Change-Id: I8e60a7c7ba5ab71eedcc66937443a9e6993accd6

12 years agoMerge "linker: allow debugging of constructors"
David 'Digit' Turner [Mon, 29 Aug 2011 11:33:07 +0000 (04:33 -0700)]
Merge "linker: allow debugging of constructors"

12 years agoMerge "libc: fix typo in kernel helper script"
David 'Digit' Turner [Sun, 28 Aug 2011 07:33:42 +0000 (00:33 -0700)]
Merge "libc: fix typo in kernel helper script"

12 years agolibc: fix typo in kernel helper script
David 'Digit' Turner [Wed, 1 Jun 2011 08:27:04 +0000 (10:27 +0200)]
libc: fix typo in kernel helper script

Change-Id: I3b75b1323cf7a48cb839dede1552f24711847335

12 years agolinker: allow debugging of constructors
David 'Digit' Turner [Sat, 27 Aug 2011 08:21:01 +0000 (10:21 +0200)]
linker: allow debugging of constructors

This patch allows the debugging of constructors in shared
libraries and executables. It does so by ensuring that the
corresponding binary is visible to gdb before running the
constructors.

Change-Id: I0a3df726a04ad109944c834dcbba672b85d3991e

12 years agoMerge "update video/dsscomp.h"
Erik Gilling [Wed, 24 Aug 2011 22:01:13 +0000 (15:01 -0700)]
Merge "update video/dsscomp.h"

12 years agoupdate video/dsscomp.h
Erik Gilling [Wed, 24 Aug 2011 20:33:13 +0000 (13:33 -0700)]
update video/dsscomp.h

Change-Id: If4bd1d751b30ad2e65c0bd83caba436334949463
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agoAdd linux/leds-an30259a.h
Mike Lockwood [Tue, 23 Aug 2011 14:29:30 +0000 (10:29 -0400)]
Add linux/leds-an30259a.h

Change-Id: I9144b58bdc522d6ec22466adc459a40be648592f
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agolibc: Add __aeabi_f2uiz to libgcc_compat.c
David 'Digit' Turner [Mon, 22 Aug 2011 17:50:51 +0000 (19:50 +0200)]
libc: Add __aeabi_f2uiz to libgcc_compat.c

This patch ensure that __aeabi_f2uiz is embedded in our C library.
This is needed to avoid breaking certain applications when they are
loaded in ICS. It is likely that the issue is due to mis-linked
binaries generated with the stand-alone toolchain (the problem
should not exist if you use ndk-build), but this fix is easier
than asking all app developers to fix their custom build system.

If you want more technical details, read the comments inside
libgcc_compat.c

Change-Id: I59ac1fc781ecb70b90b5573c5a3c67560ca8f270

13 years agoDisable sincos optimization for sincos calls.
Jing Yu [Tue, 16 Aug 2011 23:14:34 +0000 (16:14 -0700)]
Disable sincos optimization for sincos calls.

sincos() functions would be turned into infinite calls to
itself if sincos optimization is applied to itself. See
gcc bugzilla http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46926

arm-linux-androideabi-4.4.3 toolchain does not have this problem
because sincos optimization is entirely disabled. Starting
from arm-linux-androideabi-4.6 toolchain, we enable sincos optimization
in gcc.

This patch simply enforce -O0 on this function to minimize the
change.

Change-Id: I0fc00b5f1dd71c0a024943bdedfed29b0d195e82

13 years agoam 3dc94305: am 17a40ffb: am c57fd963: Merge "NDK: x86 header file has incorrect...
David Turner [Tue, 9 Aug 2011 20:37:30 +0000 (13:37 -0700)]
am 3dc94305: am 17a40ffb: am c57fd963: Merge "NDK: x86 header file has incorrect definition for ptrdiff_t"

* commit '3dc94305e4eb243747248b43954c499ddc96638d':
  NDK: x86 header file has incorrect definition for ptrdiff_t

13 years agoam 951e8381: am 3906a9c1: am f5aa1382: Merge "x86 libc: Fix the range to check the...
David Turner [Tue, 9 Aug 2011 20:37:21 +0000 (13:37 -0700)]
am 951e8381: am 3906a9c1: am f5aa1382: Merge "x86 libc: Fix the range to check the error"

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

13 years agoMerge "Log signal info at time of receipt"
Andy McFadden [Fri, 5 Aug 2011 22:02:50 +0000 (15:02 -0700)]
Merge "Log signal info at time of receipt"

13 years agoam 17a40ffb: am c57fd963: Merge "NDK: x86 header file has incorrect definition for...
David Turner [Fri, 5 Aug 2011 16:42:57 +0000 (09:42 -0700)]
am 17a40ffb: am c57fd963: Merge "NDK: x86 header file has incorrect definition for ptrdiff_t"

* commit '17a40ffbf0e12ee44a024a9bb37434388478b478':
  NDK: x86 header file has incorrect definition for ptrdiff_t

13 years agoam c57fd963: Merge "NDK: x86 header file has incorrect definition for ptrdiff_t"
David Turner [Fri, 5 Aug 2011 16:41:22 +0000 (09:41 -0700)]
am c57fd963: Merge "NDK: x86 header file has incorrect definition for ptrdiff_t"

* commit 'c57fd963817afa8894af49d6c98a80d8f9100937':
  NDK: x86 header file has incorrect definition for ptrdiff_t

13 years agoMerge "NDK: x86 header file has incorrect definition for ptrdiff_t"
David Turner [Fri, 5 Aug 2011 16:23:29 +0000 (09:23 -0700)]
Merge "NDK: x86 header file has incorrect definition for ptrdiff_t"