1ISASTREAM(P)               POSIX Programmer's Manual              ISASTREAM(P)
2
3
4

NAME

6       isastream - test a file descriptor (STREAMS)
7

SYNOPSIS

9       #include <stropts.h>
10
11       int isastream(int fildes);
12
13

DESCRIPTION

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

RETURN VALUE

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

ERRORS

24       The isastream() function shall fail if:
25
26       EBADF  The fildes argument is not a valid open file descriptor.
27
28
29       The following sections are informative.
30

EXAMPLES

32       None.
33

APPLICATION USAGE

35       None.
36

RATIONALE

38       None.
39

FUTURE DIRECTIONS

41       None.
42

SEE ALSO

44       The Base Definitions volume of IEEE Std 1003.1-2001, <stropts.h>
45
47       Portions of this text are reprinted and reproduced in  electronic  form
48       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
49       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
50       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
51       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
52       event of any discrepancy between this version and the original IEEE and
53       The Open Group Standard, the original IEEE and The Open Group  Standard
54       is  the  referee document. The original Standard can be obtained online
55       at http://www.opengroup.org/unix/online.html .
56
57
58
59IEEE/The Open Group                  2003                         ISASTREAM(P)
Impressum