Lines Matching defs:file

22 /* Caveat emptor: this file deviates from the libuv convention of returning
207 * supported by the file system we fall back to F_BARRIERFSYNC or fsync().
213 r = fcntl(req->file, F_FULLFSYNC);
215 r = fcntl(req->file, 85 /* F_BARRIERFSYNC */); /* fsync + barrier */
217 r = fsync(req->file);
220 return fsync(req->file);
227 return fdatasync(req->file);
232 return fsync(req->file);
275 return futimens(req->file, ts);
286 return futimesat(req->file, NULL, tv);
288 return futimes(req->file, tv);
297 return __fchattr(req->file, &atr, sizeof(atr));
438 fd = req->file;
758 out_fd = req->file;
926 /* ENOTSUP - it could work on another file system type.
945 out_fd = req->file;
1121 fd = req->file;
1160 /* Open the source file. */
1167 /* Get the source file's mode. */
1178 /* Open the destination file. */
1192 /* If the file is not being opened exclusively, verify that the source and
1193 destination are not the same file. If they are the same, bail out early. */
1195 /* Get the destination file's mode. */
1201 /* Check if srcfd and dstfd refer to the same file */
1207 /* Truncate the file in case the destination already existed. */
1211 /* ftruncate() on ceph-fuse fails with EACCES when the file is created
1213 * file is a meaningless operation anyway, detect that condition
1291 /* Close the source file. */
1298 /* Close the destination file if it is open. */
1306 /* Remove the destination file if something went wrong. */
1588 X(CLOSE, uv__fs_close(req->file));
1590 X(FCHMOD, fchmod(req->file, req->mode));
1591 X(FCHOWN, fchown(req->file, req->uid, req->gid));
1594 X(FSTAT, uv__fs_fstat(req->file, &req->statbuf));
1596 X(FTRUNCATE, ftruncate(req->file, req->off));
1705 int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1707 req->file = file;
1717 uv_file file,
1721 req->file = file;
1729 uv_file file,
1734 req->file = file;
1755 int uv_fs_fdatasync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1757 req->file = file;
1765 int uv_fs_fstat(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1767 req->file = file;
1775 int uv_fs_fsync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1777 req->file = file;
1787 uv_file file,
1791 req->file = file;
1799 uv_file file,
1804 req->file = file;
1905 uv_file file,
1916 req->file = file;
2036 req->file = out_fd;
2095 uv_file file,
2105 req->file = file;