Lines Matching refs:off

402                                           off_t off,  in uv__preadv_or_pwritev_emul()  argument
417 r = pread(fd, p, n, off); in uv__preadv_or_pwritev_emul()
419 r = pwrite(fd, p, n, off); in uv__preadv_or_pwritev_emul()
428 off += r; in uv__preadv_or_pwritev_emul()
449 off_t off) { in uv__preadv_emul() argument
450 return uv__preadv_or_pwritev_emul(fd, bufs, nbufs, off, /*is_pread*/1); in uv__preadv_emul()
457 off_t off) { in uv__pwritev_emul() argument
458 return uv__preadv_or_pwritev_emul(fd, bufs, nbufs, off, /*is_pread*/0); in uv__pwritev_emul()
473 off_t off, in uv__preadv_or_pwritev() argument
494 return f(fd, bufs, nbufs, off); in uv__preadv_or_pwritev()
501 off_t off) { in uv__preadv() argument
503 return uv__preadv_or_pwritev(fd, bufs, nbufs, off, &cache, /*is_pread*/1); in uv__preadv()
510 off_t off) { in uv__pwritev() argument
512 return uv__preadv_or_pwritev(fd, bufs, nbufs, off, &cache, /*is_pread*/0); in uv__pwritev()
521 off_t off; in uv__fs_read() local
525 off = req->off; in uv__fs_read()
534 if (off < 0) { in uv__fs_read()
541 r = pread(fd, bufs->iov_base, bufs->iov_len, off); in uv__fs_read()
543 r = uv__preadv(fd, bufs, nbufs, off); in uv__fs_read()
854 offset = req->off; in uv__fs_sendfile_emul()
945 req->off = offset; in uv__fs_sendfile_emul()
986 static ssize_t uv__fs_try_copy_file_range(int in_fd, off_t* off, in uv__fs_try_copy_file_range() argument
996 r = uv__fs_copy_file_range(in_fd, off, out_fd, NULL, len, 0); in uv__fs_try_copy_file_range()
1044 off_t off; in uv__fs_sendfile() local
1049 off = req->off; in uv__fs_sendfile()
1054 r = uv__fs_try_copy_file_range(in_fd, &off, out_fd, len); in uv__fs_sendfile()
1059 r = sendfile(out_fd, in_fd, &off, len); in uv__fs_sendfile()
1065 if (r != -1 || off > req->off) { in uv__fs_sendfile()
1066 r = off - req->off; in uv__fs_sendfile()
1067 req->off = off; in uv__fs_sendfile()
1096 off_t off; in uv__fs_sendfile() local
1098 off = req->off; in uv__fs_sendfile()
1099 r = uv__fs_copy_file_range(in_fd, &off, out_fd, NULL, req->bufsml[0].len, 0); in uv__fs_sendfile()
1101 r = off - req->off; in uv__fs_sendfile()
1102 req->off = off; in uv__fs_sendfile()
1107 r = sendfile(in_fd, out_fd, req->off, req->bufsml[0].len, NULL, &len, 0); in uv__fs_sendfile()
1112 r = sendfile(in_fd, out_fd, req->off, &len, NULL, 0); in uv__fs_sendfile()
1123 req->off += len; in uv__fs_sendfile()
1216 off_t off; in uv__fs_write() local
1220 off = req->off; in uv__fs_write()
1225 if (off < 0) { in uv__fs_write()
1232 r = pwrite(fd, bufs->iov_base, bufs->iov_len, off); in uv__fs_write()
1234 r = uv__pwritev(fd, bufs, nbufs, off); in uv__fs_write()
1676 if (req->off >= 0) in uv__fs_write_all()
1677 req->off += result; in uv__fs_write_all()
1724 X(FTRUNCATE, ftruncate(req->file, req->off)); in uv__fs_work()
1913 int64_t off, in uv_fs_ftruncate() argument
1917 req->off = off; in uv_fs_ftruncate()
2036 int64_t off, in uv_fs_read() argument
2043 req->off = off; in uv_fs_read()
2159 int64_t off, in uv_fs_sendfile() argument
2165 req->off = off; in uv_fs_sendfile()
2226 int64_t off, in uv_fs_write() argument
2245 req->off = off; in uv_fs_write()