Back to index

glibc  2.9
Defines | Functions
tst-leaks2.c File Reference
#include <mcheck.h>
#include <netdb.h>
#include <resolv.h>
#include <test-skeleton.c>

Go to the source code of this file.

Defines

#define TEST_FUNCTION   do_test ()
#define TIMEOUT   30

Functions

static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 38 of file tst-leaks2.c.

#define TIMEOUT   30

Definition at line 39 of file tst-leaks2.c.


Function Documentation

static int do_test ( void  ) [static]

Definition at line 27 of file tst-leaks2.c.

{
  mtrace ();
  for (int i = 0; i < 20; ++i)
    {
      res_init ();
      gethostbyname ("www.gnu.org");
    }
  return 0;
}

Here is the call graph for this function: