Lines Matching refs:file
342 req->file.pathw = NULL; in fs__capture_path()
357 req->file.pathw = pos; in fs__capture_path()
360 req->file.pathw = NULL; in fs__capture_path()
405 HANDLE file; in fs__open() local
568 file = CreateFileW(req->file.pathw, in fs__open()
575 if (file == INVALID_HANDLE_VALUE) { in fs__open()
588 fd = _open_osfhandle((intptr_t) file, flags); in fs__open()
600 CloseHandle(file); in fs__open()
606 if (!GetFileInformationByHandleEx(file, in fs__open()
611 CloseHandle(file); in fs__open()
620 if (!GetFileSizeEx(file, &fd_info.size)) { in fs__open()
622 CloseHandle(file); in fs__open()
631 fd_info.mapping = CreateFileMapping(file, in fs__open()
639 CloseHandle(file); in fs__open()
656 int fd = req->file.fd; in fs__close()
706 int fd = req->file.fd; /* VERIFY_FD done in fs__read */ in fs__read_filemap()
803 int fd = req->file.fd; in fs__read()
884 void fs__write_filemap(uv_fs_t* req, HANDLE file, in fs__write_filemap() argument
886 int fd = req->file.fd; /* VERIFY_FD done in fs__write */ in fs__write_filemap()
933 fd_info->mapping = CreateFileMapping(file, in fs__write_filemap()
941 CloseHandle(file); in fs__write_filemap()
1003 SetFileTime(file, NULL, NULL, &ft); in fs__write_filemap()
1009 int fd = req->file.fd; in fs__write()
1087 const WCHAR* pathw = req->file.pathw; in fs__unlink_rmdir()
1220 if (CreateDirectoryW(req->file.pathw, NULL)) { in fs__mkdir()
1245 len = wcslen(req->file.pathw); in fs__mktemp()
1246 ep = req->file.pathw + len; in fs__mktemp()
1283 if (CreateDirectoryW(req->file.pathw, NULL)) { in fs__mkdtemp_func()
1303 HANDLE file; in fs__mkstemp_func() local
1306 file = CreateFileW(req->file.pathw, in fs__mkstemp_func()
1314 if (file == INVALID_HANDLE_VALUE) { in fs__mkstemp_func()
1328 fd = _open_osfhandle((intptr_t) file, 0); in fs__mkstemp_func()
1340 CloseHandle(file); in fs__mkstemp_func()
1384 CreateFileW(req->file.pathw, in fs__scandir()
1563 pathw = req->file.pathw; in fs__opendir()
1991 error = fs__stat_impl_from_path(req->file.pathw, do_lstat, &req->statbuf); in fs__stat_impl()
2043 fs__stat_prepare_path(req->file.pathw); in fs__stat()
2049 fs__stat_prepare_path(req->file.pathw); in fs__lstat()
2055 int fd = req->file.fd; in fs__fstat()
2078 if (!MoveFileExW(req->file.pathw, req->fs.info.new_pathw, MOVEFILE_REPLACE_EXISTING)) { in fs__rename()
2088 int fd = req->file.fd; in fs__sync_impl()
2113 int fd = req->file.fd; in fs__ftruncate()
2203 if (CopyFileW(req->file.pathw, req->fs.info.new_pathw, overwrite) != 0) { in fs__copyfile()
2213 if (fs__stat_impl_from_path(req->file.pathw, 0, &statbuf) != 0 || in fs__copyfile()
2226 int fd_in = req->file.fd, fd_out = req->fs.info.fd_out; in fs__sendfile()
2273 DWORD attr = GetFileAttributesW(req->file.pathw); in fs__access()
2299 int result = _wchmod(req->file.pathw, req->fs.info.mode); in fs__chmod()
2308 int fd = req->file.fd; in fs__fchmod()
2442 error = fs__utime_impl_from_path(req->file.pathw, in fs__utime_impl()
2470 int fd = req->file.fd; in fs__futime()
2495 DWORD r = CreateHardLinkW(req->fs.info.new_pathw, req->file.pathw, NULL); in fs__link()
2680 pathw = req->file.pathw; in fs__symlink()
2718 handle = CreateFileW(req->file.pathw, in fs__readlink()
2800 handle = CreateFileW(req->file.pathw, in fs__realpath()
2848 pathw = req->file.pathw; in fs__statfs()
2862 is_second = pathw != req->file.pathw; in fs__statfs()
2878 ret = GetFullPathNameW(req->file.pathw, in fs__statfs()
2900 if (pathw != req->file.pathw) { in fs__statfs()
2996 uv__free(req->file.pathw); in uv_fs_req_cleanup()
3011 req->file.pathw = NULL; in uv_fs_req_cleanup()
3039 req->file.fd = fd; in uv_fs_close()
3058 req->file.fd = fd; in uv_fs_read()
3091 req->file.fd = fd; in uv_fs_write()
3383 req->file.fd = fd; in uv_fs_fstat()
3405 req->file.fd = fd; in uv_fs_fsync()
3412 req->file.fd = fd; in uv_fs_fdatasync()
3420 req->file.fd = fd; in uv_fs_ftruncate()
3457 req->file.fd = fd_in; in uv_fs_sendfile()
3503 req->file.fd = fd; in uv_fs_fchmod()
3529 req->file.fd = fd; in uv_fs_futime()