Back to index

glibc  2.9
Defines | Functions | Variables
tst-cond12.c File Reference
#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include "../test-skeleton.c"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define PREPARE(argc, argv)   prepare ()
#define TEST_FUNCTION   do_test ()


static void prepare (void)
static int do_test (void)


static char fname [] = "/tmp/tst-cond12-XXXXXX"
static int fd

Define Documentation

#define PREPARE (   argc,
)    prepare ()

Definition at line 35 of file tst-cond12.c.

#define TEST_FUNCTION   do_test ()

Definition at line 38 of file tst-cond12.c.

Function Documentation

static int do_test ( void  ) [static]
static void prepare ( void  ) [static]

Definition at line 44 of file tst-cond12.c.

  fd = mkstemp (fname);
  if (fd == -1)
      printf ("mkstemp failed: %m\n");
      exit (1);
  add_temp_file (fname);
  if (ftruncate (fd, 1000) < 0)
      printf ("ftruncate failed: %m\n");
      exit (1);

Here is the call graph for this function:

Variable Documentation

int fd [static]

Definition at line 31 of file tst-cond12.c.

char fname[] = "/tmp/tst-cond12-XXXXXX" [static]

Definition at line 30 of file tst-cond12.c.