ISASTREAM(3) Library Functions Manual ISASTREAM(3)
NAME
isastream — test a
file descriptor
SYNOPSIS
#include <stropts.h> int isastream(int fildes);
DESCRIPTION
The isastream() function tests whether fildes , an open file descriptor, is associated with a STREAMS-based file.
RETURN VALUE
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.
ERRORS
The isastream() function will fail if:
- [EBADF]
- The fildes argument is not a valid open file descriptor.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
February 1997 posix.fail