sigprocmask and static linking, revisited
Joshua Jackson
jjackson at vortech.net
Tue Mar 6 16:26:00 UTC 2012
I am currently working on getting various applications to compile
inside of a uClibc based system and am running into the issues
mentioned in the post from a year ago:
http://lists.uclibc.org/pipermail/uclibc/2011-March/045135.html
Is there any chance of getting this patch applied to the official
source code? As this has been a long standing and unfixed issue - is
there some other case that would prevent it from working properly?
Thanks,
Josh
Patch against 0.9.33 follows:
diff -uNr a/libc/sysdeps/linux/common/sigprocmask.c
b/libc/sysdeps/linux/common/sigprocmask.c
--- a/libc/sysdeps/linux/common/sigprocmask.c 2012-02-01
16:21:04.000000000 -0500
+++ b/libc/sysdeps/linux/common/sigprocmask.c 2012-03-05
19:33:14.717202267 -0500
@@ -23,7 +23,7 @@
_syscall4(int, __rt_sigprocmask, int, how, const sigset_t *, set,
sigset_t *, oldset, size_t, size)
-int sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
+int weak_function sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
{
#ifdef SIGCANCEL
sigset_t local_newmask;
@@ -58,7 +58,7 @@
_syscall3(int, __syscall_sigprocmask, int, how, const sigset_t *, set,
sigset_t *, oldset)
-int sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
+int weak_function sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
{
#ifdef SIGCANCEL
sigset_t local_newmask;
More information about the uClibc
mailing list