Lines Matching defs:dst
37 static const char dst[] = "test_file_dst";
60 r = uv_fs_stat(NULL, &stat_req, dst, NULL);
108 r = uv_fs_copyfile(NULL, &req, src, dst, -1, NULL);
114 unlink(dst);
115 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL);
120 r = uv_fs_stat(NULL, &req, dst, NULL);
124 /* Succeeds if src and dst files are identical. */
137 unlink(dst);
138 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL);
143 unlink(dst);
145 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL);
150 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL);
155 ASSERT_OK(uv_fs_chmod(NULL, &req, dst, 0644, NULL));
157 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_EXCL, NULL);
162 ASSERT_OK(uv_fs_chmod(NULL, &req, dst, 0644, NULL));
165 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL);
170 unlink(dst);
172 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL);
178 unlink(dst);
179 r = uv_fs_copyfile(loop, &req, fixture, dst, 0, handle_result);
185 ASSERT_OK(uv_fs_chmod(NULL, &req, dst, 0644, NULL));
189 unlink(dst);
190 r = uv_fs_copyfile(loop, &req, fixture, dst, -1, fail_cb);
195 unlink(dst);
196 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE, NULL);
201 unlink(dst);
202 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE_FORCE,
211 unlink(dst);
212 touch_file(dst, 0);
213 chmod(dst, S_IRUSR|S_IRGRP|S_IROTH); /* Sets file mode to 444 (read-only). */
214 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL);
223 unlink(dst); /* Cleanup */