Welcome to mirror list, hosted at ThFree Co, Russian Federation.

errno.c « errno « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70402924b4b6a3e7411e88d5d1c915cf7387469d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* 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(_REENT);
}

#endif