| 218 | } |
| 219 | |
| 220 | inline int openProgress(const std::string& filename) |
| 221 | { |
| 222 | #ifdef _WIN32 |
| 223 | return -1; |
| 224 | #else |
| 225 | int fd = open(filename.c_str(), O_WRONLY | O_NONBLOCK); |
| 226 | if (fd == -1) |
| 227 | { |
| 228 | std::string out = "Can't open progress file '"; |
| 229 | out += filename + "'."; |
| 230 | printError(out); |
| 231 | } |
| 232 | return fd; |
| 233 | #endif |
| 234 | } |
| 235 | |
| 236 | |
| 237 | inline void closeProgress(int fd) |
no test coverage detected