PXFISATTY(3F) Last changed: 1-6-98
PXFISATTY - Determines if file descriptor corresponds to a valid file
descriptor
SUBROUTINE PXFISATTY (ifildes, isatty, ierror)
INTEGER ifildes, ierror
LOGICAL isatty
UNICOS, UNICOS/mk, and IRIX systems
IEEE standard interface for FORTRAN 77
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.
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
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
PXFISATTY - Determines if file descriptor corresponds to a valid file
descriptor
SUBROUTINE PXFISATTY (ifildes, isatty, ierror)
INTEGER ifildes, ierror
LOGICAL isatty
UNICOS, UNICOS/mk, and IRIX systems
IEEE standard interface for FORTRAN 77
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.
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
PXFCONST(3F), PXFOPEN(3F)
ttyname(3C)
Application Programmer's Library Reference Manual, publication SR2165,
for the printed version of this man page.
[ Back ]
|