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

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

Contents


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

NAME    [Toc]    [Back]

     PXFISATTY - Determines if file descriptor corresponds to a	valid file
     descriptor

SYNOPSIS    [Toc]    [Back]

     SUBROUTINE	PXFISATTY (ifildes, isatty, ierror)
     INTEGER ifildes, ierror
     LOGICAL isatty

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 PXFISATTY routine uses	isatty(3C) to determine	if ifildes is a
     valid file	descriptor for a terminal.

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX, 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 routine:

     ifildes   An input	integer	variable containing the	file descriptor	to
	       be checked for an associated terminal.

     isatty    An output logical variable which	is .TRUE.  when	ifildes	is
	       a file descriptor with an associated terminal. Otherwise
	       isatty is .FALSE..

     ierror    An output integer variable for the PXFISATTY completion
	       status. ierror contains zero if PXFISATTY was successful.

EXAMPLES    [Toc]    [Back]

	  program pxftest
	  integer len, ifildes,	ierror,	O_RDONLY
	  character*20 path
	  logical isatty
	  CALL PXFCTERMID(path,len,ierror)
	  CALL PXFCONST('O_RDONLY',O_RDONLY,error)
	  CALL PXFOPEN(path,len,O_RDONLY,400,ifildes,error)
	  CALL PXFISATTY(ifildes,isatty,ierror)
	  print	*,isatty
	  end

SEE ALSO    [Toc]    [Back]

      
      
     PXFCONST(3F), PXFOPEN(3F)
     ttyname(3C)

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

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

NAME    [Toc]    [Back]

     PXFISATTY - Determines if file descriptor corresponds to a	valid file
     descriptor

SYNOPSIS    [Toc]    [Back]

     SUBROUTINE	PXFISATTY (ifildes, isatty, ierror)
     INTEGER ifildes, ierror
     LOGICAL isatty

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 PXFISATTY routine uses	isatty(3C) to determine	if ifildes is a
     valid file	descriptor for a terminal.

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX, 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 routine:

     ifildes   An input	integer	variable containing the	file descriptor	to
	       be checked for an associated terminal.

     isatty    An output logical variable which	is .TRUE.  when	ifildes	is
	       a file descriptor with an associated terminal. Otherwise
	       isatty is .FALSE..

     ierror    An output integer variable for the PXFISATTY completion
	       status. ierror contains zero if PXFISATTY was successful.

EXAMPLES    [Toc]    [Back]

	  program pxftest
	  integer len, ifildes,	ierror,	O_RDONLY
	  character*20 path
	  logical isatty
	  CALL PXFCTERMID(path,len,ierror)
	  CALL PXFCONST('O_RDONLY',O_RDONLY,error)
	  CALL PXFOPEN(path,len,O_RDONLY,400,ifildes,error)
	  CALL PXFISATTY(ifildes,isatty,ierror)
	  print	*,isatty
	  end

SEE ALSO    [Toc]    [Back]

      
      
     PXFCONST(3F), PXFOPEN(3F)
     ttyname(3C)

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

[ Back ]
 Similar pages
Name OS Title
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
AFidentifyfd IRIX retrieve the audio file format of a file descriptor / open AFfilehandle
fdetach Tru64 Detaches a STREAMS-based file descriptor from a file
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
isfdtype Tru64 Test a file descriptor for a specific file type
AFgetfd IRIX get the Unix file descriptor for the file associated with an AFfilehandle structure
acl_set_fd Tru64 Sets the ACL on the file or directory designated by the file descriptor
getfstype FreeBSD get file system descriptor file entry
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service