]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3p/isastream.3p
Import of man-pages 1.70
[thirdparty/man-pages.git] / man3p / isastream.3p
1 .\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
2 .TH "ISASTREAM" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
3 .\" isastream
4 .SH NAME
5 isastream \- test a file descriptor (\fBSTREAMS\fP)
6 .SH SYNOPSIS
7 .LP
8 \fB#include <stropts.h>
9 .br
10 .sp
11 int isastream(int\fP \fIfildes\fP\fB); \fP
12 \fB
13 .br
14 \fP
15 .SH DESCRIPTION
16 .LP
17 The \fIisastream\fP() function shall test whether \fIfildes\fP, an
18 open file descriptor, is associated with a STREAMS-based
19 file.
20 .SH RETURN VALUE
21 .LP
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
25 indicate the error.
26 .SH ERRORS
27 .LP
28 The \fIisastream\fP() function shall fail if:
29 .TP 7
30 .B EBADF
31 The \fIfildes\fP argument is not a valid open file descriptor.
32 .sp
33 .LP
34 \fIThe following sections are informative.\fP
35 .SH EXAMPLES
36 .LP
37 None.
38 .SH APPLICATION USAGE
39 .LP
40 None.
41 .SH RATIONALE
42 .LP
43 None.
44 .SH FUTURE DIRECTIONS
45 .LP
46 None.
47 .SH SEE ALSO
48 .LP
49 The Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<stropts.h>\fP
50 .SH COPYRIGHT
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 .