Opened 6 years ago

Last modified 6 years ago

#291 new enhancement

Add ucontext_t (SA_SIGINFO) to sigaction

Reported by: dmik Owned by:
Priority: normal Milestone: libc-0.7
Component: libc Version: 0.6.5
Severity: normal Keywords:


I found that the sigaction machinery lacks the bits of implementation related to the support of the ucontext_t structure (passed in as a third parameter to the sigaction callback when SA_SIGINFO is requested in flags).

AFAIU, it should be a matter of simply converting the CONTEXTRECORD data provide by the OS/2 exception handler to the format of ucontext_t (and adding the definition of ucontext_t, and, perhaps the getcontext()/setcontext() API as well).

Here is the related place in the sources: source:/branches/libc-0.6/src/emx/src/lib/sys/signals.c?rev=3795#L1863

Change History (1)

comment:1 Changed 6 years ago by dmik

Here is the practical case where I faced this issue:

Note that once this ticket is resolved, it will make sense to remove the hack (DosSetExceptionHandler abuse) applied here: (unless it's already solved in some other way by that time).

Last edited 6 years ago by dmik (previous) (diff)
Note: See TracTickets for help on using tickets.