summaryrefslogtreecommitdiffstats
path: root/man3/pthread_attr_setstack.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/pthread_attr_setstack.3')
-rw-r--r--man3/pthread_attr_setstack.332
1 files changed, 16 insertions, 16 deletions
diff --git a/man3/pthread_attr_setstack.3 b/man3/pthread_attr_setstack.3
index f783b03a5..0b146a2eb 100644
--- a/man3/pthread_attr_setstack.3
+++ b/man3/pthread_attr_setstack.3
@@ -25,7 +25,7 @@ POSIX threads library
.P
.RS -4
Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
+.MR feature_test_macros 7 ):
.RE
.P
.BR pthread_attr_getstack (),
@@ -91,7 +91,7 @@ and
is not both readable and writable by the caller.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -115,14 +115,14 @@ a thread's stack is placed in a particular location.
For most applications, this is not necessary,
and the use of these functions should be avoided.
(Use
-.BR pthread_attr_setstacksize (3)
+.MR pthread_attr_setstacksize 3
if an application simply requires a stack size other than the default.)
.P
When an application employs
.BR pthread_attr_setstack (),
it takes over the responsibility of allocating the stack.
Any guard size value that was set using
-.BR pthread_attr_setguardsize (3)
+.MR pthread_attr_setguardsize 3
is ignored.
If deemed necessary,
it is the application's responsibility to allocate a guard area
@@ -134,7 +134,7 @@ The address specified in
should be suitably aligned:
for full portability, align it on a page boundary
.RI ( sysconf(_SC_PAGESIZE) ).
-.BR posix_memalign (3)
+.MR posix_memalign 3
may be useful for allocation.
Probably,
.I stacksize
@@ -144,21 +144,21 @@ If
.I attr
is used to create multiple threads, then the caller must change the
stack address attribute between calls to
-.BR pthread_create (3);
+.MR pthread_create 3 ;
otherwise, the threads will attempt to use the same memory area
for their stacks, and chaos will ensue.
.SH EXAMPLES
See
-.BR pthread_attr_init (3).
+.MR pthread_attr_init 3 .
.SH SEE ALSO
.ad l
.nh
-.BR mmap (2),
-.BR mprotect (2),
-.BR posix_memalign (3),
-.BR pthread_attr_init (3),
-.BR pthread_attr_setguardsize (3),
-.BR pthread_attr_setstackaddr (3),
-.BR pthread_attr_setstacksize (3),
-.BR pthread_create (3),
-.BR pthreads (7)
+.MR mmap 2 ,
+.MR mprotect 2 ,
+.MR posix_memalign 3 ,
+.MR pthread_attr_init 3 ,
+.MR pthread_attr_setguardsize 3 ,
+.MR pthread_attr_setstackaddr 3 ,
+.MR pthread_attr_setstacksize 3 ,
+.MR pthread_create 3 ,
+.MR pthreads 7