xref: /csrg-svn/share/man/man3f/access.3 (revision 20474)
Copyright (c) 1983 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)access.3 5.1 (Berkeley) 05/15/85

ACCESS 3F "26 July 1983"
C 5
NAME
access - determine accessability of a file
SYNOPSIS
integer function access (name, mode)

character*(*) name, mode

DESCRIPTION
Access checks the given file, name, for accessability with respect to the caller according to mode. Mode may include in any order and in any combination one or more of:

 r test for read permission
 w test for write permission
 x test for execute permission
 (blank) test for existence

An error code is returned if either argument is illegal, or if the file can not be accessed in all of the specified modes. 0 is returned if the specified access would be successful.

FILES
"SEE ALSO"
access(2), perror(3F)
BUGS
Pathnames can be no longer than MAXPATHLEN as defined in < sys/param.h >.