delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/22/08:44:50

Message-ID: <37BFECBA.57BFBD27@softhome.net>
Date: Sun, 22 Aug 1999 14:27:38 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Real symlinks for DJGPP?
Reply-To: djgpp-workers AT delorie DOT com

Hello,

Are there any obstacles for implementing real symlinks for
DJGPP using regular files? I think that - 

1) symlink function creates a new file and writes path to
linked file here. To avoid clashes between symlink and
non-symlink files, it should have prefix and postfix, e.g.
two ASCII chars from 0-31 or 128-255, string 'DJGPP symlink',
path itself, newline, 'DJGPP symlink'.

2) open function checks for symlink file format, and if
the file appears to be symlink, open real file instead.

For supporting symlinks to directories chdir() should be 
adjusted too.

I'm waiting for advices. In fact, I've started writing
some code.

Laurynas Biveinis

- Raw text -


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