mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 11:52:34 +03:00
754f9336f0
git-svn-id: svn://kolibrios.org@4349 a494cfbc-eb01-0410-851d-a64ba20cac60
17 lines
285 B
C
17 lines
285 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
|