1 .\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
2 .TH "ISASTREAM" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
5 isastream \- test a file descriptor (\fBSTREAMS\fP)
8 \fB#include <stropts.h>
11 int isastream(int\fP \fIfildes\fP\fB); \fP
17 The \fIisastream\fP() function shall test whether \fIfildes\fP, an
18 open file descriptor, is associated with a STREAMS-based
22 Upon successful completion, \fIisastream\fP() shall return 1 if \fIfildes\fP
23 refers to a STREAMS-based file and 0 if not.
24 Otherwise, \fIisastream\fP() shall return -1 and set \fIerrno\fP to
28 The \fIisastream\fP() function shall fail if:
31 The \fIfildes\fP argument is not a valid open file descriptor.
34 \fIThe following sections are informative.\fP
49 The Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<stropts.h>\fP
51 Portions of this text are reprinted and reproduced in electronic form
52 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
53 -- Portable Operating System Interface (POSIX), The Open Group Base
54 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
55 Electrical and Electronics Engineers, Inc and The Open Group. In the
56 event of any discrepancy between this version and the original IEEE and
57 The Open Group Standard, the original IEEE and The Open Group Standard
58 is the referee document. The original Standard can be obtained online at
59 http://www.opengroup.org/unix/online.html .