1// Copyright 2016 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// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris
6
7// Export guts for testing.
8
9package runtime
10
11var Mmap = mmap
12var Munmap = munmap
13var Errno = errno
14
15const ENOMEM = _ENOMEM
16const MAP_ANON = _MAP_ANON
17const MAP_PRIVATE = _MAP_PRIVATE
18const MAP_FIXED = _MAP_FIXED
19
20func GetPhysPageSize() uintptr {
21	return physPageSize
22}
23