DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

isastream(S)


isastream -- test a file descriptor

Synopsis

   

#include <stropts.h>

int isastream(int fildes);

Description

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

Return values

On success, isastream returns 1 if fildes represents a STREAMS file, and 0 if not. On failure, isastream returns -1 and sets errno to identify the error.

Errors

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


EBADF
fildes is not a valid open file.

References

streamio(HW), unistd(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005