From 26cdc2aff41927292e2b68201c345d6ff75d3721 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 25 Mar 2003 19:00:35 +0000 Subject: 2002-03-25 Eric Norum 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. --- .../libnetworking/rtems/rtems_bsdnet_malloc_starvation.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c (limited to 'cpukit/libnetworking/rtems/rtems_bsdnet_malloc_starvation.c') 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 +#include + +void +rtems_bsdnet_malloc_starvation(void) +{ + printf ("rtems_bsdnet_malloc still waiting.\n"); +} -- cgit v1.2.3