www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/18/08:28:04

Message-ID: <399D2ABB.5BCBC049@softhome.net>
Date: Fri, 18 Aug 2000 14:23:23 +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 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> <399CEB4D DOT 86B13B15 AT softhome DOT net> <9743-Fri18Aug2000135736+0300-eliz AT is DOT elta DOT co DOT il>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:
> This is fine, but perhaps it is a good idea to mention that `stat' can
> also be hooked with this function.

How about this?

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 12:25:47
@@ -110,6 +110,12 @@
 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.  If you provide this hook, function @code{stat}
+will be hooked too, as @code{stat} always calls @code{lstat}.
+
 @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