diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/inotify.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/inotify.c b/src/inotify.c index 290701349ef..d43b959747c 100644 --- a/src/inotify.c +++ b/src/inotify.c | |||
| @@ -41,7 +41,21 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | #ifndef IN_ONLYDIR | 41 | #ifndef IN_ONLYDIR |
| 42 | # define IN_ONLYDIR 0 | 42 | # define IN_ONLYDIR 0 |
| 43 | #endif | 43 | #endif |
| 44 | #define INOTIFY_DEFAULT_MASK (IN_ALL_EVENTS | IN_EXCL_UNLINK) | 44 | #define INOTIFY_DEFAULT_MASK \ |
| 45 | (IN_ATTRIB | \ | ||
| 46 | /* IN_ACCESS | */ \ | ||
| 47 | /* IN_CLOSE_WRITE | */ \ | ||
| 48 | /* IN_CLOSE_NOWRITE | */ \ | ||
| 49 | IN_CREATE | \ | ||
| 50 | IN_DELETE | \ | ||
| 51 | IN_DELETE_SELF | \ | ||
| 52 | IN_IGNORED | \ | ||
| 53 | IN_MODIFY | \ | ||
| 54 | IN_MOVE_SELF | \ | ||
| 55 | IN_MOVED_FROM | \ | ||
| 56 | IN_MOVED_TO | \ | ||
| 57 | /* IN_OPEN | */ \ | ||
| 58 | IN_EXCL_UNLINK) | ||
| 45 | 59 | ||
| 46 | /* File handle for inotify. */ | 60 | /* File handle for inotify. */ |
| 47 | static int inotifyfd = -1; | 61 | static int inotifyfd = -1; |