diff options
| author | briggs <briggs@NetBSD.org> | 2001-10-26 14:44:13 +0000 |
|---|---|---|
| committer | briggs <briggs@NetBSD.org> | 2001-10-26 14:44:13 +0000 |
| commit | 1abee6c6fddaed72c07fdc431cd414fa9234af3d (patch) | |
| tree | 019c5808478dcc2d228d61927b8187cb8aafb506 /gnu/libexec | |
| parent | 208c3d16df1c1b8b910e5f91e7c38be857570333 (diff) | |
Add:
-F (default) h/w flow control
-f no h/w flow control
-q be quiet during downloads
Diffstat (limited to 'gnu/libexec')
| -rw-r--r-- | gnu/libexec/uucp/cu/cu.1 | 13 | ||||
| -rw-r--r-- | gnu/libexec/uucp/cu/cu.c | 23 |
2 files changed, 32 insertions, 4 deletions
diff --git a/gnu/libexec/uucp/cu/cu.1 b/gnu/libexec/uucp/cu/cu.1 index 9bde36edc8e..5472e3359ce 100644 --- a/gnu/libexec/uucp/cu/cu.1 +++ b/gnu/libexec/uucp/cu/cu.1 @@ -1,4 +1,4 @@ -.\" $Id: cu.1,v 1.5 2001/04/06 14:06:02 wiz Exp $ +.\" $Id: cu.1,v 1.6 2001/10/26 14:44:13 briggs Exp $ .TH cu 1 "Taylor UUCP 1.06" .SH NAME cu \- Call up another system @@ -215,6 +215,12 @@ The following options may be given to .B \-e, \-\-parity=even Use even parity. .TP 5 +.B \-f, \-F +Use hardware flow control +.B (\-F, default) +or not +.B (-f). +.TP 5 .B \-o, \-\-parity=odd Use odd parity. .TP 5 @@ -250,6 +256,11 @@ Name the port to use. Equivalent to .B \-\-port port. .TP 5 +.B \-q +Be quiet during file transfers. +.I cu +is normally quite verbose. +.TP 5 .B \-l line, \-\-line line Name the line to use by giving a device name. This may be used to dial out on ports that are not listed in the UUCP configuration files. diff --git a/gnu/libexec/uucp/cu/cu.c b/gnu/libexec/uucp/cu/cu.c index f0464df8b56..3a706e9f21e 100644 --- a/gnu/libexec/uucp/cu/cu.c +++ b/gnu/libexec/uucp/cu/cu.c @@ -26,7 +26,7 @@ #include "uucp.h" #if USE_RCS_ID -const char cu_rcsid[] = "$Id: cu.c,v 1.6 2000/03/23 19:05:40 mycroft Exp $"; +const char cu_rcsid[] = "$Id: cu.c,v 1.7 2001/10/26 14:44:13 briggs Exp $"; #endif #include "cu.h" @@ -258,6 +258,8 @@ main (argc, argv) enum txonxoffsetting txonxoff = XONXOFF_ON; /* -I: configuration file name. */ const char *zconfig = NULL; + /* -F/-f: Hard/Soft flow control. */ + boolean hflow = TRUE; int iopt; pointer puuconf; int iuuconf; @@ -295,7 +297,7 @@ main (argc, argv) } } - while ((iopt = getopt_long (argc, argv, "a:c:deE:hnI:l:op:s:tvx:z:", + while ((iopt = getopt_long (argc, argv, "a:c:deE:fFhnI:l:op:qs:tvx:z:", asCulongopts, (int *) NULL)) != EOF) { switch (iopt) @@ -322,6 +324,16 @@ main (argc, argv) zCuvar_escape = optarg; break; + case 'f': + /* No h/w flow control. */ + hflow = FALSE; + break; + + case 'F': + /* Use h/w flow control. */ + hflow = TRUE; + break; + case 'h': /* Local echo. */ fCulocalecho = TRUE; @@ -348,6 +360,11 @@ main (argc, argv) zport = optarg; break; + case 'q': + /* Verbose file transfers */ + fCuvar_verbose = FALSE; + break; + case 's': /* Speed. */ ibaud = strtol (optarg, (char **) NULL, 10); @@ -599,7 +616,7 @@ main (argc, argv) sport.uuconf_u.uuconf_sdirect.uuconf_zdevice = NULL; sport.uuconf_u.uuconf_sdirect.uuconf_ibaud = ibaud; sport.uuconf_u.uuconf_sdirect.uuconf_fcarrier = FALSE; - sport.uuconf_u.uuconf_sdirect.uuconf_fhardflow = TRUE; + sport.uuconf_u.uuconf_sdirect.uuconf_fhardflow = hflow; if (! fconn_init (&sport, &sconn, UUCONF_PORTTYPE_UNKNOWN)) ucuabort (); |
