Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread _SC_PAGESIZE is not the page size; it's a sym...



details:   https://anonhg.NetBSD.org/src/rev/a1b9647c2906
branches:  trunk
changeset: 344613:a1b9647c2906
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Apr 07 06:21:48 2016 +0000

description:
_SC_PAGESIZE is not the page size; it's a symbolic code for retrieving
the page size.

diffstat:

 lib/libpthread/pthread_attr_getguardsize.3 |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 4a8c276adb58 -r a1b9647c2906 lib/libpthread/pthread_attr_getguardsize.3
--- a/lib/libpthread/pthread_attr_getguardsize.3        Thu Apr 07 04:04:47 2016 +0000
+++ b/lib/libpthread/pthread_attr_getguardsize.3        Thu Apr 07 06:21:48 2016 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pthread_attr_getguardsize.3,v 1.2 2010/07/08 18:24:34 wiz Exp $
+.\"    $NetBSD: pthread_attr_getguardsize.3,v 1.3 2016/04/07 06:21:48 dholland Exp $
 .\"
 .\" Copyright (c) 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
 .\" All rights reserved.
@@ -66,9 +66,12 @@
 .Nx
 the default
 .Fa guardsize
-is
-.Dv _SC_PAGESIZE ,
-the system page size.
+is the system page size.
+(This value is often 4096 bytes but varies on some ports; the
+precise value can be retrieved by using
+.Xr sysconf 3
+with
+.Dv _SC_PAGESIZE . )
 .Pp
 The rationale behind
 .Fa guardsize



Home | Main Index | Thread Index | Old Index