Back to index

glibc  2.9
Defines | Functions | Variables
tst-eof.c File Reference
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.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

int fd

Define Documentation

#define PREPARE (   argc,
  argv 
)    do_prepare ()

Definition at line 8 of file tst-eof.c.

#define TEST_FUNCTION   do_test ()

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


Function Documentation

static void do_prepare ( void  ) [static]

Definition at line 18 of file tst-eof.c.

{
  fd = create_temp_file ("tst-eof.", 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

Definition at line 14 of file tst-eof.c.