Back to index

glibc  2.9
Defines | Functions | Variables
tst-ttyname_r.c File Reference
#include <errno.h>
#include <error.h>
#include <fcntl.h>
#include <stdio.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)


static int temp_fd

Define Documentation

#define PREPARE (   argc,
)    do_prepare ()

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

#define TEST_FUNCTION   do_test ()

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

Function Documentation

static void do_prepare ( void  ) [static]

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

  char *temp_file;
  temp_fd = create_temp_file ("tst-ttyname_r.", &temp_file);
  if (temp_fd == -1)
    error (1, errno, "cannot create temporary file");
static int do_test ( void  ) [static]

Variable Documentation

int temp_fd [static]

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