1
0
mirror of https://github.com/golang/go synced 2024-11-25 14:07:56 -07: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:
Russ Cox 2010-09-24 14:59:34 -04:00
parent dabd9fe920
commit f33ef07f38

View File

@ -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
} }