Path: utzoo!attcan!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.unix.wizards Subject: Re: shared memory under SysV Message-ID: <10861@steinmetz.ge.com> Date: 16 May 88 20:18:53 GMT References: <14379@brl-adm.ARPA> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 10 I think this is a major conflict with ANSI C. The procedure must return either an int or a pointer, but it can't portably do both, since some systems don't represent the two types remotely the same way. This works on the nice machine on which SysV was developed, but you better hope that what's really returned for an error is "(char *) -1". -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me