Lines Matching defs:req
137 uv_fs_t req;
139 int ret = uv_fs_closedir(nullptr, &req, dir_, nullptr);
141 uv_fs_req_cleanup(&req);
173 void AfterClose(uv_fs_t* req) {
174 FSReqBase* req_wrap = FSReqBase::from_req(req);
175 FSReqAfterScope after(req_wrap, req);
177 req->fs_type, req_wrap, "result", static_cast<int>(req->result))
195 if (req_wrap_async != nullptr) { // close(req)
239 static void AfterDirRead(uv_fs_t* req) {
240 BaseObjectPtr<FSReqBase> req_wrap { FSReqBase::from_req(req) };
241 FSReqAfterScope after(req_wrap.get(), req);
243 req->fs_type, req_wrap, "result", static_cast<int>(req->result))
251 if (req->result == 0) {
259 uv_dir_t* dir = static_cast<uv_dir_t*>(req->ptr);
265 static_cast<int>(req->result),
302 if (req_wrap_async != nullptr) { // dir.read(encoding, bufferSize, req)
317 if (req_wrap_sync.req.result == 0) {
324 CHECK_GE(req_wrap_sync.req.result, 0);
330 static_cast<int>(req_wrap_sync.req.result),
343 void AfterOpenDir(uv_fs_t* req) {
344 FSReqBase* req_wrap = FSReqBase::from_req(req);
345 FSReqAfterScope after(req_wrap, req);
347 req->fs_type, req_wrap, "result", static_cast<int>(req->result))
354 uv_dir_t* dir = static_cast<uv_dir_t*>(req->ptr);
373 if (req_wrap_async != nullptr) { // openDir(path, encoding, req)
389 uv_fs_t* req = &req_wrap_sync.req;
390 uv_dir_t* dir = static_cast<uv_dir_t*>(req->ptr);