Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls.

Modern architectures only get the *at(2) system calls. For example,
aarch64 doesn't have open(2), and expects userspace to use openat(2)
instead.

Change-Id: I87b4ed79790cb8a80844f5544ac1a13fda26c7b5
Merge "Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls."
am ec40edc9: Merge "Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls."

* commit 'ec40edc9188aebe5207e47c0a66e89e1ed368bd6':
  Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls.
resolved conflicts for merge of 1dbf56aa to klp-dev-plus-aosp

Change-Id: Ia1d1467065320941d6dc3a50f7ea85eb4dbf3841
Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.

(aarch64 kernels only have the newer system calls.)

Also expose the new functionality that's exposed by glibc in our header files.

Change-Id: I45d2d168a03f88723d1f7fbf634701006a4843c5
Merge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls."
am 97dc3309: Merge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls."

* commit '97dc3309f3d403c391581444ad656c2f3c61303d':
  Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.
am db7f8eb0: am 97dc3309: Merge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls."

* commit 'db7f8eb011db18c69ec872823906e5f9660deaf7':
  Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.
MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's.

arch/mips/kernel/syscall.c has a special sysm_pipe wrapper, but there's
no special treatment of pipe2 because it carries no historical baggage.

Change-Id: I892c0f690b21992c8a48276a9b732126f18fc0ee
Fix header file dependencies.

MIPS' asm/fcntl.h assumes a bunch of __kernel_* types are already declared.

Change-Id: Iff701bbb5ede9667a78230c2de3a8f4fe41371c5
Merge "Fix header file dependencies."
Merge "MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's."
am 1370854c: Merge "Fix header file dependencies."

* commit '1370854cc0a4aa652213e44d4a8b268fe614c11f':
  Fix header file dependencies.
am cdac5f73: Merge "MIPS\' pipe(2) is weird, but MIPS\' pipe2(2) is the same as everyone else\'s."

* commit 'cdac5f73aca015287d1f40ff50d4fbf293a0c549':
  MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's.
am 0e1faa2e: am 1370854c: Merge "Fix header file dependencies."

* commit '0e1faa2e00a4f1d4508b26a6411ac1daa1ce8b6d':
  Fix header file dependencies.
am ae61f49b: am cdac5f73: Merge "MIPS\' pipe(2) is weird, but MIPS\' pipe2(2) is the same as everyone else\'s."

* commit 'ae61f49b130e65997750f4ffb84f22512e055c5f':
  MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's.
Don't warn about x86 text relocations. They're too prevalent.

We should fix this (and disallow it for x86_64), but for now let's get CTS
running again.

libdvm.so and libcutils.so are the main problems.

$ scanelf -qT out/target/product/generic_x86/symbols/system/lib/libcutils.so
  libcutils.so: (memory/data?) [0x4125] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x424F] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x42F8] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x4349] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x4406] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x45AC] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x4650] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x46F9] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x474A] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x4807] in (optimized out: previous android_memset32) [0x4590]

Bug: 11353056
Change-Id: Id4a76b310be7fe858a8a60d0d260b09913b66be9
Merge "Don't warn about x86 text relocations. They're too prevalent."
am 9098344a: Merge "Don\'t warn about x86 text relocations. They\'re too prevalent."

* commit '9098344afe98ace7b9f7af8898c02d267f1335a5':
  Don't warn about x86 text relocations. They're too prevalent.
am 7b9aa1a3: am 9098344a: Merge "Don\'t warn about x86 text relocations. They\'re too prevalent."

* commit '7b9aa1a3e7fd3e42782b10965b9e5cde6a17b74c':
  Don't warn about x86 text relocations. They're too prevalent.