aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2021-09-14 14:40:55 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2021-09-15 21:33:44 +0200
commit26790061e163a4a49c7f59314de431ec43ec2274 (patch)
tree1604824595d2a6da40f8b8d720049a8158b041e2
parentcaaa2efab02024129136b7a237c63f7788123e5c (diff)
downloadman-pages-26790061e163a4a49c7f59314de431ec43ec2274.tar.gz
strdup.3: drop mention of "the GNU GCC suite"
str[n]dupa() are available on every modern compiler platform, incl. Clang, ICC, &c. By shortening the third paragraph, it now reads strdupa() and strndupa() are similar, but use alloca(3) to allocate the buffer. pointing squarely to alloca(3), which is scary enough, so drop the extraneous warning, too ‒ this clearly points to "see alloca(3) for the limitations of that allocator". Plus, it's not like malloc(3) doesn't have its problems, too, but I don't see those being touted in the first paragraph; reducing these to the bare minimum, strdup() copies into malloc(3) and you can free it with free(3), strndup() likewise, but up to n, and str[n]dupa() use alloca(3) instead ‒ be wary of what alloca(3) does! doesn't really make sense ‒ it's obvious that, ex definitione, alloca(3) suffers from alloca(3) problems and input limits, just like malloc(3) from the malloc(3) suite's. Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
-rw-r--r--man3/strdup.33
1 files changed, 0 insertions, 3 deletions
diff --git a/man3/strdup.3 b/man3/strdup.3
index 1e1ac34ded..963de7d487 100644
--- a/man3/strdup.3
+++ b/man3/strdup.3
@@ -99,9 +99,6 @@ and
are similar, but use
.BR alloca (3)
to allocate the buffer.
-They are available only when using the GNU
-GCC suite, and suffer from the same limitations described in
-.BR alloca (3).
.SH RETURN VALUE
On success, the
.BR strdup ()