[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    isastream(3C) manual page Table of Contents

Name

isastream - test a file descriptor

Synopsis

#include <stropts.h>

int isastream(int fildes);

MT-Level

MT-Safe

Description

The function isastream() determines if a file descriptor represents a STREAMS file. fildes refers to an open file descriptor.

Return Values

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.

Errors

Under the following conditions, isastream() fails and sets errno to:
EBADF
fildes is not a valid file descriptor.

See Also

streamio(7I)


Table of Contents