summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-10-18 22:36:50 +0000
committergVisor bot <gvisor-bot@google.com>2019-10-18 22:36:50 +0000
commit2345121074f2e79fd4b88e29b2777ccbdbac650a (patch)
tree771eb33b7b37eb3033e4f5bfd9e9088f5c32f490 /pkg
parent28ce28fd28df3c3217404ec3d3eefac63e2fd3ab (diff)
parent49b596b98d9317cb1b63d8004b812e3329812528 (diff)
Merge release-20190806.1-290-g49b596b (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/fd/fd.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/fd/fd.go b/pkg/fd/fd.go
index 7691b477b..83bcfe220 100644
--- a/pkg/fd/fd.go
+++ b/pkg/fd/fd.go
@@ -22,8 +22,6 @@ import (
"runtime"
"sync/atomic"
"syscall"
-
- "gvisor.dev/gvisor/pkg/unet"
)
// ReadWriter implements io.ReadWriter, io.ReaderAt, and io.WriterAt for fd. It
@@ -187,12 +185,6 @@ func OpenAt(dir *FD, path string, flags int, mode uint32) (*FD, error) {
return New(f), nil
}
-// DialUnix connects to a Unix Domain Socket and return the file descriptor.
-func DialUnix(path string) (*FD, error) {
- socket, err := unet.Connect(path, false)
- return New(socket.FD()), err
-}
-
// Close closes the file descriptor contained in the FD.
//
// Close is safe to call multiple times, but will return an error after the