apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: apr/file_io/win32 dir.c
Date Tue, 07 Aug 2001 19:49:04 GMT
"William A. Rowe, Jr." <wrowe@rowe-clan.net> writes:

> >   --- dir.c 2001/08/06 21:04:50 1.57
> >   +++ dir.c 2001/08/07 14:12:29 1.58
> >   @@ -257,6 +257,12 @@
> >    
> >    APR_DECLARE(apr_status_t) apr_dir_rewind(apr_dir_t *dir)
> >    {
> >   +    /* XXX FIXME...
> >   +     * 1) dir_cleanup() does FindClose(), so the FindClose() call
> >   +     *    here will always return a meaningless error (bad handle).
> 
> Outch
> 
> >   +     * 2) Don't we need to re-open the directory, or is there a
> >   +     *    Win32 way to rewind?
> 
> No.  By closing (and marking the handle as closed) the next apr_dir_read
> will reopen the directory walk.  There is no such thing as an 'open dir'
> on win32, you are either reading the first, or the next entry.

thanks for the info...  that certainly makes the fix easy :)

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message