ISASTREAM(3) Library Functions Manual ISASTREAM(3)

isastreamtest a file descriptor (STREAMS)


#include <stropts.h>

int isastream(int fildes);

The isastream () function shall test whether fildes, an open file descriptor, is associated with a STREAMS-based file.

Upon successful completion, isastream () shall return 1 if fildes refers to a STREAMS-based file and 0 if not. Otherwise, isastream () shall return -1 and set to indicate the error.

The isastream () function shall fail if:

The fildes argument is not a valid open file descriptor.

None.

None.

None.

The isastream () function may be removed in a future version.

XBD <stropts.h>

First released in Issue 4, Version 2.

Moved from X/OPEN UNIX extension to BASE.

The isastream () function is marked obsolescent.

January 31, 2018 posix.fail