source:
trunk/libs/newlib/src/newlib/libc/errno/errno.c
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
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 | |
10 | int * |
11 | __errno () |
12 | { |
13 | return &_REENT->_errno; |
14 | } |
15 | |
16 | #endif |
Note: See TracBrowser
for help on using the repository browser.