Back to index

glibc  2.9
Defines | Functions | Variables
bug-fopena+.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)   prepare ()
#define TEST_FUNCTION   do_test ()

Functions

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

Variables

static int fd
static char * fname

Define Documentation

#define PREPARE (   argc,
  argv 
)    prepare ()

Definition at line 11 of file bug-fopena+.c.

#define TEST_FUNCTION   do_test ()

Definition at line 14 of file bug-fopena+.c.


Function Documentation

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

Definition at line 20 of file bug-fopena+.c.

{
  fd = create_temp_file ("wrewind.", &fname);
  if (fd == -1)
    exit (3);
}

Here is the call graph for this function:


Variable Documentation

int fd [static]

Definition at line 6 of file bug-fopena+.c.

char* fname [static]

Definition at line 7 of file bug-fopena+.c.