Commit | Line | Data |
---|---|---|
d296f543 KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
f97f1c3f | 5 | .\" @(#)access.3 6.1 (Berkeley) %G% |
d296f543 | 6 | .\" |
f97f1c3f | 7 | .TH ACCESS 3F "" |
d296f543 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | access \- determine accessability of a file | |
11 | .SH SYNOPSIS | |
12 | .B integer function access (name, mode) | |
13 | .br | |
14 | .B character*(*) name, mode | |
15 | .SH DESCRIPTION | |
16 | .I Access | |
17 | checks the given file, | |
18 | .I name, | |
19 | for accessability with respect to the caller according to | |
20 | .I mode. | |
21 | .I Mode | |
22 | may include in any order and in any combination one or more of: | |
23 | .LP | |
24 | .nf | |
25 | .ta 1i 2i | |
26 | \fBr\fR test for read permission | |
27 | \fBw\fR test for write permission | |
28 | \fBx\fR test for execute permission | |
29 | (blank) test for existence | |
30 | .DT | |
31 | .fi | |
32 | .PP | |
33 | An error code is returned if either argument is illegal, or if the file | |
34 | can not be accessed in all of the specified modes. | |
35 | 0 is returned if the specified access would be successful. | |
36 | .SH FILES | |
37 | .ie \nM /usr/ucb/lib/libU77.a | |
38 | .el /usr/lib/libU77.a | |
39 | .SH "SEE ALSO" | |
40 | access(2), perror(3F) | |
41 | .SH BUGS | |
42 | Pathnames can be no longer than MAXPATHLEN as defined in | |
43 | .RI < sys/param.h >. |