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
add personality() system call.

Change-Id: Ie899def8ea1d705930ed83adae1343c1353e7c57
merge in ics-mr1-release history after reset to ics-mr1
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
merge in ics-mr1-release history after reset to ics-mr1
bionic: Fix aliasing violations

This makes bionic compile with compilers enforcing
strict adherence to aliasing rules (e.g. gcc 4.6
with -Wstrict-aliasing=2 -Werror=strict-aliasing).

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
bionic: Add ; after anonymous union declaration

This improves compatibility with different compilers

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
tools/update_all.py: Fix crash on startup when invoked with a parameter

This fixes a crash on startup due to a misspelled variable name when
update_all.py is invoked with a parameter indicating a non-standard
location of kernel headers.

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
libm: Add a proper sincos() implementation

Add a proper sincos() implementation that unifies the common
calculations for sin and cos instead of running them twice.

This should cause a speedup even in code not using that
(fairly uncommon) function because gcc can optimize separate
sin() and cos() calls into sincos() calls.

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
bionic:Add new header files for graphics

The header files "hwmem.h" and "b2r2_blt.h" are needed
by the ST-Ericsson graphics implementation.

Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
kernel headers: add/update STE MM used headers

Adds all kernel headers used by ST-Ericsson multimedia
framework.

Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
Committed-by: Mathieu Poirier <mathieu.poirier@linaro.org>

(cherry picked from commit 0310ec585606259913c5050aceb77d475a817ea0)

Change-Id: I3f508f00189b5547487f6ad2542e868e34df3628
Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
bionic: update android_pmem.h for new IOCTLs

Add definitions for components in the ST-Ericsson
multimedia framework.

Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
Committed-by: Mathieu Poirier <mathieu.poirier@linaro.org>

(cherry picked from commit 8e96a633f68bbecc6fdfb167a4fcdacdc7b1f1a7)

Change-Id: I9a95c29dc380061a3a1236653d3a3aa77c3bb8f7
Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
Bionic: Add compdev header file

The kernel has been updated with a new display/overlay driver
by ST-Ericsson.

Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
Committed-by: Mathieu Poirier <mathieu.poirier@linaro.org>

(cherry picked from commit 627076742dc101f9c58e1273115a3d998ad1fe5a)

Change-Id: Ib088e5b8c7e11816201c738c8e2a834f32f44140
Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
bionic: Add ARMv7 optimized string handling routines

Add ARMv7 - and especially Cortex-A9 - optimized string handling
routines based on the versions found in the cortex-strings library.

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

(cherry picked from commit f1dd5e8c215b080bb2f4cf226f9d657e31d08f8d)

Change-Id: I99c3029210e65cfeea2a43a1f9c0971be50379c5