source: rtems/cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c @ 26cdc2a

4.104.114.84.9
Last change on this file since 26cdc2a was 26cdc2a, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 25, 2003 at 7:00:35 PM

2002-03-25 Eric Norum <norume@…>

PR 374/networking

  • Makefile.am, rtems/rtems_bsdnet.h, rtems/rtems_glue.c: The patch sent as part of PR270 got applied to the wrong place. The effect was that (1) startup was no faster than before and (2) malloc starvation messages came way too quickly. The attached patch fixes both these problems and also provides a mechanism for applications to handle malloc starvation conditions as they see fit.
  • rtems/rtems_bsdnet_malloc_starvation.c: New file.
  • Property mode set to 100644
File size: 253 bytes
Line 
1/*
2 *  Routine called when malloc() is not succeeding.  This can be overridden
3 *  by a BSP.
4 *
5 *  $Id*
6 */
7
8#include <stdio.h>
9#include <rtems_bsdnet.h>
10
11void
12rtems_bsdnet_malloc_starvation(void)
13{
14  printf ("rtems_bsdnet_malloc still waiting.\n");
15}
Note: See TracBrowser for help on using the repository browser.