access man page on SunOS

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

ACCESS(3F)							    ACCESS(3F)

NAME
       access - return access mode (r,w,x) or existence of a file

SYNOPSIS
       integer*4 function access (name, mode)
       character*(*) name, mode

USAGE
       Example: ierr = access ( 'MyFile', 'r' )

DESCRIPTION
       The access function checks the given file, name, for accessability with
       respect to the  caller  according  to  mode.   The  mode	 argument  can
       include,	 in any order, and in any combination, one or more of the fol‐
       lowing:

       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 the 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.

EXAMPLE
       To test for read and write permission:

		 integer*4 access, st
		 st = access('anyfile.data', 'rw')
		 if( st .ne.0 ) print*, 'Cannot read/write file'

FILES
       libfui.a

SEE ALSO
       access(2), gerror(3F), perror(3F)

				   03/02/25			    ACCESS(3F)
[top]

List of man pages available for SunOS

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