os: Null device

R=rsc, cw
CC=golang-dev
https://golang.org/cl/1854042
This commit is contained in:
Peter Mundy 2010-08-03 13:03:50 -07:00 committed by Russ Cox
parent 311973ea56
commit 12befd063b
3 changed files with 7 additions and 1 deletions

View file

@ -17,6 +17,8 @@ type dirInfo struct {
usefirststat bool
}
const DevNull = "NUL"
func (file *File) isdir() bool { return file != nil && file.dirinfo != nil }
func openFile(name string, flag int, perm int) (file *File, err Error) {