Lines Matching defs:path

63   const char* path;
427 ASSERT(req->path);
428 ASSERT_OK(memcmp(req->path, "test_file2\0", 11));
445 ASSERT(req->path);
513 ASSERT(req->path);
514 ASSERT_OK(memcmp(req->path, "test_dir\0", 9));
524 ASSERT(req->path);
525 ASSERT_EQ(15, strlen(req->path));
526 ASSERT_OK(memcmp(req->path, "test_dir_", 9));
527 ASSERT_NE(0, memcmp(req->path + 9, "XXXXXX", 6));
528 check_permission(req->path, 0700);
530 /* Check if req->path is actually a directory */
531 r = uv_fs_stat(NULL, &stat_req, req->path, NULL);
550 ASSERT(req->path);
551 ASSERT_EQ(16, strlen(req->path));
552 ASSERT_OK(memcmp(req->path, "test_file_", 10));
553 ASSERT_NE(0, memcmp(req->path + 10, "XXXXXX", 6));
554 check_permission(req->path, 0600);
556 /* Check if req->path is actually a file */
557 r = uv_fs_stat(NULL, &stat_req, req->path, NULL);
576 ASSERT(req->path);
577 ASSERT_OK(memcmp(req->path, "test_dir\0", 9));
616 ASSERT(req->path);
617 ASSERT_OK(memcmp(req->path, "test_dir\0", 9));
811 static void check_utime(const char* path,
820 r = uv_fs_lstat(loop, &req, path, NULL);
822 r = uv_fs_stat(loop, &req, path, NULL);
880 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 0);
895 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 0);
909 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 1);
1320 ASSERT_NE(0, strcmp(mkdtemp_req1.path, mkdtemp_req2.path));
1323 rmdir(mkdtemp_req1.path);
1324 rmdir(mkdtemp_req2.path);
1353 ASSERT_NE(0, strcmp(mkstemp_req1.path, mkstemp_req2.path));
1358 /* Make sure that path is empty string */
1359 ASSERT_OK(strlen(mkstemp_req3.path));
1376 fd = uv_fs_open(NULL, &req, mkstemp_req1.path, UV_FS_O_RDONLY, 0, NULL);
1391 unlink(mkstemp_req1.path);
1392 unlink(mkstemp_req2.path);
2518 To run, update the path with the IP address of a Mac with the hard drive
2623 const char* path = "test_file";
2631 unlink(path);
2632 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT,
2642 r = uv_fs_utime(NULL, &req, path, atime, mtime, NULL);
2647 check_utime(path, atime, mtime, /* test_lutime */ 0);
2650 checkme.path = path;
2656 r = uv_fs_utime(loop, &utime_req, path, atime, mtime, utime_cb);
2662 unlink(path);
2670 const char path[] = "test_file";
2677 unlink(path);
2678 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT,
2688 r = uv_fs_utime(NULL, &req, path, atime, mtime, NULL);
2702 check_utime(path, atime, mtime, /* test_lutime */ 0);
2703 unlink(path);
2744 const char* path = "test_file";
2756 unlink(path);
2757 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT,
2767 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR, 0, NULL);
2783 check_utime(path, atime, mtime, /* test_lutime */ 0);
2789 checkme.path = path;
2799 unlink(path);
2808 const char* path = "test_file";
2818 unlink(path);
2819 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT,
2828 s = uv_fs_symlink(NULL, &req, path, symlink_path, 0, NULL);
2848 checkme.path = symlink_path;
2866 checkme.path = symlink_path;
2874 unlink(path);
2899 const char* path;
2904 path = "./empty_dir/";
2907 uv_fs_mkdir(NULL, &req, path, 0777, NULL);
2913 r = uv_fs_scandir(NULL, &req, path, 0, NULL);
2920 r = uv_fs_scandir(loop, &scandir_req, path, 0, empty_scandir_cb);
2927 uv_fs_rmdir(NULL, &req, path, NULL);
2936 const char* path;
2941 path = "./non_existent_dir/";
2944 uv_fs_rmdir(NULL, &req, path, NULL);
2950 r = uv_fs_scandir(NULL, &req, path, 0, NULL);
2957 r = uv_fs_scandir(loop, &scandir_req, path, 0, non_existent_scandir_cb);
2969 const char* path;
2972 path = "test/fixtures/empty_file";
2975 r = uv_fs_scandir(NULL, &scandir_req, path, 0, NULL);
2979 r = uv_fs_scandir(loop, &scandir_req, path, 0, file_scandir_cb);
3010 const char* path;
3014 path = ".";
3017 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDONLY, 0, NULL);
3027 r = uv_fs_open(loop, &req, path, UV_FS_O_RDONLY, 0, open_cb_simple);
3863 ASSERT_NULL(write_req.path);