set /system/etc/init.d/* permissions

ported from CM7

Change-Id: I279d78679f7d779d6cd6bbc6c834d94706937ae8
Fix deadlocks.

1. Close pipe fds[1] as soon as possible. Otherwise it may block when
   reading from fds[0] even though the child process has exited early
   and closed its copy of fds[1].

2. Waitpid after pipe is closed. Otherwise the screencap child process
   may block while writing fds[1], because the fds[0] is not closed
   yet. If we close fds[0] first, then the screencap child process will
   die because of SIGPIPE, and waitpid will return correctly.

Change-Id: I433c95a5ba2eb3045727fc39a49fd9557fb1a1d1
Signed-off-by: Bao Haojun <baohaojun@gmail.com>
Use __arm__ instead of ARCH_ARM.

Change-Id: I777da5757f01d8328d5475e654d56d81dc802655
libpixelflinger should #define __ARM_HAVE_NEON.

Bug: 18556103
Change-Id: Ife07cf63948f1c248bcde5685cdb6d89c373d988
healthd: please be quiet

Change-Id: Ie4273d53279e69227f48843db150394807ba3ba9
Allow updates for open file descriptors

even if the calling process itself would not be able to open the file.

Bug: 18688419

Change-Id: I640db19f19c1a677735fd0c14b7e2e38977d0f4d
fix memory leak in copy_remote_dir_local

Bug https://code.google.com/p/android/issues/detail?id=82436

Change-Id: I4bfa865638742e1b7cedd17f5b33dcc10c7f711c