Back to index

glibc  2.9
Functions | Variables
soinit.c File Reference
#include <libc-internal.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

static void run_hooks (void(*const list[])(void))
void __libc_global_ctors (void)
void __libc_fini (void)

Variables

static void(*const __CTOR_LIST__ [1])(void)
static void(*const __DTOR_LIST__ [1])(void)

Function Documentation

void __libc_fini ( void  )

Definition at line 35 of file soinit.c.

{
  /* Call destructor functions.  */
  run_hooks (__DTOR_LIST__);
}

Here is the call graph for this function:

void __libc_global_ctors ( void  )

Definition at line 25 of file soinit.c.

{
  /* Call constructor functions.  */
  run_hooks (__CTOR_LIST__);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void run_hooks ( void(*[])(void)  list) [inline, static]

Definition at line 17 of file soinit.c.

{
  while (*++list)
    (**list) ();
}

Here is the caller graph for this function:


Variable Documentation

void(*const __CTOR_LIST__[1])(void) [static]

Definition at line 9 of file soinit.c.

       { (void (*) (void)) -1 };
void(*const __DTOR_LIST__[1])(void) [static]

Definition at line 12 of file soinit.c.

       { (void (*) (void)) -1 };