When a libm function detects an exceptional case,
errno may be
matherr function may be called, and a error message
may be written to the standard error stream. This behavior may not
With reentrant C libraries like the Cygnus C library,
a macro which expands to the per-thread error value. This makes it thread
When the user provides his own
matherr function it must be
reentrant for the math library as a whole to be reentrant.
In normal debugged programs, there are usually no math subroutine
errors--and therefore no assignments to
errno and no
calls; in that situation, the math functions behave reentrantly.
Go to the first, previous, next, last section, table of contents.