[uclibc-ng-devel] mq_timedreceive

Waldemar Brodkorb wbx at uclibc-ng.org
Thu Jan 19 07:52:21 CET 2017


Hi,
steven.seeger at frontier.com wrote,

> All,
> 
> mq_timedreceive() returns ETIMEDOUT (110) on a timeout instead of -1 and errno
> set to -ETIMEDOUT. This has been observed most recently on ppc32 and a year or
> so ago on a little-endian arm board.
> 
> Any thoughts?

What ppc32 board are you using?
Can you try following patch:

diff --git a/libc/sysdeps/linux/powerpc/sysdep.h
b/libc/sysdeps/linux/powerpc/sysdep.h
index c512c5a..9261174 100644
--- a/libc/sysdeps/linux/powerpc/sysdep.h
+++ b/libc/sysdeps/linux/powerpc/sysdep.h
@@ -258,11 +258,6 @@
   ENTRY (name) \
     DO_CALL (SYS_ify (syscall_name));
 
-#define PSEUDO_RET_ERRVAL \
-    blr
-#undef ret_ERRVAL
-#define ret_ERRVAL PSEUDO_RET_ERRVAL
-
 #undef PSEUDO_END_ERRVAL
 #define        PSEUDO_END_ERRVAL(name) \
   END (name)

Similar to the ARM fix.

best regards
 Waldemar




More information about the devel mailing list