summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/malloc_deferred.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2008-07-03 01:37:38 +0000
committerChris Johns <chrisj@rtems.org>2008-07-03 01:37:38 +0000
commit72d2ec4da4ea788335adf921faebf0ac96d67c93 (patch)
treef50017188d1482928932df90c96985a0748616cd /cpukit/libcsupport/src/malloc_deferred.c
parent2008-07-03 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-72d2ec4da4ea788335adf921faebf0ac96d67c93.tar.bz2
2008-07-03 Chris Johns <chrisj@rtems.org>
* cpukit/libcsupport/include/chain.h: Removed. Use the SAPI interface that is supported. * cpukit/libcsupport/Makefile.am, cpukit/libcsupport/preinstall.am: Remove chain.h header references. * cpukit/sapi/include/rtems/chain.h, cpukit/sapi/inline/rtems/chain.inl: New. A supported chains interface. * cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to include the new chains interface. * cpukit/libfs/src/imfs/imfs.h, cpukit/libfs/src/imfs/imfs_creat.c, cpukit/libfs/src/imfs/imfs_debug.c, cpukit/libfs/src/imfs/imfs_directory.c, cpukit/libfs/src/imfs/imfs_fsunmount.c, cpukit/libfs/src/imfs/imfs_getchild.c, cpukit/libfs/src/imfs/imfs_load_tar.c, cpukit/libfs/src/imfs/imfs_rmnod.c, cpukit/libfs/src/imfs/memfile.c, cpukit/libfs/src/nfsclient/src/nfs.c, cpukit/libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/malloc_deferred.c, cpukit/libcsupport/src/mount.c, cpukit/libcsupport/src/privateenv.c, cpukit/libcsupport/src/unmount.c: Change to the new chains interface. * cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
Diffstat (limited to 'cpukit/libcsupport/src/malloc_deferred.c')
-rw-r--r--cpukit/libcsupport/src/malloc_deferred.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/malloc_deferred.c b/cpukit/libcsupport/src/malloc_deferred.c
index 57fd8752c3..923b0d980d 100644
--- a/cpukit/libcsupport/src/malloc_deferred.c
+++ b/cpukit/libcsupport/src/malloc_deferred.c
@@ -22,7 +22,7 @@
#include "malloc_p.h"
-Chain_Control RTEMS_Malloc_GC_list;
+rtems_chain_control RTEMS_Malloc_GC_list;
boolean malloc_is_system_state_OK(void)
{
@@ -37,17 +37,17 @@ boolean malloc_is_system_state_OK(void)
void malloc_deferred_frees_initialize(void)
{
- Chain_Initialize_empty(&RTEMS_Malloc_GC_list);
+ rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list);
}
void malloc_deferred_frees_process(void)
{
- Chain_Node *to_be_freed;
+ rtems_chain_node *to_be_freed;
/*
* If some free's have been deferred, then do them now.
*/
- while ((to_be_freed = Chain_Get(&RTEMS_Malloc_GC_list)) != NULL)
+ while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
free(to_be_freed);
}
@@ -55,6 +55,6 @@ void malloc_deferred_free(
void *pointer
)
{
- Chain_Append(&RTEMS_Malloc_GC_list, (Chain_Node *)pointer);
+ rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer);
}
#endif