stat_unsupported.go 604 B

1234567891011121314151617181920212223242526272829
  1. // +build !linux
  2. package archive
  3. import "syscall"
  4. func getLastAccess(stat *syscall.Stat_t) syscall.Timespec {
  5. return stat.Atimespec
  6. }
  7. func getLastModification(stat *syscall.Stat_t) syscall.Timespec {
  8. return stat.Mtimespec
  9. }
  10. func LUtimesNano(path string, ts []syscall.Timespec) error {
  11. return ErrNotImplemented
  12. }
  13. func UtimesNano(path string, ts []syscall.Timespec) error {
  14. return ErrNotImplemented
  15. }
  16. func Lgetxattr(path string, attr string) ([]byte, error) {
  17. return nil, ErrNotImplemented
  18. }
  19. func Lsetxattr(path string, attr string, data []byte, flags int) error {
  20. return ErrNotImplemented
  21. }