Module Name: src Committed By: christos Date: Sun Feb 1 15:24:15 UTC 2015
Modified Files: src/lib/libc/sys: fdiscard.2 Log Message: PR/49617: Kirk Russell: Describe the posix_fallocate return values correctly. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libc/sys/fdiscard.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/fdiscard.2 diff -u src/lib/libc/sys/fdiscard.2:1.2 src/lib/libc/sys/fdiscard.2:1.3 --- src/lib/libc/sys/fdiscard.2:1.2 Fri Jul 25 04:47:42 2014 +++ src/lib/libc/sys/fdiscard.2 Sun Feb 1 10:24:15 2015 @@ -1,4 +1,4 @@ -.\" $NetBSD: fdiscard.2,v 1.2 2014/07/25 08:47:42 wiz Exp $ +.\" $NetBSD: fdiscard.2,v 1.3 2015/02/01 15:24:15 christos Exp $ .\" .\" Copyright (c) 2014 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 25, 2014 +.Dd February 1, 2015 .Dt FDISCARD 2 .Os .Sh NAME @@ -127,8 +127,16 @@ by may not be persistent after a crash or reboot if the space reserved has not yet been written to. .Sh RETURN VALUES -On success these calls return 0. -On error, \-1 is returned, and the global variable +If successful, the +.Fn posix_fallocate +function will return zero. +Otherwise an error number will be returned, without setting +.Va errno . +.Pp +If successful, the +.Fn fdiscard +function will return zero. +Otherwise the value \-1 is returned and the global variable .Va errno is set to indicate the error. .Sh ERRORS