summaryrefslogtreecommitdiffstats
path: root/man3/alloca.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/alloca.3')
-rw-r--r--man3/alloca.324
1 files changed, 12 insertions, 12 deletions
diff --git a/man3/alloca.3 b/man3/alloca.3
index d06f43eda..32fd9ee37 100644
--- a/man3/alloca.3
+++ b/man3/alloca.3
@@ -42,7 +42,7 @@ function returns a pointer to the beginning of the allocated space.
If the allocation causes stack overflow, program behavior is undefined.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -63,14 +63,14 @@ The
.BR alloca ()
function is machine- and compiler-dependent.
Because it allocates from the stack, it's faster than
-.BR malloc (3)
+.MR malloc 3
and
-.BR free (3).
+.MR free 3 .
In certain cases,
it can also simplify memory deallocation in applications that use
-.BR longjmp (3)
+.MR longjmp 3
or
-.BR siglongjmp (3).
+.MR siglongjmp 3 .
Otherwise, its use is discouraged.
.P
Because the space allocated by
@@ -78,9 +78,9 @@ Because the space allocated by
is allocated within the stack frame,
that space is automatically freed if the function return
is jumped over by a call to
-.BR longjmp (3)
+.MR longjmp 3
or
-.BR siglongjmp (3).
+.MR siglongjmp 3 .
.P
The space allocated by
.BR alloca ()
@@ -90,7 +90,7 @@ automatically deallocated if the pointer that refers to it
simply goes out of scope.
.P
Do not attempt to
-.BR free (3)
+.MR free 3
space allocated by
.BR alloca ()!
.P
@@ -117,7 +117,7 @@ optional since C11, and can be used for a similar purpose.
However, they do not port to standard C++, and, being variables,
live in their block scope and don't have an allocator-like interface,
making them unfit for implementing functionality like
-.BR strdupa (3).
+.MR strdupa 3 .
.SH BUGS
Due to the nature of the stack, it is impossible to check if the allocation
would overflow the space available, and, hence, neither is indicating an error.
@@ -133,6 +133,6 @@ the stack space reserved by
would appear on the stack in the middle of the space for the
function arguments.
.SH SEE ALSO
-.BR brk (2),
-.BR longjmp (3),
-.BR malloc (3)
+.MR brk 2 ,
+.MR longjmp 3 ,
+.MR malloc 3