Subject: Re: problems with sys/errno.h
From: [email-masked] (Jim Balter)

4 Nov 1996 18:04:13 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Original-To: [email-masked] (Joe Marzot)
Original-Cc: [email-masked]
In-Reply-To: <[email-masked]> from "Joe Marzot" at Nov 4, 96 07:26:52 am
X-Mailer: ELM [version 2.4 PL23]
Content-Length: 426       
Original-Sender: [email-masked]

Joe Marzot wrote:
> 
> the definition of errno as a macro in sys/errno.h(included from errno.h)
> causes problems for any use of the name 'errno' other than the usual
> global var. I.e. if 'errno' is used as a field in some other struct then
> including errno.h reaks havok on that code.
> 
> have I missed something?

Including errno.h makes errno a reserved word, per section 7.1.3 of the
ANSI/ISO C standard.

-- 
<J Q B>

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".