Given a Fortran logical unit, the getfd function returns the underlying file descriptor for that unit, or -1 if the unit is not connected.
Function
INTEGER(4)
This function returns the underlying file descriptor of the given logical unit, or -1 if the unit is not connected.