forked from Imagelibrary/rtems
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* src/mallocfreespace.c: Corrected sense of status check to match change inside RTEMS. * src/newlibc.c: Removed warning.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2002-10-31 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/mallocfreespace.c: Corrected sense of status check to
|
||||||
|
match change inside RTEMS.
|
||||||
|
* src/newlibc.c: Removed warning.
|
||||||
|
|
||||||
2002-10-28 Joel Sherrill <joel@OARcorp.com>
|
2002-10-28 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* include/rtems/libio.h: Change rtems_filesystem_node_types_t from
|
* include/rtems/libio.h: Change rtems_filesystem_node_types_t from
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ size_t malloc_free_space( void )
|
|||||||
{
|
{
|
||||||
region_information_block heap_info;
|
region_information_block heap_info;
|
||||||
|
|
||||||
if ( rtems_region_get_information( RTEMS_Malloc_Heap, &heap_info ) ) {
|
if ( !rtems_region_get_information( RTEMS_Malloc_Heap, &heap_info ) ) {
|
||||||
return (size_t) heap_info.free_size;
|
return (size_t) heap_info.free_size;
|
||||||
}
|
}
|
||||||
return (size_t) -1;
|
return (size_t) -1;
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ void _exit(int status)
|
|||||||
|
|
||||||
libc_wrapup();
|
libc_wrapup();
|
||||||
rtems_shutdown_executive(status);
|
rtems_shutdown_executive(status);
|
||||||
|
for (;;) ; /* to avoid warnings */
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@@ -328,6 +329,7 @@ void exit(int status)
|
|||||||
{
|
{
|
||||||
libc_wrapup();
|
libc_wrapup();
|
||||||
rtems_shutdown_executive(status);
|
rtems_shutdown_executive(status);
|
||||||
|
for (;;) ; /* to avoid warnings */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user