delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/22/06:18:53

Message-ID: <39A25439.30938864@softhome.net>
Date: Tue, 22 Aug 2000 12:21: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: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Patch: documentation tweak for _is_executable()
Reply-To: djgpp-workers AT delorie DOT com

I've updated _is_executable() documentation to state, that
symlinks are not supported there. I see no point in adding
symlink support there, because it's semi-internal library
function to be used in lstat() and fstat(), after all. 

Any objections are welcome.
Laurynas

Index: is_exec.txh
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/sys/stat/is_exec.txh,v
retrieving revision 1.3
diff -u -p -r1.3 is_exec.txh
--- is_exec.txh	1999/06/20 08:53:40	1.3
+++ is_exec.txh	2000/08/22 10:17:00
@@ -35,7 +35,8 @@ alone isn't enough to determine whether 
 function returns 0, because it cannot look at the @cite{magic number}.
 
 This function is used internally by @code{f?stat}; you are not supposed
-to call it directly.
+to call it directly.  However, if you call it, and pass file through 
+@var{path}, it's up to you to resolve symlinks there.
 
 @subheading Return Value

- Raw text -


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