@@ -21,9 +21,9 @@ func init() {
2121// Stdin, Stdout, and Stderr are open Files pointing to the standard input,
2222// standard output, and standard error file descriptors.
2323var (
24- Stdin = NewFile (unixFileHandle (syscall .Stdin ), "/dev/stdin" )
25- Stdout = NewFile (unixFileHandle (syscall .Stdout ), "/dev/stdout" )
26- Stderr = NewFile (unixFileHandle (syscall .Stderr ), "/dev/stderr" )
24+ Stdin = NewFile (uintptr (syscall .Stdin ), "/dev/stdin" )
25+ Stdout = NewFile (uintptr (syscall .Stdout ), "/dev/stdout" )
26+ Stderr = NewFile (uintptr (syscall .Stderr ), "/dev/stderr" )
2727)
2828
2929const DevNull = "/dev/null"
@@ -87,9 +87,9 @@ func (fs unixFilesystem) Remove(path string) error {
8787 return & PathError {Op : "remove" , Path : path , Err : e }
8888}
8989
90- func (fs unixFilesystem ) OpenFile (path string , flag int , perm FileMode ) (FileHandle , error ) {
90+ func (fs unixFilesystem ) OpenFile (path string , flag int , perm FileMode ) (uintptr , error ) {
9191 fp , err := syscall .Open (path , flag , uint32 (perm ))
92- return unixFileHandle (fp ), handleSyscallError (err )
92+ return uintptr (fp ), handleSyscallError (err )
9393}
9494
9595// unixFileHandle is a Unix file pointer with associated methods that implement
0 commit comments