The function isastream determines if a file descriptor represents
a STREAMS file.
fildes refers to an open file.
Return values
On success, isastream returns 1 if
fildes represents a STREAMS file, and 0 if not.
On failure, isastream returns -1 and sets errno
to identify the error.
Errors
Under the following conditions, isastream
fails and sets errno to: