aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/os/dir.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/dir.go')
-rw-r--r--libgo/go/os/dir.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/libgo/go/os/dir.go b/libgo/go/os/dir.go
index 53a84b1..0e3c399 100644
--- a/libgo/go/os/dir.go
+++ b/libgo/go/os/dir.go
@@ -28,19 +28,7 @@ func clen(n []byte) int {
var elen int;
-// Readdirnames reads and returns a slice of names from the directory f.
-//
-// If n > 0, Readdirnames returns at most n names. In this case, if
-// Readdirnames returns an empty slice, it will return a non-nil error
-// explaining why. At the end of a directory, the error is os.EOF.
-//
-// If n <= 0, Readdirnames returns all the names from the directory in
-// a single slice. In this case, if Readdirnames succeeds (reads all
-// the way to the end of the directory), it returns the slice and a
-// nil error. If it encounters an error before the end of the
-// directory, Readdirnames returns the names read until that point and
-// a non-nil error.
-func (file *File) Readdirnames(n int) (names []string, err error) {
+func (file *File) readdirnames(n int) (names []string, err error) {
if elen == 0 {
var dummy syscall.Dirent;
elen = (unsafe.Offsetof(dummy.Name) +