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