signal function: It is used to call a function pointed by a pointer for a specified signal. Header <csignal> must be used for using this function.
void (*signal(int signal, void (*func)(int))) (int);
raise function: It is used to send a signal to a program. Header <csignal> must be used for using this function.
int raise(int signal);
setjmp and longjmp functions: setjmp and longjmp functions are used to jump between functions in a program. setjmp function is used to save data in buffer for longjump function. Header file <csetjmp> must be included to use these functions.
int setjmp(jmp_buf buf);
and longjmp function is used to resume program execution.
void longjmp(jmp_buf buf, int status);