/** * @file * * @brief Newlib Support * @ingroup libcsupport */ /* * 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.org/license/LICENSE. * */ #if HAVE_CONFIG_H #include "config.h" #endif #include #if defined(RTEMS_NEWLIB) #include #include #include #include #include #include bool newlib_create_hook( rtems_tcb *current_task RTEMS_UNUSED, rtems_tcb *creating_task ) { _REENT_INIT_PTR((creating_task->libc_reent)); /* GCC extension: structure constants */ return true; } void newlib_terminate_hook( rtems_tcb *current_task ) { _reclaim_reent(current_task->libc_reent); } #endif