volatile

Doug Gwyn gwyn at brl-smoke.ARPA
Thu Mar 31 20:41:50 AEST 1988


In article <1264 at PT.CS.CMU.EDU> edw at IUS1.CS.CMU.EDU (Eddie Wyatt) writes:
>static void catch(int signo, code; struct sigcontext *scp) { gotcha = 1; }

This Berkeley extension does not conform to the standard,
which states that the signal handler has precisely one argument
(of type int).  The extension is benign on some architectures but
definitely not on all.

P.S. Yes, X3J11 discussed this issue at some length, and decided
to uphold established practice instead of switching to the Berkeley
invention.



More information about the Comp.lang.c mailing list