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.


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


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


int fd

Define Documentation

#define PREPARE (   argc,
)    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.