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.

None.

The Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <stropts.h>

First released in Issue 4, Version 2.

Moved from X/OPEN UNIX extension to BASE.

footer end

January 1, 2004 posix.fail