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

Cyril Hrubis chrubis@suse.cz
Mon Mar 18 16:40:45 CET 2019


Hi!
> __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.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list