www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/18/08:35:34

Date: Wed, 18 Sep 1996 14:12:04 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
Reply-To: grendel AT ananke DOT amu DOT edu DOT pl
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp AT delorie DOT com, DJ Delorie <dj AT delorie DOT com>
Subject: Re: 1 bug(?) open/readdir & glob
In-Reply-To: <Pine.SUN.3.91.960918144724.1273F-100000@is>
Message-ID: <Pine.NEB.3.95.960918140152.435A-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On Wed, 18 Sep 1996, Eli Zaretskii wrote:

>This is one area where the desire to be compatible with both Unix and
>MSDOS lead to contradiction that has to be resolved in a somewhat kludgy
>(IMHO) way.  Since on MSDOS the hidden files aren't usually shown,
>`readdir' doesn't ask for them.  If you make `readdir' behave otherwise,
>MSDOS programs which use `readdir' will suffer.  Portable programs that
>absolutely must see all the directory entries, should set the bits in the
>`__opendir_flags' variable (look it up in the library docs) to that
>effect. 
I suppose there are few (if at all) native DOS programs using readdir().
Thoses of them using these calls are usually ported from Unix or meant to work
on Unix (althoug I suspect these are rare). Frankly, I don't see why a program
might suffer from seeing hid/sys files? Unless it assumes all files to be
archives. In this case such an application is buggy and should not be taken
care of. OTOH an application (such as mine which generates a .html file with
directory listing) HAS to know all the files no matter on what system do they
run. To make it clear, I have nothing against setting flags in
'__opendir_flags' ;-)) but in this case 100% compatibility may be achieved
with no harm for DOS programs. 


**********************************************************************
So if you ask me how do I feel inside, I could honestly tell you we've
been taken on a very long ride. And if my owners let me have free time
some day, with all good intention I would probably run away!
Clutching the short straw...
******************* http://ananke.amu.edu.pl/~grendel ****************

- Raw text -


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