summaryrefslogtreecommitdiff
path: root/src/linux/inotify_add_watch.c
blob: 9973f161f75d66362263fe348911b6e6d71609d5 (plain) (blame)
1
2
3
4
5
6
7
#include <sys/inotify.h>
#include "syscall.h"

int inotify_add_watch(int fd, const char *pathname, uint32_t mask)
{
	return syscall3(__NR_inotify_add_watch, fd, (long)pathname, mask);
}