From b7cf1ff7174377c65816908be427e1a76a5fa20f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 24 Apr 2013 15:04:30 +0200 Subject: libcsupport: Delete libc_wrapup() Add and use rtems_libio_exit_helper. Add rtems_libio_exit(). The fclose(stdin) etc. makes no sense during exit. This would use the _REENT structure of the thread calling _exit(). --- cpukit/sapi/include/confdefs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/sapi/include/confdefs.h') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 0d8c99bf0d..c15c8a385c 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -106,6 +106,13 @@ const rtems_libio_helper rtems_libio_post_driver_helper = rtems_libio_post_driver; #endif +const rtems_libio_helper rtems_libio_exit_helper = + #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM + rtems_libio_helper_null; + #else + rtems_libio_exit; + #endif + const rtems_libio_helper rtems_fs_init_helper = #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM rtems_libio_helper_null; -- cgit v1.2.3