Amiga Unix — 68040 · 68060

Manual pages › C library (3C)

isastream(3C)

test a file descriptor

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME

isastream - test a file descriptor

SYNOPSIS

int isastream(int fildes);

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

streamio(7).
in the Programmer's Guide: STREAMS