Lines Matching refs:dirName
506 static int UTIL_prepareFileList(const char* dirName,
516 dirLength = strlen(dirName);
520 memcpy(path, dirName, dirLength);
527 UTIL_DISPLAYLEVEL(1, "Cannot open directory '%s'\n", dirName);
536 memcpy(path, dirName, dirLength);
571 static int UTIL_prepareFileList(const char *dirName,
580 if (!(dir = opendir(dirName))) {
581 UTIL_DISPLAYLEVEL(1, "Cannot open directory '%s': %s\n", dirName, strerror(errno));
585 dirLength = strlen(dirName);
595 memcpy(path, dirName, dirLength);
629 UTIL_DISPLAYLEVEL(1, "readdir(%s) error: %s \n", dirName, strerror(errno));
639 static int UTIL_prepareFileList(const char *dirName,
644 UTIL_DISPLAYLEVEL(1, "Directory %s ignored (compiled without _WIN32 or _POSIX_C_SOURCE) \n", dirName);
683 static mode_t getDirMode(const char *dirName)
686 if (!UTIL_stat(dirName, &st)) {
687 UTIL_DISPLAY("zstd: failed to get DIR stats %s: %s\n", dirName, strerror(errno));
691 UTIL_DISPLAY("zstd: expected directory: %s\n", dirName);