1ACCESS(3F) ACCESS(3F)
2
3
4
6 access - determine accessibility of a file
7
9 integer function access (name, mode)
10 character*(*) name, mode
11
13 Access checks the given file, name, for accessibility with respect to
14 the caller according to mode. Mode may include in any order and in any
15 combination one or more of:
16
17 r test for read permission
18 w test for write permission
19 x test for execute permission
20 (blank) test for existence
21
22 An error code is returned if either argument is illegal, or if the file
23 cannot be accessed in all of the specified modes. 0 is returned if the
24 specified access would be successful.
25
27 /usr/lib/libU77.a
28
30 access(2), perror(3F)
31
33 Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>.
34
35
36
374.2 Berkeley Distribution May 27, 1986 ACCESS(3F)