Query: access
OS: plan9
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ACCESS(2) System Calls Manual ACCESS(2)NAMEaccess - determine accessibility of fileSYNOPSIS#include <u.h> #include <libc.h> int access(char *name, int mode)DESCRIPTIONAccess evaluates the given file name for accessibility. If mode&4 is nonzero, read permission is expected; if mode&2, write permission; if mode&1, execute permission. If mode==0, the file merely need exist. In any case all directories leading to the file must permit searches. Zero is returned if the desired access is permitted, -1 if not. Only access bits are checked. A directory may be announced as writable by access, but an attempt to open it for writing will fail (although files may be created there); a file may look executable, but exec(2) will fail unless it is in proper format.SOURCE/sys/src/libc/9sys/access.cSEE ALSOstat(2)DIAGNOSTICSSets errstr. ACCESS(2)
Related Man Pages |
---|
access(2) - mojave |
access(2) - redhat |
access(2) - linux |
access(2) - opendarwin |
access(2) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Script to parse an access-list |
C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk) |
Access Denied |
Restrict access to .ksh scripts |
Access a File as a Device? |