From 9ce1a63eb20b069607c06f9645ac5a17b418a5f3 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Sun, 29 Aug 1999 23:15:07 +0000 Subject: Catching up on my mail-backlog, see ChangeLog for details --- io.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index 543772a..e42fba1 100644 --- a/io.c +++ b/io.c @@ -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; } -- cgit v1.2.3