Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ isastream(3C) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

attributes(5)

streamio(7I)

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 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. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

attributes(5), streamio(7I)

STREAMS Programming Guide

SunOS 5.6  —  Last change: 29 Dec 1996

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