github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/syscall/syscall_plan9_amd64.go (about)

     1  // Copyright 2009 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  package syscall
     6  
     7  func Getpagesize() int { return 0x200000 }
     8  
     9  // Used by Gettimeofday, which expects
    10  // an error return value.
    11  func nanotime() (int64, error) {
    12  	r1, _, _ := RawSyscall(SYS_NANOTIME, 0, 0, 0)
    13  	return int64(r1), nil
    14  }