30 namespace FileStoreImp
36 NoCheck(
const NoCheck & ) = delete ;
37 NoCheck( NoCheck && ) = delete ;
38 NoCheck & operator=(
const NoCheck & ) = delete ;
39 NoCheck & operator=( NoCheck && ) = delete ;
40 _invalid_parameter_handler m_handler ;
42 static void handler(
const wchar_t * ,
const wchar_t * ,
const wchar_t * ,
unsigned int , uintptr_t ) ;
52void GStore::FileStore::osinit()
54 constexpr int limit = 8192 ;
55 if( _getmaxstdio() < limit )
57 FileStoreImp::NoCheck no_check ;
58 _setmaxstdio( limit ) ;
62GStore::FileStoreImp::NoCheck::NoCheck() :
63 m_handler(_set_invalid_parameter_handler(NoCheck::handler)) ,
64 m_mode(_CrtSetReportMode(_CRT_ASSERT,0))
68GStore::FileStoreImp::NoCheck::~NoCheck()
70 _set_invalid_parameter_handler( m_handler ) ;
71 _CrtSetReportMode( _CRT_ASSERT , m_mode ) ;
74void GStore::FileStoreImp::NoCheck::handler(
const wchar_t * ,
const wchar_t * ,
const wchar_t * ,
unsigned int , uintptr_t )
static G::Path defaultDirectory()
Returns a default spool directory, such as "/var/spool/emailrelay".
static std::string get(const std::string &name, const std::string &default_)
Returns the environment variable value or the given default.
A Path object represents a file system path.