diff --git a/src/syscall/rlimit.go b/src/syscall/rlimit.go index f94b894b902d78..8184f17ab68f29 100644 --- a/src/syscall/rlimit.go +++ b/src/syscall/rlimit.go @@ -8,20 +8,9 @@ package syscall import ( "sync/atomic" - _ "unsafe" ) // origRlimitNofile, if non-nil, is the original soft RLIMIT_NOFILE. -// -// origRlimitNofile should be an internal detail, -// but widely used packages access it using linkname. -// Notable members of the hall of shame include: -// - github.com/opencontainers/runc -// -// Do not remove or change the type signature. -// See go.dev/issue/67401. -// -//go:linkname origRlimitNofile var origRlimitNofile atomic.Pointer[Rlimit] // Some systems set an artificially low soft limit on open file count, for compatibility