summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2012-04-12 15:46:57 +0000
committerderaadt <>2012-04-12 15:46:57 +0000
commitcdaf9666b09838d78c2d0a36ef00e02b4e316c74 (patch)
treed5bd067d313bec338e38b9898efbdd9f12a6c2d3
parent2b79984862992228ab5768515cd6d4b863d46991 (diff)
downloadopenbsd-cdaf9666b09838d78c2d0a36ef00e02b4e316c74.tar.gz
openbsd-cdaf9666b09838d78c2d0a36ef00e02b4e316c74.tar.bz2
openbsd-cdaf9666b09838d78c2d0a36ef00e02b4e316c74.zip
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.
-rw-r--r--src/lib/libc/stdlib/alloca.310
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/alloca.3 b/src/lib/libc/stdlib/alloca.3
index d7fddb04c2..8cc5c42ff5 100644
--- a/src/lib/libc/stdlib/alloca.3
+++ b/src/lib/libc/stdlib/alloca.3
@@ -25,9 +25,9 @@
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE. 26.\" SUCH DAMAGE.
27.\" 27.\"
28.\" $OpenBSD: alloca.3,v 1.11 2007/05/31 19:19:31 jmc Exp $ 28.\" $OpenBSD: alloca.3,v 1.12 2012/04/12 15:46:57 deraadt Exp $
29.\" 29.\"
30.Dd $Mdocdate: May 31 2007 $ 30.Dd $Mdocdate: April 12 2012 $
31.Dt ALLOCA 3 31.Dt ALLOCA 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -54,10 +54,6 @@ function returns a pointer to the beginning of the allocated space.
54.Xr calloc 3 , 54.Xr calloc 3 ,
55.Xr malloc 3 , 55.Xr malloc 3 ,
56.Xr realloc 3 56.Xr realloc 3
57.Sh BUGS
58The
59.Fn alloca
60function is machine dependent; its use is discouraged.
61.\" .Sh HISTORY 57.\" .Sh HISTORY
62.\" The 58.\" The
63.\" .Fn alloca 59.\" .Fn alloca
@@ -66,7 +62,7 @@ function is machine dependent; its use is discouraged.
66.\" The function appeared in 32v, pwb and pwb.2 and in 3bsd 4bsd 62.\" The function appeared in 32v, pwb and pwb.2 and in 3bsd 4bsd
67.\" The first man page (or link to a man page that I can find at the 63.\" The first man page (or link to a man page that I can find at the
68.\" moment is 4.3... 64.\" moment is 4.3...
69.Pp 65.Sh BUGS
70The 66The
71.Fn alloca 67.Fn alloca
72function is slightly unsafe because it cannot ensure that the pointer 68function is slightly unsafe because it cannot ensure that the pointer