[LTP] [PATCH 1/5] rt_sigaction.h: Check for type sighandler_t and use if present

Petr Vorel petr.vorel@gmail.com
Mon Mar 18 19:43:59 CET 2019


Hi Cyril,

> > __sighandler_t is libc implementation specific and should not be relied
> > upon. Instead, we fall back upon void (*)(int), as specified by POSIX.

> Can't we just use the void (* k_sa_handler)(int) in all cases and don't
> add more ifdefs to that file?

> The __sighandler_t is defined to void (* __sighandler_t)(int) in glibc anyways.
Thanks for a hint, make sense.
Fixed accordingly and pushed whole patchset.


Kind regards,
Petr


More information about the ltp mailing list