dip/vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go
Paul Lecuq 5b0f744a75
All checks were successful
continuous-integration/drone/push Build is passing
added cache feature on #memcached
2023-08-13 08:42:44 +02:00

17 lines
366 B
Go

//go:build !windows && !appengine && !plan9 && !js && !wasip1 && !wasi
// +build !windows,!appengine,!plan9,!js,!wasip1,!wasi
package maxminddb
import (
"golang.org/x/sys/unix"
)
func mmap(fd, length int) (data []byte, err error) {
return unix.Mmap(fd, 0, length, unix.PROT_READ, unix.MAP_SHARED)
}
func munmap(b []byte) (err error) {
return unix.Munmap(b)
}