Back to index

glibc  2.9
Defines | Functions
tst-clone.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sched.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


int child_fn (void *arg)
static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 55 of file tst-clone.c.

Function Documentation

int child_fn ( void *  arg)

Definition at line 27 of file tst-clone.c.

  puts ("FAIL: in child_fn(); should not be here");

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 34 of file tst-clone.c.

  int result;

#ifdef __ia64__
  result = __clone2(child_fn, NULL, 0, 0, NULL, NULL, NULL);
  result = clone(child_fn, NULL, (int) NULL, NULL);

  if (errno != EINVAL || result != -1)
      printf ("FAIL: clone()=%d (wanted -1) errno=%d (wanted %d)\n",
              result, errno, EINVAL);
      return 1;

  puts ("All OK");
  return 0;

Here is the call graph for this function: