Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
// Copyright (c) 2014 The fileutil Authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style |
| 3 |
// license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
package fileutil // import "modernc.org/fileutil" |
| 6 |
|
| 7 |
import ( |
| 8 |
"io" |
| 9 |
"os" |
| 10 |
) |
| 11 |
|
| 12 |
const hasPunchHole = false |
| 13 |
|
| 14 |
// PunchHole deallocates space inside a file in the byte range starting at |
| 15 |
// offset and continuing for len bytes. Similar to FreeBSD, this is |
| 16 |
// unimplemented. |
| 17 |
func PunchHole(f *os.File, off, len int64) error { |
| 18 |
return nil |
| 19 |
} |
| 20 |
|
| 21 |
// Unimplemented on OpenBSD. |
| 22 |
func Fadvise(f *os.File, off, len int64, advice FadviseAdvice) error { |
| 23 |
return nil |
| 24 |
} |
| 25 |
|
| 26 |
// IsEOF reports whether err is an EOF condition. |
| 27 |
func IsEOF(err error) bool { return err == io.EOF } |