| 45 | //------------------------------------------------------------------------- |
| 46 | |
| 47 | RecHandle |
| 48 | RecFileOpenW(const char *file) |
| 49 | { |
| 50 | RecHandle h_file; |
| 51 | |
| 52 | if ((h_file = ::open(file, O_WRONLY | O_TRUNC | O_CREAT, 0600)) < 0) { |
| 53 | return REC_HANDLE_INVALID; |
| 54 | } |
| 55 | fcntl(h_file, F_SETFD, FD_CLOEXEC); |
| 56 | return h_file; |
| 57 | } |
| 58 | |
| 59 | //------------------------------------------------------------------------- |
| 60 | // RecFileSync |
no outgoing calls
no test coverage detected