Lines Matching refs:fs

356     req->fs.info.new_pathw = NULL;  in fs__capture_path()
378 req->fs.info.new_pathw = pos; in fs__capture_path()
381 req->fs.info.new_pathw = NULL; in fs__capture_path()
409 memset(&req->fs, 0, sizeof(req->fs)); in uv__fs_req_init()
420 int flags = req->fs.info.file_flags; in fs__open()
509 if (!((req->fs.info.mode & ~current_umask) & _S_IWRITE)) { in fs__open()
738 if (req->fs.info.offset == -1) { in fs__read_filemap()
741 pos.QuadPart = req->fs.info.offset; in fs__read_filemap()
751 for (index = 0; index < req->fs.info.nbufs; ++index) { in fs__read_filemap()
752 read_size += req->fs.info.bufs[index].len; in fs__read_filemap()
777 index < req->fs.info.nbufs && done_read < read_size; in fs__read_filemap()
779 size_t this_read_size = MIN(req->fs.info.bufs[index].len, in fs__read_filemap()
785 memcpy(req->fs.info.bufs[index].base, in fs__read_filemap()
806 if (req->fs.info.offset == -1) { in fs__read_filemap()
817 int64_t offset = req->fs.info.offset; in fs__read()
869 req->fs.info.bufs[index].base, in fs__read()
870 req->fs.info.bufs[index].len, in fs__read()
875 } while (result && index < req->fs.info.nbufs); in fs__read()
921 for (index = 0; index < req->fs.info.nbufs; ++index) { in fs__write_filemap()
922 write_size += req->fs.info.bufs[index].len; in fs__write_filemap()
932 } else if (req->fs.info.offset == -1) { in fs__write_filemap()
935 pos.QuadPart = req->fs.info.offset; in fs__write_filemap()
979 for (index = 0; index < req->fs.info.nbufs; ++index) { in fs__write_filemap()
985 req->fs.info.bufs[index].base, in fs__write_filemap()
986 req->fs.info.bufs[index].len); in fs__write_filemap()
996 done_write += req->fs.info.bufs[index].len; in fs__write_filemap()
1010 if (req->fs.info.offset == -1) { in fs__write_filemap()
1023 int64_t offset = req->fs.info.offset; in fs__write()
1074 req->fs.info.bufs[index].base, in fs__write()
1075 req->fs.info.bufs[index].len, in fs__write()
1080 } while (result && index < req->fs.info.nbufs); in fs__write()
1540 req->fs.info.nbufs = 0; in fs__scandir()
2267 if (!MoveFileExW(req->file.pathw, req->fs.info.new_pathw, MOVEFILE_REPLACE_EXISTING)) { in fs__rename()
2324 eof_info.EndOfFile.QuadPart = req->fs.info.offset; in fs__ftruncate()
2383 flags = req->fs.info.file_flags; in fs__copyfile()
2392 if (CopyFileW(req->file.pathw, req->fs.info.new_pathw, overwrite) != 0) { in fs__copyfile()
2403 fs__stat_impl_from_path(req->fs.info.new_pathw, 0, &new_statbuf) != 0) { in fs__copyfile()
2415 int fd_in = req->file.fd, fd_out = req->fs.info.fd_out; in fs__sendfile()
2416 size_t length = req->fs.info.bufsml[0].len; in fs__sendfile()
2417 int64_t offset = req->fs.info.offset; in fs__sendfile()
2476 if (!(req->fs.info.mode & W_OK) || in fs__access()
2488 int result = _wchmod(req->file.pathw, req->fs.info.mode); in fs__chmod()
2543 if (req->fs.info.mode & _S_IWRITE) { in fs__fchmod()
2632 req->fs.time.atime, in fs__utime_impl()
2633 req->fs.time.mtime, in fs__utime_impl()
2670 if (fs__utime_handle(handle, req->fs.time.atime, req->fs.time.mtime) != 0) { in fs__futime()
2684 DWORD r = CreateHardLinkW(req->fs.info.new_pathw, req->file.pathw, NULL); in fs__link()
2870 new_pathw = req->fs.info.new_pathw; in fs__symlink()
2872 if (req->fs.info.file_flags & UV_FS_SYMLINK_JUNCTION) { in fs__symlink()
2877 if (req->fs.info.file_flags & UV_FS_SYMLINK_DIR) in fs__symlink()
3196 if (req->fs.info.bufs != req->fs.info.bufsml) in uv_fs_req_cleanup()
3197 uv__free(req->fs.info.bufs); in uv_fs_req_cleanup()
3201 req->fs.info.new_pathw = NULL; in uv_fs_req_cleanup()
3202 req->fs.info.bufs = NULL; in uv_fs_req_cleanup()
3220 req->fs.info.file_flags = flags; in uv_fs_open()
3221 req->fs.info.mode = mode; in uv_fs_open()
3249 req->fs.info.nbufs = nbufs; in uv_fs_read()
3250 req->fs.info.bufs = req->fs.info.bufsml; in uv_fs_read()
3251 if (nbufs > ARRAY_SIZE(req->fs.info.bufsml)) in uv_fs_read()
3252 req->fs.info.bufs = uv__malloc(nbufs * sizeof(*bufs)); in uv_fs_read()
3254 if (req->fs.info.bufs == NULL) { in uv_fs_read()
3259 memcpy(req->fs.info.bufs, bufs, nbufs * sizeof(*bufs)); in uv_fs_read()
3261 req->fs.info.offset = offset; in uv_fs_read()
3282 req->fs.info.nbufs = nbufs; in uv_fs_write()
3283 req->fs.info.bufs = req->fs.info.bufsml; in uv_fs_write()
3284 if (nbufs > ARRAY_SIZE(req->fs.info.bufsml)) in uv_fs_write()
3285 req->fs.info.bufs = uv__malloc(nbufs * sizeof(*bufs)); in uv_fs_write()
3287 if (req->fs.info.bufs == NULL) { in uv_fs_write()
3292 memcpy(req->fs.info.bufs, bufs, nbufs * sizeof(*bufs)); in uv_fs_write()
3294 req->fs.info.offset = offset; in uv_fs_write()
3325 req->fs.info.mode = mode; in uv_fs_mkdir()
3389 req->fs.info.file_flags = flags; in uv_fs_scandir()
3464 req->fs.info.file_flags = flags; in uv_fs_symlink()
3610 req->fs.info.offset = offset; in uv_fs_ftruncate()
3638 req->fs.info.file_flags = flags; in uv_fs_copyfile()
3647 req->fs.info.fd_out = fd_out; in uv_fs_sendfile()
3648 req->fs.info.offset = in_offset; in uv_fs_sendfile()
3649 req->fs.info.bufsml[0].len = length; in uv_fs_sendfile()
3668 req->fs.info.mode = flags; in uv_fs_access()
3684 req->fs.info.mode = mode; in uv_fs_chmod()
3693 req->fs.info.mode = mode; in uv_fs_fchmod()
3709 req->fs.time.atime = atime; in uv_fs_utime()
3710 req->fs.time.mtime = mtime; in uv_fs_utime()
3719 req->fs.time.atime = atime; in uv_fs_futime()
3720 req->fs.time.mtime = mtime; in uv_fs_futime()
3735 req->fs.time.atime = atime; in uv_fs_lutime()
3736 req->fs.time.mtime = mtime; in uv_fs_lutime()