1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#define _GNU_SOURCE #include <fcntl.h> #include "syscall.h" int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags) { return syscall(SYS_open_by_handle_at, mount_fd, handle, flags); } #ifdef TEST int main(void) { return 0; } #endif