Back to index

glibc  2.9
Classes | Defines | Enumerations | Functions
inotify.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  inotify_event

Defines

#define IN_CLOEXEC   IN_CLOEXEC
#define IN_NONBLOCK   IN_NONBLOCK
#define IN_ACCESS   0x00000001 /* File was accessed. */
#define IN_MODIFY   0x00000002 /* File was modified. */
#define IN_ATTRIB   0x00000004 /* Metadata changed. */
#define IN_CLOSE_WRITE   0x00000008 /* Writtable file was closed. */
#define IN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed. */
#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
#define IN_OPEN   0x00000020 /* File was opened. */
#define IN_MOVED_FROM   0x00000040 /* File was moved from X. */
#define IN_MOVED_TO   0x00000080 /* File was moved to Y. */
#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
#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. */
#define IN_UNMOUNT   0x00002000 /* Backing fs was unmounted. */
#define IN_Q_OVERFLOW   0x00004000 /* Event queued overflowed. */
#define IN_IGNORED   0x00008000 /* File was ignored. */
#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
#define IN_ONLYDIR
#define IN_DONT_FOLLOW   0x02000000 /* Do not follow a sym link. */
#define IN_MASK_ADD
#define IN_ISDIR   0x40000000 /* Event occurred against dir. */
#define IN_ONESHOT   0x80000000 /* Only send event once. */
#define IN_ALL_EVENTS

Enumerations

enum  { IN_CLOEXEC = 02000000, IN_CLOEXEC = 02000000, IN_NONBLOCK }

Functions

__BEGIN_DECLS int inotify_init (void) __THROW
int inotify_init1 (int __flags) __THROW
int inotify_add_watch (int __fd, const char *__name, uint32_t __mask) __THROW
int inotify_rm_watch (int __fd, uint32_t __wd) __THROW

Class Documentation

struct inotify_event

Definition at line 36 of file inotify.h.

Collaboration diagram for inotify_event:
Class Members
char name __flexarr
uint32_t cookie
uint32_t len
uint32_t mask
int wd

Define Documentation

#define IN_ACCESS   0x00000001 /* File was accessed. */

Definition at line 47 of file inotify.h.

#define IN_ALL_EVENTS
#define IN_ATTRIB   0x00000004 /* Metadata changed. */

Definition at line 49 of file inotify.h.

#define IN_CLOEXEC   IN_CLOEXEC

Definition at line 29 of file inotify.h.

#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */

Definition at line 68 of file inotify.h.

#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */

Definition at line 68 of file inotify.h.

#define IN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed. */

Definition at line 51 of file inotify.h.

#define IN_CLOSE_WRITE   0x00000008 /* Writtable file was closed. */

Definition at line 50 of file inotify.h.

#define IN_CREATE   0x00000100 /* Subfile was created. */

Definition at line 57 of file inotify.h.

#define IN_DELETE   0x00000200 /* Subfile was deleted. */

Definition at line 58 of file inotify.h.

#define IN_DELETE_SELF   0x00000400 /* Self was deleted. */

Definition at line 59 of file inotify.h.

#define IN_DONT_FOLLOW   0x02000000 /* Do not follow a sym link. */

Definition at line 73 of file inotify.h.

#define IN_IGNORED   0x00008000 /* File was ignored. */

Definition at line 65 of file inotify.h.

#define IN_ISDIR   0x40000000 /* Event occurred against dir. */

Definition at line 75 of file inotify.h.

#define IN_MASK_ADD
Value:
0x20000000    /* Add to the mask of an already
                                      existing watch.  */

Definition at line 74 of file inotify.h.

#define IN_MODIFY   0x00000002 /* File was modified. */

Definition at line 48 of file inotify.h.

#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */

Definition at line 69 of file inotify.h.

#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */

Definition at line 69 of file inotify.h.

#define IN_MOVE_SELF   0x00000800 /* Self was moved. */

Definition at line 60 of file inotify.h.

#define IN_MOVED_FROM   0x00000040 /* File was moved from X. */

Definition at line 54 of file inotify.h.

#define IN_MOVED_TO   0x00000080 /* File was moved to Y. */

Definition at line 55 of file inotify.h.

#define IN_NONBLOCK   IN_NONBLOCK
#define IN_ONESHOT   0x80000000 /* Only send event once. */

Definition at line 76 of file inotify.h.

#define IN_ONLYDIR
Value:
0x01000000    /* Only watch the path if it is a
                                      directory.  */

Definition at line 72 of file inotify.h.

#define IN_OPEN   0x00000020 /* File was opened. */

Definition at line 53 of file inotify.h.

#define IN_Q_OVERFLOW   0x00004000 /* Event queued overflowed. */

Definition at line 64 of file inotify.h.

#define IN_UNMOUNT   0x00002000 /* Backing fs was unmounted. */

Definition at line 63 of file inotify.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
IN_CLOEXEC 
IN_CLOEXEC 
IN_NONBLOCK 

Definition at line 26 of file inotify.h.

  {
    IN_CLOEXEC = 02000000,
#define IN_CLOEXEC IN_CLOEXEC
    IN_NONBLOCK = 04000
#define IN_NONBLOCK IN_NONBLOCK
  };

Function Documentation

int inotify_add_watch ( int  __fd,
const char *  __name,
uint32_t  __mask 
)
int inotify_init1 ( int  __flags)
int inotify_rm_watch ( int  __fd,
uint32_t  __wd 
)