mirror of https://github.com/mkerrisk/man-pages
fallocate.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6d7f73685f
commit
47a979088f
|
@ -8,7 +8,7 @@
|
||||||
.\" 2011-09-19: Added FALLOC_FL_PUNCH_HOLE
|
.\" 2011-09-19: Added FALLOC_FL_PUNCH_HOLE
|
||||||
.\" 2011-09-19: Substantial restructuring of the page
|
.\" 2011-09-19: Substantial restructuring of the page
|
||||||
.\"
|
.\"
|
||||||
.TH FALLOCATE 2 2013-02-12 "Linux" "Linux Programmer's Manual"
|
.TH FALLOCATE 2 2013-04-19 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fallocate \- manipulate file space
|
fallocate \- manipulate file space
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -110,8 +110,12 @@ Not all file systems support
|
||||||
.BR FALLOC_FL_PUNCH_HOLE ;
|
.BR FALLOC_FL_PUNCH_HOLE ;
|
||||||
if a file system doesn't support the operation, an error is returned.
|
if a file system doesn't support the operation, an error is returned.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
|
On error,
|
||||||
.BR fallocate ()
|
.BR fallocate ()
|
||||||
returns zero on success, and \-1 on failure.
|
returns zero.
|
||||||
|
On error, \-1 is returned and
|
||||||
|
.I errno
|
||||||
|
is set to indicate the error.
|
||||||
.SH ERRORS
|
.SH ERRORS
|
||||||
.TP
|
.TP
|
||||||
.B EBADF
|
.B EBADF
|
||||||
|
|
Loading…
Reference in New Issue