summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>1999-08-29 23:15:07 +0000
committerWichert Akkerman <wichert@deephackmode.org>1999-08-29 23:15:07 +0000
commit9ce1a63eb20b069607c06f9645ac5a17b418a5f3 (patch)
treec44fbd1dfd23b635e8dd518ac76c20b68e923563 /io.c
parent5a777663d5208fb2485d06b5a54419f0d15e7bf6 (diff)
downloadstrace-9ce1a63eb20b069607c06f9645ac5a17b418a5f3.tar.gz
strace-9ce1a63eb20b069607c06f9645ac5a17b418a5f3.tar.bz2
strace-9ce1a63eb20b069607c06f9645ac5a17b418a5f3.tar.xz
Catching up on my mail-backlog, see ChangeLog for details
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;
}