*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/pxfaccess (3)              
Title
Content
Arch
Section
 

Contents


PXFACCESS(3F)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     PXFACCESS - Checks	the accessibility of a named file

SYNOPSIS    [Toc]    [Back]

     CHARACTER*n path
     INTEGER ilen, iamode, ierror
     CALL PXFACCESS(path, ilen,	iamode,	ierror)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     IEEE standard interface for FORTRAN 77

DESCRIPTION    [Toc]    [Back]

     On	IRIX systems, this routine is in libfortran.so which is	linked by
     default when compiling programs with the MIPSpro 7	Fortran	90 compiler
     or	when compiling programs	with the -craylibs option to the MIPSpro
     7.2 F77 compiler.

     The PXFACCESS subroutine uses the access(2) system	call to	check the
     accessibility of a	named file.

     The value of iamode indicates specific file permissions.  These file
     permissions are checked against the current file permissions specified
     for the file in path.  If the iamode permissions are allowed for the
     file in path, PXFACCESS returns a zero in ierror.	Otherwise, it
     returns a nonzero value.

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX	systems, all arguments must be of default
     kind unless documented otherwise.	On UNICOS and UNICOS/mk, default
     kind is KIND=8 for	integer, real, complex,	and logical arguments; on
     IRIX, the default kind is KIND=4.

     The following is a	list of	valid arguments	for this subroutine:

     path      An input	character variable or array element containing the
	       name of a file.

     ilen      An input	integer	variable containing the	length of path in
	       characters.  If ilen is zero, all trailing blanks are
	       removed before calling access().

     iamode    An input	integer	variable containing the	integer	value of
	       the symbolic constant for one or	more of	the following
	       permissions:  R_OK, W_OK, X_OK, or F_OK.	 An integer value
	       for each	of these symbolic constants is retrieved through
	       the use of PXFCONST or IPXFCONST.  The integer values may be
	       combined	through	the use	of a bitwise inclusive OR function.

     ierror    An output integer variable that contain zero if the
	       requested access	is permitted or	nonzero	if the requested
	       access is not permitted.

     In	addition to the	errors returned	by the access(2) system	call,
     PXFACCESS may return the following	errors:

     EINVAL    If ilen is less than 0 or ilen is greater than LEN(path)

     ENOMEM    If PXFACCESS is unable to obtain	memory to copy path.

EXAMPLES    [Toc]    [Back]

	  program test
	  character*(12) path
	  integer ilen,	iamod, ierr
	  path = 'testfile'
	  iamod	= 0
	  ilen = 0
	  ierr = 0
	  call pxfconst('R_OK',iamod,ierr)
	  if (ierr.ne.0) then
	      print *,'FAIL: error from	pxfconst R_OK =	',ierr
	  else
	      print *,'PASS: No	error from pxfconst R_OK = '
	  endif
	  ierr = 0
	  call pxfaccess(path,ilen,iamod,ierr)
	  if (ierr.ne.0) then
	      print *,'FAIL: error from	pxfaccess = ',ierr
	  else
	      print *,'PASS: No	error from pxfaccess = '
	  endif
	  end

SEE ALSO    [Toc]    [Back]

      
      
     access(2)

     Application Programmer's Library Reference	Manual,	publication SR2165,
 for the printed version of this man page.

PXFACCESS(3F)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     PXFACCESS - Checks	the accessibility of a named file

SYNOPSIS    [Toc]    [Back]

     CHARACTER*n path
     INTEGER ilen, iamode, ierror
     CALL PXFACCESS(path, ilen,	iamode,	ierror)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     IEEE standard interface for FORTRAN 77

DESCRIPTION    [Toc]    [Back]

     On	IRIX systems, this routine is in libfortran.so which is	linked by
     default when compiling programs with the MIPSpro 7	Fortran	90 compiler
     or	when compiling programs	with the -craylibs option to the MIPSpro
     7.2 F77 compiler.

     The PXFACCESS subroutine uses the access(2) system	call to	check the
     accessibility of a	named file.

     The value of iamode indicates specific file permissions.  These file
     permissions are checked against the current file permissions specified
     for the file in path.  If the iamode permissions are allowed for the
     file in path, PXFACCESS returns a zero in ierror.	Otherwise, it
     returns a nonzero value.

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX	systems, all arguments must be of default
     kind unless documented otherwise.	On UNICOS and UNICOS/mk, default
     kind is KIND=8 for	integer, real, complex,	and logical arguments; on
     IRIX, the default kind is KIND=4.

     The following is a	list of	valid arguments	for this subroutine:

     path      An input	character variable or array element containing the
	       name of a file.

     ilen      An input	integer	variable containing the	length of path in
	       characters.  If ilen is zero, all trailing blanks are
	       removed before calling access().

     iamode    An input	integer	variable containing the	integer	value of
	       the symbolic constant for one or	more of	the following
	       permissions:  R_OK, W_OK, X_OK, or F_OK.	 An integer value
	       for each	of these symbolic constants is retrieved through
	       the use of PXFCONST or IPXFCONST.  The integer values may be
	       combined	through	the use	of a bitwise inclusive OR function.

     ierror    An output integer variable that contain zero if the
	       requested access	is permitted or	nonzero	if the requested
	       access is not permitted.

     In	addition to the	errors returned	by the access(2) system	call,
     PXFACCESS may return the following	errors:

     EINVAL    If ilen is less than 0 or ilen is greater than LEN(path)

     ENOMEM    If PXFACCESS is unable to obtain	memory to copy path.

EXAMPLES    [Toc]    [Back]

	  program test
	  character*(12) path
	  integer ilen,	iamod, ierr
	  path = 'testfile'
	  iamod	= 0
	  ilen = 0
	  ierr = 0
	  call pxfconst('R_OK',iamod,ierr)
	  if (ierr.ne.0) then
	      print *,'FAIL: error from	pxfconst R_OK =	',ierr
	  else
	      print *,'PASS: No	error from pxfconst R_OK = '
	  endif
	  ierr = 0
	  call pxfaccess(path,ilen,iamod,ierr)
	  if (ierr.ne.0) then
	      print *,'FAIL: error from	pxfaccess = ',ierr
	  else
	      print *,'PASS: No	error from pxfaccess = '
	  endif
	  end

SEE ALSO    [Toc]    [Back]

      
      
     access(2)

     Application Programmer's Library Reference	Manual,	publication SR2165,
 for the printed version of this man page.

[ Back ]
 Similar pages
Name OS Title
pathfind IRIX search for named file in named directories
access HP-UX determine accessibility of a file
access Tru64 Determines the accessibility of a file
access FreeBSD check accessibility of a file
eaccess FreeBSD check accessibility of a file
access IRIX determine accessibility of a file
setfsuid Linux set user identity used for file system checks
quotacheck Tru64 Checks file system quota consistency
setfsgid Linux set group identity used for file system checks
safe_open Tru64 Open a file for I/O with comprehensive or customized security checks
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service