summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/BUILD
blob: a428e61a3ffa3c67b02d843f4db72dcfba63db8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Package linux contains the constants and types needed to inferface with a
# Linux kernel. It should be used instead of syscall or golang.org/x/sys/unix
# when the host OS may not be Linux.

package(licenses = ["notice"])  # Apache 2.0

load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//tools/go_stateify:defs.bzl", "go_stateify")

go_stateify(
    name = "linux_state",
    srcs = [
        "binder.go",
        "bpf.go",
        "time.go",
        "tty.go",
    ],
    out = "linux_state.go",
    package = "linux",
)

go_library(
    name = "linux",
    srcs = [
        "aio.go",
        "ashmem.go",
        "binder.go",
        "bpf.go",
        "capability.go",
        "dev.go",
        "elf.go",
        "errors.go",
        "exec.go",
        "file.go",
        "fs.go",
        "futex.go",
        "inotify.go",
        "ioctl.go",
        "ip.go",
        "ipc.go",
        "limits.go",
        "linux.go",
        "linux_state.go",
        "mm.go",
        "netdevice.go",
        "netlink.go",
        "netlink_route.go",
        "poll.go",
        "prctl.go",
        "rusage.go",
        "sched.go",
        "seccomp.go",
        "sem.go",
        "signal.go",
        "socket.go",
        "time.go",
        "tty.go",
        "uio.go",
        "utsname.go",
    ],
    importpath = "gvisor.googlesource.com/gvisor/pkg/abi/linux",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/abi",
        "//pkg/binary",
        "//pkg/bits",
        "//pkg/state",
    ],
)