Ignore:
Timestamp:
Jan 29, 2008, 5:28:27 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b7bc1d1
Parents:
1ccb8aae
Message:

2008-01-29 Joel Sherrill <joel.sherrill@…>

  • libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/malloc_walk.c, libcsupport/src/posix_memalign.c, libcsupport/src/realloc.c, score/src/heapwalk.c: Add rtems_memalign as helper and as exposed nmemalign variant with few restrictions. Also turn on compilation of _Heap_Walk but make forced calls to it conditionally compiled. This should allow more flexibility to the user as to run-time checking of the heap.
  • libcsupport/src/rtems_memalign.c: New file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/realloc.c

    r1ccb8aae re0a66c15  
    5555  }
    5656
     57  if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) {
     58    errno = EINVAL;
     59    return (void *) 0;
     60  }
     61
    5762  /*
    5863   *  If block boundary integrity checking is enabled, then
     
    9095  }
    9196
    92   if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) {
    93     errno = EINVAL;
    94     return (void *) 0;
    95   }
    96 
    9797  memcpy( new_area, ptr, (size < old_size) ? size : old_size );
    9898  free( ptr );
Note: See TracChangeset for help on using the changeset viewer.