components/coreutils/patches/stty.c.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 13 Oct 2016 17:26:39 -0700
changeset 7104 8f45af4c27d7
parent 6344 77d07a2f5806
permissions -rw-r--r--
24837165 userland should move to parfait 1.9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6344
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
Correctly handle /usr/gnu/bin/stty sane on Solaris.
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
This problem has been fixed upstream.
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
See:
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23866
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.25-41-gdfae782
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
--- src/stty.c.orig	2016-06-28 17:48:25.580754994 -0700
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
+++ src/stty.c	2016-06-29 06:19:49.159950703 -0700
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
@@ -118,9 +118,9 @@
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
 # define CSWTCH _POSIX_VDISABLE
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
 #endif
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
 
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
-/* SunOS 5.3 loses (^Z doesn't work) if 'swtch' is the same as 'susp'.
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
+/* SunOS >= 5.3 loses (^Z doesn't work) if 'swtch' is the same as 'susp'.
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
    So the default is to disable 'swtch.'  */
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
-#if defined __sparc__ && defined __svr4__
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
+#if defined __sun
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
 # undef CSWTCH
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
 # define CSWTCH _POSIX_VDISABLE
77d07a2f5806 15662793 SUNBT6977238 GNU 'stty sane' sets swtch to ^z, no-ops susp
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
 #endif