Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/pkg/os/file.go
src/pkg/os/file.go
+3
-0
src/pkg/os/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