diff --git a/file.go b/file.go index 4334ff1..692c566 100644 --- a/file.go +++ b/file.go @@ -265,6 +265,10 @@ func (f *win32File) Flush() error { return syscall.FlushFileBuffers(f.handle) } +func (f *win32File) Fd() uintptr { + return uintptr(f.handle) +} + func (d *deadlineHandler) set(deadline time.Time) error { d.setLock.Lock() defer d.setLock.Unlock()