mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 08:54:44 +08:00
2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/libio_.h: Moved method to free a node from a define to an external method. * libcsupport/src/freenode.c: New file.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||
|
||||
* libcsupport/Makefile.am, libcsupport/include/rtems/libio_.h: Moved
|
||||
method to free a node from a define to an external method.
|
||||
* libcsupport/src/freenode.c: New file.
|
||||
|
||||
2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||
|
||||
* posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
|
||||
|
||||
@@ -84,7 +84,8 @@ ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \
|
||||
src/setpgid.c src/setsid.c
|
||||
|
||||
MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \
|
||||
src/realloc.c src/_calloc_r.c src/free.c src/_free_r.c src/_malloc_r.c \
|
||||
src/realloc.c src/_calloc_r.c src/_malloc_r.c \
|
||||
src/free.c src/freenode.c src/_free_r.c \
|
||||
src/_realloc_r.c src/__brk.c src/__sbrk.c src/mallocfreespace.c \
|
||||
src/mallocinfo.c src/malloc_walk.c src/malloc_get_statistics.c \
|
||||
src/malloc_report_statistics.c src/malloc_report_statistics_plugin.c \
|
||||
|
||||
@@ -148,13 +148,7 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
|
||||
* Macro to free a node.
|
||||
*/
|
||||
|
||||
#define rtems_filesystem_freenode( _node ) \
|
||||
do { \
|
||||
if ( (_node)->ops )\
|
||||
if ( (_node)->ops->freenod_h ) \
|
||||
(*(_node)->ops->freenod_h)( (_node) ); \
|
||||
} while (0)
|
||||
|
||||
void rtems_filesystem_freenode( rtems_filesystem_location_info_t* node );
|
||||
|
||||
/*
|
||||
* External structures
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* freenode()
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
void rtems_filesystem_freenode( rtems_filesystem_location_info_t *_node )
|
||||
{
|
||||
if ( _node->ops )
|
||||
if ( _node->ops->freenod_h )
|
||||
_node->ops->freenod_h(_node );
|
||||
}
|
||||
Reference in New Issue
Block a user