Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ isastream(3C) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stropts(5)

streamio(7)

isastream(3C)                                                 isastream(3C)

NAME
     isastream - test a file descriptor

SYNOPSIS
     #include <stropts.h>

     int isastream(int fildes);

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

RETURN VALUE
     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
     The following error code description is function-specific. You will
     find a general description in introprm2(2) or in errno(5).

     Under the following conditions, isastream() fails and sets errno to:

     EBADF        fildes is not a valid open file.

SEE ALSO
     stropts(5), streamio(7).




























Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026