Lines Matching defs:dirName
490 UTIL_STATIC int UTIL_prepareFileList(const char* dirName, char** bufStart, size_t* pos, char** bufEnd)
497 dirLength = strlen(dirName);
501 memcpy(path, dirName, dirLength);
508 fprintf(stderr, "Cannot open directory '%s'\n", dirName);
518 memcpy(path, dirName, dirLength);
556 UTIL_STATIC int UTIL_prepareFileList(const char* dirName, char** bufStart, size_t* pos, char** bufEnd)
563 if (!(dir = opendir(dirName))) {
564 fprintf(stderr, "Cannot open directory '%s': %s\n", dirName, strerror(errno));
568 dirLength = strlen(dirName);
578 memcpy(path, dirName, dirLength);
605 fprintf(stderr, "readdir(%s) error: %s\n", dirName, strerror(errno));
615 UTIL_STATIC int UTIL_prepareFileList(const char* dirName, char** bufStart, size_t* pos, char** bufEnd)
618 fprintf(stderr, "Directory %s ignored (compiled without _WIN32 or _POSIX_C_SOURCE)\n", dirName);