Back to index

glibc  2.9
Functions
constload2.c File Reference
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

int bar (void)
int baz (void)
int foo (void)
void __attribute__ ((__constructor__))
static void __attribute__ ((__destructor__))

Function Documentation

void __attribute__ ( (__constructor__)  )

Definition at line 8 of file constload2.c.

{
  return 42 + bar ();
}
static void __attribute__ ( (__destructor__)  ) [static]

Definition at line 40 of file constload2.c.

{
  if (dlclose (h) != 0)
    {
      puts ("failed to unload constload3");
      exit (1);
    }
  else
    puts ("succeeded unloading constload3");
}

Here is the call graph for this function:

int bar ( void  )

Definition at line 4 of file order2mod3.c.

{
  return 1;
}
int baz ( void  )

Definition at line 19 of file constload2.c.

{
  return -21;
}

Here is the caller graph for this function:

int foo ( void  )