DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

isastream(S-osr5)


isastream -- test a file descriptor

Syntax

cc ...-lc

#include <stropts.h>

int isastream(int fildes);

Description

The function isastream(S-osr5) 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-osr5) is conformant with:

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


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005