func (f *File) Read(p []byte) (int, error) {
	return f.read(p)
}
Read reads up to len(b) bytes from the File.
package os
import "github.com/DQNEO/minigo/stdlib/syscall"
const O_RDONLY = 0
var Stdout *File = &File{
	pfd: &sfd1,
}
var Stderr *File = &File{
	pfd: &sfd2,
}
type File struct {
	pfd *PollFD
}
func (f *File) Fd() int {
	return f.pfd.Sysfd
}
func OpenFile(name string, flag int, perm int) (*File, error) {
	return openFileNolog(name, flag, perm)
}
func Open(name string) (*File, error) {
	return OpenFile(name, O_RDONLY, 0)
}
func (f *File) write(b []byte) (int, error) {
	fd := f.pfd
	var n int
	var err error
	n, err = fd.Write(b)
	return n, err
}
func (f *File) Write(b []byte) (int, error) {
	n, err := f.write(b)
	return n, err
}
func (f *File) read(p []byte) (int, error) {
	fd := f.pfd
	var n int
	var err error
	n, err = fd.Read(p)
	return n, err
}