Date: Sun, 22 Nov 1998 13:16:34 -0700 From: Warner Losh <imp@village.org> To: nectar@FreeBSD.ORG Cc: hackers@FreeBSD.ORG Subject: Re: errno Message-ID: <199811222016.NAA26560@harmony.village.org> In-Reply-To: Your message of "Sun, 22 Nov 1998 10:04:21 CST." <XFMail.981122100421.nectar@FreeBSD.ORG> References: <XFMail.981122100421.nectar@FreeBSD.ORG>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <XFMail.981122100421.nectar@FreeBSD.ORG> nectar@FreeBSD.ORG writes:
: #include <errno.h>
: 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811222016.NAA26560>
