Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/libexec/uucp/cu Add:



details:   https://anonhg.NetBSD.org/src/rev/6c1ad70454d0
branches:  trunk
changeset: 516630:6c1ad70454d0
user:      briggs <briggs%NetBSD.org@localhost>
date:      Fri Oct 26 14:44:13 2001 +0000

description:
Add:
        -F (default) h/w flow control
        -f        no h/w flow control
        -q           be quiet during downloads

diffstat:

 gnu/libexec/uucp/cu/cu.1 |  13 ++++++++++++-
 gnu/libexec/uucp/cu/cu.c |  23 ++++++++++++++++++++---
 2 files changed, 32 insertions(+), 4 deletions(-)

diffs (102 lines):

diff -r d921c631cff7 -r 6c1ad70454d0 gnu/libexec/uucp/cu/cu.1
--- a/gnu/libexec/uucp/cu/cu.1  Fri Oct 26 13:38:52 2001 +0000
+++ b/gnu/libexec/uucp/cu/cu.1  Fri Oct 26 14:44:13 2001 +0000
@@ -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 @@
 .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 @@
 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 -r d921c631cff7 -r 6c1ad70454d0 gnu/libexec/uucp/cu/cu.c
--- a/gnu/libexec/uucp/cu/cu.c  Fri Oct 26 13:38:52 2001 +0000
+++ b/gnu/libexec/uucp/cu/cu.c  Fri Oct 26 14:44:13 2001 +0000
@@ -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 @@
   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 @@
        }
     }
 
-  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 @@
          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 @@
          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 @@
              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 ();



Home | Main Index | Thread Index | Old Index