From 6cac9308787100bfcdf556bfc187a8136e2541c1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 21 Jun 2006 00:07:34 +0000 Subject: Austin Morgan writes in #917: add support for inotify --- libc/sysdeps/linux/common/inotify.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libc/sysdeps/linux/common/inotify.c (limited to 'libc/sysdeps/linux/common/inotify.c') diff --git a/libc/sysdeps/linux/common/inotify.c b/libc/sysdeps/linux/common/inotify.c new file mode 100644 index 000000000..87cf4d71e --- /dev/null +++ b/libc/sysdeps/linux/common/inotify.c @@ -0,0 +1,24 @@ +/* vi: set sw=4 ts=4: */ +/* + * inotify interface for uClibc + * + * Copyright (C) 2006 Austin Morgan + * Copyright (C) 2006 by Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include "syscalls.h" +#include + +#ifdef __NR_inotify_init +_syscall0(int, inotify_init); +#endif + +#ifdef __NR_inotify_add_watch +_syscall3(int, inotify_add_watch, int, fd, const char *, path, uint32_t, mask); +#endif + +#ifdef __NR_inotify_rm_watch +_syscall2(int, inotify_rm_watch, int, fd, uint32_t, wd); +#endif -- cgit v1.2.3