From: Reinhard Pfau Date: Tue, 24 Mar 2009 20:55:11 +0000 (+0100) Subject: started system utils module X-Git-Tag: v0.3~71 X-Git-Url: http://developer.intra2net.com/git/?p=libasyncio;a=commitdiff_plain;h=ef51ea7ef3d58c3c6b1c1428bc73215a84fe994e started system utils module --- diff --git a/utils/asyncio_system_tools.cpp b/utils/asyncio_system_tools.cpp new file mode 100644 index 0000000..1a028c4 --- /dev/null +++ b/utils/asyncio_system_tools.cpp @@ -0,0 +1,28 @@ +/** + * @file + * @brief some functions to wrap some system functions + * + * @author Reinhard Pfau \ + * @copyright © Copyright 2009 by Intra2net AG + * @license LGPL + * @contact opensource@intra2net.com + * + */ + +#include "asyncio_system_tools.hpp" + +#include + +namespace AsyncIo +{ +namespace Utils +{ + + bool unlink( const std::string& path ) + { + return ::unlink( path.c_str() ) == 0; + } // end of unlink(const std::string&) + + +} // end of namespace Utils +}// end of namespace AsyncIo diff --git a/utils/asyncio_system_tools.hpp b/utils/asyncio_system_tools.hpp new file mode 100644 index 0000000..a2b4bb5 --- /dev/null +++ b/utils/asyncio_system_tools.hpp @@ -0,0 +1,30 @@ +/** + * @file + * @brief some functions to wrap some system functions + * + * @author Reinhard Pfau \ + * @copyright © Copyright 2009 by Intra2net AG + * @license LGPL + * @contact opensource@intra2net.com + * + */ + + +#ifndef _ASYNCIO_SYSTEM_TOOLS_HPP_ +#define _ASYNCIO_SYSTEM_TOOLS_HPP_ + +#include + + +namespace AsyncIo +{ +namespace Utils +{ + + bool unlink( const std::string& path ); + +} // end of namespace Utils +}// end of namespace AsyncIo + + +#endif