mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-02 18:53:22 +00:00
17 lines
269 B
C
17 lines
269 B
C
/* The errno variable is stored in the reentrancy structure. This
|
|
function returns its address for use by the macro errno defined in
|
|
errno.h. */
|
|
|
|
#include <errno.h>
|
|
#include <reent.h>
|
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
int *
|
|
__errno ()
|
|
{
|
|
return &_REENT->_errno;
|
|
}
|
|
|
|
#endif
|