Commit 4edd53e4 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

os: document FileInfo.Size as system-dependent for irregular files

R=rsc, r
CC=golang-dev
https://golang.org/cl/5795059
parent b2369114
...@@ -15,7 +15,7 @@ func Getpagesize() int { return syscall.Getpagesize() } ...@@ -15,7 +15,7 @@ func Getpagesize() int { return syscall.Getpagesize() }
// A FileInfo describes a file and is returned by Stat and Lstat // A FileInfo describes a file and is returned by Stat and Lstat
type FileInfo interface { type FileInfo interface {
Name() string // base name of the file 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 Mode() FileMode // file mode bits
ModTime() time.Time // modification time ModTime() time.Time // modification time
IsDir() bool // abbreviation for Mode().IsDir() IsDir() bool // abbreviation for Mode().IsDir()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment