this repo has no description
1#include <signal.h>
2#include <stdio.h>
3
4// Determine RT signal ranges without polluting the build environment with Linux system headers
5int main(int argc, char** argv)
6{
7 FILE* output = stdout;
8
9 if (argc > 1)
10 {
11 output = fopen(argv[1], "w");
12 if (!output)
13 {
14 perror("fopen");
15 return 1;
16 }
17 }
18
19 fprintf(output, "#define LINUX_SIGRTMIN %d\n", SIGRTMIN);
20 fprintf(output, "#define LINUX_SIGRTMAX %d\n", SIGRTMAX);
21
22 fclose(output);
23 return 0;
24}
25