Back to index

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

Go to the source code of this file.


#define ntests   (sizeof (tests) / sizeof (tests[0]))
#define TEST_FUNCTION   do_test ()
#define PREPARE(argc, argv)   prepare ();
#define LINELEN   100


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


struct {
const char * enc
const char * data
size_t datalen
const wchar_t * expected
size_t expectedlen
tests []
static int fd
static char * tmpname

Define Documentation

#define LINELEN   100
#define ntests   (sizeof (tests) / sizeof (tests[0]))

Definition at line 20 of file tst-fopenloc2.c.

#define PREPARE (   argc,
)    prepare ();

Definition at line 27 of file tst-fopenloc2.c.

#define TEST_FUNCTION   do_test ()

Definition at line 24 of file tst-fopenloc2.c.

Function Documentation

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

Definition at line 37 of file tst-fopenloc2.c.

  fd = create_temp_file ("tst-fopenloc2", &tmpname);
  if (fd == -1)
      puts ("cannot open temp file");
      exit (1);

Here is the call graph for this function:

Variable Documentation

int fd [static]

Definition at line 32 of file tst-fopenloc2.c.

struct { ... } tests[] [static]
char* tmpname [static]

Definition at line 33 of file tst-fopenloc2.c.