| 14 | } |
| 15 | |
| 16 | bool ofstream::open_write(const char* path, bool otrunc /* = true */) |
| 17 | { |
| 18 | if (otrunc) { |
| 19 | return open(path, O_WRONLY | O_TRUNC | O_CREAT, 0600); |
| 20 | } else { |
| 21 | return open(path, O_WRONLY | O_CREAT, 0600); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | bool ofstream::open_append(const char* path) |
| 26 | { |
no test coverage detected