Back to index

glibc  2.9
Functions | Variables
tst-alignmod.c File Reference
#include <stdio.h>
#include <tst-stack-align.h>

Go to the source code of this file.

Functions

static void __attribute__ ((constructor))
void in_dso (int *result)
static void __attribute__ ((destructor))

Variables

static int res
static intresp

Function Documentation

static void __attribute__ ( (constructor)  ) [static]

Definition at line 25 of file tst-alignmod.c.

{
  res = TEST_STACK_ALIGN () ? -1 : 1;
}
static void __attribute__ ( (destructor)  ) [static]

Definition at line 48 of file tst-alignmod.c.

{
  if (TEST_STACK_ALIGN ())
    *resp = 1;
}
void in_dso ( int result)

Definition at line 32 of file tst-alignmod.c.

{
  if (!res)
    {
      puts ("constructor has not been run");
      *result = 1;
    }
  else if (res != 1)
    {
      puts ("constructor has been run without sufficient alignment");
      *result = 1;
    }

  resp = result;
}

Here is the call graph for this function:


Variable Documentation

int res [static]

Definition at line 23 of file tst-alignmod.c.

int * resp [static]

Definition at line 23 of file tst-alignmod.c.