Hash :
a897449a
Author :
Date :
2006-08-14T22:19:54
Add copyright notices to long-enough files that lack them, since otherwise the files aren't clearly free. Use the same notice that getdate.texi already uses. * doc/alloca-opt.texi: Add copyright notice. * doc/alloca.texi: Likewise. * doc/ctime.texi: Likewise. * doc/functions.texi: Likewise. * doc/gcd.texi: Likewise. * doc/gnulib-tool.texi: Likewise. * doc/inet_ntoa.texi: Likewise. * doc/visibility.texi: Likewise. Change copyright notice from LGPL 2 to GPL 2, since that's the standard form used in the gnulib repository. * lib/lock.c: LGPL -> GPL. * lib/lock.h: Likewise. * lib/strnlen1.c: Likewise. * lib/strnlen1.h: Likewise. * lib/tls.c: Likewise. * lib/tls.h: Likewise. * lib/tmpdir.c: Likewise. * tests/test-lock.c: Likewise. * tests/test-stdint.c: Likewise. * tests/test-tls.c: Likewise.
@c Documentation of gnulib module 'alloca'.
@c Copyright (C) 2004 Free Software Foundation, Inc.
@c Permission is granted to copy, distribute and/or modify this document
@c under the terms of the GNU Free Documentation License, Version 1.2 or
@c any later version published by the Free Software Foundation; with no
@c Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
@c Texts. A copy of the license is included in the ``GNU Free
@c Documentation License'' file as part of this distribution.
The alloca module provides for a function alloca() which allocates memory
on the stack, where the system allows it. A memory block allocated with alloca()
exists only until the function that calls alloca() returns or exits abruptly.
There are a few systems where this is not possible: HP-UX systems, and some
other platforms when the C++ compiler is used. On these platforms the alloca
module provides a malloc() based emulation. This emulation will not free a
memory block immediately when the calling function returns, but rather will
wait until the next alloca() call from a function with the same or a shorter
stack length. Thus, in some cases, a few memory blocks will be kept although
they are not needed any more.
The user can #include <alloca.h> and use alloca() on all platforms. Note
that the #include <alloca.h> must be the first one after the autoconf-generated
config.h. Thanks to AIX for this nice restriction!
An alternative to this module is the 'alloca-opt' module.