Update gocache to v1.2.1

This commit is contained in:
TwinProduction
2021-02-05 22:11:25 -05:00
parent b47c6dc408
commit 52ad4ee9e5
46 changed files with 1397 additions and 706 deletions

27
vendor/go.etcd.io/bbolt/bolt_openbsd.go generated vendored Normal file
View File

@ -0,0 +1,27 @@
package bbolt
import (
"syscall"
"unsafe"
)
const (
msAsync = 1 << iota // perform asynchronous writes
msSync // perform synchronous writes
msInvalidate // invalidate cached data
)
func msync(db *DB) error {
_, _, errno := syscall.Syscall(syscall.SYS_MSYNC, uintptr(unsafe.Pointer(db.data)), uintptr(db.datasz), msInvalidate)
if errno != 0 {
return errno
}
return nil
}
func fdatasync(db *DB) error {
if db.data != nil {
return msync(db)
}
return db.file.Sync()
}