Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> oci: abstract out syscall for platforms Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> oci: abstract out the unix pipe per platform Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> oci: change the unix calls to be platform independent Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
14 lines
207 B
Go
14 lines
207 B
Go
// +build linux,!arm,!386
|
|
|
|
package oci
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
func getFinishedTime(fi os.FileInfo) time.Time {
|
|
st := fi.Sys().(*syscall.Stat_t)
|
|
return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
|
|
}
|