Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: volatile Message-ID: <7594@brl-smoke.ARPA> Date: 31 Mar 88 10:41:50 GMT References: <12578@brl-adm.ARPA> <1988Mar25.172355.348@utzoo.uucp> <3237@haddock.ISC.COM> <1264@PT.CS.CMU.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <1264@PT.CS.CMU.EDU> edw@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.