Changeset b7cf1ff7 in rtems
- Timestamp:
- 04/24/13 13:04:30 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- f22bba3
- Parents:
- 5fa0e5c5
- git-author:
- Sebastian Huber <sebastian.huber@…> (04/24/13 13:04:30)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (04/26/13 08:57:08)
- Location:
- cpukit
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/Makefile.am
r5fa0e5c5 rb7cf1ff7 57 57 src/privateenv.c \ 58 58 src/libio_helper_null.c \ 59 src/libio_exit.c \ 59 60 src/open_dev_console.c src/__usrenv.c src/rtems_mkdir.c 60 61 -
cpukit/libcsupport/include/rtems/libio.h
r5fa0e5c5 rb7cf1ff7 1393 1393 extern const rtems_libio_helper rtems_libio_post_driver_helper; 1394 1394 1395 extern const rtems_libio_helper rtems_libio_exit_helper; 1396 1395 1397 extern const rtems_libio_helper rtems_fs_init_helper; 1396 1398 … … 1398 1400 1399 1401 void rtems_libio_post_driver(void); 1402 1403 void rtems_libio_exit(void); 1400 1404 1401 1405 /** -
cpukit/libcsupport/src/newlibc_exit.c
r5fa0e5c5 rb7cf1ff7 12 12 #endif 13 13 14 #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__15 14 #include <rtems.h> 16 15 17 16 #if defined(RTEMS_NEWLIB) 18 #include <rtems/lib csupport.h>17 #include <rtems/libio.h> 19 18 20 19 #include <stdio.h> 21 20 #include <unistd.h> 22 23 static void libc_wrapup(void)24 {25 /*26 * In case RTEMS is already down, don't do this. It could be27 * dangerous.28 */29 30 if (!_System_state_Is_up(_System_state_Get()))31 return;32 33 /*34 * Try to drain output buffers.35 *36 * Should this be changed to do *all* file streams?37 * _fwalk (_REENT, fclose);38 */39 40 fclose (stdin);41 fclose (stdout);42 fclose (stderr);43 }44 21 45 22 /* FIXME: These defines are a blatant hack */ … … 67 44 #endif 68 45 69 libc_wrapup();46 (*rtems_libio_exit_helper)(); 70 47 rtems_shutdown_executive(status); 71 48 for (;;) ; /* to avoid warnings */ -
cpukit/sapi/include/confdefs.h
r5fa0e5c5 rb7cf1ff7 105 105 #else 106 106 rtems_libio_post_driver; 107 #endif 108 109 const rtems_libio_helper rtems_libio_exit_helper = 110 #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM 111 rtems_libio_helper_null; 112 #else 113 rtems_libio_exit; 107 114 #endif 108 115
Note: See TracChangeset
for help on using the changeset viewer.