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

getdate_err.c « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e90b74b83d1ad93ce6517aee9e433f367ea9b0b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* The getdate_err variable is stored in the reentrancy structure.  This
   function returns its address for use by the getdate_err macro defined in
   time.h.  */

#include <errno.h>
#include <reent.h>

#ifndef _REENT_ONLY

int *
__getdate_err ()
{
  struct _reent *ptr = _REENT;
  _REENT_CHECK_MISC(ptr);
  return _REENT_GETDATE_ERR_P(ptr);
}

#endif