mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 01:04:14 +00:00
26 lines
656 B
Go
26 lines
656 B
Go
// Copyright (c) 2014 The fileutil Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package fileutil
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
// PunchHole deallocates space inside a file in the byte range starting at
|
|
// offset and continuing for len bytes. Similar to FreeBSD, this is
|
|
// unimplemented.
|
|
func PunchHole(f *os.File, off, len int64) error {
|
|
return nil
|
|
}
|
|
|
|
// Unimplemented on OpenBSD.
|
|
func Fadvise(f *os.File, off, len int64, advice FadviseAdvice) error {
|
|
return nil
|
|
}
|
|
|
|
// IsEOF reports whether err is an EOF condition.
|
|
func IsEOF(err error) bool { return err == io.EOF }
|