Back to index

glibc  2.9
Defines | Functions
bug-atexit1.c File Reference
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 22 of file bug-atexit1.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 8 of file bug-atexit1.c.

  for (int i = 0; i < 2; ++i)
      void *dso = dlopen ("$ORIGIN/", RTLD_NOW);
      void (*fn) (void) = (void (*) (void)) dlsym (dso, "foo");
      fn ();
      dlclose (dso);
      puts ("round done");

  return 0;

Here is the call graph for this function: