While studying Signals in Linux, I came across this declaration :
typedef void (*sighandler_t)(int);
sighandler_t signal (int signo, sighandler_t handler);
The handler function must return void and its prototype has the form :
void my_handler (int signo);
Linux uses a typedef, sighandler_t, to define this prototype.
When I saw Linux Man pages for signal() function it is present there.
But I don't understand What that typedef statement here means.
Can anyone explain what that typedef sighandler_t means?