diff options
-rw-r--r-- | src/pkg/os/file.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/os/file.go b/src/pkg/os/file.go index f68a33cc4..edc228c53 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.) |