Home | History | Annotate | Download | only in os

Lines Matching defs:Fd

33 	fd      int
39 // Fd returns the integer Unix file descriptor referencing the open file.
41 func (f *File) Fd() uintptr {
45 return uintptr(f.fd)
49 func NewFile(fd uintptr, name string) *File {
50 fdi := int(fd)
54 f := &File{&file{fd: fdi, name: name}}
122 if file == nil || file.fd < 0 {
126 if e := syscall.Close(file.fd); e != nil {
129 file.fd = -1 // so it can't be closed again
143 err := syscall.Fstat(f.fd, &stat)
211 return fixCount(syscall.Read(f.fd, b))
221 return fixCount(syscall.Pread(f.fd, b, off))
232 m, err := fixCount(syscall.Write(f.fd, bcap))
258 return fixCount(syscall.Pwrite(f.fd, b, off))
266 return syscall.Seek(f.fd, offset, whence)