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
8f9a9537
Commit
8f9a9537
authored
Jun 29, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make use of forward method declaration
R=r DELTA=11 (0 added, 6 deleted, 5 changed) OCL=30862 CL=30870
parent
9435dc2b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
11 deletions
+5
-11
dir_darwin_386.go
src/pkg/os/dir_darwin_386.go
+1
-1
dir_darwin_amd64.go
src/pkg/os/dir_darwin_amd64.go
+1
-1
dir_linux_386.go
src/pkg/os/dir_linux_386.go
+1
-1
dir_linux_amd64.go
src/pkg/os/dir_linux_amd64.go
+1
-1
file.go
src/pkg/os/file.go
+1
-7
No files found.
src/pkg/os/dir_darwin_386.go
View file @
8f9a9537
...
...
@@ -15,7 +15,7 @@ const (
)
// Negative count means read until EOF.
func
readdirnames
(
file
*
File
,
count
int
)
(
names
[]
string
,
err
Error
)
{
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
// If this file has no dirinfo, create one.
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
);
...
...
src/pkg/os/dir_darwin_amd64.go
View file @
8f9a9537
...
...
@@ -15,7 +15,7 @@ const (
)
// Negative count means read until EOF.
func
readdirnames
(
file
*
File
,
count
int
)
(
names
[]
string
,
err
Error
)
{
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
// If this file has no dirinfo, create one.
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
);
...
...
src/pkg/os/dir_linux_386.go
View file @
8f9a9537
...
...
@@ -28,7 +28,7 @@ func clen(n []byte) int {
}
// Negative count means read until EOF.
func
readdirnames
(
file
*
File
,
count
int
)
(
names
[]
string
,
err
Error
)
{
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
// If this file has no dirinfo, create one.
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
);
...
...
src/pkg/os/dir_linux_amd64.go
View file @
8f9a9537
...
...
@@ -24,7 +24,7 @@ func clen(n []byte) int {
}
// Negative count means read until EOF.
func
readdirnames
(
file
*
File
,
count
int
)
(
names
[]
string
,
err
Error
)
{
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
// If this file has no dirinfo, create one.
if
file
.
dirinfo
==
nil
{
file
.
dirinfo
=
new
(
dirInfo
);
...
...
src/pkg/os/file.go
View file @
8f9a9537
...
...
@@ -257,18 +257,12 @@ func Lstat(name string) (dir *Dir, err Error) {
return
dirFromStat
(
name
,
new
(
Dir
),
&
stat
,
&
stat
),
nil
}
// Readdirnames has a non-portable implemenation so its code is separated into an
// operating-system-dependent file.
func
readdirnames
(
file
*
File
,
count
int
)
(
names
[]
string
,
err
Error
)
// Readdirnames reads the contents of the directory associated with file and
// returns an array of up to count names, in directory order. Subsequent
// calls on the same file will yield further names.
// A negative count means to read until EOF.
// Readdirnames returns the array and an Error, if any.
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
{
return
readdirnames
(
file
,
count
);
}
func
(
file
*
File
)
Readdirnames
(
count
int
)
(
names
[]
string
,
err
Error
)
// Readdir reads the contents of the directory associated with file and
// returns an array of up to count Dir structures, as would be returned
...
...
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