1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:50:21 -07:00

os: fix windows and plan9 builds

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12519046
This commit is contained in:
Brad Fitzpatrick 2013-08-08 11:13:00 -07:00
parent 9497e5e2f0
commit 8378804640
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 == "" {