]> Cypherpunks repositories - gostls13.git/commit
os: document that behavior of Seek on O_APPEND files is not specified
authorShenghou Ma <minux@golang.org>
Wed, 23 Sep 2015 15:49:44 +0000 (11:49 -0400)
committerMinux Ma <minux@golang.org>
Wed, 23 Sep 2015 17:06:02 +0000 (17:06 +0000)
commit53c92f95a888837571eda1cf356425010f92edde
tree209d8f532a155d07bc6dc60e0d2da2beaee7dd2e
parent604fbab3f113d37fcbc84ec2f80e57569af71361
os: document that behavior of Seek on O_APPEND files is not specified

The actual behavior varies across platforms, and due to the inherent
race, we can't do anything better (other than to always return 0).

Fixes #12710.

Change-Id: Icb52f0f1f0a267e0f9f70767cae427f3f0239965
Reviewed-on: https://go-review.googlesource.com/14881
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/file.go