Searched refs:fs_req (Results 1 – 6 of 6) sorted by relevance
/libuv/test/ |
H A D | benchmark-fs-stat.c | 41 uv_fs_t fs_req; member 85 static void stat_cb(uv_fs_t* fs_req) { in stat_cb() argument 86 struct async_req* req = container_of(fs_req, struct async_req, fs_req); in stat_cb() 87 uv_fs_req_cleanup(&req->fs_req); in stat_cb() 89 uv_fs_stat(uv_default_loop(), &req->fs_req, req->path, stat_cb); in stat_cb() 109 uv_fs_stat(uv_default_loop(), &req->fs_req, req->path, stat_cb); in async_bench()
|
H A D | test-queue-foreach-delete.c | 155 uv_fs_t fs_req; in helper_timer_cb() local 158 r = uv_fs_utime(thandle->loop, &fs_req, watched_dir, 0, 0, NULL); in helper_timer_cb() 160 ASSERT_OK(fs_req.result); in helper_timer_cb() 161 ASSERT_EQ(fs_req.fs_type, UV_FS_UTIME); in helper_timer_cb() 162 ASSERT_OK(strcmp(fs_req.path, watched_dir)); in helper_timer_cb() 163 uv_fs_req_cleanup(&fs_req); in helper_timer_cb()
|
H A D | test-thread.c | 41 struct fs_req { struct 58 static void fs_do(struct fs_req* req); argument 93 static void fs_do(struct fs_req* req) { in fs_do() 102 struct fs_req* req = container_of(handle, struct fs_req, handle); in fs_cb() 113 struct fs_req fs_reqs[4]; in do_work() 128 struct fs_req* req = fs_reqs + i; in do_work()
|
H A D | test-spawn.c | 319 uv_fs_t fs_req; in TEST_IMPL() local 331 uv_fs_req_cleanup(&fs_req); in TEST_IMPL() 353 uv_fs_req_cleanup(&fs_req); in TEST_IMPL() 357 uv_fs_req_cleanup(&fs_req); in TEST_IMPL() 373 uv_fs_t fs_req; in TEST_IMPL() local 385 uv_fs_req_cleanup(&fs_req); in TEST_IMPL() 430 uv_fs_t fs_req; in TEST_IMPL() local 441 &fs_req, in TEST_IMPL() 496 uv_fs_t fs_req; in TEST_IMPL() local 508 &fs_req, in TEST_IMPL() [all …]
|
/libuv/src/ |
H A D | fs-poll.c | 45 uv_fs_t fs_req; /* TODO(bnoordhuis) mark fs_req internal */ member 99 err = uv_fs_stat(loop, &ctx->fs_req, ctx->path, poll_cb); in uv_fs_poll_start() 183 if (uv_fs_stat(ctx->loop, &ctx->fs_req, ctx->path, poll_cb)) in timer_cb() 194 ctx = container_of(req, struct poll_ctx, fs_req); in poll_cb()
|
/libuv/src/unix/ |
H A D | fs.c | 1242 uv_fs_t fs_req; in uv__fs_copyfile() local 1260 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL); in uv__fs_copyfile() 1261 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile() 1279 &fs_req, in uv__fs_copyfile() 1284 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile() 1400 uv_fs_sendfile(NULL, &fs_req, dstfd, srcfd, in_offset, bytes_chunk, NULL); in uv__fs_copyfile() 1401 bytes_written = fs_req.result; in uv__fs_copyfile() 1402 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile() 1436 uv_fs_unlink(NULL, &fs_req, req->new_path, NULL); in uv__fs_copyfile() 1438 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile()
|
Completed in 20 milliseconds