Lines Matching refs:file

308      * the file's ownership to uid 0.
556 /* Check if req->path is actually a file */
587 * returning the file type.
1363 /* We can write to the opened file */
1404 uv_file file;
1426 file = req.result;
1431 ASSERT_OK(fstat(file, &t));
1432 ASSERT_OK(uv_fs_fstat(NULL, &req, file, NULL));
1440 * because we just created the file. On older kernels, it's set to zero.
1450 r = uv_fs_write(NULL, &req, file, &iov, 1, -1, NULL);
1456 r = uv_fs_fstat(NULL, &req, file, NULL);
1463 r = fstat(file, &t);
1540 r = uv_fs_fstat(loop, &req, file, fstat_cb);
1546 r = uv_fs_close(NULL, &req, file, NULL);
1607 uv_file file;
1628 /* Create file */
1633 file = req.result;
1649 /* Close file */
1650 r = uv_fs_close(NULL, &req, file, NULL);
1683 uv_file file;
1694 file = req.result;
1698 r = uv_fs_write(NULL, &req, file, &iov, 1, -1, NULL);
1704 /* Make the file write-only */
1713 /* Make the file read-only */
1721 /* Make the file read+write with sync uv_fs_fchmod */
1722 r = uv_fs_fchmod(NULL, &req, file, 0600, NULL);
1757 r = uv_fs_fchmod(loop, &req, file, 0600, fchmod_cb);
1762 uv_fs_close(loop, &req, file, NULL);
1781 uv_file file;
1794 file = req.result;
1798 r = uv_fs_write(NULL, &req, file, &iov, 1, -1, NULL);
1803 uv_fs_close(loop, &req, file, NULL);
1805 /* Make the file read-only */
1813 /* Try to unlink the file */
1838 uv_file file;
1851 file = req.result;
1855 r = uv_fs_write(NULL, &req, file, &iov, 1, -1, NULL);
1860 uv_fs_close(loop, &req, file, NULL);
1862 /* Make the file read-only and clear archive flag */
1869 /* Try to unlink the file */
1894 uv_file file;
1906 file = req.result;
1916 r = uv_fs_fchown(NULL, &req, file, -1, -1, NULL);
1937 r = uv_fs_fchown(loop, &req, file, -1, -1, fchown_cb);
1963 /* Close file */
1964 r = uv_fs_close(NULL, &req, file, NULL);
1987 uv_file file;
2001 file = req.result;
2005 r = uv_fs_write(NULL, &req, file, &iov, 1, -1, NULL);
2010 uv_fs_close(loop, &req, file, NULL);
2071 /* Must return UV_ENOENT on an inexistent file */
2089 /* Must return UV_EINVAL on a non-symlink file */
2093 uv_file file;
2097 /* Create a non-symlink file */
2102 file = req.result;
2105 r = uv_fs_close(NULL, &req, file, NULL);
2148 uv_file file;
2174 file = req.result;
2178 r = uv_fs_write(NULL, &req, file, &iov, 1, -1, NULL);
2183 uv_fs_close(loop, &req, file, NULL);
2552 as links because it doesn't open the file and verify the reparse
2747 uv_file file;
2770 file = req.result; /* FIXME probably not how it's supposed to be used */
2773 r = uv_fs_futime(NULL, &req, file, atime, mtime, NULL);
2793 r = uv_fs_futime(loop, &futime_req, file, atime, mtime, futime_cb);
3012 int r, file;
3021 file = r;
3024 r = uv_fs_close(NULL, &req, file, NULL);
3640 /* Get a file descriptor for the directory */
3866 ASSERT_NULL(write_req.file.pathw);
4076 /* Confirm file contents */
4407 /* Setup - clear the ACL and remove the file */
4416 /* Create the file */
4442 /* Try opening the file */
4470 uv_file file;
4482 file = req.result;
4484 r = uv_fs_close(NULL, &req, file, NULL);
4487 /* Make the file read-only and clear archive flag */
4495 file = req.result;
4497 r = uv_fs_fchmod(NULL, &req, file, S_IWUSR, NULL);
4501 r = uv_fs_close(NULL, &req, file, NULL);