]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: open_by_handle_at syscall number is always available
authorFlorian Weimer <fweimer@redhat.com>
Sun, 9 Feb 2020 15:40:28 +0000 (16:40 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sun, 9 Feb 2020 16:39:40 +0000 (17:39 +0100)
Due to the built-in tables, __NR_open_by_handle_at is always defined.

sysdeps/unix/sysv/linux/open_by_handle_at.c

index f682d8cfe49d7711a5df402b40f90d5673f2183a..6c9c53291a614bbc1ef1ac970820d858f80a7abf 100644 (file)
 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