|
|
1.1 root 1: #ifndef __SYS_STROPTS_H__
2: #define __SYS_STROPTS_H__
3:
4: /*
5: * Stuff related to STREAMS ioctl ()'s that matter to STREAMS drivers and
6: * modules. Constants that were defined in System V Release 3.2 STREAMS have
7: * actual values as defined in the Intel iBCS2 documentation, pp6-56 through
8: * 6-58.
9: *
10: * Values added in the System V Release 4 edition of STREAMS have numeric
11: * values taken from the System V ABI, Intel386 Supplement pp6-70 through
12: * 6-75
13: */
14:
15: /*
16: * Stream head read option constants.
17: */
18:
19: #define RNORM 0x0000 /* Byte-stream mode */
20: #define RMSGD 0x0001 /* Message-discard mode */
21: #define RMSGN 0x0002 /* Message-nondiscard mode */
22: #define __RINVAL 0x0003 /* Invalid */
23:
24: #define RMODEMASK 0x0003 /* Separate mode from flag bits below */
25:
26: #define RPROTDAT 0x0004 /*
27: * deliver control portion of message
28: * as data for read ()
29: */
30: #define RPROTDIS 0x0008 /*
31: * discard the control portion of a
32: * message on user read ()
33: */
34: #define RPROTNORM 0x0010 /*
35: * fail read () with EBADMSG on msg
36: * other than M_DATA
37: */
38:
39: /*
40: * What to flush in an M_FLUSH message, also used in I_FLUSH and I_FLUSHBAND
41: */
42:
43: #define FLUSHR 0x01
44: #define FLUSHW 0x02
45: #define FLUSHRW (FLUSHR | FLUSHW)
46: #define FLUSHBAND 0x04
47:
48:
49: #endif /* ! defined (__SYS_STROPTS_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.