svn commit: r317735 - stable/10/lib/libc/gen
Konstantin Belousov
kib at FreeBSD.org
Wed May 3 09:54:38 UTC 2017
Author: kib
Date: Wed May 3 09:54:37 2017
New Revision: 317735
URL: https://svnweb.freebsd.org/changeset/base/317735
Log:
MFC r317436:
getpagesize(3) cannot fail.
Modified:
stable/10/lib/libc/gen/getpagesize.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/lib/libc/gen/getpagesize.c
==============================================================================
--- stable/10/lib/libc/gen/getpagesize.c Wed May 3 09:52:11 2017 (r317734)
+++ stable/10/lib/libc/gen/getpagesize.c Wed May 3 09:54:37 2017 (r317735)
@@ -69,7 +69,7 @@ getpagesize()
mib[1] = HW_PAGESIZE;
size = sizeof value;
if (sysctl(mib, nitems(mib), &value, &size, NULL, 0) == -1)
- return (-1);
+ return (PAGE_SIZE);
return (value);
}
More information about the svn-src-all
mailing list