Fixes #21322.
Change-Id: Ia589c576be0b5cdb7cde5d35cd857ad7c93c372b
Reviewed-on: https://go-review.googlesource.com/74550
Reviewed-by: Robert Griesemer <gri@golang.org>
)
// Flags to OpenFile wrapping those of the underlying system. Not all
-// flags may be implemented on a given system.
+// flags may be implemented on a given system. Each call to OpenFile
+// should specify exactly one of O_RDONLY, O_WRONLY, or O_RDWR.
const (
O_RDONLY int = syscall.O_RDONLY // open the file read-only.
O_WRONLY int = syscall.O_WRONLY // open the file write-only.