diff options
author | Vladimir Zapolskiy <vzapolskiy@gmail.com> | 2010-06-01 20:02:54 +0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-06-01 12:39:18 -0700 |
commit | a2e5630af426f85fdd8721b2820786d9bd2aa695 (patch) | |
tree | 56dca11b184277aaa766122e46994ebc1d456c70 /libc/sysdeps/linux/common/sys | |
parent | 83333e9c873e4eca6b2c945f7770b1f5373b0427 (diff) |
inotify: add inotify_init1 system call support
This patch introduces support for inotify_init1 system call, found
since Linux 2.6.27.
Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/sys')
-rw-r--r-- | libc/sysdeps/linux/common/sys/inotify.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/sys/inotify.h b/libc/sysdeps/linux/common/sys/inotify.h index 0131db9d3..dc4e19da1 100644 --- a/libc/sysdeps/linux/common/sys/inotify.h +++ b/libc/sysdeps/linux/common/sys/inotify.h @@ -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) |