github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/net/proxy/redir/nfutil/socketcall_linux_other.go (about) 1 //go:build linux && !386 2 // +build linux,!386 3 4 package nfutil 5 6 import "syscall" 7 8 const GETSOCKOPT = syscall.SYS_GETSOCKOPT 9 10 func socketcall(call, a0, a1, a2, a3, a4, a5 uintptr) error { 11 if _, _, errno := syscall.Syscall6(call, a0, a1, a2, a3, a4, a5); errno != 0 { 12 return errno 13 } 14 return nil 15 }