version 1.31.2.5, 2002/03/09 00:20:44 |
version 1.31.2.6, 2002/06/02 22:56:10 |
|
|
|
|
#define CHAN_CLOSE_SENT 0x01 |
#define CHAN_CLOSE_SENT 0x01 |
#define CHAN_CLOSE_RCVD 0x02 |
#define CHAN_CLOSE_RCVD 0x02 |
|
#define CHAN_EOF_SENT 0x04 |
|
#define CHAN_EOF_RCVD 0x08 |
|
|
|
/* check whether 'efd' is still in use */ |
|
#define CHANNEL_EFD_INPUT_ACTIVE(c) \ |
|
(compat20 && c->extended_usage == CHAN_EXTENDED_READ && \ |
|
(c->efd != -1 || \ |
|
buffer_len(&c->extended) > 0)) |
|
#define CHANNEL_EFD_OUTPUT_ACTIVE(c) \ |
|
(compat20 && c->extended_usage == CHAN_EXTENDED_WRITE && \ |
|
((c->efd != -1 && !(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD))) || \ |
|
buffer_len(&c->extended) > 0)) |
|
|
/* channel management */ |
/* channel management */ |
|
|