🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7593

Re: Soft Links under DOS (UNIX ln -s)

#7593
From: Fuzzy Fox
Date: Mon, 11 Jan 1993 17:01
26 lines
1513 bytes
tchnd-au@garnet.berkeley.edu (Yuval Oren) writes:

>I would like to implement soft links for DOS. I planned to trap the
>file open, close, etc. interrupts, and re-direct them to the address
>stored in a "link file," which would have one line, the full path of
>the real file. But then I thought, how can I open this file to find
>out where to go? Any ideas for me?

Presumably your INT21 handler would remember the address that it used to
have stored, so that it could pass non-linked file calls on to DOS.
Just use the old INT21 handler to handle your link calls.

I would love to see a good symlink handler for DOS.  I saw one once that
seemed to work, but it did not support the DOS EXEC call, so I could not
use it to symlink program files to each other.  This would have been
perfect for the PBMPLUS tools.

One question:  How do you propose to be able to tell the difference
between a symlink file and a real file that happens to contain a
pathname?

-- 
#ifdef TRUE        | Fuzzy Fox (a.k.a. David DeSimone)       fuzzy@netcom.com
#define  TRUE   0  |
#define  FALSE  1  |  "911 Emergency Rescue Service - Can you hold, please?"
#endif             |
Technical Details
Message-ID: <1993Jan11.170104.6198@rei.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!rei2!fox
References: <1io3o4$p7n@agate.berkeley.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!rei2!fox
From: fox@rei.com (Fuzzy Fox)
Subject: Re: Soft Links under DOS (UNIX ln -s)
Message-ID: <1993Jan11.170104.6198@rei.com>
Date: Mon, 11 Jan 1993 17:01:04 GMT
References: <1io3o4$p7n@agate.berkeley.edu>
Organization: Recognition Equipment, Inc.
Lines: 26