From 47a979088fcd7f3aa9b99df0dbfad520d61d6570 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 19 Apr 2013 08:26:03 +0200 Subject: [PATCH] fallocate.2: RETURN VALUE: mention that 'errno' is set on error Signed-off-by: Michael Kerrisk --- man2/fallocate.2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index 8296cd5f9..a61c51338 100644 --- a/man2/fallocate.2 +++ b/man2/fallocate.2 @@ -8,7 +8,7 @@ .\" 2011-09-19: Added FALLOC_FL_PUNCH_HOLE .\" 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 fallocate \- manipulate file space .SH SYNOPSIS @@ -110,8 +110,12 @@ Not all file systems support .BR FALLOC_FL_PUNCH_HOLE ; if a file system doesn't support the operation, an error is returned. .SH RETURN VALUE +On error, .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 .TP .B EBADF