diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-25 02:24:03 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-25 02:24:03 +0100 |
commit | ed720fda5d515f1359fcd3242223e553d1216789 (patch) | |
tree | df52110c250932724fe0fae65e9eeda96a710580 /term.c | |
parent | d2a660f534d98169f60d50706cbb2ec15fa13cf8 (diff) | |
download | strace-ed720fda5d515f1359fcd3242223e553d1216789.tar.gz strace-ed720fda5d515f1359fcd3242223e553d1216789.tar.bz2 strace-ed720fda5d515f1359fcd3242223e553d1216789.tar.xz |
Automated removal of non-Linux code
This change is generated by running every source through the following command:
unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD
-USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS
-UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -29,20 +29,11 @@ #include "defs.h" -#ifdef LINUX /* * The C library's definition of struct termios might differ from * the kernel one, and we need to use the kernel layout. */ #include <linux/termios.h> -#else - -#ifdef HAVE_TERMIO_H -#include <termio.h> -#endif /* HAVE_TERMIO_H */ - -#include <termios.h> -#endif #ifdef HAVE_SYS_FILIO_H #include <sys/filio.h> @@ -181,14 +172,7 @@ static const struct xlat modem_flags[] = { int term_ioctl(struct tcb *tcp, long code, long arg) { struct termios tios; -#ifndef FREEBSD struct termio tio; -#else - #define TCGETS TIOCGETA - #define TCSETS TIOCSETA - #define TCSETSW TIOCSETAW - #define TCSETSF TIOCSETAF -#endif struct winsize ws; #ifdef TIOCGSIZE struct ttysize ts; @@ -213,16 +197,7 @@ int term_ioctl(struct tcb *tcp, long code, long arg) return 0; if (abbrev(tcp)) { tprints(", {"); -#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) { - tprints(" (in)"); - printxval(baud_options, tios.c_ospeed, "B???"); - tprints(" (out)"); - } -#endif tprintf(" %sopost %sisig %sicanon %secho ...}", (tios.c_oflag & OPOST) ? "" : "-", (tios.c_lflag & ISIG) ? "" : "-", @@ -234,9 +209,7 @@ int term_ioctl(struct tcb *tcp, long code, long arg) (long) tios.c_iflag, (long) tios.c_oflag); tprintf("c_cflags=%#lx, c_lflags=%#lx, ", (long) tios.c_cflag, (long) tios.c_lflag); -#if !defined(SVR4) && !defined(FREEBSD) tprintf("c_line=%u, ", tios.c_line); -#endif if (!(tios.c_lflag & ICANON)) tprintf("c_cc[VMIN]=%d, c_cc[VTIME]=%d, ", tios.c_cc[VMIN], tios.c_cc[VTIME]); |