commit | 12befd063b3be0b46e7385f4ad98e8effe87c0e7 | [log] [tgz] |
---|---|---|
author | Peter Mundy <go.peter.90@gmail.com> | Tue Aug 03 13:03:50 2010 -0700 |
committer | Russ Cox <rsc@golang.org> | Tue Aug 03 13:03:50 2010 -0700 |
tree | b124a0a41f7dbd8de7fbd5baa96b5502f49f5d29 | |
parent | 311973ea5679e460cecf04193e80e8baf4bbc324 [diff] [blame] |
os: Null device R=rsc, cw CC=golang-dev https://golang.org/cl/1854042
diff --git a/src/pkg/os/file_windows.go b/src/pkg/os/file_windows.go index 4f7acbb..2c1c20c 100644 --- a/src/pkg/os/file_windows.go +++ b/src/pkg/os/file_windows.go
@@ -17,6 +17,8 @@ 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) {