]> Cypherpunks repositories - gostls13.git/commitdiff
spell it with an "e"
authorKen Thompson <ken@golang.org>
Tue, 10 Nov 2009 23:05:15 +0000 (15:05 -0800)
committerKen Thompson <ken@golang.org>
Tue, 10 Nov 2009 23:05:15 +0000 (15:05 -0800)
R=rsc
http://go/go-review/1025037

src/pkg/os/file.go

index f68a33cc482b8a2e35314a198f385ee4ab133935..edc228c53bba72734e931f7bf0b796beb818e664 100644 (file)
@@ -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.)