summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_attr_getstack.3
diff options
context:
space:
mode:
authorjruoho <jruoho@NetBSD.org>2010-07-09 17:15:59 +0000
committerjruoho <jruoho@NetBSD.org>2010-07-09 17:15:59 +0000
commite328c0292cfc8c648646617e16d34facbf452f3d (patch)
treefac4c5efc5fbdc7f995ab95d642eb257de597fad /lib/libpthread/pthread_attr_getstack.3
parentc42287d31396fbfc0b82bfa5d5fdc5bef24278c9 (diff)
Note also alignment via mmap(2), as done in NetBSD.
Diffstat (limited to 'lib/libpthread/pthread_attr_getstack.3')
-rw-r--r--lib/libpthread/pthread_attr_getstack.35
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libpthread/pthread_attr_getstack.3 b/lib/libpthread/pthread_attr_getstack.3
index 860af7dcd24..1a2741daa91 100644
--- a/lib/libpthread/pthread_attr_getstack.3
+++ b/lib/libpthread/pthread_attr_getstack.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_attr_getstack.3,v 1.4 2010/07/09 12:00:38 jruoho Exp $
+.\" $NetBSD: pthread_attr_getstack.3,v 1.5 2010/07/09 17:15:59 jruoho Exp $
.\"
.\" Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi>
.\" All rights reserved.
@@ -119,6 +119,9 @@ The system page size, as specified by
and the use of
.Xr posix_memalign 3
may guarantee some degree of portability.
+Also
+.Xr mmap 2
+provides means for alignment.
.It
If the application modifies the stack address, it claims also
the responsibility of allocating the stack area and guarding it against