1
0
mirror of https://github.com/golang/go synced 2024-11-12 02:10:21 -07:00
go/misc
Rob Pike 8a90fd3c72 os: New Open API.
We replace the current Open with:
OpenFile(name, flag, perm) // same as old Open
Open(name) // same as old Open(name, O_RDONLY, 0)
Create(name) // same as old Open(name, O_RDWR|O_TRUNC|O_CREAT, 0666)

This CL includes a gofix module and full code updates: all.bash passes.
(There may be a few comments I missed.)

The interesting packages are:
        gofix
        os
Everything else is automatically generated except for hand tweaks to:
        src/pkg/io/ioutil/ioutil.go
        src/pkg/io/ioutil/tempfile.go
        src/pkg/crypto/tls/generate_cert.go
        src/cmd/goyacc/goyacc.go
        src/cmd/goyacc/units.y

R=golang-dev, bradfitzwork, rsc, r2
CC=golang-dev
https://golang.org/cl/4357052
2011-04-04 23:42:14 -07:00
..
arm arm: add gdb support to android launcher script 2010-07-30 10:35:07 +03:00
bash misc/bash: add *.go completion for gofmt 2010-08-30 21:13:11 -04:00
bbedit misc/bbedit: remove closed keyword 2011-03-23 16:29:40 +11:00
cgo go/printer, gofmt: simplify struct formatting and respect line breaks 2011-03-22 11:05:26 -07:00
dashboard os: New Open API. 2011-04-04 23:42:14 -07:00
emacs misc/emacs: gofmt: don't clobber the current buffer on failure 2011-03-24 10:35:39 -04:00
fraise misc: update type + builtin lists found in editor support files 2011-01-19 23:07:49 -05:00
goplay os: New Open API. 2011-04-04 23:42:14 -07:00
kate kate: reorganize, remove closed() 2011-03-29 01:12:39 -04:00
nacl runtime: closures, defer bug fix for Native Client 2010-04-22 17:52:22 -07:00
notepadplus misc/notepadplus: add syntax and completion support for notepad++ 2011-04-01 14:44:57 +11:00
swig Make.pkg: add support for SWIG, and add two SWIG examples 2011-03-22 13:05:51 -07:00
vim misc/vim: remove 'closed' as a builtin function. 2011-03-23 14:26:28 +11:00
xcode More Xcode support. 2009-12-30 15:30:57 -08:00
zsh misc: add zsh completion (using compctl) 2010-08-30 21:13:01 -04:00