1
0
mirror of https://github.com/golang/go synced 2024-11-18 03:24:42 -07:00

os: be more specific on what flags are used for

The flags are used in OpenFile, not Open.

Change-Id: I45c1639e36694529cb29c2b580c43a22e6fd10ac
Reviewed-on: https://go-review.googlesource.com/17352
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Volker Dobler 2015-12-03 17:00:31 +01:00 committed by Brad Fitzpatrick
parent 3e6529d202
commit 008e96c056

View File

@ -52,8 +52,8 @@ var (
Stderr = NewFile(uintptr(syscall.Stderr), "/dev/stderr") Stderr = NewFile(uintptr(syscall.Stderr), "/dev/stderr")
) )
// Flags to Open wrapping those of the underlying system. Not all flags // Flags to OpenFile wrapping those of the underlying system. Not all
// may be implemented on a given system. // flags may be implemented on a given system.
const ( const (
O_RDONLY int = syscall.O_RDONLY // open the file read-only. O_RDONLY int = syscall.O_RDONLY // open the file read-only.
O_WRONLY int = syscall.O_WRONLY // open the file write-only. O_WRONLY int = syscall.O_WRONLY // open the file write-only.