18 lines
335 B
Go
18 lines
335 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package cniprovider
|
|
|
|
import (
|
|
_ "unsafe" // required for go:linkname.
|
|
)
|
|
|
|
//go:linkname beforeFork syscall.runtime_BeforeFork
|
|
func beforeFork()
|
|
|
|
//go:linkname afterFork syscall.runtime_AfterFork
|
|
func afterFork()
|
|
|
|
//go:linkname afterForkInChild syscall.runtime_AfterForkInChild
|
|
func afterForkInChild()
|