Update tcp buffersize settings

Soem of these values are from CAF, some of these are
from various shipping devices, some are educated
guesses based on the properties of each connection.

In general, the higher the bandwidth-delay product
of a network, the larger the buffer needs to be.

Change-Id: Idd8cd27727b5e66bd3a46be5f9853380acbda8ba
Fixed improper size displaying in 'df' utility

'df' command used to display filesystem usage statistics as integer
values, in most cases rounding the actual value down. Because of
that 'df' tended to display faulty size values.
This fix to 'df' utility calculates the fractional part of the size,
then it rounds it when needed to the nearest one-digit integer value
and displays after decimal dot.

Change-Id: I9bc52635d45d3e55ce61b3b1c6b80d1267516e75
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
libnetutils: Fix up the dhcp request arguments

The interface/config-file arguments passed to the dhcpcd invocation
when a hostname isn't provided were swapped, causing requests to be made
for interface <config-file-name> instead of <interface-name>, and
failing all calls to start dhcpcd through netutils with the following error:

E/DhcpStateMachine( 3214): DHCP failed on wlan0: Timed out waiting for dhcpcd to start

because...

<3>[  582.717015] init: no such service 'dhcpcd_/system/etc/dhcpcd/dhcpcd.conf:-f wlan0 wlan0'

Change-Id: Ic2e026ae8ebebdc9a27f5d7a6274e1c5c8a2f95e
adb: Don't force -O2

Don't force -O2 over -O3 -- the O2 hardcode is there to force
optimizations, not to reduce them...

Change-Id: Ic75eeb767db4926f519580fba8f5f7b8e593df4f
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
liblog: fix fd leakage

File descriptors remain open across an exec unless FD_CLOEXEC is
set.  Add O_CLOEXEC to the open() call to prevent file descriptor
leakage.

In particular, the following program will eventually run out of
file descriptors:

int main(int argc, char **argv) {
  printf("===== entering main =====\n");
  ALOGW("entering main");
  system("ls -l /proc/self/fd/");

  execv(argv[0], argv);
  printf("exec failed\n");
  return -1;
}

Change-Id: I5be43ab3b9f82a05f242b1f586454c50568af388
Close adb_usb.ini after reading it

Signed-off-by: Chris Dearman <chris@mips.com>
Change-Id: I7d3ee8cbd54af206dac89225c438e6c7322c571f
add 8K 16K 32K 64K and 128K pagesizes in bootimage

Ported from jellybean (was Change-Id: I4bc74ad6b0a473de68c906422bcd7eac00c89793)

http://review.cyanogenmod.org/33216

Signed-off-by: ChampionSwimmer <android@championswimmer.tk>
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I0ee608b74a1daefe536b9247f99368f3e043f93d