This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: errno.h: ESTRPIPE


DJ Delorie wrote:
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).
Thanks. I'll put it under CYGWIN for now unless the Cygwin folks say otherwise.

-- Jeff J.


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