blob: 2f3f5cfedfcc01747c606e69b98150b131eefd7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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)
}
|