In C, this would look something like:
#include <signal.h> struct sigaction old_action; sigaction (SIGALRM, NULL, &old_action);
/* call foreign library */
sigaction (SIGALRM, &old_action, NULL);
In C, this would look something like:
#include <signal.h>
struct sigaction old_action;
sigaction (SIGALRM, NULL, &old_action);
/* call foreign library */
sigaction (SIGALRM, &old_action, NULL);