diff options
author | Wichert Akkerman <wichert@deephackmode.org> | 2000-09-01 21:03:06 +0000 |
---|---|---|
committer | Wichert Akkerman <wichert@deephackmode.org> | 2000-09-01 21:03:06 +0000 |
commit | bf79f2e16b090ffe59cd1e1820935680a2da7b78 (patch) | |
tree | 7cca3bc2da9b0505a7f7bd2e3f68fd569389e94d /term.c | |
parent | d077c451cd94c49ca508e1082a85cd042c0e7398 (diff) | |
download | strace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.gz |
Add FreeBSD support
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 */ |