pxfisatty(3F)

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

As shipped in IRIX 6.5.5. Last changed in IRIX 6.5.5.

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

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

IMPLEMENTATION
     UNICOS, UNICOS/mk, and IRIX systems

STANDARDS
     IEEE standard interface for FORTRAN 77

DESCRIPTION
     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
     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
          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
     PXFCONST(3F), PXFOPEN(3F)
     ttyname(3C)

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