diff options
Diffstat (limited to 'src/pkg/syscall/syscall_bsd.go')
-rw-r--r-- | src/pkg/syscall/syscall_bsd.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/syscall/syscall_bsd.go b/src/pkg/syscall/syscall_bsd.go index c773daa7c..14dfab153 100644 --- a/src/pkg/syscall/syscall_bsd.go +++ b/src/pkg/syscall/syscall_bsd.go @@ -323,6 +323,11 @@ func Socket(domain, typ, proto int) (fd, errno int) { return } +func Socketpair(domain, typ, proto int) (fd [2]int, errno int) { + fd, errno = socketpair(domain, typ, proto) + return +} + func SetsockoptInt(fd, level, opt int, value int) (errno int) { var n = int32(value) return setsockopt(fd, level, opt, uintptr(unsafe.Pointer(&n)), 4) |