equal
deleted
inserted
replaced
27 |
27 |
28 func (msghdr *Msghdr) SetControllen(length int) { |
28 func (msghdr *Msghdr) SetControllen(length int) { |
29 msghdr.Controllen = uint32(length) |
29 msghdr.Controllen = uint32(length) |
30 } |
30 } |
31 |
31 |
|
32 func (msghdr *Msghdr) SetIovlen(length int) { |
|
33 msghdr.Iovlen = int32(length) |
|
34 } |
|
35 |
32 func (cmsg *Cmsghdr) SetLen(length int) { |
36 func (cmsg *Cmsghdr) SetLen(length int) { |
33 cmsg.Len = uint32(length) |
37 cmsg.Len = uint32(length) |
34 } |
38 } |
|
39 |
|
40 func Fstat(fd int, stat *Stat_t) error { |
|
41 return fstat(fd, stat) |
|
42 } |
|
43 |
|
44 func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error { |
|
45 return fstatat(dirfd, path, stat, flags) |
|
46 } |
|
47 |
|
48 func Lstat(path string, stat *Stat_t) error { |
|
49 return lstat(path, stat) |
|
50 } |
|
51 |
|
52 func Stat(path string, statptr *Stat_t) error { |
|
53 return stat(path, statptr) |
|
54 } |