os_internal

This commit is contained in:
Kelvin Sherlock 2013-02-25 17:47:58 -05:00
parent c206573a17
commit d59222d02f
3 changed files with 37 additions and 0 deletions

View File

@ -9,6 +9,7 @@ set(TOOLBOX_SRC
rm.cpp
mm.cpp
os.cpp
os_internal.cpp
qd.cpp
sane.cpp
)

7
toolbox/os_internal.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "os_internal.h"
namespace OS { namespace Internal {
std::deque<FDEntry> FDTable;
} }

29
toolbox/os_internal.h Normal file
View File

@ -0,0 +1,29 @@
#ifndef __mpw_os_internal_h__
#define __mpw_os_internal_h__
#include <deque>
#include <string>
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<FDEntry> FDTable;
} }
#endif