mirror of
https://github.com/golang/go
synced 2024-11-22 01:34:41 -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:
parent
dabd9fe920
commit
f33ef07f38
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user