|
@@ -22,6 +22,16 @@
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
+/* Flags for the parameter of inotify_init1. */
|
|
|
+enum
|
|
|
+ {
|
|
|
+ IN_CLOEXEC = 02000000,
|
|
|
+#define IN_CLOEXEC IN_CLOEXEC
|
|
|
+ IN_NONBLOCK = 04000
|
|
|
+#define IN_NONBLOCK IN_NONBLOCK
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
/* Structure describing an inotify event. */
|
|
|
struct inotify_event
|
|
|
{
|
|
@@ -79,6 +89,9 @@ __BEGIN_DECLS
|
|
|
/* Create and initialize inotify instance. */
|
|
|
extern int inotify_init (void) __THROW;
|
|
|
|
|
|
+/* Create and initialize inotify instance. */
|
|
|
+extern int inotify_init1 (int __flags) __THROW;
|
|
|
+
|
|
|
/* Add watch of object NAME to inotify instance FD. Notify about
|
|
|
events specified by MASK. */
|
|
|
extern int inotify_add_watch (int __fd, const char *__name, uint32_t __mask)
|