cloudflared-mirror/vendor/github.com/miekg/dns/internal/socket/sys.go

15 lines
201 B
Go
Raw Normal View History

package socket
import "unsafe"
var (
kernelAlign = func() int {
var p uintptr
return int(unsafe.Sizeof(p))
}()
)
func roundup(l int) int {
return (l + kernelAlign - 1) & ^(kernelAlign - 1)
}