Back to index

glibc  2.9
tst-valloc.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.


int main (void)

Function Documentation

int main ( void  )

Definition at line 7 of file tst-valloc.c.

  char *p;
  int pagesize = getpagesize ();
  int i;

  p = valloc (pagesize);
  i = (long int) p;

  if ((i & (pagesize-1)) != 0)
      fprintf (stderr, "Alignment problem: valloc returns %p\n", p);
      exit (1);

  return 0;

Here is the call graph for this function: