mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-03-04 11:48:28 -07:00
* Replace iris with httprouter * Linter fixes * Finalize iris removal * Vendor dependencies for reproducable builds * Api tests are back
15 lines
201 B
Go
15 lines
201 B
Go
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)
|
|
}
|