Home
last modified time | relevance | path

Searched refs:fs_req (Results 1 – 6 of 6) sorted by relevance

/third_party/libuv/test/
Dbenchmark-fs-stat.c41 uv_fs_t fs_req; member
84 static void stat_cb(uv_fs_t* fs_req) { in stat_cb() argument
85 struct async_req* req = container_of(fs_req, struct async_req, fs_req); in stat_cb()
86 uv_fs_req_cleanup(&req->fs_req); in stat_cb()
88 uv_fs_stat(uv_default_loop(), &req->fs_req, req->path, stat_cb); in stat_cb()
107 uv_fs_stat(uv_default_loop(), &req->fs_req, req->path, stat_cb); in async_bench()
Dtest-queue-foreach-delete.c154 uv_fs_t fs_req; in helper_timer_cb() local
157 r = uv_fs_utime(thandle->loop, &fs_req, watched_dir, 0, 0, NULL); in helper_timer_cb()
159 ASSERT(fs_req.result == 0); in helper_timer_cb()
160 ASSERT(fs_req.fs_type == UV_FS_UTIME); in helper_timer_cb()
161 ASSERT(strcmp(fs_req.path, watched_dir) == 0); in helper_timer_cb()
162 uv_fs_req_cleanup(&fs_req); in helper_timer_cb()
Dtest-spawn.c316 uv_fs_t fs_req; in TEST_IMPL() local
325 r = uv_fs_open(NULL, &fs_req, "stdout_file", O_CREAT | O_RDWR, in TEST_IMPL()
328 uv_fs_req_cleanup(&fs_req); in TEST_IMPL()
348 r = uv_fs_read(NULL, &fs_req, file, &buf, 1, 0, NULL); in TEST_IMPL()
350 uv_fs_req_cleanup(&fs_req); in TEST_IMPL()
352 r = uv_fs_close(NULL, &fs_req, file, NULL); in TEST_IMPL()
354 uv_fs_req_cleanup(&fs_req); in TEST_IMPL()
370 uv_fs_t fs_req; in TEST_IMPL() local
379 r = uv_fs_open(NULL, &fs_req, "stdout_file", O_CREAT | O_RDWR, in TEST_IMPL()
382 uv_fs_req_cleanup(&fs_req); in TEST_IMPL()
[all …]
Dtest-thread.c41 struct fs_req { struct
58 static void fs_do(struct fs_req* req); argument
95 static void fs_do(struct fs_req* req) { in fs_do()
104 struct fs_req* req = container_of(handle, struct fs_req, handle); in fs_cb()
/third_party/libuv/src/
Dfs-poll.c45 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()
180 if (uv_fs_stat(ctx->loop, &ctx->fs_req, ctx->path, poll_cb)) in timer_cb()
191 ctx = container_of(req, struct poll_ctx, fs_req); in poll_cb()
/third_party/libuv/src/unix/
Dfs.c1266 uv_fs_t fs_req; in uv__fs_copyfile() local
1283 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL); in uv__fs_copyfile()
1284 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile()
1302 &fs_req, in uv__fs_copyfile()
1307 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile()
1382 uv_fs_sendfile(NULL, &fs_req, dstfd, srcfd, in_offset, bytes_chunk, NULL); in uv__fs_copyfile()
1383 bytes_written = fs_req.result; in uv__fs_copyfile()
1384 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile()
1418 uv_fs_unlink(NULL, &fs_req, req->new_path, NULL); in uv__fs_copyfile()
1420 uv_fs_req_cleanup(&fs_req); in uv__fs_copyfile()