Hi Laurence,

On Tue, Jun 25, 2013 at 3:24 PM, Laurence Tratt <lau...@tratt.net> wrote:
> The point that eventually became clear to me is that returning NULL and
> setting errno are not necessarily connected, which was the original mistake I
> made. errors can happen (and errno set) even if readdir hasn't hit the end of
> the directory (so NULL need not be returned). Linux's man page is, unusually,
> clearer than OpenBSD's in this regard, though it's so long and lawyerly that
> it's still hard to work out what's going on! I had to read OpenBSD's source
> code to work this out last year :/

Sorry, I don't follow you.  As far as I know the Linux man page is not
clear about what occurs to errno if readdir() doesn't return NULL...


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to