diff options
Diffstat (limited to 'cpukit/libcsupport/src/newlibc_init.c')
-rw-r--r-- | cpukit/libcsupport/src/newlibc_init.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/newlibc_init.c b/cpukit/libcsupport/src/newlibc_init.c new file mode 100644 index 0000000000..4d2cef5405 --- /dev/null +++ b/cpukit/libcsupport/src/newlibc_init.c @@ -0,0 +1,41 @@ +/* + * Implementation of hooks for the CYGNUS newlib libc + * These hooks set things up so that: + * + '_REENT' is switched at task switch time. + * + * COPYRIGHT (c) 1994 by Division Incorporated + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + * + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#if defined(RTEMS_NEWLIB) + +/* + * Init libc for CYGNUS newlib + * + * Set up _REENT to use our global libc_global_reent. + * (newlib provides a global of its own, but we prefer our own name for it) + * + * If reentrancy is desired (which it should be), then + * we install the task extension hooks to maintain the + * newlib reentrancy global variable _REENT on task + * create, delete, switch, exit, etc. + * + */ + + +void +libc_init(void) +{ +} + +#endif |