Commit 83788046 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

os: fix windows and plan9 builds

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12519046
parent 9497e5e2
......@@ -238,3 +238,6 @@ func Open(name string) (file *File, err error) {
func Create(name string) (file *File, err error) {
return OpenFile(name, O_RDWR|O_CREATE|O_TRUNC, 0666)
}
// lstat is overridden in tests.
var lstat = Lstat
......@@ -149,9 +149,6 @@ func Lstat(name string) (fi FileInfo, err error) {
return fileInfoFromStat(&stat, name), nil
}
// lstat is overridden in tests.
var lstat = Lstat
func (f *File) readdir(n int) (fi []FileInfo, err error) {
dirname := f.name
if dirname == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment