/usr/include/boost/iostreams/detail
NameSizeModeActions
adapter/-0755rm
broken_overload_resolution/-0755rm
config/-0755rm
streambuf/-0755rm
absolute_path.hpp15980644editdlrm
access_control.hpp29080644editdlrm
add_facet.hpp15720644editdlrm
bool_trait_def.hpp19640644editdlrm
buffer.hpp74880644editdlrm
call_traits.hpp9810644editdlrm
char_traits.hpp25420644editdlrm
codecvt_helper.hpp72770644editdlrm
codecvt_holder.hpp19700644editdlrm
counted_array.hpp23500644editdlrm
current_directory.hpp23120644editdlrm
default_arg.hpp7000644editdlrm
dispatch.hpp16040644editdlrm
double_object.hpp39200644editdlrm
enable_if_stream.hpp12330644editdlrm
error.hpp15340644editdlrm
execute.hpp45260644editdlrm
file_handle.hpp10330644editdlrm
forward.hpp52190644editdlrm
fstream.hpp12620644editdlrm
functional.hpp57830644editdlrm
ios.hpp20600644editdlrm
iostream.hpp12880644editdlrm
is_dereferenceable.hpp24240644editdlrm
is_iterator_range.hpp11030644editdlrm
newline.hpp8690644editdlrm
optional.hpp32890644editdlrm
param_type.hpp8730644editdlrm
path.hpp59940644editdlrm
push.hpp74160644editdlrm
push_params.hpp7670644editdlrm
resolve.hpp84530644editdlrm
restrict_impl.hpp168980644editdlrm
select.hpp30950644editdlrm
select_by_size.hpp56620644editdlrm
streambuf.hpp12050644editdlrm
system_failure.hpp26610644editdlrm
template_params.hpp9670644editdlrm
translate_int_type.hpp20250644editdlrm
wrap_unwrap.hpp33280644editdlrm
Edit: /usr/include/boost/iostreams/detail/system_failure.hpp (2661B)
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2005-2007 Jonathan Turkanis // (C) Copyright Jonathan Graehl 2004. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) // See http://www.boost.org/libs/iostreams for documentation. // Used by mapped_file.cpp. #ifndef BOOST_IOSTREAMS_DETAIL_SYSTEM_FAILURE_HPP_INCLUDED #define BOOST_IOSTREAMS_DETAIL_SYSTEM_FAILURE_HPP_INCLUDED #if defined(_MSC_VER) # pragma once #endif #include #include #include #include #include #include // failure. #if defined(BOOST_NO_STDC_NAMESPACE) && !defined(__LIBCOMO__) namespace std { using ::strlen; } #endif #ifdef BOOST_IOSTREAMS_WINDOWS # define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers # include #else # include # include #endif namespace boost { namespace iostreams { namespace detail { inline BOOST_IOSTREAMS_FAILURE system_failure(const char* msg) { std::string result; #ifdef BOOST_IOSTREAMS_WINDOWS DWORD err; LPVOID lpMsgBuf; if ( (err = ::GetLastError()) != NO_ERROR && ::FormatMessageA( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR) &lpMsgBuf, 0, NULL ) != 0 ) { result.reserve(std::strlen(msg) + 2 + std::strlen((LPSTR)lpMsgBuf)); result.append(msg); result.append(": "); result.append((LPSTR) lpMsgBuf); ::LocalFree(lpMsgBuf); } else { result += msg; } #else const char* system_msg = errno ? strerror(errno) : ""; result.reserve(std::strlen(msg) + 2 + std::strlen(system_msg)); result.append(msg); result.append(": "); result.append(system_msg); #endif return BOOST_IOSTREAMS_FAILURE(result); } inline BOOST_IOSTREAMS_FAILURE system_failure(const std::string& msg) { return system_failure(msg.c_str()); } inline void throw_system_failure(const char* msg) { boost::throw_exception(system_failure(msg)); } inline void throw_system_failure(const std::string& msg) { boost::throw_exception(system_failure(msg)); } } } } // End namespaces detail, iostreams, boost. #endif // #ifndef BOOST_IOSTREAMS_DETAIL_SYSTEM_FAILURE_HPP_INCLUDED