Mail Archives: djgpp/1999/04/19/16:21:07.1
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 -