| 46 | } |
| 47 | |
| 48 | FILE* 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 | |
| 62 | void cmExecuteProcessCommandFixText(std::vector<char>& output, |
| 63 | bool strip_trailing_whitespace); |
no test coverage detected
searching dependent graphs…