source: rtems/cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c @ 593616a8

Last change on this file since 593616a8 was 593616a8, checked in by Joel Sherrill <joel.sherrill@…>, on 03/25/03 at 19:00:23

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.