| 78 | } |
| 79 | |
| 80 | static int read_platf(DESC file, void* buf, int count) |
| 81 | { |
| 82 | #ifdef WIN_NT |
| 83 | DWORD act; |
| 84 | if (!ReadFile(file, buf, count, &act, NULL)) |
| 85 | { |
| 86 | return -1; |
| 87 | } |
| 88 | return act; |
| 89 | #else |
| 90 | return read(file, buf, count); |
| 91 | #endif |
| 92 | } |
| 93 | |
| 94 | static int write_platf(DESC file, const void* buf, int count) |
| 95 | { |
no outgoing calls
no test coverage detected