Re: [uclibc-ng-devel] uclibc(1.0.12) mq_send return value and errno issue
Waldemar Brodkorb <[email protected]> Thu, 24 Nov 2016 04:27:27 +0100
| Newsgroups | gmane.comp.lib.uclibc-ng,gmane.comp.lib.uclibc.general |
|---|---|
| Message-ID | <[email protected]> |
--7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Frank, Frank Liu wrote, > Please see the attached sample code. > > If I turn READERS and WRITERS to 0, the test works fine. > > Adding another thread in the process by setting a non-zero number to either READERS or WRITER, the test program crashes due to the assertion at line 99. I think I found the reason for the problem. Try attached patch, best regards Waldemar --7AUc2qLy4jB3hD7Z Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-arm-use-common-ret_ERRVAL.patch" From 650e6cbd0fccf8d20efc0844582934eae8da1f58 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb <[email protected]> Date: Thu, 24 Nov 2016 04:14:20 +0100 Subject: [PATCH 1/2] arm: use common ret_ERRVAL Signed-off-by: Waldemar Brodkorb <[email protected]> --- libc/sysdeps/linux/arm/sysdep.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/libc/sysdeps/linux/arm/sysdep.h b/libc/sysdeps/linux/arm/sysdep.h index 80bf9ec..8813f8e 100644 --- a/libc/sysdeps/linux/arm/sysdep.h +++ b/libc/sysdeps/linux/arm/sysdep.h @@ -137,9 +137,6 @@ #define PSEUDO_END_ERRVAL(name) \ END (name) -#undef ret_ERRVAL -#define ret_ERRVAL PSEUDO_RET_NOERRNO - #if defined NOT_IN_libc # define SYSCALL_ERROR __local_syscall_error # define SYSCALL_ERROR_HANDLER \ -- 2.1.4 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZGV2ZWwgbWFp bGluZyBsaXN0CmRldmVsQHVjbGliYy1uZy5vcmcKaHR0cDovL21haWxtYW4udWNsaWJjLW5nLm9y Zy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vZGV2ZWwK --7AUc2qLy4jB3hD7Z--