Linux: open_by_handle_at syscall number is always available

Due to the built-in tables, __NR_open_by_handle_at is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer 2020-03-03 12:50:07 +01:00
parent b03604b1b8
commit ed9ce57e3c

View File

@ -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