mktemp: unlink mkstemp alternative to (unsafe) dry-run option

Change-Id: I19eeca4e8a915418527630105405c4d74d542ead
Don't treat link-time warnings as errors

We want to use mktemp(3) in the mktemp applet (it's unsafe, but so is
that particular option of the applet, and mktemp() is the least unsafe
way of implementing that option), but forcing the linker to error out on
warnings breaks the build in this case.

Change-Id: I6e976e9b467d2241be4bb0f3628991d098c492f0
mktemp: go back to using mktemp() for mktemp -u

The -u option to mktemp(1) is inherently unsafe, and the fact it exists
in the first place is probably a mistake.  That said, it exists, and if
we want to support it, we should try to minimize the risk of using it.

The current code attempts to work around a build failure caused by
passing --fatal-warnings to the linker by using mkstemp() and unlinking
the resulting file, which eliminates the need for an attacker to guess
the filename (he can instead watch the temporary file directory using
inotify or some other similar mechanism).  It's better instead to use
mktemp() (which at least forces the attacker to guess what "XXXXXX" was
replaced with) and tell the linker to live with the warning.

Change-Id: I01e0901db39821b7d1ce06145d1199ecd929e689
[x86] Changes and Additions to fix broken x86 build

Add missing syscalls to android/libc/arch-x86/syscalls

Remove #undef HAVE_GETLINE from platform.h
Fixes definition conflict warnings for x86 but is also
suitable for arm as  bionic has had a getline implementation for a
while now

Remove hardcoded CONFIG_CROSS_COMPILER_PREFIX from .config-full
and .config-minimal. This is now appended to  .config as part of
the prepare target in Android.mk

It appears no other changes are needed to other files such as
bbconfigopts.h etc as these are autogenerated when make prepare
is run.

Android.mk:
Added missing syscalls source to BUSYBOX_SRC_FILES when
TARGET_ARCH=x86.
Added appending of the CONFIG_CROSS_COMPILER_PREFIX to the .config
file based on the TARGET_ARCH

Change-Id: I4f550757b3209b852cd5a017e88dce50678e5734
bunzip2: fix off-by-one check

stage3-armv7a_hardfp-20130209.tar.bz2, 149189948 bytes long,
md5sum b29ce23312e14eb15a143377d4a38473, was failing to unpack.

It so happened that this file has a run which exactly fills
the 90k buffer. The check was "size >= bufsize", apparently
it has to be ">".

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

fix for bug https://jira.cyanogenmod.org/browse/CYAN-1896
Change-Id: I4e43fa2b84f2c00e627f75082d2250b4b4dff08e
Fix building on 4.4

Change-Id: I85030de3dea5f2d1a187cf2ced9517b3c820266a
Merge remote-tracking branch 'cm/cm-11.0' into HEAD

Conflicts:
	android/reboot.c

Change-Id: I164ee58b9df787fec20d0fb2ebcfa09a067d95b9