load("//tools:defs.bzl", "go_library", "go_test") package(licenses = ["notice"]) go_library( name = "pipe", srcs = [ "device.go", "node.go", "pipe.go", "pipe_util.go", "reader.go", "reader_writer.go", "vfs.go", "writer.go", ], visibility = ["//pkg/sentry:internal"], deps = [ "//pkg/abi/linux", "//pkg/amutex", "//pkg/buffer", "//pkg/context", "//pkg/sentry/arch", "//pkg/sentry/device", "//pkg/sentry/fs", "//pkg/sentry/fs/fsutil", "//pkg/sentry/vfs", "//pkg/sync", "//pkg/syserror", "//pkg/usermem", "//pkg/waiter", ], ) go_test( name = "pipe_test", size = "small", srcs = [ "node_test.go", "pipe_test.go", ], library = ":pipe", deps = [ "//pkg/context", "//pkg/sentry/contexttest", "//pkg/sentry/fs", "//pkg/syserror", "//pkg/usermem", "//pkg/waiter", ], )