Back to index

glibc  2.9
Defines | Functions
bug-iconv3.c File Reference
#include <dlfcn.h>
#include <iconv.h>
#include <stdio.h>
#include <stdlib.h>
#include <gnu/lib-names.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 49 of file bug-iconv3.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 28 of file bug-iconv3.c.

  /* Get the iconv machinery initialized.  */
  (void) iconv_open ("ISO-8859-1", "ISO-8859-2");

  /* Dynamically load libpthread.  */
  if (dlopen (LIBPTHREAD_SO, RTLD_NOW) == NULL)
      printf ("cannot load %s: %s\n", LIBPTHREAD_SO, dlerror ());
      exit (1);

  /* And load some more.  This call hang for some configuration since
     the internal locking necessary wasn't adequately written to
     handle a dynamically loaded libpthread after the first call to
     iconv_open.  */
  (void) iconv_open ("ISO-8859-2", "ISO-8859-3");

  return 0;

Here is the call graph for this function: