Files
lch 453e8c7f89 internal: add unified function to fallocate
Change-Id: I2b80c97a8b7bd4e93085ba6fe4a0bf2a852db78e
2024-04-08 16:09:11 +08:00

10 lines
338 B
Go

package fallocate
// Fallocate is a wrapper around fallocate syscall.
// On Linux, it is a wrapper around fallocate(2).
// On Darwin, it is a wrapper around fnctl(2).
// On FreeBSD, it is a wrapper around posix_fallocate(2).
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
return fallocate(fd, mode, off, len)
}