delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/25/04:30:59

Date: Sun, 25 Jan 1998 11:26:36 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Roger <xyzzy AT snafu DOT fubar>
cc: djgpp AT delorie DOT com
Subject: Re: access() in DJGPP and TC/BC
In-Reply-To: <34c86442.2868782@news.dircon.co.uk>
Message-ID: <Pine.SUN.3.91.980125112609.6225F-100000@is>
MIME-Version: 1.0

On Fri, 23 Jan 1998, Roger wrote:

> I have open in front of me "POSIX Programmer's Guide" page 213
> which describes access(). Is the book is wrong?

No, it's not wrong.  `access' is portable, but the R_OK, W_OK
etc. macros aren't, AFAIK.

> access() and stat() are equally valid on a POSIX system.

They are both valid, but `stat' is better if you want the results to
be consistent on more systems.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019