mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: fix socketpair in syscall_bsd
THIS WILL BREAK THE BUILD. The z files have socketpair code in them that was written by hand; breaking the build with this is the first step in getting rid of that hand-written code. R=adg TBR=adg CC=golang-dev https://golang.org/cl/2197050
This commit is contained in:
parent
dabd9fe920
commit
f33ef07f38
1 changed files with 3 additions and 1 deletions
|
|
@ -323,8 +323,10 @@ func Socket(domain, typ, proto int) (fd, errno int) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys socketpair(domain int, typ int, proto int, fd *[2]int) (errno int)
|
||||||
|
|
||||||
func Socketpair(domain, typ, proto int) (fd [2]int, errno int) {
|
func Socketpair(domain, typ, proto int) (fd [2]int, errno int) {
|
||||||
fd, errno = socketpair(domain, typ, proto)
|
errno = socketpair(domain, typ, proto, &fd)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue