summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2013-02-27 20:33:33 (GMT)
committerjenglish <jenglish@flightlab.com>2013-02-27 20:33:33 (GMT)
commit6765f7766aac3161e05470bb93260ca6e2295130 (patch)
tree3ee5f99157621e613f79733921ee2f02971e103a /unix/tclUnixChan.c
parentd19847932e05d28ab8ca5bc13382b70bb5076e0a (diff)
downloadtcl-6765f7766aac3161e05470bb93260ca6e2295130.zip
tcl-6765f7766aac3161e05470bb93260ca6e2295130.tar.gz
tcl-6765f7766aac3161e05470bb93260ca6e2295130.tar.bz2
For termios, we never want DIRECT_BAUD; always use the symbolic constants
as prescribed by POSIX.
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 1fd6708..05948a3 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -16,13 +16,6 @@
#define SUPPORTS_TTY
-#undef DIRECT_BAUD
-#ifdef B4800
-# if (B4800 == 4800)
-# define DIRECT_BAUD
-# endif /* B4800 == 4800 */
-#endif /* B4800 */
-
#ifdef USE_TERMIOS
# include <termios.h>
# ifdef HAVE_SYS_IOCTL_H
@@ -153,10 +146,8 @@ static void TtyGetAttributes(int fd, TtyAttrs *ttyPtr);
static int TtyGetOptionProc(ClientData instanceData,
Tcl_Interp *interp, const char *optionName,
Tcl_DString *dsPtr);
-#ifndef DIRECT_BAUD
static int TtyGetBaud(unsigned long speed);
static unsigned long TtyGetSpeed(int baud);
-#endif /* DIRECT_BAUD */
static FileState * TtyInit(int fd, int initialize);
static void TtyModemStatusStr(int status, Tcl_DString *dsPtr);
static int TtyParseMode(Tcl_Interp *interp, const char *mode,
@@ -964,10 +955,6 @@ TtyGetOptionProc(
);
}
-#ifdef DIRECT_BAUD
-# define TtyGetSpeed(baud) ((unsigned) (baud))
-# define TtyGetBaud(speed) ((int) (speed))
-#else /* !DIRECT_BAUD */
static const struct {int baud; unsigned long speed;} speeds[] = {
#ifdef B0
@@ -1136,7 +1123,6 @@ TtyGetBaud(
}
return 0;
}
-#endif /* !DIRECT_BAUD */
/*
*---------------------------------------------------------------------------