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
2f147992
Commit
2f147992
authored
Feb 09, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Getdirentries: base comes back in r2.
R=rsc DELTA=3 (3 added, 0 deleted, 0 changed) OCL=24727 CL=24727
parent
cad7a3ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/lib/syscall/file_darwin.go
src/lib/syscall/file_darwin.go
+3
-0
No files found.
src/lib/syscall/file_darwin.go
View file @
2f147992
...
@@ -96,5 +96,8 @@ func Dup2(fd1, fd2 int64) (ret int64, errno int64) {
...
@@ -96,5 +96,8 @@ func Dup2(fd1, fd2 int64) (ret int64, errno int64) {
func
Getdirentries
(
fd
int64
,
buf
*
byte
,
nbytes
int64
,
basep
*
int64
)
(
ret
int64
,
errno
int64
)
{
func
Getdirentries
(
fd
int64
,
buf
*
byte
,
nbytes
int64
,
basep
*
int64
)
(
ret
int64
,
errno
int64
)
{
r1
,
r2
,
err
:=
Syscall6
(
SYS_GETDIRENTRIES64
,
fd
,
int64
(
uintptr
(
unsafe
.
Pointer
(
buf
))),
nbytes
,
int64
(
uintptr
(
unsafe
.
Pointer
(
basep
))),
0
,
0
);
r1
,
r2
,
err
:=
Syscall6
(
SYS_GETDIRENTRIES64
,
fd
,
int64
(
uintptr
(
unsafe
.
Pointer
(
buf
))),
nbytes
,
int64
(
uintptr
(
unsafe
.
Pointer
(
basep
))),
0
,
0
);
if
r1
!=
-
1
{
*
basep
=
r2
}
return
r1
,
err
;
return
r1
,
err
;
}
}
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