started system utils module
authorReinhard Pfau <Reinhard.Pfau@gmx.de>
Tue, 24 Mar 2009 20:55:11 +0000 (21:55 +0100)
committerReinhard Pfau <Reinhard.Pfau@gmx.de>
Tue, 24 Mar 2009 20:55:11 +0000 (21:55 +0100)
utils/asyncio_system_tools.cpp [new file with mode: 0644]
utils/asyncio_system_tools.hpp [new file with mode: 0644]

diff --git a/utils/asyncio_system_tools.cpp b/utils/asyncio_system_tools.cpp
new file mode 100644 (file)
index 0000000..1a028c4
--- /dev/null
@@ -0,0 +1,28 @@
+/**
+ * @file
+ * @brief some functions to wrap some system functions
+ *
+ * @author Reinhard Pfau \<Reinhard.Pfau@gmx.de\>
+ * @copyright &copy; Copyright 2009 by Intra2net AG
+ * @license LGPL
+ * @contact opensource@intra2net.com
+ *
+ */
+
+#include "asyncio_system_tools.hpp"
+
+#include <unistd.h>
+
+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 (file)
index 0000000..a2b4bb5
--- /dev/null
@@ -0,0 +1,30 @@
+/**
+ * @file
+ * @brief some functions to wrap some system functions
+ *
+ * @author Reinhard Pfau \<Reinhard.Pfau@gmx.de\>
+ * @copyright &copy; Copyright 2009 by Intra2net AG
+ * @license LGPL
+ * @contact opensource@intra2net.com
+ *
+ */
+
+
+#ifndef _ASYNCIO_SYSTEM_TOOLS_HPP_
+#define _ASYNCIO_SYSTEM_TOOLS_HPP_
+
+#include <string>
+
+
+namespace AsyncIo
+{
+namespace Utils
+{
+
+  bool unlink( const std::string& path );
+
+} // end of namespace Utils
+}// end of namespace AsyncIo
+
+
+#endif