diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go b/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go new file mode 100644 index 0000000..972d61b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go | |||
@@ -0,0 +1,20 @@ | |||
1 | // Copyright 2015 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. | ||
4 | |||
5 | //go:build gccgo && linux && amd64 | ||
6 | |||
7 | package unix | ||
8 | |||
9 | import "syscall" | ||
10 | |||
11 | //extern gettimeofday | ||
12 | func realGettimeofday(*Timeval, *byte) int32 | ||
13 | |||
14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { | ||
15 | r := realGettimeofday(tv, nil) | ||
16 | if r < 0 { | ||
17 | return syscall.GetErrno() | ||
18 | } | ||
19 | return 0 | ||
20 | } | ||