Home | History | Annotate | Download | only in programs

Lines Matching refs:dirName

390 UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char** bufEnd)
397 dirLength = (int)strlen(dirName);
401 memcpy(path, dirName, dirLength);
408 fprintf(stderr, "Cannot open directory '%s'\n", dirName);
417 memcpy(path, dirName, dirLength);
454 UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char** bufEnd)
461 if (!(dir = opendir(dirName))) {
462 fprintf(stderr, "Cannot open directory '%s': %s\n", dirName, strerror(errno));
466 dirLength = (int)strlen(dirName);
474 memcpy(path, dirName, dirLength);
501 fprintf(stderr, "readdir(%s) error: %s\n", dirName, strerror(errno));
511 UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char** bufEnd)
514 fprintf(stderr, "Directory %s ignored (compiled without _WIN32 or _POSIX_C_SOURCE)\n", dirName);