From owner-freebsd-hackers Sun Nov 22 12:17:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA08772 for freebsd-hackers-outgoing; Sun, 22 Nov 1998 12:17:22 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA08767; Sun, 22 Nov 1998 12:17:13 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0zhfw0-0006dr-00; Sun, 22 Nov 1998 13:16:40 -0700 Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.1/8.8.3) with ESMTP id NAA26560; Sun, 22 Nov 1998 13:16:34 -0700 (MST) Message-Id: <199811222016.NAA26560@harmony.village.org> To: nectar@FreeBSD.ORG Subject: Re: errno Cc: hackers@FreeBSD.ORG In-reply-to: Your message of "Sun, 22 Nov 1998 10:04:21 CST." References: Date: Sun, 22 Nov 1998 13:16:34 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message nectar@FreeBSD.ORG writes: : #include : struct example { : int errno; : }; : I understand why, but is this code incorrect ANSI C? I'm just : trying to find a reference that prohibits this use. No. ANSI C specifically allows errno to be a macro. Since it could be a macro, a strictly conforming compiler need not accept this program. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message