wireup linux/name_to_handle_at and name_to_handle_at syscalls

This commit is contained in:
Khem Raj
2018-09-12 21:28:39 -04:00
committed by Rich Felker
parent 5e46e8d4b0
commit 3e14bbcd19
3 changed files with 25 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#define _GNU_SOURCE
#include <fcntl.h>
#include "syscall.h"
int name_to_handle_at(int dirfd, const char *pathname,
struct file_handle *handle, int *mount_id, int flags)
{
return syscall(SYS_name_to_handle_at, dirfd,
pathname, handle, mount_id, flags);
}
+8
View File
@@ -0,0 +1,8 @@
#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);
}