isastream - test a file descriptor
#include <stropts.h> int isastream(int fildes);
The isastream() function tests whether fildes, an open file descriptor, is associated with a STREAMS-based file.
Upon successful completion, isastream() returns 1 if fildes refers to a STREAMS-based file and 0 if not. Otherwise, isastream() returns -1 and sets errno to indicate the error.
The isastream() function will fail if:
- [EBADF]
- The fildes argument is not a valid open file descriptor.
None.
None.
None.
<stropts.h>.