This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: errno


The definition is almost certainly incorrect, but as long as it does not
provide an initialization, this will get folded in with the proper errno
definition. It's a form of "common area" merge that dates back to early
FORTRAN support in the linkers.

shap

On Sat, 2007-06-16 at 18:27 +0200, Christian Groessler wrote:
> Hi,
> 
> is it correct that libc/reent/reent.c defines errno?
> According to the comment it probably should be declared
> as "extern int errno;" like in the other files in this
> directory. If the system dependent layer defines errno
> it won't be used, since it's already declared here.
> 
> regards,
> chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]