[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Technical Reference, Volume 2

isastream Function


Tests a file descriptor.


Standard C Library (libc.a)


int isastream(int fildes);


The isastream subroutine determines if a file descriptor represents a STREAMS file.


fildes Specifies which open file to check.

Return Values

On successful completion, the isastream subroutine returns a value of 1 if the fildes parameter represents a STREAMS file, or a value of 0 if not. Otherwise, it returns a value of -1 and sets the errno global variable to indicate the error.

Error Codes

If unsuccessful, the errno global variable is set to the following value:

EBADF The fildes parameter does not specify a valid open file.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

streamio operations.

List of Streams Programming References in AIX Version 4.3 Communications Programming Concepts.

[ Previous | Next | Contents | Glossary | Home | Search ]