| 68 | static const int mask = 0666; |
| 69 | |
| 70 | static DESC open_platf(const char* name, int writeFlag) |
| 71 | { |
| 72 | #ifdef WIN_NT |
| 73 | return CreateFile(name, (writeFlag ? GENERIC_WRITE : GENERIC_READ), 0, NULL, |
| 74 | (writeFlag ? CREATE_ALWAYS : OPEN_EXISTING), FILE_ATTRIBUTE_NORMAL, 0); |
| 75 | #else |
| 76 | return os_utils::open(name, (writeFlag ? mode_write : mode_read), mask); |
| 77 | #endif |
| 78 | } |
| 79 | |
| 80 | static int read_platf(DESC file, void* buf, int count) |
| 81 | { |
no test coverage detected