On Mon, Jan 30, 2006 at 04:45:02PM +0000, Mark McLoughlin wrote:
On Mon, 2006-01-30 at 11:41 -0500, Dave Jones wrote:
> > I tried to use it from a test program but I get:
> >
> > test.o: In function `main':test.c:(.text+0x43): warning: warning:
> > inotify_add_watch is not implemented and will always fail
> > :test.c:(.text+0x15): warning: warning: inotify_init is not implemented
> > and will always fail
>
> Hmm, odd. Can you send your test program ?
I don't think the inotify syscalls are implemented in Fedora's glibc -
or at least that's what the warning suggests and I didn't investigate
further.
They're there for me.
(11:48:37:davej@nemesis:~)$ find /usr/include/ -name inotify.h
/usr/include/sys/inotify.h
(11:48:39:davej@nemesis:~)$ rpm -qf /usr/include/sys/inotify.h
glibc-headers-2.3.90-30
(11:48:49:davej@nemesis:~)$ rgrep inotify_init /usr/include/
/usr/include/asm-x86_64/unistd.h:#define __NR_inotify_init 253
/usr/include/asm-i386/unistd.h:#define __NR_inotify_init 291
/usr/include/gnu/stubs-32.h:#define __stub_inotify_init
/usr/include/gnu/stubs-64.h:#define __stub_inotify_init
grep: warning: /usr/include/gnome-xml/libxml: recursive directory loop
/usr/include/sys/inotify.h:extern int inotify_init (void) __THROW;
(11:49:15:davej@nemesis:~)$
Dave