From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Mon, 18 Mar 2019 19:43:59 +0100 Subject: [LTP] [PATCH 1/5] rt_sigaction.h: Check for type sighandler_t and use if present In-Reply-To: <20190318154045.GA25922@rei.lan> References: <20190318032330.3346-1-petr.vorel@gmail.com> <20190318032330.3346-2-petr.vorel@gmail.com> <20190318154045.GA25922@rei.lan> Message-ID: <20190318184357.GA9774@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it 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