OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [errno/] [errno.c] - Blame information for rev 148

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* The errno variable is stored in the reentrancy structure.  This
2
   function returns its address for use by the macro errno defined in
3
   errno.h.  */
4
 
5
#include <errno.h>
6
#include <reent.h>
7
 
8
#ifndef _REENT_ONLY
9
 
10
int *
11
__errno ()
12
{
13
  return &_REENT->_errno;
14
}
15
 
16
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.