add fanotify syscall wrapper and header
This commit is contained in:
parent
7e10f209fb
commit
5c81b8fe45
2 changed files with 87 additions and 0 deletions
14
src/linux/fanotify.c
Normal file
14
src/linux/fanotify.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "syscall.h"
|
||||
#include <sys/inotify.h>
|
||||
|
||||
int fanotify_init(unsigned flags, unsigned event_f_flags)
|
||||
{
|
||||
return syscall(SYS_fanotify_init, flags, event_f_flags);
|
||||
}
|
||||
|
||||
int fanotify_mark(int fanotify_fd, unsigned flags, unsigned long long mask,
|
||||
int dfd, const char *pathname)
|
||||
{
|
||||
return syscall(SYS_fanotify_mark, flags, __SYSCALL_LL_O(mask), dfd, pathname);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue