source: trunk/libs/newlib/src/newlib/libc/errno/errno.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 269 bytes
Line 
1/* 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
10int *
11__errno ()
12{
13  return &_REENT->_errno;
14}
15
16#endif
Note: See TracBrowser for help on using the repository browser.