Back to index

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

Go to the source code of this file.

Defines

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

Functions

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

Variables

static int fd

Define Documentation

#define OUT_SIZE   10000

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

#define PREPARE (   argc,
  argv 
)    prepare ()

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

#define TEST_FUNCTION   do_test ()

Definition at line 16 of file tst-fwrite.c.


Function Documentation

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

Definition at line 22 of file tst-fwrite.c.

{
  fd = create_temp_file ("tst-fwrite.", NULL);
  if (fd == -1)
    {
      puts ("cannot create temporary file");
      exit (1);
    }
}

Here is the call graph for this function:


Variable Documentation

int fd [static]

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