X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/0ff9ea389c749836c7c6f23f1e654bc9a5600ebf..b51259f6a879f69bec5348bddb604d9b3d499941:/unix/uxplink.c diff --git a/unix/uxplink.c b/unix/uxplink.c index a62d34eb..e8b616eb 100644 --- a/unix/uxplink.c +++ b/unix/uxplink.c @@ -14,12 +14,6 @@ #include #include -/* More helpful version of the FD_SET macro, to also handle maxfd. */ -#define FD_SET_MAX(fd, max, set) do { \ - FD_SET(fd, &set); \ - if (max < fd + 1) max = fd + 1; \ -} while (0) - #define PUTTY_DO_GLOBALS /* actually _define_ globals */ #include "putty.h" #include "storage.h" @@ -237,6 +231,13 @@ void sigwinch(int signum) } /* + * In Plink our selects are synchronous, so these functions are + * empty stubs. + */ +int uxsel_input_add(int fd, int rwx) { return 0; } +void uxsel_input_remove(int id) { } + +/* * Short description of parameters. */ static void usage(void) @@ -256,6 +257,7 @@ static void usage(void) printf(" -batch disable all interactive prompts\n"); printf("The following options only apply to SSH connections:\n"); printf(" -pw passw login with specified password\n"); + printf(" -D listen-port Dynamic SOCKS-based port forwarding\n"); printf(" -L listen-port:host:port Forward local port to " "remote address\n"); printf(" -R listen-port:host:port Forward remote port to" @@ -279,7 +281,7 @@ int main(int argc, char **argv) int connopen; int exitcode; int errors; - void *ldisc; + void *ldisc, *logctx; ssh_get_line = console_get_line; @@ -565,8 +567,9 @@ int main(int argc, char **argv) * Start up the connection. */ logctx = log_init(NULL, &cfg); + console_provide_logctx(logctx); { - char *error; + const char *error; char *realhost; /* nodelay is only useful if stdin is a terminal device */ int nodelay = cfg.tcp_nodelay && isatty(0);