mirror of
https://git.code.sf.net/p/minidlna/git
synced 2024-10-31 16:58:06 +00:00
c5c4d9e169
When a symlink to a direcotry is deleted inotify cannot tell it from a regular file rendering all its children orphans. This sometimes leads to an unexpected effect - they may appear later in a newly created directory when it gets an id used by the deleted symlink.
14 lines
486 B
C
14 lines
486 B
C
int monitor_insert_file(const char *name, const char *path);
|
|
int monitor_insert_directory(int fd, char *name, const char * path);
|
|
int monitor_remove_file(const char * path);
|
|
int monitor_remove_tree(const char * path);
|
|
int monitor_remove_directory(int fd, const char * path);
|
|
|
|
#if defined(HAVE_INOTIFY) || defined(HAVE_KQUEUE)
|
|
#define HAVE_WATCH 1
|
|
int monitor_add_watch(int, const char *);
|
|
int monitor_remove_watch(int, const char *);
|
|
void monitor_start();
|
|
void monitor_stop();
|
|
#endif
|