RTEMS | Draft: IMFS User allocator Plugin Code (!534)

Joel Sherrill (@joel) gitlab at rtems.org
Mon Aug 4 22:39:09 UTC 2025




Joel Sherrill commented on a discussion on testsuites/psxtests/psximfs03/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_128186

 > +#include <errno.h>
 > +#include <rtems/libio.h>
 > +#include <rtems/malloc.h>
 > +#include <rtems/libcsupport.h>
 > +
 > +const char rtems_test_name[] = "PSXIMFS 3";
 > +const char memory[1000000000];
 > +
 > +char *freelist = NULL;
 > +
 > +char *allocator(
 > +  int val,
 > +  int size
 > +)
 > +{
 > +  if(!freelist) return NULL;

I think the if( instances are resolved. And returns are on separate lines with {}.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_128186
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250804/8698d35a/attachment-0001.htm>


More information about the bugs mailing list