isastream(3C) manual page
Table of Contents
isastream - test a file descriptor
#include <stropts.h>
int
isastream(int fildes);
MT-Safe
The function isastream()
determines if a file descriptor represents a STREAMS
file. fildes refers
to an open file descriptor.
If successful, isastream() returns
1 if fildes represents a STREAMS
file, and 0 if not. On failure, isastream()
returns -1 with errno set to indicate an error.
Under the following
conditions, isastream() fails and sets errno to:
- EBADF
- fildes is not a
valid file descriptor.
streamio(7I)
Table of Contents