diff options
author | markj <markj@FreeBSD.org> | 2015-10-03 22:27:14 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2015-10-03 22:27:14 +0000 |
commit | d6b5b38ff0c000f5f0e137081d22d4cc43354a70 (patch) | |
tree | b49c6057445b4c2e169f37611d5c35f1bffcb1bd /lib/libc | |
parent | 27c597113bf4bc5252119b218035aad7949eac84 (diff) | |
download | FreeBSD-src-d6b5b38ff0c000f5f0e137081d22d4cc43354a70.zip FreeBSD-src-d6b5b38ff0c000f5f0e137081d22d4cc43354a70.tar.gz |
Revert r288628 and instead fix a discrepancy between the posix_fadvise(2)
man page and POSIX: posix_fadvise(2) returns an error number on failure.
Reported by: jilles
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/posix_fadvise.2 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/sys/posix_fadvise.2 b/lib/libc/sys/posix_fadvise.2 index 8691f6b..641bc9b 100644 --- a/lib/libc/sys/posix_fadvise.2 +++ b/lib/libc/sys/posix_fadvise.2 @@ -28,7 +28,7 @@ .\" @(#)madvise.2 8.1 (Berkeley) 6/9/93 .\" $FreeBSD$ .\" -.Dd January 30, 2014 +.Dd October 3, 2015 .Dt POSIX_FADVISE 2 .Os .Sh NAME @@ -89,11 +89,13 @@ read or written. Future access to this data may require a read operation. .El .Sh RETURN VALUES -.Rv -std posix_fadvise -.Sh ERRORS -The +If successful, .Fn posix_fadvise -system call returns zero on success, and an error on failure: +returns zero. +It returns an error on failure, without setting +.Va errno . +.Sh ERRORS +Possible failure conditions: .Bl -tag -width Er .It Bq Er EBADF The |