From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16893 invoked from network); 21 Sep 1998 17:59:51 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 21 Sep 1998 17:59:51 -0000 Received: from crdems.GE.COM (root@crdems.GE.COM [192.35.44.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA07169 for ; Mon, 21 Sep 1998 13:59:29 -0400 Received: from crd.ge.com (hobbes.crd.ge.com [3.1.221.9]) by crdems.GE.COM (8.9.0/8.9.0) with ESMTP id NAA25704 for ; Mon, 21 Sep 1998 13:58:54 -0400 Sender: morrill@crdems.GE.COM Message-ID: <360693D9.80107B63@crd.ge.com> Date: Mon, 21 Sep 1998 13:58:49 -0400 From: Dan Morrill X-Mailer: Mozilla 4.03 [en] (X11; U; SunOS 5.5.1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Linux/AXP signum.h References: <9809211741.AA30520@s2alpha1.rivm.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit A van Kessel wrote: > The #defines exist to hide the magic constants behind symbolic names. > Once compiled the symbolic names disappear. That is no big deal: > once compiled (for a specific platform) the exact values are correct > *for that platform* . Right, and in this case the idea is that the resulting binaries are compatible with both Linux and OSF/1 without having to munge OSF/1 binaries to the Linux format. I agree that this is a good idea. I'm not concerned that Linux/Alpha attempts to be OSF/1 compatible, I'm concerned that Linux/Intel has signals that Linux/Alpha does not. As things currently stand, Joe Programmer not only has to do an #ifdef LINUX but also an #ifdef ALPHA; that is this particular anomaly is requiring developers to not only specifically handle Linux, but to specifically handle Linux/Alpha, and Linux/Intel, and maybe Linux/SPARC, etc. Yeah, the #defines give you the right numbers *for the platform*, but if the signal isn't even present in signum.h, you can't get a platform-specific number for it. Perhaps I misrepresented myself a bit; I'm by no means saying that OSF/1 compatibility is bad. I'm just saying that IMHO it's worth considering working toward signal compatibility with Linux/Intel, since that's where the biggest things are happening. Especially since this particular issue can probably be solved very easily by increasing _NSIG and adding in the missing Linux/Intel signals. (And, of course, perhaps recompiling anything that relies on _NSIG, but this could be a change migrated into a future release.) Again, this is a fairly arcane issue, but any time we add to the work that developers must do to port to our platform, we're hurting ourselves. Dan Morrill Computer Scientist GE Corporate R&D, K1 5C36 (518) 387 - 6761