getfd - get the file descriptor of an external unit number
integer function getfd(unitn) integer unitn
getfd returns the file descriptor of an external unit number if the unit is connected, and -1 otherwise.
libfui.a
open(2)