Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(336)

Unified Diff: src/pkg/os/env_plan9.go

Issue 4357052: code review 4357052: os: New Open API. (Closed)
Patch Set: diff -r dc1d5042801a https://go.googlecode.com/hg/ Created 12 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pkg/os/env_plan9.go
===================================================================
--- a/src/pkg/os/env_plan9.go
+++ b/src/pkg/os/env_plan9.go
@@ -17,7 +17,7 @@
if len(key) == 0 {
return "", EINVAL
}
- f, e := Open("/env/"+key, O_RDONLY, 0)
+ f, e := Open("/env/" + key)
if iserror(e) {
return "", ENOENV
}
@@ -46,7 +46,7 @@
return EINVAL
}
- f, e := Open("/env/"+key, O_WRONLY|O_CREAT, 0666)
+ f, e := Create("/env/" + key)
if iserror(e) {
return e
}
@@ -66,7 +66,7 @@
func Environ() []string {
env := make([]string, 0, 100)
- f, e := Open("/env", O_RDONLY, 0)
+ f, e := Open("/env")
if iserror(e) {
panic(e)
}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b