diff options
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go')
-rw-r--r-- | vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go deleted file mode 100644 index 3448569..0000000 --- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | package archive | ||
2 | |||
3 | import ( | ||
4 | "syscall" | ||
5 | "time" | ||
6 | ) | ||
7 | |||
8 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { | ||
9 | if time.IsZero() { | ||
10 | // Return UTIME_OMIT special value | ||
11 | ts.Sec = 0 | ||
12 | ts.Nsec = ((1 << 30) - 2) | ||
13 | return | ||
14 | } | ||
15 | return syscall.NsecToTimespec(time.UnixNano()) | ||
16 | } | ||