This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [patch] don't reset errno if no error occured


On 12 July 2010 17:43, Paolo Carlini wrote:
>
> In that case, we could just remove 'errno = 0' for the GNU/Linux targets
> we (Matthias too) care about via a __GLIBC__ macro check, and everyone
> we'll be happy.

It would be even better to make that change for all POSIX systems, not
just glibc.

That said, the bug report is bogus, the doc saying "errno is never set
to zero by any system call or library function" is not referring to
C++ library functions.


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