Commit f33ef07f authored by Russ Cox's avatar Russ Cox

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
parent dabd9fe9
......@@ -323,8 +323,10 @@ func Socket(domain, typ, proto int) (fd, errno int) {
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) {
fd, errno = socketpair(domain, typ, proto)
errno = socketpair(domain, typ, proto, &fd)
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment