Files
RedBear-OS/tests/signals/signal-h-2.c
T
Josh Williams 901b8099a2 add stdint.h to test_helpers
add tests for signals
2025-04-20 21:17:35 +02:00

33 lines
843 B
C

#include "../test_helpers.h"
#include <signal.h>
/*
* This is a test to ensure all required items for signal.h are defined.
* The definitions follow the order described in
* <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>
*/
void handler(int sig_num)
{
(void)sig_num;
}
void action(int sig_num, siginfo_t *info, void *context)
{
(void)sig_num;
(void)info;
(void)context;
}
int main()
{
int (*sh)(int) __attribute__((unused)) = sighold;
int (*sigig)(int) __attribute__((unused)) = sigignore;
int (*sigintr)(int, int) __attribute__((unused)) = siginterrupt;
int (*paws)(int) __attribute__((unused)) = sigpause;
int (*srls)(int) __attribute__((unused)) = sigrelse;
void (*(*sset)(int, void (*)(int)))(int) __attribute__((unused)) = sigset;
return EXIT_SUCCESS;
}