Unsandboxed IRT: Make unsandboxed_irt.c compilable on Android (Bionic)
Unsandboxed IRT: Make unsandboxed_irt.c compilable on Android (Bionic)

Use __NR_futex rather than SYS_futex.  The Linux kernel headers define
__NR_futex.  SYS_futex seems to be a glibcism -- it comes from
bits/syscall.h, which says "Generated at libc build time from kernel
syscall list".  Most Linux code uses the "__NR_*" names.

There seems to be no standard naming for stat's nanosecond-precision
fields.  "st_[amc]timensec" are always defined on Android (and are
conditionally defined in glibc and Mac OS X, albeit unusably), so use
that.

Tested in android-ndk-r9d with:

./toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc \
    .../unsandboxed_irt.c --sysroot=platforms/android-8/arch-arm \
    -c -I... -DNACL_LINUX

I'll do the plumbing for making this work with pnacl-translate in a
separate change.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3699
TEST=As above + tests run on PNaCl toolchain trybot
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/226083004

git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@12999 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client