1
0
Fork 0
forked from mirrors/tar-split

archive/tar: adding from go as of a9dddb53f

This commit is contained in:
Vincent Batts 2015-02-11 14:08:03 +01:00
parent 70b9150cff
commit 64426b0aae
23 changed files with 3195 additions and 0 deletions

View file

@ -0,0 +1,20 @@
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin freebsd netbsd
package tar
import (
"syscall"
"time"
)
func statAtime(st *syscall.Stat_t) time.Time {
return time.Unix(st.Atimespec.Unix())
}
func statCtime(st *syscall.Stat_t) time.Time {
return time.Unix(st.Ctimespec.Unix())
}