optimize: lower kernel version requirement from 5.6 to 5.2

This commit is contained in:
mzz2017
2023-01-28 13:27:54 +08:00
parent 1eaaa4349c
commit 6e3637d018
17 changed files with 962 additions and 14 deletions

View File

@ -0,0 +1,13 @@
// Copied from https://github.com/cilium/ebpf/tree/v0.10.0/internal/unix
// Package unix re-exports Linux specific parts of golang.org/x/sys/unix.
//
// It avoids breaking compilation on other OS by providing stubs as follows:
// - Invoking a function always returns an error.
// - Errnos have distinct, non-zero values.
// - Constants have distinct but meaningless values.
// - Types use the same names for members, but may or may not follow the
// Linux layout.
package unix
// Note: please don't add any custom API to this package. Use internal/sys instead.