From: "Alexandre P. Nunes" <alexnunes@escriba.com.br>
To: linux-gcc@vger.kernel.org
Subject: Re: stat() problems.
Date: Thu, 01 Aug 2002 08:48:43 -0300 [thread overview]
Message-ID: <3D49201B.1090102@escriba.com.br> (raw)
In-Reply-To: 1028188562.1091.4.camel@skt.int.local
Stefanos Koutsoutos wrote:
>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.
>
>
>
stat() follows symlinks. That's why there's lstat(), try it instead.
Cheers,
Alexandre
next prev parent reply other threads:[~2002-08-01 11:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-01 7:56 stat() problems Stefanos Koutsoutos
2002-08-01 11:48 ` Alexandre P. Nunes [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D49201B.1090102@escriba.com.br \
--to=alexnunes@escriba.com.br \
--cc=linux-gcc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.