os: add Seek whence constants
R=r, r2, rsc1, rsc, jacek.masiulaniec
CC=golang-dev
https://golang.org/cl/4344062
diff --git a/src/pkg/os/file.go b/src/pkg/os/file.go
index e916d16..f14d00dd 100644
--- a/src/pkg/os/file.go
+++ b/src/pkg/os/file.go
@@ -61,6 +61,13 @@
O_CREATE int = O_CREAT // create a new file if none exists.
)
+// Seek whence values.
+const (
+ SEEK_SET int = 0 // seek relative to the origin of the file
+ SEEK_CUR int = 1 // seek relative to the current offset
+ SEEK_END int = 2 // seek relative to the end
+)
+
type eofError int
func (eofError) String() string { return "EOF" }