diff options
Diffstat (limited to 'src/pkg/syscall/syscall_linux.go')
-rw-r--r-- | src/pkg/syscall/syscall_linux.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/syscall/syscall_linux.go b/src/pkg/syscall/syscall_linux.go index bf124bd13..2ce3c0882 100644 --- a/src/pkg/syscall/syscall_linux.go +++ b/src/pkg/syscall/syscall_linux.go @@ -368,6 +368,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) |