summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2000-09-01 21:03:06 +0000
committerWichert Akkerman <wichert@deephackmode.org>2000-09-01 21:03:06 +0000
commitbf79f2e16b090ffe59cd1e1820935680a2da7b78 (patch)
tree7cca3bc2da9b0505a7f7bd2e3f68fd569389e94d /term.c
parentd077c451cd94c49ca508e1082a85cd042c0e7398 (diff)
downloadstrace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.gz
Add FreeBSD support
Diffstat (limited to 'term.c')
-rw-r--r--term.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/term.c b/term.c
index 4cf10a925..db15ef9b1 100644
--- a/term.c
+++ b/term.c
@@ -47,12 +47,14 @@ static struct xlat tcxonc_options[] = {
{ 0, NULL },
};
+#ifdef TCLFLSH
static struct xlat tcflsh_options[] = {
{ TCIFLUSH, "TCIFLUSH" },
{ TCOFLUSH, "TCOFLUSH" },
{ TCIOFLUSH, "TCIOFLUSH" },
{ 0, NULL },
};
+#endif
static struct xlat baud_options[] = {
{ B0, "B0" },
@@ -173,7 +175,11 @@ struct tcb *tcp;
long code, arg;
{
struct termios tios;
+#ifndef FREEBSD
struct termio tio;
+#else
+ struct termios tio;
+#endif
struct winsize ws;
#ifdef TIOCGSIZE
struct ttysize ts;
@@ -290,15 +296,18 @@ long code, arg;
#endif
/* ioctls with a direct decodable arg */
-
+#ifdef TCXONC
case TCXONC:
tprintf(", ");
printxval(tcxonc_options, arg, "TC???");
return 1;
+#endif
+#ifdef TCLFLSH
case TCFLSH:
tprintf(", ");
printxval(tcflsh_options, arg, "TC???");
return 1;
+#endif
/* ioctls with an indirect parameter displayed as modem flags */