Lines Matching defs:Fd
28 fd syscall.Handle
39 // Fd returns the Windows handle referencing the open file.
41 func (file *File) Fd() uintptr {
45 return uintptr(file.fd)
51 f := &File{&file{fd: h, name: name}}
53 if syscall.GetConsoleMode(f.fd, &m) == nil {
61 func NewFile(fd uintptr, name string) *File {
62 h := syscall.Handle(fd)
173 if file.fd == syscall.InvalidHandle {
178 e = syscall.FindClose(syscall.Handle(file.fd))
180 e = syscall.CloseHandle(syscall.Handle(file.fd))
186 file.fd = syscall.InvalidHandle // so it can't be closed again
200 if !file.dirinfo.isempty && file.fd == syscall.InvalidHandle {
213 e := syscall.FindNextFile(syscall.Handle(file.fd), d)
273 err := syscall.ReadConsole(f.fd, p, uint32(len(wchars)), &nw, nil)
300 return fixCount(syscall.Read(f.fd, b))
309 curoffset, e := syscall.Seek(f.fd, 0, 1)
313 defer syscall.Seek(f.fd, curoffset, 0)
319 e = syscall.ReadFile(syscall.Handle(f.fd), b, &done, &o)
363 err = syscall.WriteConsole(f.fd, &uint16s[0], uint32(len(uint16s)), &written, nil)
381 return fixCount(syscall.Write(f.fd, b))
389 curoffset, e := syscall.Seek(f.fd, 0, 1)
393 defer syscall.Seek(f.fd, curoffset, 0)
399 e = syscall.WriteFile(syscall.Handle(f.fd), b, &done, &o)
413 return syscall.Seek(f.fd, offset, whence)