[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc signal handler return type

From: Kevin Ryde
Subject: Re: doc signal handler return type
Date: Mon, 03 Nov 2003 07:45:49 +1000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Paul Eggert <address@hidden> writes:
> There must be some confusion here, as POSIX.1 clearly requires "void".

New proposed words below, being suitably non-committal.

This is still only on the principle that if something is worth having
an autoconf test for (ie. AC_TYPE_SIGNAL) then it's worth a note about

`signal' handler
     Normally `signal' takes a handler function with a return type of
     `void', but some old systems required `int' instead.  Any actual
     `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 `void'.  Presumably
     `int' was to support K&R C, where of course `void' is not
     available.  `AC_TYPE_SIGNAL' (*note Particular Types::) can be
     used to establish the correct type in all cases.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]