The Open Group Base Specifications Issue 7
IEEE Std 1003.1-2008
Copyright © 2001-2008 The IEEE and The Open Group

NAME

isastream - test a file descriptor (STREAMS)

SYNOPSIS

[OB XSR] [Option Start] #include <stropts.h>

int isastream(int
fildes); [Option End]

DESCRIPTION

The isastream() function shall test whether fildes, an open file descriptor, is associated with a STREAMS-based file.

RETURN VALUE

Upon successful completion, isastream() shall return 1 if fildes refers to a STREAMS-based file and 0 if not. Otherwise, isastream() shall return -1 and set errno to indicate the error.

ERRORS

The isastream() function shall fail if:

[EBADF]
The fildes argument is not a valid open file descriptor.

The following sections are informative.

EXAMPLES

None.

APPLICATION USAGE

None.

RATIONALE

None.

FUTURE DIRECTIONS

The isastream() function may be removed in a future version.

SEE ALSO

XBD <stropts.h>

CHANGE HISTORY

First released in Issue 4, Version 2.

Issue 5

Moved from X/OPEN UNIX extension to BASE.

Issue 7

The isastream() function is marked obsolescent.

End of informative text.

 

return to top of page

UNIX ® is a registered Trademark of The Open Group.
POSIX ® is a registered Trademark of The IEEE.
Copyright © 2001-2008 The IEEE and The Open Group, All Rights Reserved
[ Main Index | XBD | XSH | XCU | XRAT ]