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/SYSCALLS.TXT b/libc/SYSCALLS.TXT
index 504f190..2caacf6 100644
--- a/libc/SYSCALLS.TXT
+++ b/libc/SYSCALLS.TXT
@@ -124,9 +124,8 @@
int flock(int, int) all
int fchmod(int, mode_t) all
int dup(int) all
-int pipe(int*) arm,x86,x86_64
int pipe2(int*, int) all
-int dup2(int, int) all
+int dup3(int, int, int) all
int select:_newselect(int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*) arm,x86,mips
int select(int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*) x86_64
int getdents:getdents64(unsigned int, struct dirent*, unsigned int) all
@@ -290,22 +289,20 @@
int personality(unsigned long) all
long perf_event_open(struct perf_event_attr* attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags) all
-# futex
-int futex(void*, int, int, void*, void*, int) all
+int epoll_create1(int) all
+int epoll_ctl(int, int op, int, struct epoll_event*) all
+int epoll_wait(int, struct epoll_event*, int, int) all
-# epoll
-int epoll_create(int size) all
-int epoll_ctl(int epfd, int op, int fd, struct epoll_event* event) all
-int epoll_wait(int epfd, struct epoll_event* events, int max, int timeout) all
+int eventfd:eventfd2(unsigned int, int) all
-int inotify_init(void) all
-int inotify_add_watch(int, const char*, unsigned int) all
-int inotify_rm_watch(int, unsigned int) all
+int futex(void*, int, int, void*, void*, int) all
+
+int inotify_init1(int) all
+int inotify_add_watch(int, const char*, unsigned int) all
+int inotify_rm_watch(int, unsigned int) all
int poll(struct pollfd*, unsigned int, long) all
-int eventfd:eventfd2(unsigned int, int) all
-
# ARM-specific
int __set_tls:__ARM_NR_set_tls(void*) arm
int cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) arm