DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

isastream(S)


isastream -- test a file descriptor

Syntax

cc ...-lc

#include <stropts.h>

int isastream(int fildes);

Description

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

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.

Diagnostics

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

[EBADF]
fildes is not a valid open file.

See also

streamio(M)

Standards conformance

isastream(S) is conformant with:

X/Open CAE Specification, System Interfaces and Headers, Issue 4, Version 2.


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003