Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2003 14:54:20 -0400 (EDT)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        kientzle@acm.org
Cc:        current@freebsd.org
Subject:   Re: adsl/pppoe no longer connecting on 5.1
Message-ID:  <200306121854.h5CIsKAw086000@khavrinen.lcs.mit.edu>
In-Reply-To: <3EE8C84F.9040106@acm.org>
References:  <200306112248.AA655556764@141.com> <20030612045022.GA36033@rot13.obsecurity.org> <20030612051812.GQ48387@mail.evip.pl> <20030612153849.A57744@dilbert.robbins.dropbear.id.au> <200306121617.h5CGHbQw084862@khavrinen.lcs.mit.edu> <3EE8C84F.9040106@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Thu, 12 Jun 2003 11:37:03 -0700, Tim Kientzle <kientzle@acm.org> said:

> Sounds like alloca() should simply be stricken from libc
> on all architectures.

Yes.  (For values of `all' being `i386'.)

> Might also be a good idea to begin removing uses of it.

Not necessarily.  There's nothing wrong, intrinsically, with using
alloca(), although much but not all of the purpose has been subsumed
by variable-length arrays which I think are in C99.  One merely has to
be aware that it is not part of Standard C (any more than a thousand
other interfaces in FreeBSD) which must be implemented in the
compiler; therefore, one cannot expect programs which expect alloca(3)
to be available and have the standard semantics to work when compiled
with a strictly conforming compiler.  Most compilers do implement
alloca().

-GAWollman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306121854.h5CIsKAw086000>