Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
83788046
Commit
83788046
authored
Aug 08, 2013
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os: fix windows and plan9 builds
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/12519046
parent
9497e5e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
file.go
src/pkg/os/file.go
+3
-0
file_unix.go
src/pkg/os/file_unix.go
+0
-3
No files found.
src/pkg/os/file.go
View file @
83788046
...
...
@@ -238,3 +238,6 @@ func Open(name string) (file *File, err error) {
func
Create
(
name
string
)
(
file
*
File
,
err
error
)
{
return
OpenFile
(
name
,
O_RDWR
|
O_CREATE
|
O_TRUNC
,
0666
)
}
// lstat is overridden in tests.
var
lstat
=
Lstat
src/pkg/os/file_unix.go
View file @
83788046
...
...
@@ -149,9 +149,6 @@ func Lstat(name string) (fi FileInfo, err error) {
return
fileInfoFromStat
(
&
stat
,
name
),
nil
}
// lstat is overridden in tests.
var
lstat
=
Lstat
func
(
f
*
File
)
readdir
(
n
int
)
(
fi
[]
FileInfo
,
err
error
)
{
dirname
:=
f
.
name
if
dirname
==
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment