Commit 94d93717 authored by Ian Lance Taylor's avatar Ian Lance Taylor

os: clarify that OpenFile reqires one of O_RDONLY/O_WRONLY/O_RDWR

Fixes #21322.

Change-Id: Ia589c576be0b5cdb7cde5d35cd857ad7c93c372b
Reviewed-on: https://go-review.googlesource.com/74550Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent c2801265
......@@ -60,7 +60,8 @@ var (
)
// 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.
......
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