more fixes
[unix-history] / usr / src / share / man / man3f / access.3
CommitLineData
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
10access \- 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
17checks the given file,
18.I name,
19for accessability with respect to the caller according to
20.I mode.
21.I Mode
22may 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
33An error code is returned if either argument is illegal, or if the file
34can not be accessed in all of the specified modes.
350 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"
40access(2), perror(3F)
41.SH BUGS
42Pathnames can be no longer than MAXPATHLEN as defined in
43.RI < sys/param.h >.