github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/abi/linux/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  # Package linux contains the constants and types needed to interface with a
     4  # Linux kernel. It should be used instead of syscall or golang.org/x/sys/unix
     5  # when the host OS may not be Linux.
     6  
     7  package(licenses = ["notice"])
     8  
     9  go_library(
    10      name = "linux",
    11      srcs = [
    12          "aio.go",
    13          "arch_amd64.go",
    14          "audit.go",
    15          "bpf.go",
    16          "capability.go",
    17          "clone.go",
    18          "context.go",
    19          "dev.go",
    20          "elf.go",
    21          "epoll.go",
    22          "epoll_amd64.go",
    23          "epoll_arm64.go",
    24          "errqueue.go",
    25          "eventfd.go",
    26          "exec.go",
    27          "fadvise.go",
    28          "fcntl.go",
    29          "file.go",
    30          "file_amd64.go",
    31          "file_arm64.go",
    32          "fs.go",
    33          "fuse.go",
    34          "futex.go",
    35          "inotify.go",
    36          "ioctl.go",
    37          "ioctl_tun.go",
    38          "ip.go",
    39          "ipc.go",
    40          "limits.go",
    41          "linux.go",
    42          "membarrier.go",
    43          "mm.go",
    44          "netdevice.go",
    45          "netfilter.go",
    46          "netfilter_ipv6.go",
    47          "netlink.go",
    48          "netlink_route.go",
    49          "poll.go",
    50          "prctl.go",
    51          "ptrace.go",
    52          "ptrace_amd64.go",
    53          "ptrace_arm64.go",
    54          "rseq.go",
    55          "rusage.go",
    56          "sched.go",
    57          "seccomp.go",
    58          "sem.go",
    59          "sem_amd64.go",
    60          "sem_arm64.go",
    61          "shm.go",
    62          "signal.go",
    63          "signalfd.go",
    64          "socket.go",
    65          "splice.go",
    66          "tcp.go",
    67          "time.go",
    68          "timer.go",
    69          "tty.go",
    70          "uio.go",
    71          "utsname.go",
    72          "wait.go",
    73          "xattr.go",
    74      ],
    75      marshal = True,
    76      visibility = ["//visibility:public"],
    77      deps = [
    78          "//pkg/abi",
    79          "//pkg/bits",
    80          "//pkg/context",
    81          "//pkg/hostarch",
    82          "//pkg/marshal",
    83          "//pkg/marshal/primitive",
    84      ],
    85  )
    86  
    87  go_test(
    88      name = "linux_test",
    89      size = "small",
    90      srcs = [
    91          "netfilter_test.go",
    92      ],
    93      library = ":linux",
    94  )