mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
471b15b212
pipe and pipe2 aren't ported, pending a slight rework of pipe FDs for VFS2. mount and umount2 aren't ported out of temporary laziness. access and faccessat need additional FSImpl methods to implement properly, but are stubbed to prevent googletest from CHECK-failing. Other syscalls require additional plumbing. Updates #1623 PiperOrigin-RevId: 297188448
56 lines
1.1 KiB
Python
56 lines
1.1 KiB
Python
load("//tools:defs.bzl", "go_library", "go_test")
|
|
load("//tools/go_generics:defs.bzl", "go_template_instance")
|
|
|
|
package(licenses = ["notice"])
|
|
|
|
go_template_instance(
|
|
name = "addr_range",
|
|
out = "addr_range.go",
|
|
package = "usermem",
|
|
prefix = "Addr",
|
|
template = "//pkg/segment:generic_range",
|
|
types = {
|
|
"T": "Addr",
|
|
},
|
|
)
|
|
|
|
go_library(
|
|
name = "usermem",
|
|
srcs = [
|
|
"access_type.go",
|
|
"addr.go",
|
|
"addr_range.go",
|
|
"addr_range_seq_unsafe.go",
|
|
"bytes_io.go",
|
|
"bytes_io_unsafe.go",
|
|
"usermem.go",
|
|
"usermem_arm64.go",
|
|
"usermem_x86.go",
|
|
],
|
|
visibility = ["//:sandbox"],
|
|
deps = [
|
|
"//pkg/atomicbitops",
|
|
"//pkg/binary",
|
|
"//pkg/context",
|
|
"//pkg/gohacks",
|
|
"//pkg/log",
|
|
"//pkg/safemem",
|
|
"//pkg/syserror",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "usermem_test",
|
|
size = "small",
|
|
srcs = [
|
|
"addr_range_seq_test.go",
|
|
"usermem_test.go",
|
|
],
|
|
library = ":usermem",
|
|
deps = [
|
|
"//pkg/context",
|
|
"//pkg/safemem",
|
|
"//pkg/syserror",
|
|
],
|
|
)
|