www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/16:21:07.1

Message-ID: <371B9DE5.9A7A4351@pallen.dabsol.co.uk>
Date: Mon, 19 Apr 1999 22:19:33 +0100
From: Peter Allen <P DOT Allen AT pallen DOT dabsol DOT co DOT uk>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: What does lstat do?
Reply-To: djgpp AT delorie DOT com

Does anyone happen to know what 'lstat()' does, as I need to 
implement it/emulate it, and can't find much on it.
The libc5.4 sources (linux version) implementation of it is:

function_alias(lstat, __lstat, int, (file, buf),
	       DEFUN(lstat, (file, buf),
		     CONST char *file AND struct stat *buf))

<EOF>

(not terrible helpful, as I don't know what function_alias does,
and how in can compile without a semi-colon or brace at the end)
(That bits probably obvious but I have had a long day...)

and the man page says:
'stat stats the file points to by file_name and fills in buf

lstat is identical only the link is stated not the file the is
obtained by tracing the link.'

Now I know that man pages are cryptic, but this :-)

I know that it gets info about the file its pointed at, and 
some won't be relavant in dos like file permisions etc,
but the rest?
Thanks,
		Peter Allen

- Raw text -


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