From: Brad Fitzpatrick Date: Mon, 12 Mar 2012 20:17:48 +0000 (-0700) Subject: os: document FileInfo.Size as system-dependent for irregular files X-Git-Tag: weekly.2012-03-13~33 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4edd53e47b5a2e474f4e0b0399c272c48952d261;p=gostls13.git os: document FileInfo.Size as system-dependent for irregular files R=rsc, r CC=golang-dev https://golang.org/cl/5795059 --- diff --git a/src/pkg/os/types.go b/src/pkg/os/types.go index c7c5199be1..01dddf50de 100644 --- a/src/pkg/os/types.go +++ b/src/pkg/os/types.go @@ -15,7 +15,7 @@ func Getpagesize() int { return syscall.Getpagesize() } // A FileInfo describes a file and is returned by Stat and Lstat type FileInfo interface { Name() string // base name of the file - Size() int64 // length in bytes + Size() int64 // length in bytes for regular files; system-dependent for others Mode() FileMode // file mode bits ModTime() time.Time // modification time IsDir() bool // abbreviation for Mode().IsDir()