I've added this to our klibc copy in the udev tree to support the recently added Inotify. Thanks, Kay -------------- next part -------------- diff --git a/klibc/klibc/SYSCALLS.def b/klibc/klibc/SYSCALLS.def --- a/klibc/klibc/SYSCALLS.def +++ b/klibc/klibc/SYSCALLS.def @@ -114,6 +114,9 @@ int lchown32,lchown::lchown(const char * int getcwd::__getcwd(char *, size_t) <?> int utime(const char *, const struct utimbuf *) <?> int utimes(const char *, const struct timeval *) +<?> int inotify_init(void) +<?> int inotify_add_watch(int, const char *, __u32) +<?> int inotify_rm_watch(int, __u32) ; ; I/O operations
Kay Sievers wrote:> I've added this to our klibc copy in the udev tree to support > the recently added Inotify.I would also like to add the header. Robert, is it OK to include your header into klibc under the MIT license? Also, the header is listed as <inotify.h>, but it seems to me that it really, *REALLY*, should be <sys/inotify.h>. Agreed? -hpa
On Thu, 2005-09-01 at 20:26 -0700, H. Peter Anvin wrote:> I would also like to add the header. Robert, is it OK to include your > header into klibc under the MIT license?Of course.> Also, the header is listed as <inotify.h>, but it seems to me that it > really, *REALLY*, should be <sys/inotify.h>. Agreed?Yes, it should be <sys/inotify.h>. I think glibc has it there, too. Robert Love
On Fri, Sep 02, 2005 at 12:31:51AM -0400, Robert Love wrote:> On Thu, 2005-09-01 at 20:26 -0700, H. Peter Anvin wrote: > > > I would also like to add the header. Robert, is it OK to include your > > header into klibc under the MIT license? > > Of course. > > > Also, the header is listed as <inotify.h>, but it seems to me that it > > really, *REALLY*, should be <sys/inotify.h>. Agreed? > > Yes, it should be <sys/inotify.h>. I think glibc has it there, too.Yes, it is. But you may want to add something like this: extern int inotify_init(void); extern int inotify_add_watch(int fd, const char *name, uint32_t mask); extern int inotify_rm_watch(int fd, uint32_t wd); to the klibc <sys/inotify.h> file? Kay
Maybe Matching Threads
- Re: Dovecot inotify problem
- Samba4 git pull of today (11/28/2013) link error on FreeBSD 9.2 RELEASE
- Samba4 git pull(11/30/2013) link error on FreeBSD 9.2
- samba 4.0.3 compiling fails on freebsd 9.1
- [PATCH] inotify_add_watch: pass IN_ALL_EVENTS as mask for test