[PATCH 15/15] Hurd signals: Use POSIX sigcodes

Jeremie Koenig jk@jk.fr.eu.org
Tue Jul 19 17:40:00 GMT 2011


On Thu, Jun 30, 2011 at 12:27:51AM +0200, Samuel Thibault wrote:
> Jeremie Koenig, le Wed 29 Jun 2011 18:30:27 +0200, a écrit :
> > * sysdeps/mach/hurd/i386/bits/sigcontext.h: Remove the constants formerly
> > used as sigcodes.
> 
> I don't think you can do that. I'm afraid you need to keep both the old
> values for the !SA_SIGINFO case and the POSIX values for the SA_SIGINFO
> case.

I attach two alternative patches (they built but I did not test them).

Both of them use two variants of _hurd_exception2signal and call the
non-default variant from trampoline.c when it's required. Non-exception
sigcodes are cleared to 0 in the legacy case, in both patches.

I personally favor "sigcodes_legacy_as_old.diff" since I believe we
should eventually phase out and get rid of the legacy sigcodes.

-- 
Jeremie Koenig <jk@jk.fr.eu.org>
http://jk.fr.eu.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sigcodes_legacy_as_old.diff
Type: text/x-diff
Size: 17937 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110719/968e52f6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sigcodes_posix_as_new.diff
Type: text/x-diff
Size: 18427 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110719/968e52f6/attachment-0001.bin>


More information about the Libc-alpha mailing list