1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build linux darwin dragonfly freebsd openbsd netbsd solaris
18 func statUnix(fi os
.FileInfo
, h
*Header
) error
{
19 sys
, ok
:= fi
.Sys().(*syscall
.Stat_t
)
25 // TODO(bradfitz): populate username & group. os/user
26 // doesn't cache LookupId lookups, and lacks group
28 h
.AccessTime
= statAtime(sys
)
29 h
.ChangeTime
= statCtime(sys
)
30 // TODO(bradfitz): major/minor device numbers?