Lines Matching defs:_handle
82 _handle = ::CreateFile(fs2fas(path), desiredAccess, shareMode,
89 _handle = ::CreateFileW(fs2us(path), desiredAccess, shareMode,
92 if (_handle == INVALID_HANDLE_VALUE && USE_SUPER_PATH)
96 _handle = ::CreateFileW(superPath, desiredAccess, shareMode,
105 if (_handle == INVALID_HANDLE_VALUE)
137 return (_handle != INVALID_HANDLE_VALUE);
142 if (_handle == INVALID_HANDLE_VALUE)
144 if (!::CloseHandle(_handle))
146 _handle = INVALID_HANDLE_VALUE;
161 const DWORD low = ::GetFileSize(_handle, &high);
171 if (!GetFileSizeEx(_handle, &fileSize))
206 const DWORD low = ::SetFilePointer(_handle, 0, &high, FILE_CURRENT);
231 const DWORD low = ::SetFilePointer(_handle, (LONG)(distanceToMove & 0xFFFFFFFF), &high, moveMethod);
331 if (_handle == INVALID_HANDLE_VALUE || !IsDeviceFile)
437 ::SetFileTime(_handle, NULL, &ft, NULL);
465 const bool res = BOOLToBool(::ReadFile(_handle, data, size, &processedLoc, NULL));
534 { return BOOLToBool(::SetFileTime(_handle, cTime, aTime, mTime)); }
543 bool res = BOOLToBool(::WriteFile(_handle, data, size, &processedLoc, NULL));
584 bool COutFile::SetEndOfFile() throw() { return BOOLToBool(::SetEndOfFile(_handle)); }
638 _handle = ::open(name, flags, mode);
639 return _handle != -1;
642 if (_handle == -1)
657 if (_handle == -1)
659 if (close(_handle) != 0)
661 _handle = -1;
705 // off_t res = ::lseek(_handle, distanceToMove, moveMethod);
707 return ::lseek(_handle, distanceToMove, moveMethod);
748 return ioctl(_handle, BLKGETSIZE64, numBlocks);
776 return ::read(_handle, data, size);
807 _handle = ::creat(name, mode_for_Create);
808 return _handle != -1;
823 return ::write(_handle, data, size);
853 const int iret = ftruncate(_handle, len2);
892 return futimens(_handle, times) == 0;