(patch) errno and misc changes for scandir

Chris Faylor cgf@cygnus.com
Mon May 24 11:30:00 GMT 1999

FYI, this change and your change to dll_init.cc have both been applied.


On Sun, May 23, 1999 at 11:51:10AM -0500, Mumit Khan wrote:
>The following change to scandir is needed to avoid setting errno incorrectly.
>There is one more change that I didn't include -- comparison function that
>takes void*, not struct dirent* to be glibc2.1 compatible. It's not a big
>deal either way since scandir/alphasort is not part of POSIX; I just didn't 
>feel like changing the headers as well.
>Sat May 22 21:45:01 1999  Mumit Khan  <khan@xraylith.wisc.edu>
>	* scandir.cc (scandir): Handle errno correctly. Do preallocation to 
>	reduce realloc calls.
>	(alphasort): Use strcoll, not strcmp.

More information about the Cygwin-developers mailing list