From: Ken Thompson Date: Tue, 10 Nov 2009 23:05:15 +0000 (-0800) Subject: spell it with an "e" X-Git-Tag: weekly.2009-11-10.1~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c90d392ce3d3203e0c32b3f98d1e68c4c2b4c49b;p=gostls13.git spell it with an "e" R=rsc http://go/go-review/1025037 --- diff --git a/src/pkg/os/file.go b/src/pkg/os/file.go index f68a33cc48..edc228c53b 100644 --- a/src/pkg/os/file.go +++ b/src/pkg/os/file.go @@ -62,6 +62,7 @@ const ( O_NDELAY = O_NONBLOCK; // synonym for O_NONBLOCK O_SYNC = syscall.O_SYNC; // open for synchronous I/O. O_TRUNC = syscall.O_TRUNC; // if possible, truncate file when opened. + O_CREATE = O_CREAT; // create a new file if none exists. ) // Open opens the named file with specified flag (O_RDONLY etc.) and perm, (0666 etc.)