equal
deleted
inserted
replaced
26 |
26 |
27 func (msghdr *Msghdr) SetControllen(length int) { |
27 func (msghdr *Msghdr) SetControllen(length int) { |
28 msghdr.Controllen = uint32(length) |
28 msghdr.Controllen = uint32(length) |
29 } |
29 } |
30 |
30 |
|
31 func (msghdr *Msghdr) SetIovlen(length int) { |
|
32 msghdr.Iovlen = uint32(length) |
|
33 } |
|
34 |
31 func (cmsg *Cmsghdr) SetLen(length int) { |
35 func (cmsg *Cmsghdr) SetLen(length int) { |
32 cmsg.Len = uint32(length) |
36 cmsg.Len = uint32(length) |
33 } |
37 } |
|
38 |
|
39 // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions |
|
40 // of openbsd/386 the syscall is called sysctl instead of __sysctl. |
|
41 const SYS___SYSCTL = SYS_SYSCTL |