Lines Matching refs:handle_
75 file_handle handle_; member in boost::iostreams::detail::mapped_file_impl
105 !::CloseHandle(handle_) in close()
107 ::close(handle_) != 0 in close()
134 stream_offset offset = ::SetFilePointer(handle_, 0, NULL, FILE_CURRENT); in resize()
139 DWORD result = ::SetFilePointer(handle_, sizelow, &sizehigh, FILE_BEGIN); in resize()
141 || !::SetEndOfFile(handle_)) in resize()
145 ::SetFilePointer(handle_, sizelow, &sizehigh, FILE_BEGIN); in resize()
147 if (BOOST_IOSTREAMS_FD_TRUNCATE(handle_, new_size) == -1) in resize()
184 handle_ = p.path.is_wide() ? in open_file()
201 if (handle_ == INVALID_HANDLE_VALUE) in open_file()
208 DWORD result = ::SetFilePointer(handle_, sizelow, &sizehigh, FILE_BEGIN); in open_file()
210 || !::SetEndOfFile(handle_)) in open_file()
222 if (get_size(handle_, &info)) { in open_file()
239 if ( (low = ::GetFileSize(handle_, &hi)) in open_file()
267 handle_ = ::open(p.path.c_str(), flags, S_IRWXU); in open_file()
274 if (BOOST_IOSTREAMS_FD_TRUNCATE(handle_, p.new_file_size) == -1) in open_file()
284 success = ::BOOST_IOSTREAMS_FD_FSTAT(handle_, &info) != -1; in open_file()
306 handle_, in try_map_file()
338 handle_, in try_map_file()
379 handle_ = INVALID_HANDLE_VALUE; in clear()
382 handle_ = 0; in clear()
395 if (handle_ != INVALID_HANDLE_VALUE) in cleanup_and_throw()
396 ::CloseHandle(handle_); in cleanup_and_throw()
400 if (handle_ != 0) in cleanup_and_throw()
401 ::close(handle_); in cleanup_and_throw()