All of lore.kernel.org
 help / color / mirror / Atom feed
* stat() problems.
@ 2002-08-01  7:56 Stefanos Koutsoutos
  2002-08-01 11:48 ` Alexandre P. Nunes
  0 siblings, 1 reply; 6+ messages in thread
From: Stefanos Koutsoutos @ 2002-08-01  7:56 UTC (permalink / raw)
  To: linux-gcc

Hi,

I'm facing problems with stat() system call. It seems that it follows
filesystem links! To be more accurate I try:

struct stat buf;
stat("this_is_a_link", &buf);

and then:	S_ISLNK( buf.st_mode )  is false!

More, the mode is the same as the mode of the file it links to! I think
that this is not what it supposed to be done by stat(). Any ideas??

Thanks in advance.
Stefanos.

-- 
____________________
Stefanos Koutsoutos
Developer
MD5 S.A.
koutsoutos@md5sa.com
www.md5sa.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-01-15 20:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-01  7:56 stat() problems Stefanos Koutsoutos
2002-08-01 11:48 ` Alexandre P. Nunes
2002-08-01 12:05   ` Stefanos Koutsoutos
2002-08-28 20:50   ` C Language Reference for @ and : Nate
2002-08-28 22:16     ` Stephen Satchell
2003-01-15 20:00       ` Stack and Heap Nate

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.