1isastream(3C)            Standard C Library Functions            isastream(3C)
2
3
4

NAME

6       isastream - test a file descriptor
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

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

ERRORS

24       The isastream() function will fail if:
25
26       EBADF    The fildes argument is not a valid file descriptor.
27
28

ATTRIBUTES

30       See attributes(5) for descriptions of the following attributes:
31
32
33
34
35       ┌─────────────────────────────┬─────────────────────────────┐
36       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
37       ├─────────────────────────────┼─────────────────────────────┤
38       │Interface Stability          │Standard                     │
39       ├─────────────────────────────┼─────────────────────────────┤
40       │MT-Level                     │MT-Safe                      │
41       └─────────────────────────────┴─────────────────────────────┘
42

SEE ALSO

44       attributes(5), , standards(5), streamio(7I)
45
46
47       STREAMS Programming Guide
48
49
50
51SunOS 5.11                        24 Jul 2002                    isastream(3C)
Impressum