Implement _Exit(3).

Change-Id: Ida6ac844cc87d38c9645b197dd8188bb73e27dbe

Conflicts:
	libc/SYSCALLS.TXT
	libc/arch-arm64/syscalls/_exit.S
	libc/arch-mips/syscalls/_exit.S
	libc/arch-mips64/syscalls/_exit.S
	libc/arch-x86_64/syscalls/_exit.S
	tests/unistd_test.cpp
Fix build: include what you use.

Change-Id: I12b2d5e434ad3ed38d4451bd470673781e6ca8fe
Flesh out <locale.h>.

This is a trivial implementation that only supports the C/POSIX locale.

Change-Id: Ib11cea4249e1862aca96a8b94d58ea9a418cbe75

Conflicts:
	libc/bionic/locale.cpp
	libc/include/locale.h
	tests/locale_test.cpp
Use glibc structure for __cmsg_nxthdr.

Bug: 13418328
Change-Id: I7e656b373e53e80d708325321e48dcedacf5086d

Conflicts:
	libc/Android.mk
	libc/include/sys/socket.h
Use the glibc name user_fpregs_struct.

Instead of the kernel name user_i387_struct.

Bug: 13889008
Change-Id: Ideec2e1ce36c1faa4b5b2db1999ad2b23757ca4d
Improve the <sstream> test.

It looks like libcxx's testing is crap too, and this turned up
another bug in stlport.

Change-Id: I98c93dceaa8225c3cc280166d4bb74adaf94a324

Conflicts:
	tests/sstream_test.cpp
Replace the bionic hack for a vfprintf leak with (roughly) the upstream fix.

Currently in bionic free and freedtoa are equivalent, but that's not true
of gdtoa. This makes it easier to test gdtoa without having to replace
everything. (Yes, I found this bug the hard way.)

Change-Id: I290823a2a0a83329def5f2719b349215ad0dbbde

Conflicts:
	libc/stdio/vfprintf.c
Make use of new memcpy, tweak settings
Summary:
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The new memcpy() is slightly faster than the cortex-strings version,
and fixes the Galaxy Nexus camera issue.

Change-Id: I5e81ae96cefa52d590ac5adb8ebd30ef3a87222a
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Fix build issues with clang 3.4

clang 3.4 (just like gcc) implements _Unwind_GetIP - use Bionic's
implementation only if older clang versions are used.

Don't set incorrect values for WCHAR_MIN and WCHAR_MAX when using clang
in c++11 mode (c++11 has a builtin wchar_t that happens to be unsigned
in clang). Signed WCHAR_MIN and WCHAR_MAX defines in clang++ -std=c++11
cause anything using stlport to fail.

Change-Id: I46ed08b873f34e01c5e66aa8d91c71478bfcc25d
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	libc/bionic/debug_stacktrace.cpp
	libc/include/stdint.h
<sys/cdefs.h>: Fix clang __used__ attribute handling

Clang ignores and does not currently support the __used__ attribute

Change-Id: I1a7838136fed4f2dcdb7e04347312d98e5d0fd65
Fix inconsistent 'extern inline' default behavior between GCC and Clang.

Otherwise, we may get 'symbol multiple definition' error on some conditions
when linking two modules including <ctype.h> compiled by Clang.

http://clang.llvm.org/compatibility.html#inline

Change-Id: I969e58607eea818aef95270ec725f47dfb244e88

Conflicts:
	libc/include/ctype.h
Extra tests for printf of NaN and Inf.

Change-Id: I61fc655d9777a03aabf38f6ebd047fe275386f05

Conflicts:
	tests/stdio_test.cpp
Switch fpclassify over to ieee_ext.

Change-Id: I441bb7f715da24e1c04b0386ad9dcde0ea8c797c

Conflicts:
	libc/bionic/fpclassify.cpp
Clean up <machine/ieee.h>.

The upstream intention was for this to be architecture-dependent, but it's a
lot clearer if we just have one copy.

Change-Id: I4e8310496145f9f411cd2e847c8cd023b1d758e9

Conflicts:
	libc/arch-arm/include/machine/ieee.h
	libc/arch-x86/include/machine/ieee.h
	libc/include/machine/ieee.h