Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sys
File: inotify.h
/* Copyright (C) 2005-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_INOTIFY_H
[17] Fix | Delete
#define _SYS_INOTIFY_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <stdint.h>
[20] Fix | Delete
[21] Fix | Delete
/* Get the platform-dependent flags. */
[22] Fix | Delete
#include <bits/inotify.h>
[23] Fix | Delete
[24] Fix | Delete
[25] Fix | Delete
/* Structure describing an inotify event. */
[26] Fix | Delete
struct inotify_event
[27] Fix | Delete
{
[28] Fix | Delete
int wd; /* Watch descriptor. */
[29] Fix | Delete
uint32_t mask; /* Watch mask. */
[30] Fix | Delete
uint32_t cookie; /* Cookie to synchronize two events. */
[31] Fix | Delete
uint32_t len; /* Length (including NULs) of name. */
[32] Fix | Delete
char name __flexarr; /* Name. */
[33] Fix | Delete
};
[34] Fix | Delete
[35] Fix | Delete
[36] Fix | Delete
/* Supported events suitable for MASK parameter of INOTIFY_ADD_WATCH. */
[37] Fix | Delete
#define IN_ACCESS 0x00000001 /* File was accessed. */
[38] Fix | Delete
#define IN_MODIFY 0x00000002 /* File was modified. */
[39] Fix | Delete
#define IN_ATTRIB 0x00000004 /* Metadata changed. */
[40] Fix | Delete
#define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed. */
[41] Fix | Delete
#define IN_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed. */
[42] Fix | Delete
#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
[43] Fix | Delete
#define IN_OPEN 0x00000020 /* File was opened. */
[44] Fix | Delete
#define IN_MOVED_FROM 0x00000040 /* File was moved from X. */
[45] Fix | Delete
#define IN_MOVED_TO 0x00000080 /* File was moved to Y. */
[46] Fix | Delete
#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
[47] Fix | Delete
#define IN_CREATE 0x00000100 /* Subfile was created. */
[48] Fix | Delete
#define IN_DELETE 0x00000200 /* Subfile was deleted. */
[49] Fix | Delete
#define IN_DELETE_SELF 0x00000400 /* Self was deleted. */
[50] Fix | Delete
#define IN_MOVE_SELF 0x00000800 /* Self was moved. */
[51] Fix | Delete
[52] Fix | Delete
/* Events sent by the kernel. */
[53] Fix | Delete
#define IN_UNMOUNT 0x00002000 /* Backing fs was unmounted. */
[54] Fix | Delete
#define IN_Q_OVERFLOW 0x00004000 /* Event queued overflowed. */
[55] Fix | Delete
#define IN_IGNORED 0x00008000 /* File was ignored. */
[56] Fix | Delete
[57] Fix | Delete
/* Helper events. */
[58] Fix | Delete
#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
[59] Fix | Delete
#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
[60] Fix | Delete
[61] Fix | Delete
/* Special flags. */
[62] Fix | Delete
#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
[63] Fix | Delete
directory. */
[64] Fix | Delete
#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */
[65] Fix | Delete
#define IN_EXCL_UNLINK 0x04000000 /* Exclude events on unlinked
[66] Fix | Delete
objects. */
[67] Fix | Delete
#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already
[68] Fix | Delete
existing watch. */
[69] Fix | Delete
#define IN_ISDIR 0x40000000 /* Event occurred against dir. */
[70] Fix | Delete
#define IN_ONESHOT 0x80000000 /* Only send event once. */
[71] Fix | Delete
[72] Fix | Delete
/* All events which a program can wait on. */
[73] Fix | Delete
#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE \
[74] Fix | Delete
| IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM \
[75] Fix | Delete
| IN_MOVED_TO | IN_CREATE | IN_DELETE \
[76] Fix | Delete
| IN_DELETE_SELF | IN_MOVE_SELF)
[77] Fix | Delete
[78] Fix | Delete
[79] Fix | Delete
__BEGIN_DECLS
[80] Fix | Delete
[81] Fix | Delete
/* Create and initialize inotify instance. */
[82] Fix | Delete
extern int inotify_init (void) __THROW;
[83] Fix | Delete
[84] Fix | Delete
/* Create and initialize inotify instance. */
[85] Fix | Delete
extern int inotify_init1 (int __flags) __THROW;
[86] Fix | Delete
[87] Fix | Delete
/* Add watch of object NAME to inotify instance FD. Notify about
[88] Fix | Delete
events specified by MASK. */
[89] Fix | Delete
extern int inotify_add_watch (int __fd, const char *__name, uint32_t __mask)
[90] Fix | Delete
__THROW;
[91] Fix | Delete
[92] Fix | Delete
/* Remove the watch specified by WD from the inotify instance FD. */
[93] Fix | Delete
extern int inotify_rm_watch (int __fd, int __wd) __THROW;
[94] Fix | Delete
[95] Fix | Delete
__END_DECLS
[96] Fix | Delete
[97] Fix | Delete
#endif /* sys/inotify.h */
[98] Fix | Delete
[99] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function