diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -152,9 +152,14 @@ struct tcb *tcp; tprintf("%#lx", tcp->u_arg[1]); else printstr(tcp, tcp->u_arg[1], tcp->u_rval); +#if UNIXWARE + /* off_t is signed int */ + tprintf(", %lu, %ld", tcp->u_arg[2], tcp->u_arg[3]); +#else tprintf(", %lu, %llu", tcp->u_arg[2], (((unsigned long long) tcp->u_arg[4]) << 32 | tcp->u_arg[3])); +#endif } return 0; } @@ -166,9 +171,14 @@ struct tcb *tcp; if (entering(tcp)) { tprintf("%ld, ", tcp->u_arg[0]); printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); +#if UNIXWARE + /* off_t is signed int */ + tprintf(", %lu, %ld", tcp->u_arg[2], tcp->u_arg[3]); +#else tprintf(", %lu, %llu", tcp->u_arg[2], (((unsigned long long) tcp->u_arg[4]) << 32 | tcp->u_arg[3])); +#endif } return 0; } |