pledge_openbsd.go (197B)
1 //go:build openbsd 2 3 package main 4 5 import ( 6 "fmt" 7 8 "golang.org/x/sys/unix" 9 ) 10 11 func pledge() { 12 if err := unix.Pledge("stdio", ""); err != nil { 13 panic(fmt.Sprintf("pledge failed: %v", err)) 14 } 15 }
peipip identifier | |
| git clone https://git.xcv.gr/git/peip.git | |
| Log | Files | Refs | README |