summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2000-09-03 23:57:48 +0000
committerWichert Akkerman <wichert@deephackmode.org>2000-09-03 23:57:48 +0000
commit2e4ffe59b588159eb80e236f068278ba47735932 (patch)
tree31363fb77e800d61f383d665bc3f35e5b45d31f4 /term.c
parent10b9cfbbe4f1996c8ff1ac7931626603f5133dc8 (diff)
downloadstrace-2e4ffe59b588159eb80e236f068278ba47735932.tar.gz
strace-2e4ffe59b588159eb80e236f068278ba47735932.tar.bz2
strace-2e4ffe59b588159eb80e236f068278ba47735932.tar.xz
more FreeBSD updates
Diffstat (limited to 'term.c')
-rw-r--r--term.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/term.c b/term.c
index db15ef9..0a741d5 100644
--- a/term.c
+++ b/term.c
@@ -178,7 +178,10 @@ long code, arg;
#ifndef FREEBSD
struct termio tio;
#else
- struct termios tio;
+ #define TCGETS TIOCGETA
+ #define TCSETS TIOCSETA
+ #define TCSETSW TIOCSETAW
+ #define TCSETSF TIOCSETAF
#endif
struct winsize ws;
#ifdef TIOCGSIZE
@@ -204,7 +207,16 @@ long code, arg;
return 0;
if (abbrev(tcp)) {
tprintf(", {");
+#ifndef FREEBSD
printxval(baud_options, tios.c_cflag & CBAUD, "B???");
+#else
+ printxval(baud_options, tios.c_ispeed, "B???");
+ if (tios.c_ispeed != tios.c_ospeed) {
+ tprintf(" (in)");
+ printxval(baud_options, tios.c_ospeed, "B???");
+ tprintf(" (out)");
+ }
+#endif
tprintf(" %sopost %sisig %sicanon %secho ...}",
(tios.c_oflag & OPOST) ? "" : "-",
(tios.c_lflag & ISIG) ? "" : "-",
@@ -216,7 +228,7 @@ long code, arg;
(long) tios.c_iflag, (long) tios.c_oflag);
tprintf("c_cflags=%#lx, c_lflags=%#lx, ",
(long) tios.c_cflag, (long) tios.c_lflag);
-#ifndef SVR4
+#if !defined(SVR4) && !defined(FREEBSD)
tprintf("c_line=%u, ", tios.c_line);
#endif
if (!(tios.c_lflag & ICANON))