|
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
Total comments: 7
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+291 lines, -106 lines) |
Patch |
|
M |
misc/dashboard/builder/exec.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
1 comment
|
Download
|
|
M |
misc/goplay/goplay.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/cgo/main.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/cgo/util.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/godoc/codewalk.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/godoc/index.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/godoc/utils.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/gofix/Makefile
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/cmd/gofix/main.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
src/cmd/gofix/osopen.go
|
View
|
1
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/cmd/gofix/osopen_test.go
|
View
|
1
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/cmd/gofmt/gofmt.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/cmd/goinstall/main.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/goinstall/parse.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/gotest/gotest.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/cmd/gotype/gotype.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/goyacc/goyacc.go
|
View
|
1
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/cmd/goyacc/units.y
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/archive/tar/reader_test.go
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/pkg/archive/zip/reader.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/compress/lzw/writer_test.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/compress/zlib/writer_test.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/crypto/rand/rand_unix.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/crypto/tls/generate_cert.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
1 comment
|
Download
|
|
M |
src/pkg/debug/elf/file.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/debug/macho/file.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/debug/pe/file.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/debug/proc/proc_linux.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/exec/exec.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/exp/draw/x11/auth.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/exp/ogle/cmd.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/go/parser/interface.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/gob/dump.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/html/parse_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/http/fs.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/image/decode_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/image/png/reader_test.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/io/ioutil/ioutil.go
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/io/ioutil/tempfile.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/mime/type.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/net/parse.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/net/parse_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/os/env_plan9.go
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/file.go
|
View
|
1
2
|
2 chunks |
+19 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/file_plan9.go
|
View
|
1
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/file_unix.go
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/file_windows.go
|
View
|
1
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/getwd.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/os/inotify/inotify_linux_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
1 comment
|
Download
|
|
M |
src/pkg/os/os_test.go
|
View
|
1
|
15 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/path.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/os/path_test.go
|
View
|
1
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/sys_linux.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/os/sys_plan9.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/path/filepath/match.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/path/filepath/path.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/path/filepath/path_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/strconv/fp_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/testing/testing.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 17
|