Back to index

glibc  2.9
Defines | Functions
tst-stdio1.c File Reference
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static void * tf (void *a)
int do_test (void)

Define Documentation


Definition at line 55 of file tst-stdio1.c.

#define TEST_FUNCTION   do_test ()

Definition at line 56 of file tst-stdio1.c.

Function Documentation

int do_test ( void  )

Definition at line 35 of file tst-stdio1.c.

  pthread_t th;

  flockfile (stdout);

  if (pthread_create (&th, NULL, tf, NULL) != 0)
      write (2, "create failed\n", 14);
      _exit (1);

  pthread_join (th, NULL);

  puts ("join returned");

  return 0;

Here is the call graph for this function:

static void* tf ( void *  a) [static]

Definition at line 26 of file tst-stdio1.c.

  flockfile (stdout);
  /* This call should never return.  */
  return a;