From: Roland McGrath Date: Tue, 31 Aug 2004 07:47:45 +0000 (+0000) Subject: 2004-08-31 Roland McGrath X-Git-Tag: v4.5.18~535 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa510629c74a8af3c229ac15a2405f45912d9f47;p=strace 2004-08-31 Roland McGrath * syscall.c (dumpio): Match pread and pwrite system calls too. Fixes Debian bug #239947. --- diff --git a/syscall.c b/syscall.c index b6d526de..666b9be4 100644 --- a/syscall.c +++ b/syscall.c @@ -438,6 +438,12 @@ struct tcb *tcp; return; switch (tcp->scno + NR_SYSCALL_BASE) { case SYS_read: +#ifdef SYS_pread64 + case SYS_pread64: +#endif +#if defined SYS_pread && SYS_pread64 != SYS_pread + case SYS_pread: +#endif #ifdef SYS_recv case SYS_recv: #endif @@ -448,6 +454,12 @@ struct tcb *tcp; dumpstr(tcp, tcp->u_arg[1], tcp->u_rval); break; case SYS_write: +#ifdef SYS_pwrite64 + case SYS_pwrite64: +#endif +#if defined SYS_pwrite && SYS_pwrite64 != SYS_pwrite + case SYS_pwrite: +#endif #ifdef SYS_send case SYS_send: #endif