Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

access  test file access permission (access = 33.; not in assembler)
sys access; name; mode access(name, mode)
char *name; points to a null-terminated string naming a file; is an integer less than or equal to 7.  tests to see if the real user id of the current process has the specified access permissions on the named file.  The desired access permissions for are constructed by adding 4 for read access, 2 for write access, and 1 for execute access.  chmod (II) Error bit (c-bit) is set if the file cannot be found or the permission is not granted.  From C, a 1 return indicates an error. 

7th Edition

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