delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/11/15/12:32:35

Date: Mon, 15 Nov 1999 18:56:26 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Laurynas Biveinis <lauras AT softhome DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: First alpha symlink patch
In-Reply-To: <38303105.4DB4F377@softhome.net>
Message-ID: <Pine.SUN.3.91.991115185203.29634A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 15 Nov 1999, Laurynas Biveinis wrote:

> Eli Zaretskii wrote:
> > I don't know, they might.  Did you try to call `getcwd' in a recursive
> > program, like the one which calls `ftw'?  If not, it might be a good
> > idea.
> 
> Well, I'm not certain, about what kind of recursive situation you're 
> talking about.

`ftw' recursively descends a directory tree, applying a user-defined 
function to each file.  What happens if you pass it a user-defined 
function that, if the file is a directory, chdirs to that directory and 
prints what getcwd returns?  Just for fun, make it chdir by calling 
__dpmi_in directly.

> BTW, how could DOS store `current directory' itself? IMHO in global
> variable.

DOS can do it because it is itself the server of the chdir call.  Our 
libc isn't, so it isn't simple for it to keep track of cwd.

- Raw text -


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