Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsisastream(3C)


NAME

 isastream - test a file descriptor

SYNOPSIS

 
#include <stropts.h>
int isastream(int fildes);

DESCRIPTION

 

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

RETURN VALUES

 

Upon successful completion, isastream() returns 1 if fildes represents a STREAMS file, and 0 if it does not. Otherwise, -1 is return and errno is set to indicate the error.

ERRORS

 

The isastream() function will fail if:

EBADF
The fildes argument is not a valid file descriptor.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

attributes(5), streamio(7I)

STREAMS Programming Guide


SunOS 5.9Go To TopLast Changed 29 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.