summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/filesystem.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 15:18:37 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 15:18:37 (GMT)
commitbc1548b236515514c138da8b59f61af2efbfc4a5 (patch)
treeab8ab5b2bceca941f363ca7064248ece6779b617 /Utilities/cmtar/filesystem.h
parent552842d11f845ad53e4f34be549aa4007737564b (diff)
downloadCMake-bc1548b236515514c138da8b59f61af2efbfc4a5.zip
CMake-bc1548b236515514c138da8b59f61af2efbfc4a5.tar.gz
CMake-bc1548b236515514c138da8b59f61af2efbfc4a5.tar.bz2
ENH: Initial import
Diffstat (limited to 'Utilities/cmtar/filesystem.h')
-rw-r--r--Utilities/cmtar/filesystem.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Utilities/cmtar/filesystem.h b/Utilities/cmtar/filesystem.h
new file mode 100644
index 0000000..f2ee202
--- /dev/null
+++ b/Utilities/cmtar/filesystem.h
@@ -0,0 +1,35 @@
+#ifndef _FILESYSTEM_H_
+#define _FILESYSTEM_H_
+
+#ifdef _MSC_VER
+#include <io.h>
+
+struct _KWDIR
+{
+#if _MSC_VER < 1300
+ long SrchHandle;
+#else
+ intptr_t SrchHandle;
+#endif
+ struct _finddata_t Entry; // data of current file
+ int EOD; //end of directory
+
+};
+#ifndef MAXPATHLEN
+#define MAXPATHLEN _MAX_PATH
+#endif
+typedef struct _KWDIRENTRY
+{
+ char d_name[MAXPATHLEN];
+}kwDirEntry;
+
+typedef struct _KWDIR kwDirectory;
+kwDirectory * kwOpenDir(const char* name);
+kwDirEntry * kwReadDir(kwDirectory * dir);
+int kwCloseDir(kwDirectory * dir);
+#else
+
+#endif //MSC
+
+
+#endif