Lines Matching refs:req

38   uv_fs_t req;  in cleanup_test_files()  local
40 uv_fs_unlink(NULL, &req, "test_dir/file1", NULL); in cleanup_test_files()
41 uv_fs_req_cleanup(&req); in cleanup_test_files()
42 uv_fs_unlink(NULL, &req, "test_dir/file2", NULL); in cleanup_test_files()
43 uv_fs_req_cleanup(&req); in cleanup_test_files()
44 uv_fs_rmdir(NULL, &req, "test_dir/test_subdir", NULL); in cleanup_test_files()
45 uv_fs_req_cleanup(&req); in cleanup_test_files()
46 uv_fs_rmdir(NULL, &req, "test_dir", NULL); in cleanup_test_files()
47 uv_fs_req_cleanup(&req); in cleanup_test_files()
50 static void empty_closedir_cb(uv_fs_t* req) { in empty_closedir_cb() argument
51 ASSERT_PTR_EQ(req, &closedir_req); in empty_closedir_cb()
52 ASSERT_EQ(req->fs_type, UV_FS_CLOSEDIR); in empty_closedir_cb()
53 ASSERT_OK(req->result); in empty_closedir_cb()
55 uv_fs_req_cleanup(req); in empty_closedir_cb()
58 static void empty_readdir_cb(uv_fs_t* req) { in empty_readdir_cb() argument
62 ASSERT_PTR_EQ(req, &readdir_req); in empty_readdir_cb()
63 ASSERT_EQ(req->fs_type, UV_FS_READDIR); in empty_readdir_cb()
64 ASSERT_OK(req->result); in empty_readdir_cb()
65 dir = req->ptr; in empty_readdir_cb()
66 uv_fs_req_cleanup(req); in empty_readdir_cb()
74 static void empty_opendir_cb(uv_fs_t* req) { in empty_opendir_cb() argument
78 ASSERT_PTR_EQ(req, &opendir_req); in empty_opendir_cb()
79 ASSERT_EQ(req->fs_type, UV_FS_OPENDIR); in empty_opendir_cb()
80 ASSERT_OK(req->result); in empty_opendir_cb()
81 ASSERT_NOT_NULL(req->ptr); in empty_opendir_cb()
82 dir = req->ptr; in empty_opendir_cb()
90 uv_fs_req_cleanup(req); in empty_opendir_cb()
171 static void non_existing_opendir_cb(uv_fs_t* req) { in non_existing_opendir_cb() argument
172 ASSERT_PTR_EQ(req, &opendir_req); in non_existing_opendir_cb()
173 ASSERT_EQ(req->fs_type, UV_FS_OPENDIR); in non_existing_opendir_cb()
174 ASSERT_EQ(req->result, UV_ENOENT); in non_existing_opendir_cb()
175 ASSERT_NULL(req->ptr); in non_existing_opendir_cb()
177 uv_fs_req_cleanup(req); in non_existing_opendir_cb()
223 static void file_opendir_cb(uv_fs_t* req) { in file_opendir_cb() argument
224 ASSERT_PTR_EQ(req, &opendir_req); in file_opendir_cb()
225 ASSERT_EQ(req->fs_type, UV_FS_OPENDIR); in file_opendir_cb()
226 ASSERT_EQ(req->result, UV_ENOTDIR); in file_opendir_cb()
227 ASSERT_NULL(req->ptr); in file_opendir_cb()
229 uv_fs_req_cleanup(req); in file_opendir_cb()
276 static void non_empty_closedir_cb(uv_fs_t* req) { in non_empty_closedir_cb() argument
277 ASSERT_PTR_EQ(req, &closedir_req); in non_empty_closedir_cb()
278 ASSERT_OK(req->result); in non_empty_closedir_cb()
279 uv_fs_req_cleanup(req); in non_empty_closedir_cb()
283 static void non_empty_readdir_cb(uv_fs_t* req) { in non_empty_readdir_cb() argument
286 ASSERT_PTR_EQ(req, &readdir_req); in non_empty_readdir_cb()
287 ASSERT_EQ(req->fs_type, UV_FS_READDIR); in non_empty_readdir_cb()
288 dir = req->ptr; in non_empty_readdir_cb()
290 if (req->result == 0) { in non_empty_readdir_cb()
291 uv_fs_req_cleanup(req); in non_empty_readdir_cb()
298 ASSERT_EQ(1, req->result); in non_empty_readdir_cb()
313 uv_fs_req_cleanup(req); in non_empty_readdir_cb()
323 static void non_empty_opendir_cb(uv_fs_t* req) { in non_empty_opendir_cb() argument
327 ASSERT_PTR_EQ(req, &opendir_req); in non_empty_opendir_cb()
328 ASSERT_EQ(req->fs_type, UV_FS_OPENDIR); in non_empty_opendir_cb()
329 ASSERT_OK(req->result); in non_empty_opendir_cb()
330 ASSERT_NOT_NULL(req->ptr); in non_empty_opendir_cb()
332 dir = req->ptr; in non_empty_opendir_cb()
341 uv_fs_req_cleanup(req); in non_empty_opendir_cb()
465 static void readdir_symlink_readdir_cb(uv_fs_t* req) { in readdir_symlink_readdir_cb() argument
468 ASSERT_PTR_EQ(req, &readdir_req); in readdir_symlink_readdir_cb()
469 ASSERT_EQ(req->fs_type, UV_FS_READDIR); in readdir_symlink_readdir_cb()
470 dir = req->ptr; in readdir_symlink_readdir_cb()
472 if (req->result == 0) { in readdir_symlink_readdir_cb()
473 uv_fs_req_cleanup(req); in readdir_symlink_readdir_cb()
485 uv_fs_req_cleanup(req); in readdir_symlink_readdir_cb()
489 static void readdir_symlink_opendir_cb(uv_fs_t* req) { in readdir_symlink_opendir_cb() argument
493 ASSERT_PTR_EQ(req, &opendir_req); in readdir_symlink_opendir_cb()
494 ASSERT_EQ(req->fs_type, UV_FS_OPENDIR); in readdir_symlink_opendir_cb()
495 ASSERT_OK(req->result); in readdir_symlink_opendir_cb()
496 ASSERT_NOT_NULL(req->ptr); in readdir_symlink_opendir_cb()
498 dir = req->ptr; in readdir_symlink_opendir_cb()
507 uv_fs_req_cleanup(req); in readdir_symlink_opendir_cb()
511 uv_fs_t req; in cleanup_symlink_test_files() local
513 uv_fs_rmdir(NULL, &req, "test_symlink_dir/test_subdir", NULL); in cleanup_symlink_test_files()
514 uv_fs_req_cleanup(&req); in cleanup_symlink_test_files()
515 uv_fs_unlink(NULL, &req, "test_symlink_dir/test_symlink", NULL); in cleanup_symlink_test_files()
516 uv_fs_req_cleanup(&req); in cleanup_symlink_test_files()
517 uv_fs_rmdir(NULL, &req, "test_symlink_dir", NULL); in cleanup_symlink_test_files()
518 uv_fs_req_cleanup(&req); in cleanup_symlink_test_files()