[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 2

isastream Function

Purpose

Tests a file descriptor.

Library

Standard C Library (libc.a)

Syntax


int isastream(int fildes);

Description

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

Parameters

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:

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

Related Information

streamio operations.

List of Streams Programming References in AIX 5L Version 5.2 Communications Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]