This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: errno.h: ESTRPIPE
Jeff Johnston <jjohnstn@redhat.com> writes:
> ELBIN, EPROCLIM, EFTYPE, and ENMFILE
DJGPP says:
ENMFILE -- No more files. @code{findfirst} and @code{findnext} assign
this to @code{errno} when they exhaust the files in the directory.
@code{readdir} does that as well.
So, probably Cygwin-specific from newlib's point of view. Compatible
with Borland, I think. Linux readdir() doesn't set errno when it runs
out of entries, it just returns 0 instead of 1 (vs -1 for error).