diff options
author | Wichert Akkerman <wichert@deephackmode.org> | 2000-09-03 23:57:48 +0000 |
---|---|---|
committer | Wichert Akkerman <wichert@deephackmode.org> | 2000-09-03 23:57:48 +0000 |
commit | 2e4ffe59b588159eb80e236f068278ba47735932 (patch) | |
tree | 31363fb77e800d61f383d665bc3f35e5b45d31f4 /term.c | |
parent | 10b9cfbbe4f1996c8ff1ac7931626603f5133dc8 (diff) | |
download | strace-2e4ffe59b588159eb80e236f068278ba47735932.tar.gz strace-2e4ffe59b588159eb80e236f068278ba47735932.tar.bz2 strace-2e4ffe59b588159eb80e236f068278ba47735932.tar.xz |
more FreeBSD updates
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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)) |