Lines Matching defs:file
320 req->file.pathw = NULL;
335 req->file.pathw = pos;
338 req->file.pathw = NULL;
383 HANDLE file;
388 /* Adjust flags to be compatible with the memory file mapping. Save the
436 * UNIX semantics. In particular, this ensures that the file can
546 file = CreateFileW(req->file.pathw,
553 if (file == INVALID_HANDLE_VALUE) {
566 fd = _open_osfhandle((intptr_t) file, flags);
578 CloseHandle(file);
584 if (!GetFileInformationByHandleEx(file,
589 CloseHandle(file);
598 if (!GetFileSizeEx(file, &fd_info.size)) {
600 CloseHandle(file);
609 fd_info.mapping = CreateFileMapping(file,
617 CloseHandle(file);
634 int fd = req->file.fd;
684 int fd = req->file.fd; /* VERIFY_FD done in fs__read */
781 int fd = req->file.fd;
862 void fs__write_filemap(uv_fs_t* req, HANDLE file,
864 int fd = req->file.fd; /* VERIFY_FD done in fs__write */
905 /* Recreate the mapping to enlarge the file if needed */
911 fd_info->mapping = CreateFileMapping(file,
919 CloseHandle(file);
981 SetFileTime(file, NULL, NULL, &ft);
987 int fd = req->file.fd;
1065 int result = _wrmdir(req->file.pathw);
1074 const WCHAR* pathw = req->file.pathw;
1162 if (CreateDirectoryW(req->file.pathw, NULL)) {
1187 len = wcslen(req->file.pathw);
1188 ep = req->file.pathw + len;
1225 if (CreateDirectoryW(req->file.pathw, NULL)) {
1245 HANDLE file;
1248 file = CreateFileW(req->file.pathw,
1256 if (file == INVALID_HANDLE_VALUE) {
1260 /* If the file exists, the main fs__mktemp() function
1270 fd = _open_osfhandle((intptr_t) file, 0);
1282 CloseHandle(file);
1311 * of the length of the file names present in the enumerated directory.
1312 * A file name is at most 256 WCHARs long.
1326 CreateFileW(req->file.pathw,
1419 /* Convert file name to UTF-8. */
1505 pathw = req->file.pathw;
1509 /* Figure out whether path is a file or a directory. */
1595 /* Copy file type. */
1692 * want to report 0777 if the file is a .exe or a directory.
1700 * reasons. Windows however just makes the file read-only, which makes it
1701 * impossible to delete the file afterwards, since read-only files can't be
1714 * by which filesystem drivers can intercept and alter file system requests.
1725 * to be treated as a regular file. The higher level lstat function will
1848 error = fs__stat_impl_from_path(req->file.pathw, do_lstat, &req->statbuf);
1871 /* Each file type is processed differently. */
1890 /* If file type is unknown it is an error. */
1900 fs__stat_prepare_path(req->file.pathw);
1906 fs__stat_prepare_path(req->file.pathw);
1912 int fd = req->file.fd;
1935 if (!MoveFileExW(req->file.pathw, req->fs.info.new_pathw, MOVEFILE_REPLACE_EXISTING)) {
1945 int fd = req->file.fd;
1970 int fd = req->file.fd;
2060 if (CopyFileW(req->file.pathw, req->fs.info.new_pathw, overwrite) != 0) {
2069 /* if error UV_EBUSY check if src and dst file are the same */
2070 if (fs__stat_impl_from_path(req->file.pathw, 0, &statbuf) != 0 ||
2083 int fd_in = req->file.fd, fd_out = req->fs.info.fd_out;
2130 DWORD attr = GetFileAttributesW(req->file.pathw);
2140 * - or the file isn't read-only,
2156 int result = _wchmod(req->file.pathw, req->fs.info.mode);
2165 int fd = req->file.fd;
2299 error = fs__utime_impl_from_path(req->file.pathw,
2308 /* Opened file is a reparse point but not a symlink. Try again. */
2327 int fd = req->file.fd;
2352 DWORD r = CreateHardLinkW(req->fs.info.new_pathw, req->file.pathw, NULL);
2536 pathw = req->file.pathw;
2574 handle = CreateFileW(req->file.pathw,
2656 handle = CreateFileW(req->file.pathw,
2704 pathw = req->file.pathw;
2718 is_second = pathw != req->file.pathw;
2734 ret = GetFullPathNameW(req->file.pathw,
2756 if (pathw != req->file.pathw) {
2852 uv__free(req->file.pathw);
2867 req->file.pathw = NULL;
2895 req->file.fd = fd;
2914 req->file.fd = fd;
2947 req->file.fd = fd;
3239 req->file.fd = fd;
3261 req->file.fd = fd;
3268 req->file.fd = fd;
3276 req->file.fd = fd;
3313 req->file.fd = fd_in;
3359 req->file.fd = fd;
3385 req->file.fd = fd;