version 1.19, 2004/12/18 13:23:32
|
version 1.20, 2005/02/04 19:06:44
|
|
|
long file; | long file; |
struct _finddata_t findData; | struct _finddata_t findData; |
} DirRep; | } DirRep; |
#elif defined(PEGASUS_OS_TYPE_UNIX) |
#elif defined(PEGASUS_OS_SOLARIS) |
#ifdef PEGASUS_OS_SOLARIS |
|
#include <sys/param.h> | #include <sys/param.h> |
#endif |
#elif defined(PEGASUS_OS_VMS) |
#include <dirent.h> | #include <dirent.h> |
|
#endif |
| |
// ATTN: If a platform is found that does not have the readdir_r interface, | // ATTN: If a platform is found that does not have the readdir_r interface, |
// this next line should be conditionally compiled out for that platform. | // this next line should be conditionally compiled out for that platform. |
// Otherwise, the old readdir code can be removed. | // Otherwise, the old readdir code can be removed. |
|
|
|
#ifndef PEGASUS_OS_VMS |
#define PEGASUS_HAS_READDIR_R | #define PEGASUS_HAS_READDIR_R |
|
#endif |
| |
struct DirRep |
typedef struct |
{ | { |
DIR* dir; | DIR* dir; |
#ifdef PEGASUS_OS_OS400 | #ifdef PEGASUS_OS_OS400 |
|
|
#endif | #endif |
#endif | #endif |
#endif | #endif |
}; |
} DirRep; |
#endif |
|
| |
/** The Dir class provides a platform independent way of iterating the | /** The Dir class provides a platform independent way of iterating the |
files in a directory. | files in a directory. |