[pypy-dev] PyPy + setuptools issue

Armin Rigo arigo at tunes.org
Tue Jun 25 23:34:03 CEST 2013


Hi Laurence,

On Tue, Jun 25, 2013 at 3:24 PM, Laurence Tratt <laurie at 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.


More information about the pypy-dev mailing list