delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/18/03:57:49

Message-ID: <399CEB4D.86B13B15@softhome.net>
Date: Fri, 18 Aug 2000 09:52:45 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Re: Patch: FSEXT nits for stat()/lstat()
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000818082329 DOT 29393E AT is>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:
> I don't see any problems with #define, but I also don't see any problems
> with staying with the old name.  It's not a problem if an FSEXT hook has
> a name that isn't 100% identical to the exact function where it is called.
> 
> For example, __FSEXT_open is called from _open, not from open.

Yes, I agree, that __FSEXT_open is better than __FSEXT__open and
__FSEXT_readlink is better that __FSEXT___internal_readlink.

So here's the patch which just documents that __FSEXT_stat hooks lstat() 
and that's all. Any comments?

Laurynas

Index: fsext.txh
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/fsext/fsext.txh,v
retrieving revision 1.8
diff -u -r1.8 fsext.txh
--- fsext.txh	2000/08/16 18:30:38	1.8
+++ fsext.txh	2000/08/18 07:54:31
@@ -110,6 +110,11 @@
 A file dup2 handler (@pxref{dup2}).  This is called when two different
 file descriptors are used to refer to the same open file.
 
+@item __FSEXT_stat
+
+A file lstat handler (@pxref{lstat}).  This extension should provide
+information about stated file.
+
 @item __FSEXT_fstat
 
 A file fstat handler (@pxref{fstat}).  The extension should fill in

- Raw text -


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