diff options
author | Jamie Liu <jamieliu@google.com> | 2020-04-23 11:06:59 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-23 11:08:24 -0700 |
commit | e0c67014cb2200ad58cd28b12fddb3f55652a21b (patch) | |
tree | b318bfd35d4b35538531c980b795288718317b7d /pkg/sentry/hostfd/BUILD | |
parent | 7d1b7daf7e89c99899fc46187bcb1f3a3bcab7fb (diff) |
Factor fsimpl/gofer.host{Preadv,Pwritev} out of fsimpl/gofer.
Also fix returning EOF when 0 bytes are read.
PiperOrigin-RevId: 308089875
Diffstat (limited to 'pkg/sentry/hostfd/BUILD')
-rw-r--r-- | pkg/sentry/hostfd/BUILD | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/sentry/hostfd/BUILD b/pkg/sentry/hostfd/BUILD new file mode 100644 index 000000000..364a78306 --- /dev/null +++ b/pkg/sentry/hostfd/BUILD @@ -0,0 +1,17 @@ +load("//tools:defs.bzl", "go_library") + +licenses(["notice"]) + +go_library( + name = "hostfd", + srcs = [ + "hostfd.go", + "hostfd_unsafe.go", + ], + visibility = ["//pkg/sentry:internal"], + deps = [ + "//pkg/safemem", + "//pkg/sync", + "@org_golang_x_sys//unix:go_default_library", + ], +) |