MCPcopy Create free account
hub / github.com/F-Stack/f-stack / makeDir

Function makeDir

freebsd/contrib/zstd/programs/util.c:697–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697static 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 */
714static void convertPathnameToDirName(char *pathname)

Callers 2

mirrorSrcDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected