Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3AC49C48.DA82C507@yahoo.com> Date: Fri, 30 Mar 2001 09:46:32 -0500 From: Earnie Boyd Reply-To: cygwin AT sources DOT redhat DOT com X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "Larry Hall (RFK Partners, Inc)" CC: Andre Bleau , cygwin AT sources DOT redhat DOT com Subject: Re: opendir crashes with -mno-cygwin References: <4 DOT 3 DOT 1 DOT 2 DOT 20010329200632 DOT 0216a1e8 AT pop DOT ma DOT ultranet DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Larry Hall (RFK Partners, Inc)" wrote: > > At 10:53 AM 3/29/2001, Andre Bleau wrote: > >The following very simple program segfaults in opendir when compiled with -mno-cygwin but runs OK when not compiled with -mno-cygwin. I tried with both gcc 2.95.3-1 and gcc 2.95.3-2. > > -8<- > > > >When compiled with -mno-cygwin, if the directory given as an argument to the program does not exist, opendir returns NULL as it should. If the directory does exist, for example ".", opendir segfaults. > Works for me. gcc-2.95.2-9. NT 4 sp4 > Where are you getting the implementation of opendir() for -mno-cygwin? > It's a MinGW default library function. Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple