mirror of
https://github.com/moby/moby.git
synced 2026-07-15 12:01:27 +00:00
This updates the containerd/continuity package to d8fb8589b0e8e85b8c8bbaa8840226d0dfeb7371
which fixes builds failing on ARM 32-bit, after this dependency was added in
b3aab5e31f
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
28 lines
616 B
Go
28 lines
616 B
Go
package fs
|
|
|
|
import (
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
// StatAtime returns the Atim
|
|
func StatAtime(st *syscall.Stat_t) syscall.Timespec {
|
|
return st.Atim
|
|
}
|
|
|
|
// StatCtime returns the Ctim
|
|
func StatCtime(st *syscall.Stat_t) syscall.Timespec {
|
|
return st.Ctim
|
|
}
|
|
|
|
// StatMtime returns the Mtim
|
|
func StatMtime(st *syscall.Stat_t) syscall.Timespec {
|
|
return st.Mtim
|
|
}
|
|
|
|
// StatATimeAsTime returns st.Atim as a time.Time
|
|
func StatATimeAsTime(st *syscall.Stat_t) time.Time {
|
|
// The int64 conversions ensure the line compiles for 32-bit systems as well.
|
|
return time.Unix(int64(st.Atim.Sec), int64(st.Atim.Nsec)) // nolint: unconvert
|
|
}
|