Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tip don't enable IXANY.



details:   https://anonhg.NetBSD.org/src/rev/0bd56909bc0b
branches:  trunk
changeset: 797254:0bd56909bc0b
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Jul 12 05:28:07 2014 +0000

description:
don't enable IXANY.

diffstat:

 usr.bin/tip/cmds.c |  12 ++++++------
 usr.bin/tip/tip.c  |   8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (64 lines):

diff -r 31dfc906d052 -r 0bd56909bc0b usr.bin/tip/cmds.c
--- a/usr.bin/tip/cmds.c        Sat Jul 12 04:32:59 2014 +0000
+++ b/usr.bin/tip/cmds.c        Sat Jul 12 05:28:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmds.c,v 1.36 2013/06/02 13:18:12 christos Exp $       */
+/*     $NetBSD: cmds.c,v 1.37 2014/07/12 05:28:07 mlelstv Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)cmds.c     8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: cmds.c,v 1.36 2013/06/02 13:18:12 christos Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.37 2014/07/12 05:28:07 mlelstv Exp $");
 #endif /* not lint */
 
 #include "tip.h"
@@ -792,11 +792,11 @@
 
        (void)tcgetattr(FD, &rmtty);
        if (strcmp(option, "on") == 0) {
-               rmtty.c_iflag |= IXON|IXOFF|IXANY;
-               term.c_iflag |= IXON|IXOFF|IXANY;
+               rmtty.c_iflag |= IXON|IXOFF;
+               term.c_iflag |= IXON|IXOFF;
        } else {
-               rmtty.c_iflag &= ~(IXON|IXOFF|IXANY);
-               term.c_iflag &= ~(IXON|IXOFF|IXANY);
+               rmtty.c_iflag &= ~(IXON|IXOFF);
+               term.c_iflag &= ~(IXON|IXOFF);
        }
        (void)tcsetattr(FD, TCSADRAIN, &rmtty);
        (void)tcsetattr(0, TCSADRAIN, &term);
diff -r 31dfc906d052 -r 0bd56909bc0b usr.bin/tip/tip.c
--- a/usr.bin/tip/tip.c Sat Jul 12 04:32:59 2014 +0000
+++ b/usr.bin/tip/tip.c Sat Jul 12 05:28:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tip.c,v 1.53 2013/10/21 14:47:46 christos Exp $        */
+/*     $NetBSD: tip.c,v 1.54 2014/07/12 05:28:07 mlelstv Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)tip.c      8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: tip.c,v 1.53 2013/10/21 14:47:46 christos Exp $");
+__RCSID("$NetBSD: tip.c,v 1.54 2014/07/12 05:28:07 mlelstv Exp $");
 #endif /* not lint */
 
 /*
@@ -497,9 +497,9 @@
        cntrl.c_cc[VMIN] = 1;
        cntrl.c_cc[VTIME] = 0;
        if (boolean(value(TAND)))
-               cntrl.c_iflag |= IXOFF|IXON|IXANY;
+               cntrl.c_iflag |= IXOFF|IXON;
        else
-               cntrl.c_iflag &= ~(IXOFF|IXON|IXANY);
+               cntrl.c_iflag &= ~(IXOFF|IXON);
        return tcsetattr(FD, TCSAFLUSH, &cntrl);
 }
 



Home | Main Index | Thread Index | Old Index