|
Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"#include "uv/tree.h"#include "internal.h"#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <errno.h>#include <sys/inotify.h>#include <sys/types.h>#include <unistd.h>Go to the source code of this file.
Classes | |
| struct | watcher_list |
| struct | watcher_root |
Macros | |
| #define | CAST(p) ((struct watcher_root*)(p)) |
Functions | |
| static int | compare_watchers (const struct watcher_list *a, const struct watcher_list *b) |
| static void | uv__inotify_read (uv_loop_t *loop, uv__io_t *w, unsigned int revents) |
| static void | maybe_free_watcher_list (struct watcher_list *w, uv_loop_t *loop) |
| static int | init_inotify (uv_loop_t *loop) |
| int | uv__inotify_fork (uv_loop_t *loop, void *old_watchers) |
| static struct watcher_list * | find_watcher (uv_loop_t *loop, int wd) |
| int | uv_fs_event_init (uv_loop_t *loop, uv_fs_event_t *handle) |
| int | uv_fs_event_start (uv_fs_event_t *handle, uv_fs_event_cb cb, const char *path, unsigned int flags) |
| int | uv_fs_event_stop (uv_fs_event_t *handle) |
| void | uv__fs_event_close (uv_fs_event_t *handle) |
| #define CAST | ( | p | ) | ((struct watcher_root*)(p)) |
Definition at line 47 of file linux-inotify.c.
|
static |
Definition at line 50 of file linux-inotify.c.
|
static |
Definition at line 151 of file linux-inotify.c.
References CAST, loop, RB_FIND, and w.
Referenced by uv__inotify_read(), uv_fs_event_start(), and uv_fs_event_stop().
Definition at line 68 of file linux-inotify.c.
References fd, loop, UV__ERR, uv__inotify_read(), uv__io_init(), and uv__io_start().
Referenced by uv_fs_event_start().
|
static |
Definition at line 157 of file linux-inotify.c.
References CAST, loop, QUEUE_EMPTY, RB_REMOVE, uv__free(), and w.
Referenced by uv__inotify_fork(), uv__inotify_read(), and uv_fs_event_stop().
| void uv__fs_event_close | ( | uv_fs_event_t * | handle | ) |
Definition at line 86 of file linux-inotify.c.
References assert(), CAST, err, handle, loop, maybe_free_watcher_list(), NULL, queue, QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_INIT, QUEUE_INSERT_TAIL, QUEUE_MOVE, QUEUE_REMOVE, RB_FOREACH_SAFE, uv__free(), uv__strdup(), uv_fs_event_start(), and uv_fs_event_stop().
Referenced by uv__io_fork().
Definition at line 167 of file linux-inotify.c.
References assert(), e, EAGAIN, EINTR, find_watcher(), h, loop, maybe_free_watcher_list(), NULL, p, path, queue, QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_INSERT_TAIL, QUEUE_MOVE, QUEUE_REMOVE, read(), UV_CHANGE, UV_RENAME, and w.
Referenced by init_inotify().
| int uv_fs_event_init | ( | uv_loop_t * | loop, |
| uv_fs_event_t * | handle | ||
| ) |
Definition at line 243 of file linux-inotify.c.
References handle, loop, and uv__handle_init.
| int uv_fs_event_start | ( | uv_fs_event_t * | handle, |
| uv_fs_event_cb | cb, | ||
| const char * | path, | ||
| unsigned int | flags | ||
| ) |
Definition at line 249 of file linux-inotify.c.
References CAST, cb, err, find_watcher(), handle, init_inotify(), len, memcpy(), NULL, path, QUEUE_INIT, QUEUE_INSERT_TAIL, RB_INSERT, UV__ERR, uv__handle_start, uv__is_active, uv__malloc(), and w.
Referenced by uv__inotify_fork().
| int uv_fs_event_stop | ( | uv_fs_event_t * | handle | ) |
Definition at line 305 of file linux-inotify.c.
References assert(), find_watcher(), handle, maybe_free_watcher_list(), NULL, QUEUE_REMOVE, uv__handle_stop, uv__is_active, and w.
Referenced by uv__fs_event_close(), and uv__inotify_fork().