adsl/pppoe no longer connecting on 5.1

Garrett Wollman wollman at lcs.mit.edu
Thu Jun 12 11:54:24 PDT 2003


<<On Thu, 12 Jun 2003 11:37:03 -0700, Tim Kientzle <kientzle at 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



More information about the freebsd-current mailing list