ISASTREAM(3) Library Functions Manual ISASTREAM(3)

isastreamtest 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:

The fildes argument is not a valid open file descriptor.

None.

None.

None.

<stropts.h> .

February 1997 posix.fail