advise_other.go 256 B

123456789101112131415161718
  1. //go:build !linux || appengine
  2. // +build !linux appengine
  3. package msgp
  4. import (
  5. "os"
  6. )
  7. // TODO: darwin, BSD support
  8. func adviseRead(mem []byte) {}
  9. func adviseWrite(mem []byte) {}
  10. func fallocate(f *os.File, sz int64) error {
  11. return f.Truncate(sz)
  12. }