summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authordjm <djm>2001-01-29 22:14:00 +0000
committerdjm <djm>2001-01-29 22:14:00 +0000
commit90223cb0286c1721ab054716f9f9c584dd265fc8 (patch)
tree6a856062f5db320a515052ef638ec37973b29d27 /channels.h
parentb5276cdcc0cfaff12df33000a014c2901063026e (diff)
downloadopenssh-90223cb0286c1721ab054716f9f9c584dd265fc8.tar.gz
- (djm) OpenBSD CVS Sync:
- markus@cvs.openbsd.org 2001/01/29 09:55:37 [channels.c channels.h clientloop.c serverloop.c] fix select overflow; ok deraadt@ and stevesk@
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/channels.h b/channels.h
index 45b783fb..5e030a44 100644
--- a/channels.h
+++ b/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.24 2000/12/05 20:34:10 markus Exp $"); */
+/* RCSID("$OpenBSD: channels.h,v 1.25 2001/01/29 16:55:36 markus Exp $"); */
#ifndef CHANNELS_H
#define CHANNELS_H
@@ -163,8 +163,12 @@ int channel_allocate(int type, int sock, char *remote_name);
/* Free the channel and close its socket. */
void channel_free(int channel);
-/* Add any bits relevant to channels in select bitmasks. */
-void channel_prepare_select(fd_set * readset, fd_set * writeset);
+/*
+ * Allocate/update select bitmasks and add any bits relevant to channels in
+ * select bitmasks.
+ */
+void
+channel_prepare_select(fd_set **readsetp, fd_set **writesetp, int *maxfdp);
/*
* After select, perform any appropriate operations for channels which have
@@ -188,9 +192,6 @@ void channel_stop_listening(void);
*/
void channel_close_all(void);
-/* Returns the maximum file descriptor number used by the channels. */
-int channel_max_fd(void);
-
/* Returns true if there is still an open channel over the connection. */
int channel_still_open(void);