about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 16:40:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-09 17:39:40 +0100
commit81d33619b5b5e9e6e62700968393407b5a5aa347 (patch)
treeec5708a3a27ffd44b22a2cc797f749e90da6a348
parentd767ca43b8c6b28efb5ad12051f6629e4ceae642 (diff)
downloadglibc-81d33619b5b5e9e6e62700968393407b5a5aa347.tar.gz
glibc-81d33619b5b5e9e6e62700968393407b5a5aa347.tar.xz
glibc-81d33619b5b5e9e6e62700968393407b5a5aa347.zip
Linux: open_by_handle_at syscall number is always available
Due to the built-in tables, __NR_open_by_handle_at is always defined.
-rw-r--r--sysdeps/unix/sysv/linux/open_by_handle_at.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/open_by_handle_at.c b/sysdeps/unix/sysv/linux/open_by_handle_at.c
index f682d8cfe4..6c9c53291a 100644
--- a/sysdeps/unix/sysv/linux/open_by_handle_at.c
+++ b/sysdeps/unix/sysv/linux/open_by_handle_at.c
@@ -24,14 +24,5 @@
 int
 open_by_handle_at (int mount_fd, struct file_handle *handle, int flags)
 {
-#ifdef __NR_open_by_handle_at
   return SYSCALL_CANCEL (open_by_handle_at, mount_fd, handle, flags);
-#else
-  __set_errno (ENOSYS);
-  return -1;
-#endif
 }
-
-#ifndef __NR_open_by_handle_at
-stub_warning (open_by_handle_at)
-#endif