summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/alloca.3
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-12 15:46:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-12 15:46:58 +0000
commitfe1a6f1c973679052ff409ebadf2e480f52317ca (patch)
tree0558133a0ae6122196ae1ccb37d0d614386e69a1 /lib/libc/stdlib/alloca.3
parent43d325ce326aba75aceba49da9168679560ca7d1 (diff)
alloca is NOT machine dependent; it has exactly the same
effective result. its use is NOT discouraged -- it is not common, but when you need it, there is nothing else that will do.
Diffstat (limited to 'lib/libc/stdlib/alloca.3')
-rw-r--r--lib/libc/stdlib/alloca.310
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/stdlib/alloca.3 b/lib/libc/stdlib/alloca.3
index d7fddb04c20..8cc5c42ff5f 100644
--- a/lib/libc/stdlib/alloca.3
+++ b/lib/libc/stdlib/alloca.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: alloca.3,v 1.11 2007/05/31 19:19:31 jmc Exp $
+.\" $OpenBSD: alloca.3,v 1.12 2012/04/12 15:46:57 deraadt Exp $
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: April 12 2012 $
.Dt ALLOCA 3
.Os
.Sh NAME
@@ -54,10 +54,6 @@ function returns a pointer to the beginning of the allocated space.
.Xr calloc 3 ,
.Xr malloc 3 ,
.Xr realloc 3
-.Sh BUGS
-The
-.Fn alloca
-function is machine dependent; its use is discouraged.
.\" .Sh HISTORY
.\" The
.\" .Fn alloca
@@ -66,7 +62,7 @@ function is machine dependent; its use is discouraged.
.\" The function appeared in 32v, pwb and pwb.2 and in 3bsd 4bsd
.\" The first man page (or link to a man page that I can find at the
.\" moment is 4.3...
-.Pp
+.Sh BUGS
The
.Fn alloca
function is slightly unsafe because it cannot ensure that the pointer