.\" Copyright (c) 1983, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" This module is believed to contain source code proprietary to AT&T. .\" Use and redistribution is subject to the Berkeley Software License .\" Agreement and your Software Agreement with AT&T (Western Electric). .\" .\" @(#)access.3 8.1 (Berkeley) 6/5/93 .\" .TH ACCESS 3F "June 5, 1993" .UC 5 .SH NAME access \- determine accessibility of a file .SH SYNOPSIS .B integer function access (name, mode) .br .B character*(*) name, mode .SH DESCRIPTION .I Access checks the given file, .I name, for accessibility with respect to the caller according to .I mode. .I Mode may include in any order and in any combination one or more of: .LP .nf .ta 1i 2i \fBr\fR test for read permission \fBw\fR test for write permission \fBx\fR test for execute permission (blank) test for existence .DT .fi .PP An error code is returned if either argument is illegal, or if the file cannot be accessed in all of the specified modes. 0 is returned if the specified access would be successful. .SH FILES .ie \nM /usr/ucb/lib/libU77.a .el /usr/lib/libU77.a .SH "SEE ALSO" access(2), perror(3F) .SH BUGS Pathnames can be no longer than MAXPATHLEN as defined in .RI < sys/param.h >.