NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES
#include <pd/chPd.h>int *ptdErrnoAddr(void);
PRIVATE-DATA
The ptdErrnoAddr call returns the address of the private errno word of the calling thread.
It may be called either explicitly or implicitly from a thread-specific data destructor function.
This function is implemented as a macro.
A typical usage (in a multi-threaded POSIX environment) of ptdErrnoAddr is to define errno as (*ptdErrnoAddr)().
The function ptdErrnoAddr returns the thread-specific errno address.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES