From: Denys Vlasenko Date: Sat, 22 Oct 2011 02:52:18 +0000 (+0200) Subject: Decode TIOCSCTTY's third parameter X-Git-Tag: v4.7~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a4ac6ccc8f8733b0dfce917af3844bfbc51900c;p=strace Decode TIOCSCTTY's third parameter * term.c (term_ioctl): Decode TIOCSCTTY's third parameter. Signed-off-by: Denys Vlasenko --- diff --git a/term.c b/term.c index fbdb165e..a4b5b485 100644 --- a/term.c +++ b/term.c @@ -326,6 +326,11 @@ int term_ioctl(struct tcb *tcp, long code, long arg) printxval(tcflsh_options, arg, "TC???"); return 1; #endif +#ifdef TIOCSCTTY + case TIOCSCTTY: + tprintf(", %ld", arg); + return 1; +#endif /* ioctls with an indirect parameter displayed as modem flags */ @@ -425,9 +430,6 @@ int term_ioctl(struct tcb *tcp, long code, long arg) /* ioctls with no parameters */ -#ifdef TIOCSCTTY - case TIOCSCTTY: -#endif #ifdef TIOCNOTTY case TIOCNOTTY: #endif