The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

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

<stropts.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]