Rizin
unix-like reverse engineering framework and cli tools
|
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "uv.h"
#include "internal.h"
#include "handle-inl.h"
#include "req-inl.h"
Go to the source code of this file.
Functions | |
static void | uv_fs_event_queue_readdirchanges (uv_loop_t *loop, uv_fs_event_t *handle) |
static void | uv_relative_path (const WCHAR *filename, const WCHAR *dir, WCHAR **relpath) |
static int | uv_split_path (const WCHAR *filename, WCHAR **dir, WCHAR **file) |
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) |
static int | file_info_cmp (WCHAR *str, WCHAR *file_name, size_t file_name_len) |
void | uv_process_fs_event_req (uv_loop_t *loop, uv_req_t *req, uv_fs_event_t *handle) |
void | uv_fs_event_close (uv_loop_t *loop, uv_fs_event_t *handle) |
void | uv_fs_event_endgame (uv_loop_t *loop, uv_fs_event_t *handle) |
Variables | |
const unsigned int | uv_directory_watcher_buffer_size = 4096 |
Definition at line 407 of file fs-event.c.
References file_name, NULL, and cmd_descs_generate::str.
Referenced by uv_process_fs_event_req().
void uv_fs_event_close | ( | uv_loop_t * | loop, |
uv_fs_event_t * | handle | ||
) |
Definition at line 585 of file fs-event.c.
References handle, loop, uv__handle_closing, uv_fs_event_stop(), and uv_want_endgame().
Referenced by uv_close().
void uv_fs_event_endgame | ( | uv_loop_t * | loop, |
uv_fs_event_t * | handle | ||
) |
Definition at line 597 of file fs-event.c.
References assert(), handle, NULL, uv__free(), uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
int uv_fs_event_init | ( | uv_loop_t * | loop, |
uv_fs_event_t * | handle | ||
) |
Definition at line 140 of file fs-event.c.
References handle, INVALID_HANDLE_VALUE, loop, NULL, uv__handle_init, and UV_REQ_INIT.
Referenced by main().
|
static |
Definition at line 36 of file fs-event.c.
References assert(), FALSE, handle, INVALID_HANDLE_VALUE, loop, memset(), NULL, SET_REQ_ERROR, TRUE, uv_directory_watcher_buffer_size, UV_FS_EVENT_RECURSIVE, and uv_insert_pending_req().
Referenced by uv_process_fs_event_req().
int uv_fs_event_start | ( | uv_fs_event_t * | handle, |
uv_fs_event_cb | cb, | ||
const char * | path, | ||
unsigned int | flags | ||
) |
Definition at line 156 of file fs-event.c.
References assert(), cb, test-lz4-speed::cwd, DWORD, EINTR, error(), FALSE, fd, FD_SET, FD_ZERO, flags, handle, INVALID_HANDLE_VALUE, memset(), NULL, path, readlink, select, snprintf, TRUE, uv__free(), uv__handle_start, uv__handle_stop, uv__io_init(), uv__io_start(), uv__is_active, uv__malloc(), uv__strdup(), uv__strscpy(), uv_directory_watcher_buffer_size, uv_fatal_error(), UV_FS_EVENT_RECURSIVE, uv_split_path(), and uv_translate_sys_error().
Referenced by main().
int uv_fs_event_stop | ( | uv_fs_event_t * | handle | ) |
Definition at line 372 of file fs-event.c.
References handle, INVALID_HANDLE_VALUE, NULL, uv__close(), uv__free(), uv__handle_stop, uv__io_close(), and uv__is_active.
Referenced by uv_fs_event_close().
void uv_process_fs_event_req | ( | uv_loop_t * | loop, |
uv_req_t * | req, | ||
uv_fs_event_t * | handle | ||
) |
Definition at line 426 of file fs-event.c.
References assert(), DWORD, err, file_info_cmp(), GET_REQ_ERROR, handle, L, loop, NULL, req, REQ_SUCCESS, uv__convert_utf16_to_utf8(), uv__free(), uv__is_active, uv__malloc(), UV_CHANGE, uv_fatal_error(), uv_fs_event_queue_readdirchanges(), UV_HANDLE_CLOSING, uv_relative_path(), UV_RENAME, uv_translate_sys_error(), and uv_want_endgame().
Referenced by uv_process_reqs().
Definition at line 66 of file fs-event.c.
References assert(), L, uv__malloc(), and uv_fatal_error().
Referenced by uv_process_fs_event_req().
Definition at line 83 of file fs-event.c.
References DWORD, i, L, len, NULL, uv__free(), uv__malloc(), and uv_fatal_error().
Referenced by uv_fs_event_start().
Definition at line 33 of file fs-event.c.
Referenced by uv_fs_event_queue_readdirchanges(), and uv_fs_event_start().