Lines Matching defs:file

22 /* Caveat emptor: this file deviates from the libuv convention of returning
187 * supported by the file system we fall back to F_BARRIERFSYNC or fsync().
193 r = fcntl(req->file, F_FULLFSYNC);
195 r = fcntl(req->file, 85 /* F_BARRIERFSYNC */); /* fsync + barrier */
197 r = fsync(req->file);
200 return fsync(req->file);
207 return fdatasync(req->file);
212 return fsync(req->file);
255 return futimens(req->file, ts);
267 return futimesat(req->file, NULL, tv);
269 return futimes(req->file, tv);
278 return __fchattr(req->file, &atr, sizeof(atr));
473 result = read(req->file, req->bufs[0].base, req->bufs[0].len);
475 result = readv(req->file, (struct iovec*) req->bufs, req->nbufs);
478 result = pread(req->file, req->bufs[0].base, req->bufs[0].len, req->off);
483 result = preadv(req->file, (struct iovec*) req->bufs, req->nbufs, req->off);
489 result = uv__fs_preadv(req->file, req->bufs, req->nbufs, req->off);
493 result = uv__preadv(req->file,
519 rc = fstat(req->file, &buf);
811 out_fd = req->file;
1004 /* ENOTSUP - it could work on another file system type.
1023 out_fd = req->file;
1213 * data loss. We can't use a per-file descriptor lock, the descriptor may be
1225 r = write(req->file, req->bufs[0].base, req->bufs[0].len);
1227 r = writev(req->file, (struct iovec*) req->bufs, req->nbufs);
1230 r = pwrite(req->file, req->bufs[0].base, req->bufs[0].len, req->off);
1234 r = pwritev(req->file, (struct iovec*) req->bufs, req->nbufs, req->off);
1240 r = pwrite(req->file, req->bufs[0].base, req->bufs[0].len, req->off);
1244 r = uv__pwritev(req->file,
1283 /* Open the source file. */
1290 /* Get the source file's mode. */
1301 /* Open the destination file. */
1315 /* If the file is not being opened exclusively, verify that the source and
1316 destination are not the same file. If they are the same, bail out early. */
1318 /* Get the destination file's mode. */
1324 /* Check if srcfd and dstfd refer to the same file */
1330 /* Truncate the file in case the destination already existed. */
1402 /* Close the source file. */
1409 /* Close the destination file if it is open. */
1417 /* Remove the destination file if something went wrong. */
1718 X(CLOSE, uv__fs_close(req->file));
1720 X(FCHMOD, fchmod(req->file, req->mode));
1721 X(FCHOWN, fchown(req->file, req->uid, req->gid));
1724 X(FSTAT, uv__fs_fstat(req->file, &req->statbuf));
1726 X(FTRUNCATE, ftruncate(req->file, req->off));
1822 int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1824 req->file = file;
1831 uv_file file,
1835 req->file = file;
1843 uv_file file,
1848 req->file = file;
1869 int uv_fs_fdatasync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1871 req->file = file;
1876 int uv_fs_fstat(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1878 req->file = file;
1883 int uv_fs_fsync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
1885 req->file = file;
1892 uv_file file,
1896 req->file = file;
1904 uv_file file,
1909 req->file = file;
1998 uv_file file,
2008 req->file = file;
2118 req->file = out_fd;
2168 uv_file file,
2178 req->file = file;