From d59222d02fdee7c35281e63ff761e77b6b5db7cb Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 25 Feb 2013 17:47:58 -0500 Subject: [PATCH] os_internal --- toolbox/CMakeLists.txt | 1 + toolbox/os_internal.cpp | 7 +++++++ toolbox/os_internal.h | 29 +++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 toolbox/os_internal.cpp create mode 100644 toolbox/os_internal.h diff --git a/toolbox/CMakeLists.txt b/toolbox/CMakeLists.txt index e789a08..2502ae5 100644 --- a/toolbox/CMakeLists.txt +++ b/toolbox/CMakeLists.txt @@ -9,6 +9,7 @@ set(TOOLBOX_SRC rm.cpp mm.cpp os.cpp + os_internal.cpp qd.cpp sane.cpp ) diff --git a/toolbox/os_internal.cpp b/toolbox/os_internal.cpp new file mode 100644 index 0000000..2b8529c --- /dev/null +++ b/toolbox/os_internal.cpp @@ -0,0 +1,7 @@ +#include "os_internal.h" + +namespace OS { namespace Internal { + + std::deque FDTable; + +} } diff --git a/toolbox/os_internal.h b/toolbox/os_internal.h new file mode 100644 index 0000000..444b7a2 --- /dev/null +++ b/toolbox/os_internal.h @@ -0,0 +1,29 @@ +#ifndef __mpw_os_internal_h__ +#define __mpw_os_internal_h__ + +#include +#include + +namespace OS { namespace Internal { + + + struct FDEntry + { + int refcount; + bool text; + bool resource; + + // std::string path? + + FDEntry() : + refcount(0), + text(false), + resource(false) + {} + }; + + extern std::deque FDTable; + +} } + +#endif