Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ access(3) — OSF/1 SILVER Baselevel 4 rev36

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

access(2)

perror(3)

access(3)  —  Subroutines

Digital

NAME

access − determine accessibility of a file

SYNOPSIS

integer function access (name, mode)
character∗(∗) name, mode

DESCRIPTION

access checks the given file, name, for accessibility 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 cannot be accessed in all of the specified modes.  0 is returned if the specified access would be successful. 

RESTRICTIONS

Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>.

FILES

/usr/lib/libU77.a

RELATED INFORMATION

access(2), perror(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026