summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_plan9_amd64.go
blob: 9387db3e522cf50639d87fe86921a52f6b8b3f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package syscall

func Getpagesize() int { return 0x200000 }

// Used by Gettimeofday, which expects
// an error return value.
func nanotime() (int64, error) {
	r1, _, _ := RawSyscall(SYS_NANOTIME, 0, 0, 0)
	return int64(r1), nil
}