delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/11/04/06:29:33

Date: Mon, 4 Nov 1996 12:18:57 +0100 (MET)
From: Robert Hoehne <robert DOT hoehne AT mathematik DOT tu-chemnitz DOT de>
To: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Problems with opendir() and glob()
Message-Id: <Pine.HPP.3.95.961104120658.9556E-100000@newton.mathematik.tu-chemnitz.de>
Mime-Version: 1.0

I found some problems/bugs in the above functions.
in opendir():

opendir on the root directory for a drive which is substed.
There is a check if findfirst reports "." and ".." and 
depending on the result there is a flag set to force readdir()
to return these names at first. I don't know if "." and ".." are
reported in some other environments (network, ...) but for a
subst drive, findfirst for "s:/" (if s is substed) does not
report "." but findfirst for "s:/*.*" reports ".". The result of
this is, when you do

ls -a s:/

you will get "." and ".." twice.

The glob function (and probably also some other function) still
do not handle correct filenames, which start with a dot
(which are possible in Win 95 with LFN enabled). For checking
it do a

touch .gdbint

and then a

ls .gdb*

and the file is not found.

I have currently no patch for it (no time) I only wanted to tell
it.

Robert

- Raw text -


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