Date: Sun, 25 Jan 1998 11:26:36 +0200 (IST) From: Eli Zaretskii To: Roger 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.