| 284 | } |
| 285 | |
| 286 | int __cdecl read(int f, void *buffer, unsigned int count) |
| 287 | { |
| 288 | HANDLE p = get_file_handle(f); |
| 289 | DWORD bytes_read; |
| 290 | if (!ReadFile(p, buffer, count, &bytes_read, NULL)) |
| 291 | return -1; |
| 292 | else |
| 293 | return (int) bytes_read; |
| 294 | } |
| 295 | |
| 296 | int __cdecl unlink(const char *filename) |
| 297 | { |
no test coverage detected