[PATCH] Async signal safe TLS accesses
Joseph S. Myers
joseph@codesourcery.com
Tue Nov 5 22:34:00 GMT 2013
On Tue, 5 Nov 2013, Paul Pluzhnikov wrote:
> Joseph,
>
> On Tue, Oct 22, 2013 at 2:47 PM, Joseph S. Myers
> <joseph@codesourcery.com> wrote:
> > On Tue, 22 Oct 2013, Andrew Hunter wrote:
> >
> >> + INTERNAL_SYSCALL_DECL (err);
> >> +
> >> + ret = INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &new, old,
> >> + _NSIG / 8);
> >
> > My comment from 3 Oct
> > <https://sourceware.org/ml/libc-alpha/2013-10/msg00131.html> about
> > syscalls not being usable directly in elf/, still applies.
>
> Could you please provide some guidance on what needs to be done for Hurd?
>
> Neither Andrew, nor I, know anything about Hurd signals.
>
> Would it be ok to put a "stub" _dl_mask_all_signals() into
> sysdeps/mach/hurd/dl-sysdep.c, and provide real implementation in
> sysdeps/unix/sysv/linux/dl-sysdep.c ?
Yes. As long as the code using syscalls does go in dl-sysdep.c rather
than directly in elf/.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list