...
Source file src/pkg/cmd/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
1
2
3
4
5
6
7
8 package unix
9
10
11
12
13
14
15
16 func setTimespec(sec, nsec int64) Timespec {
17 return Timespec{Sec: sec, Nsec: nsec}
18 }
19
20 func setTimeval(sec, usec int64) Timeval {
21 return Timeval{Sec: int64(sec), Usec: int32(usec)}
22 }
23
24 func (iov *Iovec) SetLen(length int) {
25 iov.Len = uint64(length)
26 }
27
28 func (msghdr *Msghdr) SetControllen(length int) {
29 msghdr.Controllen = uint32(length)
30 }
31
32 func (cmsg *Cmsghdr) SetLen(length int) {
33 cmsg.Len = uint32(length)
34 }
35
View as plain text