45 #ifndef Included_SysFileSystem
46 #define Included_SysFileSystem
54 # define MAXIMUM_PATH_LENGTH PATH_MAX + 1
55 #elif defined(_POSIX_PATH_MAX)
56 # define MAXIMUM_PATH_LENGTH _POSIX_PATH_MAX + 1
58 # define MAXIMUM_PATH_LENGTH
61 #if defined(FILENAME_MAX)
62 # define MAXIMUM_FILENAME_LENGTH FILENAME_MAX + 1
63 #elif defined(_MAX_FNAME)
64 # define MAXIMUM_FILENAME_LENGTH _MAX_FNAME + 1
65 #elif defined(_POSIX_NAME_MAX)
66 # define MAXIMUM_FILENAME_LENGTH _POSIX_NAME_MAX + 1
68 # define MAXIMUM_FILENAME_LENGTH 256
71 #define NAME_BUFFER_LENGTH (MAXIMUM_PATH_LENGTH + MAXIMUM_FILENAME_LENGTH)
91 static void qualifyStreamName(
const char *unqualifiedName,
char *qualifiedName,
size_t bufferSize);
93 static bool searchName(
const char *name,
const char *path,
const char *extension,
char *resolvedName);
94 static bool primitiveSearchName(
const char *name,
const char *path,
const char *extension,
char *resolvedName);
96 static bool searchPath(
const char *name,
const char *path,
char *resolvedName);
110 static bool isFile(
const char *name);
111 static bool exists(
const char *name);
115 static bool moveFile(
const char *oldName,
const char *newName);
116 static bool isHidden(
const char *name);
132 void next(
char *buffer);
SysFileIterator(const char *pattern)
static bool fileExists(const char *name)
static bool checkCurrentFile(const char *name, char *resolvedName)
static bool moveFile(const char *oldName, const char *newName)
static bool setLastModifiedDate(const char *name, int64_t time)
static bool canonicalizeName(char *name)
static const char * getSeparator()
static bool deleteFile(const char *name)
static bool normalizePathName(const char *name, char *resolved)
static bool deleteDirectory(const char *name)
static RexxString * extractFile(RexxString *file)
static bool setFileReadOnly(const char *name)
static const char * EOL_Marker
static bool hasDirectory(const char *name)
static const char * getTempFileName()
static int64_t getLastModifiedDate(const char *name)
static const char * getPathSeparator()
static int getRoots(char *roots)
static bool primitiveSearchName(const char *name, const char *path, const char *extension, char *resolvedName)
static bool searchName(const char *name, const char *path, const char *extension, char *resolvedName)
static bool makeDirectory(const char *name)
static RexxString * extractDirectory(RexxString *file)
static RexxString * extractExtension(RexxString *file)
static const char PathDelimiter
static bool isDirectory(const char *name)
static bool searchPath(const char *name, const char *path, char *resolvedName)
static bool isCaseSensitive()
static uint64_t getFileLength(const char *name)
static bool isWriteOnly(const char *name)
static void qualifyStreamName(const char *unqualifiedName, char *qualifiedName, size_t bufferSize)
static bool hasExtension(const char *name)
static const char EOF_Marker
static bool searchFileName(const char *name, char *fullName)
static bool isHidden(const char *name)
static bool isReadOnly(const char *name)
static bool exists(const char *name)
static bool isFile(const char *name)
#define MAXIMUM_FILENAME_LENGTH
#define MAXIMUM_PATH_LENGTH
unsigned __int64 uint64_t