rt_sys.h, this function determines
if a file handle identifies a terminal.
When a file is connected to a terminal device, this function
is used to provide unbuffered behavior by default (in the absence
of a call to
set(v)buf) and to prohibit seeking.
The return value is one of the following values:
There is no interactive device.
There is an interactive device.
An error occurred.