summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c10
1 files changed, 10 insertions, 0 deletions
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;
}