up | Inhaltsverzeichniss | Kommentar

Manual page for isastream(3C)

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


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97