diff options
author | Rob Pike <r@golang.org> | 2009-02-10 16:44:04 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-02-10 16:44:04 -0800 |
commit | 17c0505a8d02ea729dffbc7a901f3bf045bca471 (patch) | |
tree | 11d29e3bb582bf0e81f98de212a6c719c5120d59 /src | |
parent | 879b59292bb9e353db4119de2f9f4fe2f9a9f5b0 (diff) | |
download | golang-17c0505a8d02ea729dffbc7a901f3bf045bca471.tar.gz |
change DirInfo->dirInfo now that 6g export bug is fixed
R=rsc
DELTA=4 (0 added, 0 deleted, 4 changed)
OCL=24788
CL=24805
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/os/dir_amd64_darwin.go | 2 | ||||
-rw-r--r-- | src/lib/os/dir_amd64_linux.go | 2 | ||||
-rw-r--r-- | src/lib/os/file.go | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/os/dir_amd64_darwin.go b/src/lib/os/dir_amd64_darwin.go index 04d3a90c6..2821076dc 100644 --- a/src/lib/os/dir_amd64_darwin.go +++ b/src/lib/os/dir_amd64_darwin.go @@ -18,7 +18,7 @@ const ( func Readdirnames(fd *FD, count int) (names []string, err *os.Error) { // If this fd has no dirinfo, create one. if fd.dirinfo == nil { - fd.dirinfo = new(DirInfo); + fd.dirinfo = new(dirInfo); // The buffer must be at least a block long. // TODO(r): use fstatfs to find fs block size. fd.dirinfo.buf = make([]byte, blockSize); diff --git a/src/lib/os/dir_amd64_linux.go b/src/lib/os/dir_amd64_linux.go index a5b8a7ba2..f73febc4c 100644 --- a/src/lib/os/dir_amd64_linux.go +++ b/src/lib/os/dir_amd64_linux.go @@ -27,7 +27,7 @@ func clen(n []byte) int { func Readdirnames(fd *FD, count int) (names []string, err *os.Error) { // If this fd has no dirinfo, create one. if fd.dirinfo == nil { - fd.dirinfo = new(DirInfo); + fd.dirinfo = new(dirInfo); // The buffer must be at least a block long. // TODO(r): use fstatfs to find fs block size. fd.dirinfo.buf = make([]byte, blockSize); diff --git a/src/lib/os/file.go b/src/lib/os/file.go index 2a4bc6723..a0fc4bb67 100644 --- a/src/lib/os/file.go +++ b/src/lib/os/file.go @@ -8,7 +8,7 @@ import syscall "syscall" import os "os" // Auxiliary information if the FD describes a directory -type DirInfo struct { // TODO(r): 6g bug means this can't be private +type dirInfo struct { // TODO(r): 6g bug means this can't be private buf []byte; // buffer for directory I/O nbuf int64; // length of buf; return value from Getdirentries bufp int64; // location of next record in buf. @@ -18,7 +18,7 @@ type DirInfo struct { // TODO(r): 6g bug means this can't be private type FD struct { fd int64; name string; - dirinfo *DirInfo; // nil unless directory being read + dirinfo *dirInfo; // nil unless directory being read } func (fd *FD) Fd() int64 { |