};
-int
-term_ioctl(tcp, code, arg)
-struct tcb *tcp;
-long code, arg;
+int term_ioctl(struct tcb *tcp, long code, long arg)
{
struct termios tios;
#ifndef FREEBSD
case TIOCMBIS:
case TIOCMBIC:
case TIOCMSET:
- if (umove(tcp, arg, &arg) < 0)
+ if (umove(tcp, arg, &i) < 0)
return 0;
tprintf(", [");
- if (!printflags(modem_flags, arg))
- tprintf("0");
+ printflags(modem_flags, i, "TIOCM_???");
tprintf("]");
return 1;
#endif /* TIOCMGET */
case TIOCGPTN:
#endif
tprintf(", ");
- printnum(tcp, arg, "%d");
+ printnum_int(tcp, arg, "%d");
return 1;
-#if 0
- /* ioctls with an indirect parameter displayed in hex */
-
- tprintf(", ");
- printnum(tcp, arg, "%#x");
- return 1;
-#endif
-
/* ioctls with an indirect parameter displayed as a char */
#ifdef TIOCSTI