You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gccgo_linux_amd64.go 436B

1234567891011121314151617181920
  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. //go:build gccgo && linux && amd64
  5. package unix
  6. import "syscall"
  7. //extern gettimeofday
  8. func realGettimeofday(*Timeval, *byte) int32
  9. func gettimeofday(tv *Timeval) (err syscall.Errno) {
  10. r := realGettimeofday(tv, nil)
  11. if r < 0 {
  12. return syscall.GetErrno()
  13. }
  14. return 0
  15. }