This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: (patch) errno and misc changes for scandir
- To: Mumit Khan <khan@xraylith.wisc.EDU>
- Subject: Re: (patch) errno and misc changes for scandir
- From: Chris Faylor <cgf@cygnus.com>
- Date: Mon, 24 May 1999 14:30:39 -0400
- Cc: cygwin-developers@sourceware.cygnus.com
- References: <199905231651.LAA03799@mercury.xraylith.wisc.edu>
FYI, this change and your change to dll_init.cc have both been applied.
Thanks,
Chris
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.