export_mmap_test.go 430 Bytes
Newer Older
1
// Copyright 2016 The Go Authors. All rights reserved.
2 3 4 5 6 7 8 9
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Export guts for testing.

package runtime

var Mmap = mmap
10 11
var Munmap = munmap
var Errno = errno
12 13 14 15

const ENOMEM = _ENOMEM
const MAP_ANON = _MAP_ANON
const MAP_PRIVATE = _MAP_PRIVATE
16 17 18 19 20
const MAP_FIXED = _MAP_FIXED

func GetPhysPageSize() uintptr {
	return physPageSize
}