summaryrefslogtreecommitdiff
path: root/mq.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2019-05-12 22:45:45 +0000
committerDmitry V. Levin <ldv@altlinux.org>2019-05-12 22:45:45 +0000
commita1fd7c6afcd54bf98446a66b2a8bc31371c4997d (patch)
treeb1e78a6ce1822973bcffb52f08239443edff269e /mq.c
parent09b3fabeadb743ae8a9c774f39fb00e0390c9c26 (diff)
downloadstrace-a1fd7c6afcd54bf98446a66b2a8bc31371c4997d.tar.gz
Implement and use new parsers of mq_timedsend and mq_timedreceive syscalls
* mq.c (SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive)): Remove. [HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(mq_timedsend_time32), SYS_FUNC(mq_timedreceive_time32)): New functions. * pathtrace.c (pathtrace_match_set): Replace SEN_mq_timedsend and SEN_mq_timedreceive with SEN_mq_timedsend_time32 and SEN_mq_timedreceive_time32, respectively. * syscall.c (dumpio): Likewise. * linux/64/syscallent.h: Replace SEN(mq_timedsend) and SEN(mq_timedreceive) with SEN(mq_timedsend_time64) and SEN(mq_timedreceive_time64), respectively. * linux/alpha/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/32/syscallent.h: Replace SEN(mq_timedsend) and SEN(mq_timedreceive) with SEN(mq_timedsend_time32) and SEN(mq_timedreceive_time32), respectively. * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise.
Diffstat (limited to 'mq.c')
-rw-r--r--mq.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mq.c b/mq.c
index c9f9ee1aa..4eb6e5682 100644
--- a/mq.c
+++ b/mq.c
@@ -38,10 +38,12 @@ do_mq_timedsend(struct tcb *const tcp, const print_obj_by_addr_fn print_ts)
return RVAL_DECODED;
}
-SYS_FUNC(mq_timedsend)
+#if HAVE_ARCH_TIME32_SYSCALLS
+SYS_FUNC(mq_timedsend_time32)
{
- return do_mq_timedsend(tcp, print_timespec);
+ return do_mq_timedsend(tcp, print_timespec32);
}
+#endif
SYS_FUNC(mq_timedsend_time64)
{
@@ -74,10 +76,12 @@ do_mq_timedreceive(struct tcb *const tcp, const print_obj_by_addr_fn print_ts)
return 0;
}
-SYS_FUNC(mq_timedreceive)
+#if HAVE_ARCH_TIME32_SYSCALLS
+SYS_FUNC(mq_timedreceive_time32)
{
- return do_mq_timedreceive(tcp, print_timespec);
+ return do_mq_timedreceive(tcp, print_timespec32);
}
+#endif
SYS_FUNC(mq_timedreceive_time64)
{