bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: errno.h


From: Bruno Haible
Subject: Re: errno.h
Date: Sun, 30 Mar 2008 11:34:09 +0100
User-agent: KMail/1.5.4

Eric Blake wrote:
> Hmm - should we provide a gnulib <errno.h> that guarantees all of the
> standard errors, rather than doing an ad-hoc definition of EOVERFLOW and
> others in every place where they are used?

So far we have been treating the errno values one by one, because
  1. it is possible to do so in config.h,
  2. we don't have good replacements for things like EADDRINUSE or EDQUOT or
     or EIDRM if the system does not have them.

> Or is it even possible, since
> errno.h is not required to do anything more than macros, such that
> include_next won't necessarily find the system <errno.h>?

<errno.h> must also provide a declaration for the 'errno' variable, and it
does on all systems nowadays. So include_next should be usable in this case.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]