28 #define uv__make_close_pending(h) uv_want_endgame((h)->loop, (h))
150 required_len = strlen(
ctx->path);
151 if (required_len >= *
size) {
152 *
size = required_len + 1;
157 *
size = required_len;
158 buffer[required_len] =
'\0';
197 if (
req->result != 0) {
198 if (
ctx->busy_polling !=
req->result) {
199 ctx->poll_cb(
ctx->parent_handle,
203 ctx->busy_polling =
req->result;
210 if (
ctx->busy_polling != 0)
215 ctx->busy_polling = 1;
259 return a->st_ctim.tv_nsec ==
b->st_ctim.tv_nsec
260 &&
a->st_mtim.tv_nsec ==
b->st_mtim.tv_nsec
261 &&
a->st_birthtim.tv_nsec ==
b->st_birthtim.tv_nsec
262 &&
a->st_ctim.tv_sec ==
b->st_ctim.tv_sec
263 &&
a->st_mtim.tv_sec ==
b->st_mtim.tv_sec
264 &&
a->st_birthtim.tv_sec ==
b->st_birthtim.tv_sec
265 &&
a->st_size ==
b->st_size
266 &&
a->st_mode ==
b->st_mode
267 &&
a->st_uid ==
b->st_uid
268 &&
a->st_gid ==
b->st_gid
269 &&
a->st_ino ==
b->st_ino
270 &&
a->st_dev ==
b->st_dev
271 &&
a->st_flags ==
b->st_flags
272 &&
a->st_gen ==
b->st_gen;
static mcore_handle handle
const lzma_allocator const uint8_t size_t uint8_t * out
static static fork const void static count static fd const char const char static newpath const char static path const char path
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
static void timer_close_cb(uv_handle_t *handle)
int uv_fs_poll_init(uv_loop_t *loop, uv_fs_poll_t *handle)
static uv_stat_t zero_statbuf
static void timer_cb(uv_timer_t *timer)
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_getpath(uv_fs_poll_t *handle, char *buffer, size_t *size)
void uv__fs_poll_close(uv_fs_poll_t *handle)
int uv_fs_poll_stop(uv_fs_poll_t *handle)
static int statbuf_eq(const uv_stat_t *a, const uv_stat_t *b)
static void poll_cb(uv_fs_t *req)
#define uv__handle_close(handle)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
assert(limit<=UINT32_MAX/2)
#define container_of(ptr, type, member)
struct poll_ctx * previous
uv_fs_poll_t * parent_handle
void uv__make_close_pending(uv_handle_t *handle)
void uv__fs_poll_endgame(uv_loop_t *loop, uv_fs_poll_t *handle)
void error(const char *msg)
void * uv__calloc(size_t count, size_t size)
#define uv__handle_unref(h)
#define uv__is_closing(h)
#define uv__handle_init(loop_, h, type_)
#define uv__handle_stop(h)
#define uv__handle_start(h)
UV_EXTERN int uv_is_active(const uv_handle_t *handle)
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
UV_EXTERN void uv_fs_req_cleanup(uv_fs_t *req)
void(* uv_fs_poll_cb)(uv_fs_poll_t *handle, int status, const uv_stat_t *prev, const uv_stat_t *curr)
UV_EXTERN int uv_fs_stat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN uint64_t uv_now(const uv_loop_t *)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)