MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / chMod

Function chMod

src/OSspecific/POSIX/POSIX.C:453–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451
452
453bool Foam::chMod(const fileName& name, const mode_t m)
454{
455 if (POSIX::debug)
456 {
457 Pout<< FUNCTION_NAME << " : name:" << name << endl;
458 if ((POSIX::debug & 2) && !Pstream::master())
459 {
460 error::printStack(Pout);
461 }
462 }
463 return ::chmod(name.c_str(), m) == 0;
464}
465
466
467mode_t Foam::mode(const fileName& name, const bool followLink)

Callers

nothing calls this directly

Calls 1

printStackFunction · 0.70

Tested by

no test coverage detected