libc/sysdeps: Add new interfaces for new architectures

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Config.in: Introduce symbol for arches with deprecated syscalls

Linuxthreads(old and new) need deprecated syscalls to build. Existing
architectures support these system calls but new architectures don't.
This symbol has no functional change apart from hidding the Linuxthreads
symbols from arches that don't support them.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Makefile.in: Use non-legacy interfaces for new architectures

New architectures, which don't define ARCH_HAS_DEPRECATED syscalls, need
to use the new interfaces from libc/sysdeps/linux/generic-syscalls/bits/

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
dup2: Use dup3 if arch does not have the dup2 syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
chmod: Use fchmodat if arch does not have the chmod syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
access: Use faccessat if arch does not have the access syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
link: Use linkat if arch does not have the link syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
unlink: Use unlinkat if arch does not have the unlink syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
mknod: Use mknodat if arch does not have the mknod syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
chown: Use fchownat if arch does not have the chown syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
rmdir: Use unlinkat if arch does not have the rmdir syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
lchown: Use fchownat if arch does not have the lchown syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
mkdir: Use mkdirat if arch does not have the mkdir syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
rename: Use renameat if arch does not have the rename syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
readlink: Use readlinkat if arch does not have the readlink syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
symlink: Use symlinkat if arch does not have the symlink syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
utimes: Use utimensat if arch does not have the utimes syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
pipe: Use pipe2 if arch does not have the pipe syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
epoll: Use epoll_create1 if arch does not have the epoll_create syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
epoll: Use epoll_pwait if arch does not have the epoll_wait syscall

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>