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
diff --git a/libc/arch-mips/syscalls/dup2.S b/libc/arch-mips/syscalls/dup3.S
similarity index 78%
rename from libc/arch-mips/syscalls/dup2.S
rename to libc/arch-mips/syscalls/dup3.S
index c35725e..6a3752c 100644
--- a/libc/arch-mips/syscalls/dup2.S
+++ b/libc/arch-mips/syscalls/dup3.S
@@ -2,14 +2,14 @@
 
 #include <asm/unistd.h>
     .text
-    .globl dup2
+    .globl dup3
     .align 4
-    .ent dup2
+    .ent dup3
 
-dup2:
+dup3:
     .set noreorder
     .cpload $t9
-    li $v0, __NR_dup2
+    li $v0, __NR_dup3
     syscall
     bnez $a3, 1f
     move $a0, $v0
@@ -20,4 +20,4 @@
     j $t9
     nop
     .set reorder
-    .end dup2
+    .end dup3
diff --git a/libc/arch-mips/syscalls/epoll_create.S b/libc/arch-mips/syscalls/epoll_create.S
deleted file mode 100644
index 6f2832f..0000000
--- a/libc/arch-mips/syscalls/epoll_create.S
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Generated by gensyscalls.py. Do not edit. */
-
-#include <asm/unistd.h>
-    .text
-    .globl epoll_create
-    .align 4
-    .ent epoll_create
-
-epoll_create:
-    .set noreorder
-    .cpload $t9
-    li $v0, __NR_epoll_create
-    syscall
-    bnez $a3, 1f
-    move $a0, $v0
-    j $ra
-    nop
-1:
-    la $t9,__set_errno
-    j $t9
-    nop
-    .set reorder
-    .end epoll_create
diff --git a/libc/arch-mips/syscalls/dup2.S b/libc/arch-mips/syscalls/epoll_create1.S
similarity index 68%
copy from libc/arch-mips/syscalls/dup2.S
copy to libc/arch-mips/syscalls/epoll_create1.S
index c35725e..0abaeda 100644
--- a/libc/arch-mips/syscalls/dup2.S
+++ b/libc/arch-mips/syscalls/epoll_create1.S
@@ -2,14 +2,14 @@
 
 #include <asm/unistd.h>
     .text
-    .globl dup2
+    .globl epoll_create1
     .align 4
-    .ent dup2
+    .ent epoll_create1
 
-dup2:
+epoll_create1:
     .set noreorder
     .cpload $t9
-    li $v0, __NR_dup2
+    li $v0, __NR_epoll_create1
     syscall
     bnez $a3, 1f
     move $a0, $v0
@@ -20,4 +20,4 @@
     j $t9
     nop
     .set reorder
-    .end dup2
+    .end epoll_create1
diff --git a/libc/arch-mips/syscalls/inotify_init.S b/libc/arch-mips/syscalls/inotify_init.S
deleted file mode 100644
index 6a745fc..0000000
--- a/libc/arch-mips/syscalls/inotify_init.S
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Generated by gensyscalls.py. Do not edit. */
-
-#include <asm/unistd.h>
-    .text
-    .globl inotify_init
-    .align 4
-    .ent inotify_init
-
-inotify_init:
-    .set noreorder
-    .cpload $t9
-    li $v0, __NR_inotify_init
-    syscall
-    bnez $a3, 1f
-    move $a0, $v0
-    j $ra
-    nop
-1:
-    la $t9,__set_errno
-    j $t9
-    nop
-    .set reorder
-    .end inotify_init
diff --git a/libc/arch-mips/syscalls/dup2.S b/libc/arch-mips/syscalls/inotify_init1.S
similarity index 68%
copy from libc/arch-mips/syscalls/dup2.S
copy to libc/arch-mips/syscalls/inotify_init1.S
index c35725e..c3fcf48 100644
--- a/libc/arch-mips/syscalls/dup2.S
+++ b/libc/arch-mips/syscalls/inotify_init1.S
@@ -2,14 +2,14 @@
 
 #include <asm/unistd.h>
     .text
-    .globl dup2
+    .globl inotify_init1
     .align 4
-    .ent dup2
+    .ent inotify_init1
 
-dup2:
+inotify_init1:
     .set noreorder
     .cpload $t9
-    li $v0, __NR_dup2
+    li $v0, __NR_inotify_init1
     syscall
     bnez $a3, 1f
     move $a0, $v0
@@ -20,4 +20,4 @@
     j $t9
     nop
     .set reorder
-    .end dup2
+    .end inotify_init1