summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2004-08-19 10:08:15 +0000
committerKim F. Storm <storm@cua.dk>2004-08-19 10:08:15 +0000
commitb1c394f27f64652b900de2499c6370720572744e (patch)
tree378e2fe59e5df1c537a9a4496ba7f200ccb7d10b /src/sysdep.c
parenta9a48e2084f90ae4b55372407c8f5feb72dad688 (diff)
downloademacs-b1c394f27f64652b900de2499c6370720572744e.tar.gz
(child_setup_tty, init_sys_modes): Use CDISABLE.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 7ffb2bb7db5..b120dcd950d 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -613,9 +613,9 @@ child_setup_tty (out)
#ifdef SIGNALS_VIA_CHARACTERS
/* the QUIT and INTR character are used in process_send_signal
so set them here to something useful. */
- if (s.main.c_cc[VQUIT] == 0377)
+ if (s.main.c_cc[VQUIT] == CDISABLE)
s.main.c_cc[VQUIT] = '\\'&037; /* Control-\ */
- if (s.main.c_cc[VINTR] == 0377)
+ if (s.main.c_cc[VINTR] == CDISABLE)
s.main.c_cc[VINTR] = 'C'&037; /* Control-C */
#endif /* not SIGNALS_VIA_CHARACTERS */
@@ -634,11 +634,11 @@ child_setup_tty (out)
would force it to 0377. That looks like duplicated code. */
#ifndef SIGNALS_VIA_CHARACTERS
/* QUIT and INTR work better as signals, so disable character forms */
- s.main.c_cc[VQUIT] = 0377;
- s.main.c_cc[VINTR] = 0377;
+ s.main.c_cc[VQUIT] = CDISABLE;
+ s.main.c_cc[VINTR] = CDISABLE;
s.main.c_lflag &= ~ISIG;
#endif /* no TIOCGPGRP or no TIOCGLTC or no TIOCGETC */
- s.main.c_cc[VEOL] = 0377;
+ s.main.c_cc[VEOL] = CDISABLE;
s.main.c_cflag = (s.main.c_cflag & ~CBAUD) | B9600; /* baud rate sanity */
#endif /* AIX */
@@ -1479,10 +1479,10 @@ nil means don't delete them until `list-processes' is run. */);
tty.main.c_line = 0;
tty.main.c_iflag &= ~ASCEDIT;
#else
- tty.main.c_cc[VSTRT] = 255;
- tty.main.c_cc[VSTOP] = 255;
- tty.main.c_cc[VSUSP] = 255;
- tty.main.c_cc[VDSUSP] = 255;
+ tty.main.c_cc[VSTRT] = CDISABLE;
+ tty.main.c_cc[VSTOP] = CDISABLE;
+ tty.main.c_cc[VSUSP] = CDISABLE;
+ tty.main.c_cc[VDSUSP] = CDISABLE;
#endif /* IBMR2AIX */
if (flow_control)
{