| 281 | } |
| 282 | |
| 283 | static int dfs_win32_write(struct dfs_file *file, const void *buf, size_t len) |
| 284 | { |
| 285 | int fd; |
| 286 | int char_write; |
| 287 | |
| 288 | fd = (int)(file->data); |
| 289 | |
| 290 | char_write = _write(fd, buf, len); |
| 291 | if (char_write < 0) |
| 292 | return win32_result_to_dfs(GetLastError()); |
| 293 | |
| 294 | /* update position */ |
| 295 | file->pos = _lseek(fd, 0, SEEK_CUR); |
| 296 | return char_write; |
| 297 | } |
| 298 | |
| 299 | static int dfs_win32_flush(struct dfs_file *file) |
| 300 | { |
nothing calls this directly
no test coverage detected