Lines Matching refs:filehandle
171 if (win_fh->filehandle != INVALID_HANDLE_VALUE && in __win_file_close()
172 CloseHandle(win_fh->filehandle) == 0) { in __win_file_close()
223 if (LockFile(win_fh->filehandle, 0, 0, 1, 0) == FALSE) { in __win_file_lock()
232 if (UnlockFile(win_fh->filehandle, 0, 0, 1, 0) == FALSE) { in __win_file_lock()
279 win_fh->filehandle, addr, chunk, &nr, &overlapped)) { in __win_file_read()
312 if (GetFileSizeEx(win_fh->filehandle, &size) != 0) { in __win_file_size()
346 if (win_fh->filehandle == INVALID_HANDLE_VALUE) in __win_file_sync()
349 if (FlushFileBuffers(win_fh->filehandle) == FALSE) { in __win_file_sync()
446 win_fh->filehandle, addr, chunk, &nw, &overlapped)) { in __win_file_write()
487 win_fh->filehandle = in __win_open_file()
547 win_fh->filehandle = CreateFileW(name_wide->data, desired_access, in __win_open_file()
550 if (win_fh->filehandle == INVALID_HANDLE_VALUE) { in __win_open_file()
553 win_fh->filehandle = CreateFileW(name_wide->data, in __win_open_file()
556 if (win_fh->filehandle == INVALID_HANDLE_VALUE) { in __win_open_file()