chiark / gitweb /
Prep v239: Unmask inotify event stuff, now ustilized by the sd_event struct.
authorSven Eden <yamakuzure@gmx.net>
Mon, 20 Aug 2018 17:04:20 +0000 (19:04 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/basic/fs-util.h
src/libelogind/sd-event/sd-event.c

index 98be9ba07352445ee69da3fbcb46417443c475b0..940853f424c105587b3c0f829d00760d3a742e33 100644 (file)
@@ -64,7 +64,6 @@ int var_tmp_dir(const char **ret);
 
 int unlink_or_warn(const char *filename);
 
-#if 0 /// UNNEEDED by elogind
 #define INOTIFY_EVENT_MAX (sizeof(struct inotify_event) + NAME_MAX + 1)
 
 #define FOREACH_INOTIFY_EVENT(e, buffer, sz) \
@@ -77,9 +76,10 @@ union inotify_event_buffer {
         uint8_t raw[INOTIFY_EVENT_MAX];
 };
 
+#if 0 /// UNNEEDED by elogind
 int inotify_add_watch_fd(int fd, int what, uint32_t mask);
-
 #endif // 0
+
 enum {
         CHASE_PREFIX_ROOT = 1 << 0, /* If set, the specified path will be prefixed by the specified root before beginning the iteration */
         CHASE_NONEXISTENT = 1 << 1, /* If set, it's OK if the path doesn't actually exist. */
index eb5d3effe5c972b67d61d625810cf4ca2a2e54bd..d53b9a70267a062108745a0c0af0c52f88184b96 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "alloc-util.h"
 #include "fd-util.h"
-//#include "fs-util.h"
+#include "fs-util.h"
 #include "hashmap.h"
 #include "list.h"
 #include "macro.h"