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 | // +build !arm |
| 6 | // +build !arm64 |
| 7 | |
| •8 | package fileutil |
| 9 | |
| 10 | import ( |
| 11 | "io" |
| 12 | "os" |
| 13 | ) |
| 14 | |
| 15 | const hasPunchHole = false |
| 16 | |
| 17 | // PunchHole deallocates space inside a file in the byte range starting at |
| 18 | // offset and continuing for len bytes. Not supported on OSX. |
| 19 | func PunchHole(f *os.File, off, len int64) error { |
| 20 | return nil |
| 21 | } |
| 22 | |
| 23 | // Fadvise predeclares an access pattern for file data. See also 'man 2 |
| 24 | // posix_fadvise'. Not supported on OSX. |
| 25 | func Fadvise(f *os.File, off, len int64, advice FadviseAdvice) error { |
| 26 | return nil |
| 27 | } |
| 28 | |
| 29 | // IsEOF reports whether err is an EOF condition. |
| 30 | func IsEOF(err error) bool { return err == io.EOF } |