This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: inotify support.
On Tue, 2005-08-16 at 23:19 -0700, Ulrich Drepper wrote:
> Well, OK, but if it turns out you're wrong I'll be the one encouraging
> the villagers with the pitch forks who'll come after you.
I will take those odds.
> Take a look at the current cvs trunk to see whether the definitions
> are correct.
IN_MOVE_SELF support recently made it into Linus's git tree. Find a
patch attached, adding the define.
Otherwise, looks good. Thank you.
Robert Love
2005-08-17 Robert Love <rml@novell.com>
* sysdeps/unix/sysv/linux/sys/inotify.h: add IN_MOVE_SELF.
Index: sysdeps/unix/sysv/linux/sys/inotify.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sys/inotify.h,v
retrieving revision 1.1
diff -u -u -r1.1 inotify.h
--- sysdeps/unix/sysv/linux/sys/inotify.h 17 Aug 2005 06:16:54 -0000 1.1
+++ sysdeps/unix/sysv/linux/sys/inotify.h 17 Aug 2005 14:02:09 -0000
@@ -47,6 +47,7 @@
#define IN_CREATE 0x00000100 /* Subfile was created. */
#define IN_DELETE 0x00000200 /* Subfile was deleted. */
#define IN_DELETE_SELF 0x00000400 /* Self was deleted. */
+#define IN_MOVE_SELF 0x00000800 /* Self was moved. */
/* Events sent by the kernel. */
#define IN_UNMOUNT 0x00002000 /* Backing fs was unmounted. */
@@ -61,7 +62,7 @@
#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE \
| IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM \
| IN_MOVED_TO | IN_CREATE | IN_DELETE \
- | IN_DELETE_SELF)
+ | IN_DELETE_SELF | IN_MOVE_SELF)
__BEGIN_DECLS