Black Lives Matter. Support the Equal Justice Initiative.

Source file src/runtime/export_mmap_test.go

Documentation: runtime

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

View as plain text