Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!ima!haddock!karl From: karl@haddock.UUCP Newsgroups: comp.lang.c Subject: Re: News for Xenix on PC AT ? Message-ID: <463@haddock.UUCP> Date: Tue, 28-Apr-87 12:54:23 EDT Article-I.D.: haddock.463 Posted: Tue Apr 28 12:54:23 1987 Date-Received: Wed, 29-Apr-87 05:49:39 EDT References: <18346@ucbvax.BERKELEY.EDU> <145@sds.UUCP> Reply-To: karl@haddock.ISC.COM.UUCP (Karl Heuer) Organization: Interactive Systems, Boston Lines: 11 In article <476@unmvax.UNM.EDU> mike@turing.UUCP (Mike Bushnell) writes: >I like to cast signal to an int before checking for -1 ... That could still fail; consider a two's complement machine with 16-bit ints, 32-bit function pointers, and a valid function at address 0x1000ffff. It is more correct to cast the -1 into an appropriate pointer. Even this isn't perfect (for several reasons), which is why ANSI has introduced the constant SIG_ERR to compare against. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint