Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / reent / impure.c
bloba87b91feb26d7d55ec2a096eb29d06c130e2e8e3
1 #include <reent.h>
3 #ifndef _REENT_THREAD_LOCAL
5 /* Redeclare these symbols locally as weak so that the file containing
6 their definitions (along with a lot of other stuff) isn't sucked in
7 unless they are actually used by other compilation units. This is
8 important to reduce image size for targets with very small amounts
9 of memory. */
10 #ifdef _REENT_SMALL
11 extern __FILE __sf[3] _ATTRIBUTE ((weak));
12 #endif
14 struct _reent __ATTRIBUTE_IMPURE_DATA__ _impure_data = _REENT_INIT (_impure_data);
15 #ifdef __CYGWIN__
16 extern struct _reent reent_data __attribute__ ((alias("_impure_data")));
17 #endif
18 struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &_impure_data;
20 #endif /* _REENT_THREAD_LOCAL */