| 266 | } |
| 267 | |
| 268 | static int dfs_win32_read(struct dfs_file *file, void *buf, size_t len) |
| 269 | { |
| 270 | int fd; |
| 271 | int char_read; |
| 272 | |
| 273 | fd = (int)(file->data); |
| 274 | char_read = _read(fd, buf, len); |
| 275 | if (char_read < 0) |
| 276 | return win32_result_to_dfs(GetLastError()); |
| 277 | |
| 278 | /* update position */ |
| 279 | file->pos = _lseek(fd, 0, SEEK_CUR); |
| 280 | return char_read; |
| 281 | } |
| 282 | |
| 283 | static int dfs_win32_write(struct dfs_file *file, const void *buf, size_t len) |
| 284 | { |
nothing calls this directly
no test coverage detected