From owner-freebsd-questions Sat Jan 15 17:39:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.pit.adelphia.net (alpha.pit.adelphia.net [24.48.44.2]) by hub.freebsd.org (Postfix) with ESMTP id 7C40714CA2 for ; Sat, 15 Jan 2000 17:39:30 -0800 (PST) (envelope-from evstiounin@adelphia.net) Received: from evstiouninadelphia ([24.48.53.248]) by alpha.pit.adelphia.net (8.9.2/8.9.2) with SMTP id UAA00381 for ; Sat, 15 Jan 2000 20:39:15 -0500 (EST) Message-ID: <004401bf5fc2$e6e49f20$f8353018@evstiouninadelphia.net.pit.adelphia.net> From: "Mikhail Evstiounin" To: Subject: Re: Giving a sighandler more information Date: Sat, 15 Jan 2000 20:42:07 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----Original Message----- From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Date: Saturday, January 15, 2000 2:28 PM Subject: Re: Giving a sighandler more information >Mikhail Evstiounin wrote in list.freebsd-questions: > > From: Oliver Fromme > >>No! A program which assumes that an int is large enough to > >>store a pointer is BROKEN. See this simple test program: > > > > Oliver, IT'S A REQUIRIMENTS OF THE STANDARD!!! - NOT MY WISH!!! > >I'm afraid you are wrong. The standard does NOT specify any >relation between the size of an int and the size of a pointer. >It never did, not even in old K&R days, and neither does C9x. >If you think otherwise, please quote from the standard. > >A program written in C (or claimed to be written in C) must >never assume that a pointer can fit in an int. Otherwise it >is just plain broken. > I don't have standard under my hand. What I have it's SB book for C++ and there is only "a plausible set of dundamental types" - not a requirement - p. 75. So, I am wrong, I guess. > > GCC team is very accurate - if they know that they have something > > incompatible > > with ANSI standard they always tell it - there is a whole document in > > distributuive > > that states what is different and why GCC team thinks it should be > > different. > >I hate to tell you this, but gcc is a good example of a >particularly bad implementation of the ANSI C standard, with >a particularly bad documentation. > >And no, not even with -ansi -pedantic it is ANSI C compatible. Nobody told you that - it just tighten it a little bit. > >Regards > Oliver > >-- >Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany >(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) > >"In jedem Stück Kohle wartet ein Diamant auf seine Geburt" > (Terry Pratchett) > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message