summaryrefslogtreecommitdiff
path: root/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_le.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/cilium/ebpf/internal/sys/ptr_32_le.go')
-rw-r--r--vendor/github.com/cilium/ebpf/internal/sys/ptr_32_le.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_le.go b/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_le.go
new file mode 100644
index 000000000..a6a51edb6
--- /dev/null
+++ b/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_le.go
@@ -0,0 +1,15 @@
+//go:build 386 || amd64p32 || arm || mipsle || mips64p32le
+// +build 386 amd64p32 arm mipsle mips64p32le
+
+package sys
+
+import (
+ "unsafe"
+)
+
+// Pointer wraps an unsafe.Pointer to be 64bit to
+// conform to the syscall specification.
+type Pointer struct {
+ ptr unsafe.Pointer
+ pad uint32
+}