aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-05-05 12:09:55 -0500
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-05-05 12:09:55 -0500
commit263a6208f92f40dc1a9c43526bac8d22ef7b1bac (patch)
treea827f31c84cd5ddb7b57113d65e068ef3836740f
parent60bcc5abdd192de0334485936ad8e4e200f95cea (diff)
downloadman-pages-263a6208f92f40dc1a9c43526bac8d22ef7b1bac.tar.gz
stdarg.3: Remove the NOTES section describing the ancient varargs macros
stdarg.h is now 30 years old, and gcc long ago (2004) ceased to implement <varargs.h>. There seems little value in keeping this text. See https://bugzilla.kernel.org/show_bug.cgi?id=202907 Reported-by: Vincent Lefevre <vincent@vinc17.net> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/stdarg.338
1 files changed, 1 insertions, 37 deletions
diff --git a/man3/stdarg.3 b/man3/stdarg.3
index d8dacec90c..d859e0283a 100644
--- a/man3/stdarg.3
+++ b/man3/stdarg.3
@@ -253,44 +253,8 @@ macros conform to C89.
C99 defines the
.BR va_copy ()
macro.
-.SH NOTES
-These macros are
-.I not
-compatible with the historic macros they replace.
-A backward-compatible version can be found in the include file
-.IR <varargs.h> .
-.PP
-The historic setup is:
-.PP
-.in +4n
-.EX
-#include <varargs.h>
-
-void
-foo(va_alist)
- va_dcl
-{
- va_list ap;
-
- va_start(ap);
- while (...) {
- ...
- x = va_arg(ap, type);
- ...
- }
- va_end(ap);
-}
-.EE
-.in
-.PP
-On some systems,
-.I va_end
-contains a closing \(aq}\(aq matching a \(aq{\(aq in
-.IR va_start ,
-so that both macros must occur in the same function, and in a way
-that allows this.
.SH BUGS
-Unlike the
+Unlike the historical
.B varargs
macros, the
.B stdarg