Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
Go to the source code of this file.
Macros | |
#define | EV_OOBAND EV_FLAG1 |
Functions | |
static void | uv__fs_event (uv_loop_t *loop, uv__io_t *w, unsigned int fflags) |
int | uv__kqueue_init (uv_loop_t *loop) |
int | uv__io_fork (uv_loop_t *loop) |
int | uv__io_check_fd (uv_loop_t *loop, int fd) |
void | uv__io_poll (uv_loop_t *loop, int timeout) |
void | uv__platform_invalidate_fd (uv_loop_t *loop, int fd) |
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) |
Definition at line 444 of file kqueue.c.
References container_of, fcntl, handle, loop, NULL, path, UV_CHANGE, UV_RENAME, and w.
Referenced by uv__io_poll(), and uv_fs_event_start().
void uv__fs_event_close | ( | uv_fs_event_t * | handle | ) |
Definition at line 66 of file kqueue.c.
References err, loop, NULL, uv__free(), uv__kqueue_init(), and uv__store_relaxed.
Definition at line 112 of file kqueue.c.
References ARRAY_SIZE, assert(), count, EBADF, EINTR, ENOENT, EV_OOBAND, fd, filter(), flags, i, loop, nfds, NULL, op, QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_INIT, QUEUE_REMOVE, SAVE_ERRNO, timeout, timespec::tv_nsec, timespec::tv_sec, uv__fs_event(), uv__get_internal_fields, uv__metrics_set_provider_entry_time(), uv__metrics_update_idle_time(), UV__POLLPRI, UV__POLLRDHUP, UV_LOOP_BLOCK_SIGPROF, UV_METRICS_IDLE_TIME, and w.
Definition at line 51 of file kqueue.c.
References loop, uv__cloexec, and UV__ERR.
Referenced by uv__io_fork(), and uv__platform_loop_init().
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 | ||
) |
Definition at line 492 of file kqueue.c.
References cb, fd, flags, fstat, handle, NULL, O_RDONLY, path, r, uv__close_nocheckstdio(), UV__ERR, uv__free(), uv__fs_event(), uv__fsevents_init(), uv__handle_start, uv__io_init(), uv__io_start(), uv__is_active, uv__load_relaxed, and uv__strdup().
int uv_fs_event_stop | ( | uv_fs_event_t * | handle | ) |
Definition at line 555 of file kqueue.c.
References handle, NULL, r, uv__close(), uv__free(), uv__fsevents_close(), uv__handle_stop, uv__io_close(), uv__is_active, and uv__load_relaxed.
Referenced by uv__fs_event_close().