summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-11-05 21:59:39 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-11-05 21:59:39 +0000
commite1f16731efe07563f0b157a53890016ddcae2647 (patch)
tree6ac8ad497adf74cbe632d58cb9eec942b564f28e /legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c
parentfd2993a86f2eb1ff11dc217b7f4bdb6761a1eb63 (diff)
ecore: remove non-sys/inotify.h codepaths
sys/inotify.h was added to glibc 2.4 in 2006. Patch by: Adrian Bunk SVN revision: 78933
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c
index 7701e1f7e2..2f75187340 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -22,18 +22,7 @@
22 22
23#ifdef HAVE_INOTIFY 23#ifdef HAVE_INOTIFY
24 24
25#ifdef HAVE_SYS_INOTIFY 25#include <sys/inotify.h>
26# include <sys/inotify.h>
27#else
28# include <asm/unistd.h>
29# include <linux/inotify.h>
30#endif
31
32#ifndef HAVE_SYS_INOTIFY
33static inline int inotify_init(void);
34static inline int inotify_add_watch(int fd, const char *name, __u32 mask);
35static inline int inotify_rm_watch(int fd, __u32 wd);
36#endif
37 26
38 27
39typedef struct _Ecore_File_Monitor_Inotify Ecore_File_Monitor_Inotify; 28typedef struct _Ecore_File_Monitor_Inotify Ecore_File_Monitor_Inotify;
@@ -300,26 +289,6 @@ _ecore_file_monitor_inotify_monitor(Ecore_File_Monitor *em, const char *path)
300 return 1; 289 return 1;
301} 290}
302 291
303#ifndef HAVE_SYS_INOTIFY
304static inline int
305inotify_init(void)
306{
307 return syscall(__NR_inotify_init);
308}
309
310static inline int
311inotify_add_watch(int fd, const char *name, __u32 mask)
312{
313 return syscall(__NR_inotify_add_watch, fd, name, mask);
314}
315
316static inline int
317inotify_rm_watch(int fd, __u32 wd)
318{
319 return syscall(__NR_inotify_rm_watch, fd, wd);
320}
321#endif
322
323#if 0 292#if 0
324static void 293static void
325_ecore_file_monitor_inotify_print(char *file, int mask) 294_ecore_file_monitor_inotify_print(char *file, int mask)