git: 6c3a4b5f9b7b - main - alloca.3: move to share/man/man3

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Tue, 29 Apr 2025 17:18:51 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=6c3a4b5f9b7bd4d4e6dc1fc2d366af99aa8fca1d

commit 6c3a4b5f9b7bd4d4e6dc1fc2d366af99aa8fca1d
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-04-29 17:17:02 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-04-29 17:18:33 +0000

    alloca.3: move to share/man/man3
    
    The alloca() API is a compiler builtin and not generally part of libc.
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D50055
---
 lib/libc/stdlib/Makefile.inc                 | 2 +-
 share/man/man3/Makefile                      | 3 ++-
 {lib/libc/stdlib => share/man/man3}/alloca.3 | 4 +---
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index bea82445304d..ca199a669be1 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -31,7 +31,7 @@ SYM_MAPS+= ${LIBC_SRCTOP}/stdlib/Symbol.map
 # machine-dependent stdlib sources
 .sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/stdlib/Makefile.inc"
 
-MAN+=	a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 \
+MAN+=	a64l.3 abort.3 abs.3 atexit.3 atof.3 \
 	atoi.3 atol.3 at_quick_exit.3 bsearch.3 \
 	div.3 exit.3 getenv.3 getopt.3 getopt_long.3 getsubopt.3 \
 	hcreate.3 imaxabs.3 imaxdiv.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 \
diff --git a/share/man/man3/Makefile b/share/man/man3/Makefile
index 1d8586e48f9f..c610283173a2 100644
--- a/share/man/man3/Makefile
+++ b/share/man/man3/Makefile
@@ -1,6 +1,7 @@
 .include <src.opts.mk>
 
-MAN=		arb.3 \
+MAN=		alloca.3 \
+		arb.3 \
 		assert.3 \
 		ATOMIC_VAR_INIT.3 \
 		bitstring.3 \
diff --git a/lib/libc/stdlib/alloca.3 b/share/man/man3/alloca.3
similarity index 98%
rename from lib/libc/stdlib/alloca.3
rename to share/man/man3/alloca.3
index d2111872ae0b..fd88014dbb33 100644
--- a/lib/libc/stdlib/alloca.3
+++ b/share/man/man3/alloca.3
@@ -25,14 +25,12 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd September 5, 2006
+.Dd April 29, 2025
 .Dt ALLOCA 3
 .Os
 .Sh NAME
 .Nm alloca
 .Nd memory allocator
-.Sh LIBRARY
-.Lb libc
 .Sh SYNOPSIS
 .In stdlib.h
 .Ft void *