Thread (2 messages) 2 messages, 2 authors, 2024-11-19

Re: Improving alloca() manpage

From: Pali Rohár <pali@kernel.org>
Date: 2024-11-19 23:46:13

On Tuesday 19 November 2024 13:21:14 Alejandro Colomar wrote:
I've applied a slightly different wording, but yeah, LGTM.

<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib>
	commit a6e8435b161a513576ce39f524f4fbd3eb621fe7 (HEAD -> contrib, alx/contrib)
	Author: Alejandro Colomar [off-list ref]
	Date:   Tue Nov 19 13:17:27 2024 +0100

	    alloca.3: Clarify that alloca(3)ted space is deallocated when the function returns
	    
	    Reported-by: Pali Rohár [off-list ref]
	    Signed-off-by: Alejandro Colomar [off-list ref]

	diff --git a/man/man3/alloca.3 b/man/man3/alloca.3
	index 0d079ac1d..0baf8f1ce 100644
	--- a/man/man3/alloca.3
	+++ b/man/man3/alloca.3
	@@ -87,7 +87,8 @@ .SH NOTES
	 is
	 .I not
	 automatically deallocated if the pointer that refers to it
	-simply goes out of scope.
	+simply goes out of scope;
	+it is automatically deallocated when the function returns.
	 .P
	 Do not attempt to
	 .BR free (3)

Thanks for the report!

Have a lovely day!
Alex

P.S.:  Please use [off-list ref].  I'm deprecating my google accounts.

P.S.2:  Please remember to CC linux-man@.
Thank you for very quick response and fixup.
And sure, I will do both PSs.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help