Back to index

glibc  2.9
Defines | Functions | Variables
tst-posix_fallocate.c File Reference
#include <fcntl.h>
#include <sys/stat.h>
#include <test-skeleton.c>

Go to the source code of this file.

Defines

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

Functions

static void do_prepare (void)
static int do_test (void)

Variables

static int fd

Define Documentation

#define PREPARE (   argc,
  argv 
)    do_prepare ()

Definition at line 5 of file tst-posix_fallocate.c.

#define TEST_FUNCTION   do_test ()

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


Function Documentation

static void do_prepare ( void  ) [static]

Definition at line 13 of file tst-posix_fallocate.c.

{
  fd = create_temp_file ("tst-posix_fallocate.", NULL);
  if (fd == -1)
    {
      printf ("cannot create temporary file: %m\n");
      exit (1);
    }
}

Here is the call graph for this function:

static int do_test ( void  ) [static]

Variable Documentation

int fd [static]

Definition at line 10 of file tst-posix_fallocate.c.