|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
|
+/* Copyright (C) 2005-2012 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
@@ -12,24 +12,16 @@
|
|
Lesser General Public License for more details.
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
You should have received a copy of the GNU Lesser General Public
|
|
- License along with the GNU C Library; if not, write to the Free
|
|
+ License along with the GNU C Library; if not, see
|
|
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
+ <http://www.gnu.org/licenses/>. */
|
|
- 02111-1307 USA. */
|
|
|
|
|
|
|
|
#ifndef _SYS_INOTIFY_H
|
|
#ifndef _SYS_INOTIFY_H
|
|
#define _SYS_INOTIFY_H 1
|
|
#define _SYS_INOTIFY_H 1
|
|
|
|
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
|
|
|
|
-
|
|
+/* Get the platform-dependent flags. */
|
|
-/* Flags for the parameter of inotify_init1. */
|
|
+#include <bits/inotify.h>
|
|
-enum
|
|
|
|
- {
|
|
|
|
- IN_CLOEXEC = 02000000,
|
|
|
|
-#define IN_CLOEXEC IN_CLOEXEC
|
|
|
|
- IN_NONBLOCK = 04000
|
|
|
|
-#define IN_NONBLOCK IN_NONBLOCK
|
|
|
|
- };
|
|
|
|
|
|
|
|
|
|
|
|
/* Structure describing an inotify event. */
|
|
/* Structure describing an inotify event. */
|
|
@@ -72,6 +64,8 @@ struct inotify_event
|
|
#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
|
|
#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
|
|
directory. */
|
|
directory. */
|
|
#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */
|
|
#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */
|
|
|
|
+#define IN_EXCL_UNLINK 0x04000000 /* Exclude events on unlinked
|
|
|
|
+ objects. */
|
|
#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already
|
|
#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already
|
|
existing watch. */
|
|
existing watch. */
|
|
#define IN_ISDIR 0x40000000 /* Event occurred against dir. */
|
|
#define IN_ISDIR 0x40000000 /* Event occurred against dir. */
|