This is from The GNU C Library Reference Manual
int SIGFPE
The SIGFPE signal reports a fatal arithmetic error. This signal actually covers all arithmetic errors, including division by zero and overflow.
BSD systems provide the SIGFPE handler with an extra argument that distinguishes various causes of the exception. In order to access this argument, you must define the handler to accept two arguments, which means you must cast it to a one-argument function type in order to establish the handler.
But there is no example on how to access the extra argument.
I did my google work but could not find anything.
How can I get this extra information?