diff mbox

[uclibc-ng-devel] mq_timedreceive

Message ID 20170119065220.GI11210@waldemar-brodkorb.de
State Not Applicable
Headers show

Commit Message

Waldemar Brodkorb Jan. 19, 2017, 6:52 a.m. UTC
Hi,
steven.seeger@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:


Similar to the ARM fix.

best regards
 Waldemar
diff mbox

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)