delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/19/00:24:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20010919042317.30464.qmail@mail.com>
MIME-Version: 1.0
X-Mailer: MIME-tools 5.41 (Entity 5.404)
From: "D G" <dgun AT umpire DOT com>
To: cygwin AT cygwin DOT com
Date: Wed, 19 Sep 2001 12:23:15 +0800
Subject: [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- AT umpire-ZZZ- DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019