diff options
author | kib <kib@FreeBSD.org> | 2014-01-30 18:04:39 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-01-30 18:04:39 +0000 |
commit | f0cb8e7d88037c15a00b061150929a9edf7ec886 (patch) | |
tree | 9a201009ee35135b56bc2706031305325070a4ac /lib/libc/sys/madvise.2 | |
parent | 8ca08329cac24ebe4162ebae134a49a1871d6709 (diff) | |
download | FreeBSD-src-f0cb8e7d88037c15a00b061150929a9edf7ec886.zip FreeBSD-src-f0cb8e7d88037c15a00b061150929a9edf7ec886.tar.gz |
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).
Noted by: Bob Bishop <rb@gid.co.uk>
Discussed with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'lib/libc/sys/madvise.2')
-rw-r--r-- | lib/libc/sys/madvise.2 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/madvise.2 b/lib/libc/sys/madvise.2 index b5ea6b2..357e05e 100644 --- a/lib/libc/sys/madvise.2 +++ b/lib/libc/sys/madvise.2 @@ -28,7 +28,7 @@ .\" @(#)madvise.2 8.1 (Berkeley) 6/9/93 .\" $FreeBSD$ .\" -.Dd July 19, 1996 +.Dd January 30, 2014 .Dt MADVISE 2 .Os .Sh NAME @@ -50,7 +50,10 @@ allows a process that has knowledge of its memory behavior to describe it to the system. The .Fn posix_madvise -interface is identical and is provided for standards conformance. +interface is identical, except it returns an error number on error and does +not modify +.Va errno , +and is provided for standards conformance. .Pp The known behaviors are: .Bl -tag -width MADV_SEQUENTIAL |