Fix syscalls on 4.3's bionic

Change-Id: Ibaeaa30ce88880338cd0236791f7db4cac8289b5
mktemp: switch to mkstemp

The compiler warning was breaking the build due to Werror, and it's
an easy fix

Change-Id: Ic109aa017c02596e9cf0aae3c6f82d72849b90cf
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
fstrim: sync with busybox master (now an official applet)

fstrim: Needs to fire at the mp, not bd

It's a filesystem thing from this perspective.

fstrim: Indicate failure on error

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

Change-Id: Icffb851cbe1895523e67e5ff18c67f9109a46a28
fstrim: use new-style config/kbuild/applet snippets; trim help text

function                                             old     new   delta
packed_usage                                       29546   29520     -26

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

Change-Id: I758c91f2054d1f2876fc1446f8f0afd8bffd2611
android: add a script to regenerate prebuilt config

since x86 CROSS_COMPILER removal, it can be hard to do that properly

Change-Id: I6011e3b4dac5b5e670385df4812baf32f2e5ebc5
update config, change version suffix

Change-Id: I3455772c65bbd2e1102ec1f2d9c55f4d91b702d8
build: ignore selibs pkgconfig on android builds

This cause errors and is not required

Change-Id: If6cc6fb1595e83fac452d8a28cb4b8d250dff06d
Updated config and added it's required headers

cp .config-full .config
"make prepare" to generate include/ files
copy the generated files in include-full/
Updated build configurations