Home
last modified time | relevance | path

Searched refs:uv_fs_t (Results 1 – 25 of 52) sorted by relevance

123

/third_party/libuv/docs/code/uvcat/
Dmain.c7 void on_read(uv_fs_t *req);
9 uv_fs_t open_req;
10 uv_fs_t read_req;
11 uv_fs_t write_req;
17 void on_write(uv_fs_t *req) { in on_write()
26 void on_read(uv_fs_t *req) { in on_read()
31 uv_fs_t close_req; in on_read()
41 void on_open(uv_fs_t *req) { in on_open()
/third_party/libuv/test/
Dtest-fs-readdir.c27 static uv_fs_t opendir_req;
28 static uv_fs_t readdir_req;
29 static uv_fs_t closedir_req;
37 uv_fs_t req; in cleanup_test_files()
49 static void empty_closedir_cb(uv_fs_t* req) { in empty_closedir_cb()
57 static void empty_readdir_cb(uv_fs_t* req) { in empty_readdir_cb()
73 static void empty_opendir_cb(uv_fs_t* req) { in empty_opendir_cb()
100 uv_fs_t mkdir_req; in TEST_IMPL()
101 uv_fs_t rmdir_req; in TEST_IMPL()
170 static void non_existing_opendir_cb(uv_fs_t* req) { in non_existing_opendir_cb()
[all …]
Dtest-fs.c99 static uv_fs_t open_req1;
100 static uv_fs_t open_req2;
101 static uv_fs_t read_req;
102 static uv_fs_t write_req;
103 static uv_fs_t unlink_req;
104 static uv_fs_t close_req;
105 static uv_fs_t mkdir_req;
106 static uv_fs_t mkdtemp_req1;
107 static uv_fs_t mkdtemp_req2;
108 static uv_fs_t mkstemp_req1;
[all …]
Dbenchmark-fs-stat.c41 uv_fs_t fs_req;
47 uv_fs_t reqs[MAX_CONCURRENT_REQS]; in warmup()
65 uv_fs_t req; in sync_bench()
84 static void stat_cb(uv_fs_t* fs_req) { in stat_cb()
Dtest-fs-copyfile.c41 static void fail_cb(uv_fs_t* req) { in fail_cb()
45 static void handle_result(uv_fs_t* req) { in handle_result()
46 uv_fs_t stat_req; in handle_result()
72 uv_fs_t req; in touch_file()
101 uv_fs_t req; in TEST_IMPL()
Dtest-fs-open-flags.c40 static uv_fs_t close_req;
41 static uv_fs_t mkdir_req;
42 static uv_fs_t open_req;
43 static uv_fs_t read_req;
44 static uv_fs_t rmdir_req;
45 static uv_fs_t unlink_req;
46 static uv_fs_t write_req;
Dtest-thread.c45 uv_fs_t handle;
59 static void fs_cb(uv_fs_t* handle);
105 static void fs_cb(uv_fs_t* handle) { in fs_cb()
Dtest-eintr-handling.c37 static uv_fs_t read_req;
Dtest-close-fd.c53 uv_fs_t req; in TEST_IMPL()
/third_party/libuv/docs/src/guide/
Dfilesystem.rst5 ``uv_fs_t`` struct.
33 … int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, int mode, uv_fs_cb cb)
43 int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
50 void callback(uv_fs_t* req);
62 The ``result`` field of a ``uv_fs_t`` is the file descriptor in case of the
122 ``uv_fs_t.result`` field. The full list:
127 int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb);
128 … int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, int mode, uv_fs_cb cb);
129 …int uv_fs_read(uv_loop_t* loop, uv_fs_t* req, uv_file file, const uv_buf_t bufs[], unsigned int nb…
130 int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb);
[all …]
/third_party/libuv/src/unix/
Dfs.c181 static ssize_t uv__fs_fsync(uv_fs_t* req) { in uv__fs_fsync()
205 static ssize_t uv__fs_fdatasync(uv_fs_t* req) { in uv__fs_fdatasync()
247 static ssize_t uv__fs_futime(uv_fs_t* req) { in uv__fs_futime()
286 static ssize_t uv__fs_mkdtemp(uv_fs_t* req) { in uv__fs_mkdtemp()
310 static int uv__fs_mkstemp(uv_fs_t* req) { in uv__fs_mkstemp()
381 static ssize_t uv__fs_open(uv_fs_t* req) { in uv__fs_open()
460 static ssize_t uv__fs_read(uv_fs_t* req) { in uv__fs_read()
547 static ssize_t uv__fs_scandir(uv_fs_t* req) { in uv__fs_scandir()
572 static int uv__fs_opendir(uv_fs_t* req) { in uv__fs_opendir()
592 static int uv__fs_readdir(uv_fs_t* req) { in uv__fs_readdir()
[all …]
/third_party/libuv/src/win/
Dfs.c145 INLINE static int fs__capture_path(uv_fs_t* req, const char* path, in fs__capture_path()
244 INLINE static void uv__fs_req_init(uv_loop_t* loop, uv_fs_t* req, in uv__fs_req_init()
444 void fs__open(uv_fs_t* req) { in fs__open()
699 void fs__close(uv_fs_t* req) { in fs__close()
749 void fs__read_filemap(uv_fs_t* req, struct uv__fd_info_s* fd_info) { in fs__read_filemap()
846 void fs__read(uv_fs_t* req) { in fs__read()
928 void fs__write_filemap(uv_fs_t* req, HANDLE file, in fs__write_filemap()
1052 void fs__write(uv_fs_t* req) { in fs__write()
1130 void fs__rmdir(uv_fs_t* req) { in fs__rmdir()
1139 void fs__unlink(uv_fs_t* req) { in fs__unlink()
[all …]
/third_party/libuv/docs/src/
Dfs.rst21 .. c:type:: uv_fs_t
167 .. c:member:: uv_loop_t* uv_fs_t.loop
172 .. c:member:: uv_fs_type uv_fs_t.fs_type
176 .. c:member:: const char* uv_fs_t.path
180 .. c:member:: ssize_t uv_fs_t.result
186 .. c:member:: uv_stat_t uv_fs_t.statbuf
190 .. c:member:: void* uv_fs_t.ptr
201 .. c:function:: void uv_fs_req_cleanup(uv_fs_t* req)
206 .. c:function:: int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
210 .. c:function:: int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, int mode…
[all …]
Drequest.rst71 Only cancellation of :c:type:`uv_fs_t`, :c:type:`uv_getaddrinfo_t`,
81 * A :c:type:`uv_fs_t` request has its req->result field set to `UV_ECANCELED`.
/third_party/libuv/include/
Duv.h240 typedef struct uv_fs_s uv_fs_t; typedef
332 typedef void (*uv_fs_cb)(uv_fs_t* req);
1343 UV_EXTERN uv_fs_type uv_fs_get_type(const uv_fs_t*);
1344 UV_EXTERN ssize_t uv_fs_get_result(const uv_fs_t*);
1345 UV_EXTERN int uv_fs_get_system_error(const uv_fs_t*);
1346 UV_EXTERN void* uv_fs_get_ptr(const uv_fs_t*);
1347 UV_EXTERN const char* uv_fs_get_path(const uv_fs_t*);
1348 UV_EXTERN uv_stat_t* uv_fs_get_statbuf(uv_fs_t*);
1350 UV_EXTERN void uv_fs_req_cleanup(uv_fs_t* req);
1352 uv_fs_t* req,
[all …]
/third_party/libuv/src/
Duv-data-getter-setters.c93 uv_fs_type uv_fs_get_type(const uv_fs_t* req) { in uv_fs_get_type()
97 ssize_t uv_fs_get_result(const uv_fs_t* req) { in uv_fs_get_result()
101 void* uv_fs_get_ptr(const uv_fs_t* req) { in uv_fs_get_ptr()
105 const char* uv_fs_get_path(const uv_fs_t* req) { in uv_fs_get_path()
109 uv_stat_t* uv_fs_get_statbuf(uv_fs_t* req) { in uv_fs_get_statbuf()
Dfs-poll.c45 uv_fs_t fs_req; /* TODO(bnoordhuis) mark fs_req internal */
52 static void poll_cb(uv_fs_t* req);
185 static void poll_cb(uv_fs_t* req) { in poll_cb()
/third_party/node/src/
Dnode_file.h40 inline FSContinuationData(uv_fs_t* req, int mode, uv_fs_cb done_cb);
59 uv_fs_t* req_;
65 class FSReqBase : public ReqWrap<uv_fs_t> {
103 static FSReqBase* from_req(uv_fs_t* req) { in from_req()
190 FSReqAfterScope(FSReqBase* wrap, uv_fs_t* req);
196 void Reject(uv_fs_t* req);
205 uv_fs_t* req_ = nullptr;
214 class FileHandleReadWrap final : public ReqWrap<uv_fs_t> {
219 static inline FileHandleReadWrap* from_req(uv_fs_t* req) { in from_req()
309 class CloseReq final : public ReqWrap<uv_fs_t> {
[all …]
Dnode_dir.cc97 uv_fs_t req; in GCClose()
131 void AfterClose(uv_fs_t* req) { in AfterClose()
195 static void AfterDirRead(uv_fs_t* req) { in AfterDirRead()
295 void AfterOpenDir(uv_fs_t* req) { in AfterOpenDir()
338 uv_fs_t* req = &req_wrap_sync.req; in OpenDir()
Dnode_file.cc129 typedef void(*uv_fs_callback_t)(uv_fs_t*);
216 uv_fs_t close_req; in ~TransferData()
240 uv_fs_t req; in Close()
362 auto AfterClose = uv_fs_callback_t{[](uv_fs_t* req) { in ClosePromise()
479 uv_fs_callback_t{[](uv_fs_t* req) { in ReadStart()
542 typedef SimpleShutdownWrap<ReqWrap<uv_fs_t>> FileHandleCloseWrap;
551 wrap->Dispatch(uv_fs_close, fd_, uv_fs_callback_t{[](uv_fs_t* req) { in DoShutdown()
594 FSReqAfterScope::FSReqAfterScope(FSReqBase* wrap, uv_fs_t* req) in FSReqAfterScope()
623 void FSReqAfterScope::Reject(uv_fs_t* req) { in Reject()
644 void AfterNoArgs(uv_fs_t* req) { in AfterNoArgs()
[all …]
Dutil.cc193 uv_fs_t req; in WriteFileSync()
225 uv_fs_t req; in ReadFileSync()
238 uv_fs_t close_req; in ReadFileSync()
/third_party/libuv/docs/code/idle-compute/
Dmain.c6 uv_fs_t stdin_watcher;
20 void on_type(uv_fs_t *req) { in on_type()
/third_party/node/deps/uvwasi/src/
Duvwasi.c57 uv_fs_t req; in uvwasi__get_filestat_set_times()
233 uv_fs_t realpath_req; in uvwasi_init()
234 uv_fs_t open_req; in uvwasi_init()
637 uv_fs_t req; in uvwasi_fd_allocate()
698 uv_fs_t req; in uvwasi_fd_close()
732 uv_fs_t req; in uvwasi_fd_datasync()
917 uv_fs_t req; in uvwasi_fd_filestat_get()
957 uv_fs_t req; in uvwasi_fd_filestat_set_size()
997 uv_fs_t req; in uvwasi_fd_filestat_set_times()
1054 uv_fs_t req; in uvwasi_fd_pread()
[all …]
/third_party/node/src/tracing/
Dnode_trace_writer.cc51 uv_fs_t req; in ~NodeTraceWriter()
75 uv_fs_t req; in OpenNewFileForStreaming()
187 [](uv_fs_t* req) { in StartWrite()
Dnode_trace_writer.h60 uv_fs_t write_req_;

123