2000-02-18 03:39:52 +08:00
|
|
|
#include <reent.h>
|
|
|
|
|
2009-04-22 02:38:53 +08:00
|
|
|
/* Redeclare these symbols locally as weak so that the file containing
|
|
|
|
their definitions (along with a lot of other stuff) isn't sucked in
|
|
|
|
unless they are actually used by other compilation units. This is
|
|
|
|
important to reduce image size for targets with very small amounts
|
|
|
|
of memory. */
|
|
|
|
#ifdef _REENT_SMALL
|
|
|
|
extern const struct __sFILE_fake __sf_fake_stdin _ATTRIBUTE ((weak));
|
|
|
|
extern const struct __sFILE_fake __sf_fake_stdout _ATTRIBUTE ((weak));
|
|
|
|
extern const struct __sFILE_fake __sf_fake_stderr _ATTRIBUTE ((weak));
|
|
|
|
#endif
|
|
|
|
|
2022-05-03 20:51:55 +08:00
|
|
|
struct _reent __ATTRIBUTE_IMPURE_DATA__ _impure_data = _REENT_INIT (_impure_data);
|
2004-09-16 05:44:39 +08:00
|
|
|
#ifdef __CYGWIN__
|
2022-05-03 20:51:55 +08:00
|
|
|
extern struct _reent reent_data __attribute__ ((alias("_impure_data")));
|
2004-09-16 05:44:39 +08:00
|
|
|
#endif
|
2022-05-03 20:51:55 +08:00
|
|
|
struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &_impure_data;
|