| 695 | } |
| 696 | |
| 697 | static int makeDir(const char *dir, mode_t mode) |
| 698 | { |
| 699 | #if defined(_MSC_VER) || defined(__MINGW32__) || defined (__MSVCRT__) |
| 700 | int ret = _mkdir(dir); |
| 701 | (void) mode; |
| 702 | #else |
| 703 | int ret = mkdir(dir, mode); |
| 704 | #endif |
| 705 | if (ret != 0) { |
| 706 | if (errno == EEXIST) |
| 707 | return 0; |
| 708 | UTIL_DISPLAY("zstd: failed to create DIR %s: %s\n", dir, strerror(errno)); |
| 709 | } |
| 710 | return ret; |
| 711 | } |
| 712 | |
| 713 | /* this function requires a mutable input string */ |
| 714 | static void convertPathnameToDirName(char *pathname) |
no outgoing calls
no test coverage detected