]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(Function Portability): Add notes on signal
authorKevin Ryde <user42@zip.com.au>
Tue, 4 Nov 2003 21:18:58 +0000 (21:18 +0000)
committerKevin Ryde <user42@zip.com.au>
Tue, 4 Nov 2003 21:18:58 +0000 (21:18 +0000)
handler return type, as per AC_TYPE_SIGNAL.

doc/autoconf.texi

index 0b997572c26f5c83fc4ff287d6bbd84d6578e04f..253a94b642221b41ee385f0f24a984c0541df0d5 100644 (file)
@@ -3560,6 +3560,19 @@ case and instead @code{unsetenv} must be used.
 On MINGW, a call @code{putenv("FOO=")} removes @samp{FOO} from the
 environment, rather than inserting it with an empty value.
 
+@item @code{signal} handler
+@c @fuindex signal
+@prindex @code{signal}
+Normally @code{signal} takes a handler function with a return type of
+@code{void}, but some old systems required @code{int} instead.  Any
+actual @code{int} value returned is not used, this is only a
+difference in the function prototype demanded.
+
+All systems we know of in current use take @code{void}.  Presumably
+@code{int} was to support K&R C, where of course @code{void} is not
+available.  @code{AC_TYPE_SIGNAL} (@pxref{Particular Types}) can be
+used to establish the correct type in all cases.
+
 @item @code{snprintf}
 @c @fuindex snprintf
 @prindex @code{snprintf}