Lines Matching refs:fs

343     req->fs.info.new_pathw = NULL;  in fs__capture_path()
365 req->fs.info.new_pathw = pos; in fs__capture_path()
368 req->fs.info.new_pathw = NULL; in fs__capture_path()
396 memset(&req->fs, 0, sizeof(req->fs)); in uv__fs_req_init()
407 int flags = req->fs.info.file_flags; in fs__open()
496 if (!((req->fs.info.mode & ~current_umask) & _S_IWRITE)) { in fs__open()
725 if (req->fs.info.offset == -1) { in fs__read_filemap()
728 pos.QuadPart = req->fs.info.offset; in fs__read_filemap()
738 for (index = 0; index < req->fs.info.nbufs; ++index) { in fs__read_filemap()
739 read_size += req->fs.info.bufs[index].len; in fs__read_filemap()
764 index < req->fs.info.nbufs && done_read < read_size; in fs__read_filemap()
766 size_t this_read_size = MIN(req->fs.info.bufs[index].len, in fs__read_filemap()
772 memcpy(req->fs.info.bufs[index].base, in fs__read_filemap()
793 if (req->fs.info.offset == -1) { in fs__read_filemap()
804 int64_t offset = req->fs.info.offset; in fs__read()
856 req->fs.info.bufs[index].base, in fs__read()
857 req->fs.info.bufs[index].len, in fs__read()
862 } while (result && index < req->fs.info.nbufs); in fs__read()
908 for (index = 0; index < req->fs.info.nbufs; ++index) { in fs__write_filemap()
909 write_size += req->fs.info.bufs[index].len; in fs__write_filemap()
919 } else if (req->fs.info.offset == -1) { in fs__write_filemap()
922 pos.QuadPart = req->fs.info.offset; in fs__write_filemap()
966 for (index = 0; index < req->fs.info.nbufs; ++index) { in fs__write_filemap()
972 req->fs.info.bufs[index].base, in fs__write_filemap()
973 req->fs.info.bufs[index].len); in fs__write_filemap()
983 done_write += req->fs.info.bufs[index].len; in fs__write_filemap()
997 if (req->fs.info.offset == -1) { in fs__write_filemap()
1010 int64_t offset = req->fs.info.offset; in fs__write()
1061 req->fs.info.bufs[index].base, in fs__write()
1062 req->fs.info.bufs[index].len, in fs__write()
1067 } while (result && index < req->fs.info.nbufs); in fs__write()
1527 req->fs.info.nbufs = 0; in fs__scandir()
2078 if (!MoveFileExW(req->file.pathw, req->fs.info.new_pathw, MOVEFILE_REPLACE_EXISTING)) { in fs__rename()
2135 eof_info.EndOfFile.QuadPart = req->fs.info.offset; in fs__ftruncate()
2194 flags = req->fs.info.file_flags; in fs__copyfile()
2203 if (CopyFileW(req->file.pathw, req->fs.info.new_pathw, overwrite) != 0) { in fs__copyfile()
2214 fs__stat_impl_from_path(req->fs.info.new_pathw, 0, &new_statbuf) != 0) { in fs__copyfile()
2226 int fd_in = req->file.fd, fd_out = req->fs.info.fd_out; in fs__sendfile()
2227 size_t length = req->fs.info.bufsml[0].len; in fs__sendfile()
2228 int64_t offset = req->fs.info.offset; in fs__sendfile()
2287 if (!(req->fs.info.mode & W_OK) || in fs__access()
2299 int result = _wchmod(req->file.pathw, req->fs.info.mode); in fs__chmod()
2354 if (req->fs.info.mode & _S_IWRITE) { in fs__fchmod()
2443 req->fs.time.atime, in fs__utime_impl()
2444 req->fs.time.mtime, in fs__utime_impl()
2481 if (fs__utime_handle(handle, req->fs.time.atime, req->fs.time.mtime) != 0) { in fs__futime()
2495 DWORD r = CreateHardLinkW(req->fs.info.new_pathw, req->file.pathw, NULL); in fs__link()
2681 new_pathw = req->fs.info.new_pathw; in fs__symlink()
2683 if (req->fs.info.file_flags & UV_FS_SYMLINK_JUNCTION) { in fs__symlink()
2688 if (req->fs.info.file_flags & UV_FS_SYMLINK_DIR) in fs__symlink()
3007 if (req->fs.info.bufs != req->fs.info.bufsml) in uv_fs_req_cleanup()
3008 uv__free(req->fs.info.bufs); in uv_fs_req_cleanup()
3012 req->fs.info.new_pathw = NULL; in uv_fs_req_cleanup()
3013 req->fs.info.bufs = NULL; in uv_fs_req_cleanup()
3031 req->fs.info.file_flags = flags; in uv_fs_open()
3032 req->fs.info.mode = mode; in uv_fs_open()
3060 req->fs.info.nbufs = nbufs; in uv_fs_read()
3061 req->fs.info.bufs = req->fs.info.bufsml; in uv_fs_read()
3062 if (nbufs > ARRAY_SIZE(req->fs.info.bufsml)) in uv_fs_read()
3063 req->fs.info.bufs = uv__malloc(nbufs * sizeof(*bufs)); in uv_fs_read()
3065 if (req->fs.info.bufs == NULL) { in uv_fs_read()
3070 memcpy(req->fs.info.bufs, bufs, nbufs * sizeof(*bufs)); in uv_fs_read()
3072 req->fs.info.offset = offset; in uv_fs_read()
3093 req->fs.info.nbufs = nbufs; in uv_fs_write()
3094 req->fs.info.bufs = req->fs.info.bufsml; in uv_fs_write()
3095 if (nbufs > ARRAY_SIZE(req->fs.info.bufsml)) in uv_fs_write()
3096 req->fs.info.bufs = uv__malloc(nbufs * sizeof(*bufs)); in uv_fs_write()
3098 if (req->fs.info.bufs == NULL) { in uv_fs_write()
3103 memcpy(req->fs.info.bufs, bufs, nbufs * sizeof(*bufs)); in uv_fs_write()
3105 req->fs.info.offset = offset; in uv_fs_write()
3136 req->fs.info.mode = mode; in uv_fs_mkdir()
3200 req->fs.info.file_flags = flags; in uv_fs_scandir()
3275 req->fs.info.file_flags = flags; in uv_fs_symlink()
3421 req->fs.info.offset = offset; in uv_fs_ftruncate()
3449 req->fs.info.file_flags = flags; in uv_fs_copyfile()
3458 req->fs.info.fd_out = fd_out; in uv_fs_sendfile()
3459 req->fs.info.offset = in_offset; in uv_fs_sendfile()
3460 req->fs.info.bufsml[0].len = length; in uv_fs_sendfile()
3479 req->fs.info.mode = flags; in uv_fs_access()
3495 req->fs.info.mode = mode; in uv_fs_chmod()
3504 req->fs.info.mode = mode; in uv_fs_fchmod()
3520 req->fs.time.atime = atime; in uv_fs_utime()
3521 req->fs.time.mtime = mtime; in uv_fs_utime()
3530 req->fs.time.atime = atime; in uv_fs_futime()
3531 req->fs.time.mtime = mtime; in uv_fs_futime()
3546 req->fs.time.atime = atime; in uv_fs_lutime()
3547 req->fs.time.mtime = mtime; in uv_fs_lutime()