Hi, please, could in just added gai_misc.h use __sigprocmask instead of direct using Linux syscalls ? For linuxthreads add-on on Linux it is equal, but on GNU/kFreeBSD syscall rt_sigprocmask really does not exist. Many thanks Petr 2006-09-22 Petr Salinger <Petr.Salinger@seznam..cz> * sysdeps/pthread/gai_misc.h: use __sigprocmask()
Created attachment 1317 [details] proposed patch
Sure; I've checked that in, with minor formatting fixes. Thanks for the patch.
Petr, had you tested that patch? I didn't - egg on my face. It breaks the build.
I've fixed it.
(In reply to comment #3) > Petr, had you tested that patch? I didn't - egg on my face. > It breaks the build. Yes, for kfreebsd-i386. It have worked fine and testsuite have passsed reasonably. Test have been against snapshot from 2006-09-18, with gai_misc.h added. May be make didn't catch all changes correctly (I have tested iteratively also changes to our sysdeps for upcoming glibc 2.5) or it works for kfreebsd but not for Linux . Sorry for the problem and many thanks for fixing it again. Petr
Subject: Re: unportable sigprocmask() in gai_misc.h On Mon, Oct 02, 2006 at 07:31:40PM -0000, Petr dot Salinger at seznam dot cz wrote: > May be make didn't catch all changes correctly (I have tested iteratively also > changes to our sysdeps for upcoming glibc 2.5) or it works for kfreebsd but not > for Linux . Do you not have symbol versioning on that platform? __sigprocmask is not exported from libc.so nor normally present in libpthread.so.
> Do you not have symbol versioning on that platform? We have symbol versioning. > __sigprocmask is not exported from libc.so nor normally present in libpthread.so. You got it. We export __sigprocmask in version GLIBC_PRIVATE as __sigprocmask is used internally in libpthread during emulation of clone syscall. So our libc.so exports it, but Linux's don't. Again sorry for the problem. Petr