Last change
on this file was
444,
checked in by satin@…, 7 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.1 KB
|
Rev | Line | |
---|
[444] | 1 | #include <reent.h> |
---|
| 2 | |
---|
| 3 | /* Note that there is a copy of this in sys/reent.h. */ |
---|
| 4 | #ifndef __ATTRIBUTE_IMPURE_PTR__ |
---|
| 5 | #define __ATTRIBUTE_IMPURE_PTR__ |
---|
| 6 | #endif |
---|
| 7 | |
---|
| 8 | #ifndef __ATTRIBUTE_IMPURE_DATA__ |
---|
| 9 | #define __ATTRIBUTE_IMPURE_DATA__ |
---|
| 10 | #endif |
---|
| 11 | |
---|
| 12 | /* Redeclare these symbols locally as weak so that the file containing |
---|
| 13 | their definitions (along with a lot of other stuff) isn't sucked in |
---|
| 14 | unless they are actually used by other compilation units. This is |
---|
| 15 | important to reduce image size for targets with very small amounts |
---|
| 16 | of memory. */ |
---|
| 17 | #ifdef _REENT_SMALL |
---|
| 18 | extern const struct __sFILE_fake __sf_fake_stdin _ATTRIBUTE ((weak)); |
---|
| 19 | extern const struct __sFILE_fake __sf_fake_stdout _ATTRIBUTE ((weak)); |
---|
| 20 | extern const struct __sFILE_fake __sf_fake_stderr _ATTRIBUTE ((weak)); |
---|
| 21 | #endif |
---|
| 22 | |
---|
| 23 | static struct _reent __ATTRIBUTE_IMPURE_DATA__ impure_data = _REENT_INIT (impure_data); |
---|
| 24 | #ifdef __CYGWIN__ |
---|
| 25 | extern struct _reent reent_data __attribute__ ((alias("impure_data"))); |
---|
| 26 | #endif |
---|
| 27 | struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &impure_data; |
---|
| 28 | struct _reent *const __ATTRIBUTE_IMPURE_PTR__ _global_impure_ptr = &impure_data; |
---|
Note: See
TracBrowser
for help on using the repository browser.