Lines Matching defs:file
54 /* Verify that the file size and mode are the same. */
71 uv_file file;
82 file = r;
88 r = uv_fs_write(NULL, &req, file, &buf, 1, i, NULL);
93 r = uv_fs_close(NULL, &req, file, NULL);
129 /* Verify that the src file did not get truncated. */
136 /* Copies file synchronously. Creates new file. */
142 /* Copies a file of size zero. */
149 /* Copies file synchronously. Overwrites existing file. */
154 /* Fails to overwrites existing file. */
161 /* Truncates when an existing destination is larger than the source file. */
169 /* Copies a larger file. */
177 /* Copies file asynchronously */
184 /* Ensure file is user-writable (not copied from src). */
194 /* Copies file using UV_FS_COPYFILE_FICLONE. */
200 /* Copies file using UV_FS_COPYFILE_FICLONE_FORCE. */
213 chmod(dst, S_IRUSR|S_IRGRP|S_IROTH); /* Sets file mode to 444 (read-only). */