mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 08:37:31 -04:00
unix: fix typos and reflow comments on IoctlFile* functions
Change-Id: I9be66514d6b5c8c85e7e424c4aa7856d0f4d884d Reviewed-on: https://go-review.googlesource.com/c/sys/+/259557 Trust: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Johan Brandhorst <johan.brandhorst@gmail.com>
This commit is contained in:
@@ -121,9 +121,9 @@ func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) {
|
|||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlFileClone performs an FICLONERANGE ioctl operation to clone the range of
|
// IoctlFileCloneRange performs an FICLONERANGE ioctl operation to clone the
|
||||||
// data conveyed in value to the file associated with the file descriptor
|
// range of data conveyed in value to the file associated with the file
|
||||||
// destFd. See the ioctl_ficlonerange(2) man page for details.
|
// descriptor destFd. See the ioctl_ficlonerange(2) man page for details.
|
||||||
func IoctlFileCloneRange(destFd int, value *FileCloneRange) error {
|
func IoctlFileCloneRange(destFd int, value *FileCloneRange) error {
|
||||||
err := ioctl(destFd, FICLONERANGE, uintptr(unsafe.Pointer(value)))
|
err := ioctl(destFd, FICLONERANGE, uintptr(unsafe.Pointer(value)))
|
||||||
runtime.KeepAlive(value)
|
runtime.KeepAlive(value)
|
||||||
@@ -137,9 +137,9 @@ func IoctlFileClone(destFd, srcFd int) error {
|
|||||||
return ioctl(destFd, FICLONE, uintptr(srcFd))
|
return ioctl(destFd, FICLONE, uintptr(srcFd))
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlFileClone performs an FIDEDUPERANGE ioctl operation to share the range of
|
// IoctlFileDedupeRange performs an FIDEDUPERANGE ioctl operation to share the
|
||||||
// data conveyed in value with the file associated with the file descriptor
|
// range of data conveyed in value with the file associated with the file
|
||||||
// destFd. See the ioctl_fideduperange(2) man page for details.
|
// descriptor destFd. See the ioctl_fideduperange(2) man page for details.
|
||||||
func IoctlFileDedupeRange(destFd int, value *FileDedupeRange) error {
|
func IoctlFileDedupeRange(destFd int, value *FileDedupeRange) error {
|
||||||
err := ioctl(destFd, FIDEDUPERANGE, uintptr(unsafe.Pointer(value)))
|
err := ioctl(destFd, FIDEDUPERANGE, uintptr(unsafe.Pointer(value)))
|
||||||
runtime.KeepAlive(value)
|
runtime.KeepAlive(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user