pxfisatty(3F)
PXFISATTY - Determines if file descriptor corresponds to a valid file descriptor
As shipped in IRIX 6.5.30. Last changed in IRIX 6.5.19.
NAME PXFISATTY - Determines if file descriptor corresponds to a valid file descriptor SYNOPSIS SUBROUTINE PXFISATTY (ifildes, isatty, ierror) INTEGER ifildes, ierror LOGICAL isatty STANDARDS IEEE standard interface for FORTRAN 77 DESCRIPTION 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. All arguments must be of default kind unless documented otherwise. On IRIX systems, 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. NOTES The PXF_DEFINITIONS module can be used by Fortran 90 users to enable caller-callee interface checking. 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)