This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


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

[BUG] scandir bug


According to the scandir man page,

scandir(dirname,&entries,NULL,NULL);

should work (in fact, it does on linux and hpux).  However, on cygwin this causes a segmentation violation.

Workaround is to use:

scandir(dirname,&entries,NULL,alphasort);

but the code should either be fixed, or the man page corrected.  (This happens on cygwin 1.3.2 for NT and win98, btw.)

-- 


--
Daniel
ZZZ-dgun-ZZZ-@umpire-ZZZ-.com
(remove the Z-'s to reply--they're what I do when I read spam)


_______________________________________________
Have you downloaded the latest calling software from Net2Phone? Click here to get it now!

http://www.net2phone.com/cgi-bin/adforward.cgi?p_key=NH211JK&url=http://commcenter.net2phone.com/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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