equal
deleted
inserted
replaced
24 |
24 |
25 func (msghdr *Msghdr) SetControllen(length int) { |
25 func (msghdr *Msghdr) SetControllen(length int) { |
26 msghdr.Controllen = uint32(length) |
26 msghdr.Controllen = uint32(length) |
27 } |
27 } |
28 |
28 |
|
29 func (msghdr *Msghdr) SetIovlen(length int) { |
|
30 msghdr.Iovlen = uint32(length) |
|
31 } |
|
32 |
29 func (cmsg *Cmsghdr) SetLen(length int) { |
33 func (cmsg *Cmsghdr) SetLen(length int) { |
30 cmsg.Len = uint32(length) |
34 cmsg.Len = uint32(length) |
31 } |
35 } |
32 |
36 |
33 // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions |
37 // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions |