svn commit: r317734 - stable/11/lib/libc/gen
Konstantin Belousov
kib at FreeBSD.org
Wed May 3 09:52:13 UTC 2017
Author: kib
Date: Wed May 3 09:52:11 2017
New Revision: 317734
URL: https://svnweb.freebsd.org/changeset/base/317734
Log:
MFC r317436:
getpagesize(3) cannot fail.
Modified:
stable/11/lib/libc/gen/getpagesize.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/lib/libc/gen/getpagesize.c
==============================================================================
--- stable/11/lib/libc/gen/getpagesize.c Wed May 3 09:25:26 2017 (r317733)
+++ stable/11/lib/libc/gen/getpagesize.c Wed May 3 09:52:11 2017 (r317734)
@@ -69,7 +69,7 @@ getpagesize(void)
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-stable-11
mailing list