ACCESS man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

ACCESS(2)							     ACCESS(2)

NAME
       access - determine accessibility of file

SYNOPSIS
       #include <u.h>
       #include <libc.h>

       int access(char *name, int mode)

DESCRIPTION
       Access  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  for  open	is  checked.   A file may look executable, but
       exec(2) will fail unless it is in proper format.

       The include file defines AEXIST=0, AEXEC=1, AWRITE=2, and AREAD=4.

SOURCE
       /sys/src/libc/9sys/access.c

SEE ALSO
       stat(2)

DIAGNOSTICS
       Sets errstr.

BUGS
       Since file permissions are checked by the server and group  information
       is  not known to the client, access must open the file to check permisā€
       sions.  (It calls stat(2) to check simple existence.)

								     ACCESS(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net