linux-gcc.vger.kernel.org archive mirror
 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; 7+ 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] 7+ messages in thread
[parent not found: <Pine.GSO.4.21.0208281355510.20978-100000@general3.asu.edu>]

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

Thread overview: 7+ 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
     [not found] <Pine.GSO.4.21.0208281355510.20978-100000@general3.asu.edu>
2002-08-28 21:09 ` C Language Reference for @ and : Nate

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).