Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "uv-common.h"
#include "unix/internal.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | poll_ctx |
Functions | |
static int | statbuf_eq (const uv_stat_t *a, const uv_stat_t *b) |
static void | poll_cb (uv_fs_t *req) |
static void | timer_cb (uv_timer_t *timer) |
static void | timer_close_cb (uv_handle_t *handle) |
int | uv_fs_poll_init (uv_loop_t *loop, uv_fs_poll_t *handle) |
int | uv_fs_poll_start (uv_fs_poll_t *handle, uv_fs_poll_cb cb, const char *path, unsigned int interval) |
int | uv_fs_poll_stop (uv_fs_poll_t *handle) |
int | uv_fs_poll_getpath (uv_fs_poll_t *handle, char *buffer, size_t *size) |
void | uv__fs_poll_close (uv_fs_poll_t *handle) |
Variables | |
static uv_stat_t | zero_statbuf |
|
static |
Definition at line 185 of file fs-poll.c.
References container_of, poll_ctx::fs_req, handle, poll_ctx::interval, out, req, poll_ctx::statbuf, statbuf_eq(), timer_cb(), timer_close_cb(), uv__is_closing, uv_close(), uv_fs_req_cleanup(), uv_is_active(), uv_now(), uv_timer_start(), and zero_statbuf.
Referenced by timer_cb(), uv_fs_poll_start(), and uv_poll_start().
|
static |
Definition at line 172 of file fs-poll.c.
References assert(), container_of, NULL, poll_cb(), poll_ctx::timer_handle, uv_fs_stat(), and uv_now().
Referenced by poll_cb().
|
static |
Definition at line 234 of file fs-poll.c.
References assert(), container_of, handle, NULL, poll_ctx::previous, poll_ctx::timer_handle, uv__free(), uv__is_closing, and uv__make_close_pending().
Referenced by poll_cb(), and uv_fs_poll_stop().
void uv__fs_poll_close | ( | uv_fs_poll_t * | handle | ) |
Definition at line 164 of file fs-poll.c.
References handle, NULL, uv__make_close_pending(), and uv_fs_poll_stop().
Referenced by uv_close().
int uv_fs_poll_getpath | ( | uv_fs_poll_t * | handle, |
char * | buffer, | ||
size_t * | size | ||
) |
Definition at line 138 of file fs-poll.c.
References assert(), handle, memcpy(), NULL, and uv_is_active().
int uv_fs_poll_init | ( | uv_loop_t * | loop, |
uv_fs_poll_t * | handle | ||
) |
int uv_fs_poll_start | ( | uv_fs_poll_t * | handle, |
uv_fs_poll_cb | cb, | ||
const char * | path, | ||
unsigned int | interval | ||
) |
Definition at line 66 of file fs-poll.c.
References cb, err, error(), handle, poll_ctx::interval, len, loop, memcpy(), NULL, path, poll_cb(), uv__calloc(), uv__free(), uv__handle_start, uv__handle_unref, uv_fs_stat(), UV_HANDLE_INTERNAL, uv_is_active(), uv_now(), and uv_timer_init().
int uv_fs_poll_stop | ( | uv_fs_poll_t * | handle | ) |
Definition at line 116 of file fs-poll.c.
References assert(), handle, NULL, timer_close_cb(), uv__handle_stop, uv_close(), and uv_is_active().
Referenced by uv__fs_poll_close().