[MIPS] Add Support errno, Added Logging, sorted Android.mk files.

Change-Id: Ibeeab51feb77be07ea8ccacf2f448bb5135d7373
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney   <piet@mips.com>
[MIPS] Add Support signal.

Change-Id: Ie2aa6cd24a119f96cd01c6b3d6352f011a0825b5
Signed-off-by: Pete Delaney  <piet@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
[MIPS] Add Support timer_create.

Signals needed to be mapped.

Change-Id: Id0748924f16ac6787b87062d774e837a14d1233c
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
[MIPS] Add Support for syscall.

Change-Id: Ib9c13ea152fdfe58b36362442eeef88e4a463c31
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
[MIPS] Add Support clone.

Change-Id: I3320c38e4228ba0aba37fe5af93e6f467c2e1b12
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
[MIPS] Add Support pthread library functions.

Signals needed to be mapped.

Change-Id: I946308f17cf7bc945287f716d0da50f515ac8fc4
Signed-off-by: Pete Delaney  <piet@mips.com>\
Signed-off-by: Chris Dearman <chris@mips.com>
[MIPS] Add support for waitpid.

Change-Id: I7b3b90f9a64d40c5aa72c74cac6881f1189c1462
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
Let users could query cpu features on device.

Change-Id: I9f5d7c66fb4248f5f8cbbf4c350b82a5b8c3aee9
[ARM] Add unwind portable header adaptor.

ARM expanse some functions to others. For example,
_Unwind_GetIP will be inlined to _Unwind_GetGR, which
will be inlined to _Unwind_VRS_Get. This happens at
header-included level.

However, we use Itanium _Unwind_* header as portable one.
We do the inlining in ARM libportable to prevent
undefined reference to these functions.

Change-Id: Iad94c4a92531cdcfbcf535443fb257d02cb24c43
Signed-off-by: WenHan Gu <Wenhan.gu@mediatek.com>
Clean up unnecessary wrap functions.

For wrap functions that call real function directly, it could be removed.

Change-Id: I261aa6639349da776e835b9eb74f00b246d4e3c1

Conflicts:
	ndk/sources/android/libportable/arch-arm/epoll.c
	ndk/sources/android/libportable/arch-arm/errno.c
	ndk/sources/android/libportable/arch-arm/socket.c
	ndk/sources/android/libportable/arch-arm/sockopt.c
	ndk/sources/android/libportable/arch-arm/stat.c
	ndk/sources/android/libportable/arch-x86/errno.c
	ndk/sources/android/libportable/arch-x86/socket.c
	ndk/sources/android/libportable/arch-x86/sockopt.c
Fix build >= JB

File arch-mips/sigsetjmp.S includes <asm-generic/portability.h>
already defined in LOCAL_CFLAGS, and build system prior JB
passes LOCAL_CFLAGS for building *.S as well, but no more >=JB.

Use LOCAL_C_INCLUDES instead (pass for *.S too)

Change-Id: I7e6d6e838d632f980aa6c9b6b2b2862bd7de11b1
Implement optimized __swap16md and __swap32md.

Conflicts:
	ndk/sources/android/libportable/Android.mk