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
f1ebbf80
Commit
f1ebbf80
authored
Dec 22, 2011
by
Joel Sing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: make pipe work on netbsd
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5504070
parent
a626adce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
syscall_netbsd.go
src/pkg/syscall/syscall_netbsd.go
+2
-2
zsyscall_netbsd_386.go
src/pkg/syscall/zsyscall_netbsd_386.go
+2
-2
zsyscall_netbsd_amd64.go
src/pkg/syscall/zsyscall_netbsd_amd64.go
+2
-2
No files found.
src/pkg/syscall/syscall_netbsd.go
View file @
f1ebbf80
...
@@ -62,13 +62,13 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int,
...
@@ -62,13 +62,13 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int,
return
origlen
-
len
(
buf
),
count
,
names
return
origlen
-
len
(
buf
),
count
,
names
}
}
//sysnb pipe
(p *[2]
_C_int) (err error)
//sysnb pipe
2(p *[2]_C_int, flags
_C_int) (err error)
func
Pipe
(
p
[]
int
)
(
err
error
)
{
func
Pipe
(
p
[]
int
)
(
err
error
)
{
if
len
(
p
)
!=
2
{
if
len
(
p
)
!=
2
{
return
EINVAL
return
EINVAL
}
}
var
pp
[
2
]
_C_int
var
pp
[
2
]
_C_int
err
=
pipe
(
&
pp
)
err
=
pipe
2
(
&
pp
,
0
)
p
[
0
]
=
int
(
pp
[
0
])
p
[
0
]
=
int
(
pp
[
0
])
p
[
1
]
=
int
(
pp
[
1
])
p
[
1
]
=
int
(
pp
[
1
])
return
return
...
...
src/pkg/syscall/zsyscall_netbsd_386.go
View file @
f1ebbf80
...
@@ -253,8 +253,8 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
...
@@ -253,8 +253,8 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
pipe
(
p
*
[
2
]
_C_int
)
(
err
error
)
{
func
pipe
2
(
p
*
[
2
]
_C_int
,
flags
_C_int
)
(
err
error
)
{
_
,
_
,
e1
:=
RawSyscall
(
SYS_PIPE
,
uintptr
(
unsafe
.
Pointer
(
p
)),
0
,
0
)
_
,
_
,
e1
:=
RawSyscall
(
SYS_PIPE
2
,
uintptr
(
unsafe
.
Pointer
(
p
)),
uintptr
(
flags
)
,
0
)
if
e1
!=
0
{
if
e1
!=
0
{
err
=
e1
err
=
e1
}
}
...
...
src/pkg/syscall/zsyscall_netbsd_amd64.go
View file @
f1ebbf80
...
@@ -253,8 +253,8 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
...
@@ -253,8 +253,8 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
pipe
(
p
*
[
2
]
_C_int
)
(
err
error
)
{
func
pipe
2
(
p
*
[
2
]
_C_int
,
flags
_C_int
)
(
err
error
)
{
_
,
_
,
e1
:=
RawSyscall
(
SYS_PIPE
,
uintptr
(
unsafe
.
Pointer
(
p
)),
0
,
0
)
_
,
_
,
e1
:=
RawSyscall
(
SYS_PIPE
2
,
uintptr
(
unsafe
.
Pointer
(
p
)),
uintptr
(
flags
)
,
0
)
if
e1
!=
0
{
if
e1
!=
0
{
err
=
e1
err
=
e1
}
}
...
...
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