This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Double definition of errno?
- From: "KJK::Hyperion" <noog at libero dot it>
- To: newlib at sources dot redhat dot com
- Date: Sat, 17 Aug 2002 22:50:28 +0200
- Subject: Double definition of errno?
Hi all. I'm not very familiar with C library implementations, so I'm
wondering what's the purpose of a double definition of errno, both as
"extern int" and as a macro, but, correct me if I'm wrong, it seems that
some calls (namely, "system calls") are assumed to use the "extern int
errno", while all the others will use the errno macro. I'd like to use an
unified definition of errno, would this break something? (except the
reentrant system calls provided by newlib, which I can override)