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
b3166bcb
Commit
b3166bcb
authored
Mar 17, 2011
by
Caine Tighe
Committed by
Russ Cox
Mar 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os: remove fstat TODO
R=rsc CC=golang-dev
https://golang.org/cl/3559041
parent
9ad091e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
src/pkg/os/dir_darwin.go
src/pkg/os/dir_darwin.go
+1
-2
src/pkg/os/dir_freebsd.go
src/pkg/os/dir_freebsd.go
+1
-2
src/pkg/os/dir_linux.go
src/pkg/os/dir_linux.go
+1
-2
No files found.
src/pkg/os/dir_darwin.go
View file @
b3166bcb
...
...
@@ -10,7 +10,7 @@ import (
)
const
(
blockSize
=
4096
// TODO(r): use statfs
blockSize
=
4096
)
// Readdirnames reads the contents of the directory associated with file and
...
...
@@ -23,7 +23,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) {
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
)
// The buffer must be at least a block long.
// TODO(r): use fstatfs to find fs block size.
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
}
d
:=
file
.
dirinfo
...
...
src/pkg/os/dir_freebsd.go
View file @
b3166bcb
...
...
@@ -10,7 +10,7 @@ import (
)
const
(
blockSize
=
4096
// TODO(r): use statfs
blockSize
=
4096
)
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
...
...
@@ -18,7 +18,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) {
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
)
// The buffer must be at least a block long.
// TODO(r): use fstatfs to find fs block size.
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
}
d
:=
file
.
dirinfo
...
...
src/pkg/os/dir_linux.go
View file @
b3166bcb
...
...
@@ -10,7 +10,7 @@ import (
)
const
(
blockSize
=
4096
// TODO(r): use statfs
blockSize
=
4096
)
func
clen
(
n
[]
byte
)
int
{
...
...
@@ -27,7 +27,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) {
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
)
// The buffer must be at least a block long.
// TODO(r): use fstatfs to find fs block size.
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
}
d
:=
file
.
dirinfo
...
...
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