#include "xlat/modem_flags.h"
static void
-decode_termios(struct tcb *tcp, const long addr)
+decode_termios(struct tcb *const tcp, const kernel_ulong_t addr)
{
struct termios tios;
int i;
}
static void
-decode_termio(struct tcb *tcp, const long addr)
+decode_termio(struct tcb *const tcp, const kernel_ulong_t addr)
{
struct termio tio;
int i;
}
static void
-decode_winsize(struct tcb *tcp, const long addr)
+decode_winsize(struct tcb *const tcp, const kernel_ulong_t addr)
{
struct winsize ws;
#ifdef TIOCGSIZE
static void
-decode_ttysize(struct tcb *tcp, const long addr)
+decode_ttysize(struct tcb *const tcp, const kernel_ulong_t addr)
{
struct ttysize ts;
#endif
static void
-decode_modem_flags(struct tcb *tcp, const long addr)
+decode_modem_flags(struct tcb *const tcp, const kernel_ulong_t addr)
{
int i;
}
int
-term_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+term_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ulong_t arg)
{
switch (code) {
/* struct termios */
/* ioctls with a direct decodable arg */
case TCXONC:
tprints(", ");
- printxval_long(tcxonc_options, arg, "TC???");
+ printxval64(tcxonc_options, arg, "TC???");
break;
case TCFLSH:
tprints(", ");
- printxval_long(tcflsh_options, arg, "TC???");
+ printxval64(tcflsh_options, arg, "TC???");
break;
case TCSBRK:
case TCSBRKP:
/* ioctls with an indirect parameter displayed as a char */
case TIOCSTI:
tprints(", ");
- printstr(tcp, arg, 1);
+ printstrn(tcp, arg, 1);
break;
/* ioctls with no parameters */