linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Oleg O. Ossovitskii" <oleg@kgpa.ru>
To: linux-c-programming@vger.kernel.org
Cc: Mohammed Khalid Ansari <khalid@ncst.ernet.in>
Subject: Re[2]: Misc C question
Date: Thu, 20 Jun 2002 11:51:58 +0300	[thread overview]
Message-ID: <4512499703.20020620115158@kgpa.ru> (raw)
In-Reply-To: <Pine.LNX.4.33.0206201333470.26820-100000@soochak.ncst.ernet.in>

Hello Mohammed,

Thursday, June 20, 2002, 11:05:58 AM, you wrote:



MKA> The simple C function is

MKA>         int access(const char *pathname, int mode);

MKA> to suit you needs. Read man pages to find out more.

access() isn't so useful as stat() because access() use real user ID
and real group ID, instead of EUID and EGID.

But You are right - for checking for existense of file access()
function is simpler than stat() or lstat().

Best regards, Oleg O. Ossovitskii
programming engineer, KGPA Ltd.
tel: +7(0112)46-23-40, fax: +7(0112)43-64-96
mailto:oleg@kgpa.ru, icq# 33366588


  reply	other threads:[~2002-06-20  8:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20  2:46 Misc C question xmp
2002-06-20  3:10 ` mike
2002-06-20  4:44   ` xmp
2002-06-20  5:08     ` mike
2002-06-20 12:46       ` William N. Zanatta
2002-06-20  6:28 ` Oleg O. Ossovitskii
2002-06-20  8:05   ` Mohammed Khalid Ansari
2002-06-20  8:51     ` Oleg O. Ossovitskii [this message]
2002-06-20 13:23 ` Glynn Clements
2002-06-20 20:42   ` GOMEZ NOGUERA DAVIDEDUARDO
2002-06-20 21:53     ` James Stevenson
2002-06-20 23:24     ` Glynn Clements
2002-06-20 23:24     ` Glynn Clements
2002-06-21  0:07       ` Christopher Quinn
2002-06-20 18:09 ` James Stevenson

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=4512499703.20020620115158@kgpa.ru \
    --to=oleg@kgpa.ru \
    --cc=khalid@ncst.ernet.in \
    --cc=linux-c-programming@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 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).