You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prometheus/db_unix.go

17 lines
282 B

// +build !windows,!plan9,!solaris
package tsdb
import (
"os"
"syscall"
)
func mmap(f *os.File, length int) ([]byte, error) {
return syscall.Mmap(int(f.Fd()), 0, length, syscall.PROT_READ, syscall.MAP_SHARED)
}
func munmap(b []byte) (err error) {
return syscall.Munmap(b)
}