MCPcopy Create free account
hub / github.com/Kitware/CMake / FopenCLOEXEC

Function FopenCLOEXEC

Source/cmExecuteProcessCommand.cxx:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48FILE* FopenCLOEXEC(std::string const& path, char const* mode)
49{
50 FILE* f = cmsys::SystemTools::Fopen(path, mode);
51#ifndef _WIN32
52 if (f) {
53 if (fcntl(cm_fileno(f), F_SETFD, FD_CLOEXEC) < 0) {
54 fclose(f);
55 f = nullptr;
56 }
57 }
58#endif
59 return f;
60}
61
62void cmExecuteProcessCommandFixText(std::vector<char>& output,
63 bool strip_trailing_whitespace);

Callers 1

cmExecuteProcessCommandFunction · 0.85

Calls 1

cm_filenoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…