ISASTREAM(3) Library Functions Manual ISASTREAM(3)
NAME
isastream — test a
file descriptor (STREAMS)
SYNOPSIS
int isastream(int fildes);
DESCRIPTION
The isastream () function shall test
whether fildes, an open file descriptor, is associated
with a STREAMS-based file.
RETURN VALUE
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
errno to
indicate the error.
ERRORS
The isastream () function shall fail
if:
- [EBADF]
- The fildes argument is not a valid open file descriptor.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
The isastream () function may be removed
in a future version.
SEE ALSO
XBD <stropts.h>
CHANGE HISTORY
First released in Issue 4, Version 2.
Issue 5
Moved from X/OPEN UNIX extension to BASE.
Issue 7
The isastream () function is marked
obsolescent.
January 31, 2018 posix.fail