2016-03-01 15:57:46 -07:00
|
|
|
// Copyright 2016 The Go Authors. All rights reserved.
|
2016-02-10 22:46:51 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
|
|
|
|
|
|
|
|
// Export guts for testing.
|
|
|
|
|
|
|
|
package runtime
|
|
|
|
|
|
|
|
var Mmap = mmap
|
2016-07-18 19:40:02 -06:00
|
|
|
var Munmap = munmap
|
2016-02-10 22:46:51 -07:00
|
|
|
|
|
|
|
const ENOMEM = _ENOMEM
|
|
|
|
const MAP_ANON = _MAP_ANON
|
|
|
|
const MAP_PRIVATE = _MAP_PRIVATE
|
2016-07-18 19:40:02 -06:00
|
|
|
const MAP_FIXED = _MAP_FIXED
|
|
|
|
|
|
|
|
func GetPhysPageSize() uintptr {
|
|
|
|
return physPageSize
|
|
|
|
}
|