Back to index

glibc  2.9
Defines | Functions
tst-execstack-prog.c File Reference
#include <dlfcn.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <error.h>
#include "tst-execstack-mod.c"
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static void deeper (void(*f)(void))
static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 34 of file tst-execstack-prog.c.

Function Documentation

static void deeper ( void(*)(void)  f) [static]

Definition at line 25 of file tst-execstack-prog.c.

  char stack[1100 * 1024];
  memfrob (stack, sizeof stack);
  (*f) ();
  memfrob (stack, sizeof stack);

Here is the call graph for this function:

Here is the caller graph for this function:

static int do_test ( void  ) [static]

Definition at line 14 of file tst-execstack-prog.c.

  tryme ();

  /* Test that growing the stack region gets new executable pages too.  */
  deeper (&tryme);

  return 0;

Here is the call graph for this function: