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
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
dir_darwin.go
src/pkg/os/dir_darwin.go
+1
-2
dir_freebsd.go
src/pkg/os/dir_freebsd.go
+1
-2
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 (
...
@@ -10,7 +10,7 @@ import (
)
)
const
(
const
(
blockSize
=
4096
// TODO(r): use statfs
blockSize
=
4096
)
)
// Readdirnames reads the contents of the directory associated with file and
// 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) {
...
@@ -23,7 +23,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) {
if
file
.
dirinfo
==
nil
{
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
)
file
.
dirinfo
=
new
(
dirInfo
)
// The buffer must be at least a block long.
// The buffer must be at least a block long.
// TODO(r): use fstatfs to find fs block size.
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
}
}
d
:=
file
.
dirinfo
d
:=
file
.
dirinfo
...
...
src/pkg/os/dir_freebsd.go
View file @
b3166bcb
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
)
)
const
(
const
(
blockSize
=
4096
// TODO(r): use statfs
blockSize
=
4096
)
)
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
...
@@ -18,7 +18,6 @@ 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
{
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
)
file
.
dirinfo
=
new
(
dirInfo
)
// The buffer must be at least a block long.
// The buffer must be at least a block long.
// TODO(r): use fstatfs to find fs block size.
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
}
}
d
:=
file
.
dirinfo
d
:=
file
.
dirinfo
...
...
src/pkg/os/dir_linux.go
View file @
b3166bcb
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
)
)
const
(
const
(
blockSize
=
4096
// TODO(r): use statfs
blockSize
=
4096
)
)
func
clen
(
n
[]
byte
)
int
{
func
clen
(
n
[]
byte
)
int
{
...
@@ -27,7 +27,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) {
...
@@ -27,7 +27,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) {
if
file
.
dirinfo
==
nil
{
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
)
file
.
dirinfo
=
new
(
dirInfo
)
// The buffer must be at least a block long.
// The buffer must be at least a block long.
// TODO(r): use fstatfs to find fs block size.
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
file
.
dirinfo
.
buf
=
make
([]
byte
,
blockSize
)
}
}
d
:=
file
.
dirinfo
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