Made cds::OS children namespaces inline, removed OS-specific syserror.h headers
[libcds.git] / cds / os / posix / syserror.h
diff --git a/cds/os/posix/syserror.h b/cds/os/posix/syserror.h
deleted file mode 100644 (file)
index 2929e01..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-//$$CDS-header$$
-
-#ifndef __CDS_OS_POSIX_SYSERROR_H
-#define __CDS_OS_POSIX_SYSERROR_H
-
-#include <stdlib.h>     // system
-#include <pthread.h>
-#include <sched.h>
-#include <cerrno>
-#include <cstdlib>
-#include <string>
-#include <string.h>
-
-namespace cds { namespace OS {
-    namespace posix {
-        /// Posix error code type
-        typedef int                error_code;
-
-        /// Get text for system error \p nCode
-        static inline std::string getSystemErrorText( error_code nCode )
-        {
-            char *msg = strerror( nCode );
-            return std::string( msg );
-        }
-
-        /// Get curent error code (returns \p errno)
-        static inline error_code  getErrorCode()
-        {
-            return errno;
-        }
-
-    }    // namespace posix
-
-    using posix::error_code;
-    using posix::getErrorCode;
-    using posix::getSystemErrorText;
-}} // namespace cds::OS
-
-
-#endif // #ifndef __CDS_OS_POSIX_SYSERROR_H