~ubuntu-branches/ubuntu/saucy/net-tools/saucy-proposed

« back to all changes in this revision

Viewing changes to slattach.c

  • Committer: Bazaar Package Importer
  • Author(s): Muharem Hrnjadovic
  • Date: 2009-05-04 12:29:43 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090504122943-6zyafjosb8a1u21q
Tags: 1.60-23ubuntu1
* Merge from debian unstable, remaining changes:
  Ubuntu_unit_conversion.patch:
    - the diff-style patch was converted into quilt format
    - Ubuntu Policy: output using standard SI unit multiples:
      KB (10^3), MB (10^6), GB (10^9), TB (10^12) and PB (10^15).
      Includes manpage update to remove comment about IEC units.
      LP: #240073.
  Dropped patches, already in debian:
    - lib/ec_hw.c: #include <stddef.h to get definition of NULL.
    - lib/fddi.c: #include <linux/types.h> to get types.  LP: #66209.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
 
75
75
const char *Release = RELEASE,
76
 
           *Version = "$Id: slattach.c,v 1.11 2005/12/04 05:15:36 ecki Exp $",
 
76
           *Version = "@(#) slattach 1.21 (1999-11-21)",
77
77
           *Signature = "net-tools, Fred N. van Kempen et al.";
78
78
 
79
79
 
115
115
int             opt_k = 0;              /* "keepalive" value            */
116
116
#endif
117
117
int             opt_l = 0;              /* "lock it" flag               */
118
 
int             opt_L = 0;              /* 3-wire mode flag             */
 
118
int             opt_L = 0;              /* clocal flag                  */
119
119
int             opt_m = 0;              /* "set RAW mode" flag          */
120
120
int             opt_n = 0;              /* "set No Mesg" flag           */
121
121
#ifdef SIOCSOUTFILL
342
342
  tty->c_oflag = (0);                           /* output flags         */
343
343
  tty->c_lflag = (0);                           /* local flags          */
344
344
  speed = (tty->c_cflag & CBAUD);               /* save current speed   */
345
 
  tty->c_cflag = (HUPCL | CREAD);               /* UART flags           */
 
345
  tty->c_cflag = (CRTSCTS | HUPCL | CREAD);     /* UART flags           */
346
346
  if (opt_L) 
347
347
        tty->c_cflag |= CLOCAL;
348
 
  else
349
 
        tty->c_cflag |= CRTSCTS;
350
348
  tty->c_cflag |= speed;                        /* restore speed        */
351
349
  return(0);
352
350
}