diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-07-17 21:04:59 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-07-17 21:04:59 +0000 |
commit | e8ac1e26252f667776478449a5886517f9f6a0b2 (patch) | |
tree | 40fc41260efe65c9ed5a404cd2dc68e5faf0e557 /usr.bin/ssh/channels.h | |
parent | 1602efaa7c6386d61bd3ea60297c541d58399568 (diff) |
keep track of both maxfd and the size of the malloc'ed fdsets.
update maxfd if maxfd gets closed.
Diffstat (limited to 'usr.bin/ssh/channels.h')
-rw-r--r-- | usr.bin/ssh/channels.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.h b/usr.bin/ssh/channels.h index e4146b593f4..2ee1496c789 100644 --- a/usr.bin/ssh/channels.h +++ b/usr.bin/ssh/channels.h @@ -32,7 +32,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* RCSID("$OpenBSD: channels.h,v 1.44 2001/07/02 22:52:57 markus Exp $"); */ +/* RCSID("$OpenBSD: channels.h,v 1.45 2001/07/17 21:04:57 markus Exp $"); */ #ifndef CHANNEL_H #define CHANNEL_H @@ -152,6 +152,7 @@ void channel_register_callback(int, int mtype, channel_callback_fn *, void *); void channel_register_cleanup(int, channel_callback_fn *); void channel_register_filter(int, channel_filter_fn *); void channel_cancel_cleanup(int); +int channel_close_fd(int *); /* protocol handler */ @@ -169,7 +170,7 @@ void channel_input_window_adjust(int, int, void *); /* file descriptor handling (read/write) */ -void channel_prepare_select(fd_set **, fd_set **, int *, int); +void channel_prepare_select(fd_set **, fd_set **, int *, int*, int); void channel_after_select(fd_set *, fd_set *); void channel_output_poll(void); |