diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-25 19:00:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-25 19:00:35 +0000 |
commit | 26cdc2aff41927292e2b68201c345d6ff75d3721 (patch) | |
tree | 2cfed0f83211ba2d7c0042b8841383c7e181fcff /cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c | |
parent | 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> (diff) | |
download | rtems-26cdc2aff41927292e2b68201c345d6ff75d3721.tar.bz2 |
2002-03-25 Eric Norum <norume@aps.anl.gov>
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c b/cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c new file mode 100644 index 0000000000..20af7a97b8 --- /dev/null +++ b/cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c @@ -0,0 +1,15 @@ +/* + * Routine called when malloc() is not succeeding. This can be overridden + * by a BSP. + * + * $Id* + */ + +#include <stdio.h> +#include <rtems_bsdnet.h> + +void +rtems_bsdnet_malloc_starvation(void) +{ + printf ("rtems_bsdnet_malloc still waiting.\n"); +} |