aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-05-17 17:52:59 +0000
committerUlrich Drepper <drepper@redhat.com>2006-05-17 17:52:59 +0000
commit388c779e6f39ab7797e0d94e02b2980984f36846 (patch)
tree06bd9321e4940725643defb1a765ec9347adadf5
parent* sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if (diff)
downloadglibc-388c779e6f39ab7797e0d94e02b2980984f36846.tar.gz
glibc-388c779e6f39ab7797e0d94e02b2980984f36846.tar.bz2
glibc-388c779e6f39ab7797e0d94e02b2980984f36846.zip
* sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/sys/inotify.h11
2 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ca6fda1385..74649798b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-17 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
+ IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
+
2006-05-17 Jakub Jelinek <jakub@redhat.com>
* sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
diff --git a/sysdeps/unix/sysv/linux/sys/inotify.h b/sysdeps/unix/sysv/linux/sys/inotify.h
index c498fe8f18..0131db9d3e 100644
--- a/sysdeps/unix/sysv/linux/sys/inotify.h
+++ b/sysdeps/unix/sysv/linux/sys/inotify.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -54,7 +54,16 @@ struct inotify_event
#define IN_Q_OVERFLOW 0x00004000 /* Event queued overflowed. */
#define IN_IGNORED 0x00008000 /* File was ignored. */
+/* Helper events. */
+#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
+#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
+
/* Special flags. */
+#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
+ directory. */
+#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */
+#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already
+ existing watch. */
#define IN_ISDIR 0x40000000 /* Event occurred against dir. */
#define IN_ONESHOT 0x80000000 /* Only send event once. */