diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-18 16:01:46 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-18 16:01:46 +0000 |
commit | 16d29d57e85fd84c9dc06fd803d1abeceadff14c (patch) | |
tree | 4ab48758471d33120e01e3877e2083ac0213b0c5 /channels.h | |
parent | a3d5a4c2dbc4fa92333b76882b00e3811177eff6 (diff) |
- markus@cvs.openbsd.org 2001/07/17 21:04:58
[channels.c channels.h clientloop.c nchan.c serverloop.c]
keep track of both maxfd and the size of the malloc'ed fdsets.
update maxfd if maxfd gets closed.
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels.h b/channels.h index e4146b593..2ee1496c7 100644 --- a/channels.h +++ b/channels.h | |||
@@ -32,7 +32,7 @@ | |||
32 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 32 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
33 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 33 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
34 | */ | 34 | */ |
35 | /* RCSID("$OpenBSD: channels.h,v 1.44 2001/07/02 22:52:57 markus Exp $"); */ | 35 | /* RCSID("$OpenBSD: channels.h,v 1.45 2001/07/17 21:04:57 markus Exp $"); */ |
36 | 36 | ||
37 | #ifndef CHANNEL_H | 37 | #ifndef CHANNEL_H |
38 | #define CHANNEL_H | 38 | #define CHANNEL_H |
@@ -152,6 +152,7 @@ void channel_register_callback(int, int mtype, channel_callback_fn *, void *); | |||
152 | void channel_register_cleanup(int, channel_callback_fn *); | 152 | void channel_register_cleanup(int, channel_callback_fn *); |
153 | void channel_register_filter(int, channel_filter_fn *); | 153 | void channel_register_filter(int, channel_filter_fn *); |
154 | void channel_cancel_cleanup(int); | 154 | void channel_cancel_cleanup(int); |
155 | int channel_close_fd(int *); | ||
155 | 156 | ||
156 | /* protocol handler */ | 157 | /* protocol handler */ |
157 | 158 | ||
@@ -169,7 +170,7 @@ void channel_input_window_adjust(int, int, void *); | |||
169 | 170 | ||
170 | /* file descriptor handling (read/write) */ | 171 | /* file descriptor handling (read/write) */ |
171 | 172 | ||
172 | void channel_prepare_select(fd_set **, fd_set **, int *, int); | 173 | void channel_prepare_select(fd_set **, fd_set **, int *, int*, int); |
173 | void channel_after_select(fd_set *, fd_set *); | 174 | void channel_after_select(fd_set *, fd_set *); |
174 | void channel_output_poll(void); | 175 | void channel_output_poll(void); |
175 | 176 | ||