fix building nslookup against AOSP bionic

AOSP bionic hides the _nres struct, but then makes calls to
a __res_state() function which doesn't exist.  undefine and
redefine to use __res_get_state() instead

Change-Id: I904c787c6950fa7532c49fbb8524034a5f3f8fcc
dmesg: implement official '-r' and colored output '-C'

Actually there is no way to have the level with the DMESG_PRETTY
-r option (raw format) is present for that in debian systems

The optional -C allow a colored output for both configs
this parameter is inspired from android logcat one.

Behavior is kept (default is raw if DMESG_PRETTY config is not set)

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Apply post-1.19.3 patches, bump version to 1.19.4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>

Change-Id: I39ec4b347a7434d6837cf71bebe28ef36db98d55
modinfo: use ifdef block for android without-utsrel modules path

and fixes the modules.dep requirement, it is now optional...

Change-Id: Ifccb530fa23b021fd12e2395f5d0c66600b25c04
Enable nfs mount in both dynamic and static busybox.

With this change, busybox is able to do NFSv3 mounts, if the kernel
has been compiled with NFS client support.

While busybox already includes the neccessary code in
util-linux/mount.c, the required SUN RPC library was missing. It is
included here in the librpc/ subdirectory. The librpc/ code was taken
from http://nbd.name/gitweb.cgi?p=uclibc-rpc.git;a=summary and modified
a bit, mostly in librpc/rpc/types.h, to properly compile for Android/CM9.
I also compared the code to the current official uclibc GIT - it was
almost identical, except for a funny thread support thing in the
official uclibc sources which wouldn't have worked, and a small
fix from there which I incorporated in clnt_{tcp,udp,unix}.c,
where a break was missing from a case.

Tested on a maguro build of the current CM9, together with a kernel
out of codeworkx git / experimental branch, with NFS enabled.

Amended 2012/02/29: do not build librpc / nfs mounting
into minimal (recovery) busybox.

Amended 2012/03/05: move to android/librpc, build as static lib

Change-Id: I587ed7c60aa7dd10828213ae2b8675579d126e8e
fix depmod, and add taskset and adjtimex applets

Add them in busybox-full/static (but not libbusybox)

Note: taskset is not available on gingerbread branch,
      bionic shed.h was incomplete.

Taskset can be required on dual core devices to get/set
cpu affinity, an example : ptrace() require to be on same
cpu core to allow to attach a debug process...

This function is used in 2nd-init, can be useful for some
devices... like the Droid 3 and the Razr

Change-Id: Iaf89bf8e08112fcd74fa19cc0989185b28390ff2
Busybox 1.20.0 squashed commit for ICS
fix most sign and variable initialization warnings

Change-Id: I56e08db791152a9c95fc0d16bc75b702e403274d
pstree: fix segfault introduced by the warnings fixes

Change-Id: I159f0250285eee00b4bcc4830bf36033607f72ff
Android.mk: obj/include-profile cleanup

Mark this as TODO, that require some changes in busybox Makefile
This could confuse users doing manual builds in the repo.

Change-Id: I0a83b9c41c17f6d2fd07b4483b99e7196c144c70
unzip: fix a second bug in warning fixes

Change-Id: I7ce050a7fac9fd9b253105d0b077c281ccd49234
sed: fix handling of s/// which has empty matches

sed: slightly better fix for prev commit's problem

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

Published in bug fixes patches:
http://busybox.net/downloads/fixes-1.20.0/
Update ext volume ID to support ext4 for blkid

    volume_id/ext: detect ext4 too

    function                                             old     new   delta
    volume_id_probe_ext                                  108     132     +24

    Signed-off-by: Dees Troy<dees_troy@teamw.in>
    Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

    Patchset 2: use upstream commit

Change-Id: Idc50310af917f4b9cbbe51060850badc57945998
Apply post-1.20.0 patches, bump version to 1.20.1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
update prebuilt android config files for 1.20.1

Change-Id: If4be8aecb5ee02a184c1177dd108c68d5b2e13fc
awk: fix the evaluate bug related to warning fix

Change-Id: I0682468b95fb870d519ac975c94dc5a8f70bdec0
modinfo: match more standard module fields and fix version field

Previously, -F version could match the srcversion= string.

This give now the same output as debian modinfo(8)

before :
  ~ # modinfo -F version tiwlan_drv
  version:        6.1.2012.05.29
  version:        533BB7E5866E52F63B9ACCB
  version:        0x%x, oui=0x%x, 0x%x, 0x%x
  version:        0x%x

  ~ # modinfo tiwlan_drv
  filename:       tiwlan_drv.ko
  author:         Texas Instruments Inc
  license:        GPL
  vermagic:       2.6.32.9 preempt mod_unload ARMv7
  parm:           g_sdio_debug_level:debug level
  depends:

now :
  ~ # modinfo -F version tiwlan_drv
  version:        6.1.2012.05.29

  ~ # modinfo tiwlan_drv
  filename:       tiwlan_drv.ko
  license:        GPL
  author:         Texas Instruments Inc
  version:        6.1.2012.05.29
  srcversion:     533BB7E5866E52F63B9ACCB
  depends:
  uts_release:    2.6.32.9-g306944c
  vermagic:       2.6.32.9 preempt mod_unload ARMv7
  parm:           g_sdio_debug_level:debug level

This patch also add support for the old "-n" and some other helpers

Change-Id: Icb4e9ca513cbce46b075a6f038799a7a19fb7e22
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
umount: instead of non-standard -D, use -d with opposite meaning

This has been in upstream busybox for quite sometime, 2008-02-14 12:00:21 (GMT)
And has no negative effects on android devices.
Please see original commit:
http://git.busybox.net/busybox/commit/util-linux/umount.c?id=b2e578a1f2c3cf317b391a7d2c059d6a5f5368b8&ss=1

Change-Id: I7f8b9a6a88571b8190ffeaec75973f4ddf4f849e
get_linux_version_code: don't fail on Linux version strints like "3.0-foo"

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
unzip: ignore chmod errors

This makes unzip to FAT filesystems not exit with error.
This is similar to how the "normal" unzip works.

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>